cancel
Showing results for 
Search instead for 
Did you mean: 

JBoss portal - Alfresco deployment error

deanouk
Champ in-the-making
Champ in-the-making
15:51:26,070 ERROR [BasicLazyInitializer] Javassist Enhancement failed: org.alfr
esco.repo.avm.PlainFileNodeImpl
java.lang.RuntimeException: by java.lang.IllegalAccessError: class org.hibernate
.proxy.HibernateProxy_$$_javassist_155 cannot access its superinterface org.alfr
esco.repo.avm.PlainFileNode
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:342)

        at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)

        at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
        at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyF
actory(JavassistLazyInitializer.java:138)
        at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstanti
ate(JavassistProxyFactory.java:42)
        at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoE
ntityTuplizer.java:162)
        at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEnti
tyTuplizer.java:135)
        at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTupliz
er.java:55)
        at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(E
ntityEntityModeToTuplizerMapping.java:56)
        at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.jav
a:269)
        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(Abstrac
tEntityPersister.java:425)
        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(Sing
leTableEntityPersister.java:109)
        at org.hibernate.persister.PersisterFactory.createClassPersister(Persist
erFactory.java:55)
14 REPLIES 14

deanouk
Champ in-the-making
Champ in-the-making
I also get this further down the deployment:

15:42:17,661 ERROR [ContextLoader] Context initialization failed
org.alfresco.repo.model.filefolder.FileFolderServiceImpl$InvalidTypeException: T
his service should ignore type {http://www.alfresco.org/model/content/1.0}system
folder
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.isFolder(Fil
eFolderServiceImpl.java:259)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.toFileInfo(F
ileFolderServiceImpl.java:219)
        at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.create(FileF
olderServiceImpl.java:715)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)

szimano
Champ in-the-making
Champ in-the-making
I had the same problem while using Mac 1.6 Java - switched to 1.5 and it works.

Tomek

yilin
Champ in-the-making
Champ in-the-making
I have the first problem too. I am using Alfresco 2.1 with Sun JVM 1.5.0 updat 12, and JBoss App Server 4.2.

szimano
Champ in-the-making
Champ in-the-making
Have you done this: http://wiki.alfresco.com/wiki/Install_On_Jboss_4.2.0 ?

Cheers,
szimano

yilin
Champ in-the-making
Champ in-the-making
Hi, szimano,

We have already done that and it did not help. Note that the exception is from Hibernate, not JSF, therefore is not related to the solution you suggested.

kevinr
Star Contributor
Star Contributor
I had the same problem while using Mac 1.6 Java - switched to 1.5 and it works.
This suggests it's not a problem with Alfresco code but some kind of JVM issue with Hibernate Smiley Sad

I have the first problem too. I am using Alfresco 2.1 with Sun JVM 1.5.0 updat 12, and JBoss App Server 4.2.
Can you try a different JVM version or JBoss AS version? We have not seen this issue ourselves.

Thanks,

Kevin

jbrooks
Champ in-the-making
Champ in-the-making
Same issue for me.  I updated alfresco.war (updated web.xml for JBoss JSF, removed log4j jar, added .xml config files under extension dir for MySQL 5).  Using Alfresco community 2.1.0, JVM 1.5 update 9, JBoss 4.2.1GA

jbrooks
Champ in-the-making
Champ in-the-making
No issues when I changed JBoss 4.2 to 4.0.5GA

kevinr
Star Contributor
Star Contributor
Have you tried cleaning out the alf_data folder and creating a fresh DB schema? I assume you are running the JVM with the -server flag?

Thanks,

Kevin