Im getting a weird error when starting my spring2.5.6, jpa (hibernate3.4) webapp in weblogic 10.3
[ERROR] Javassist Enhancement failed: com.xxx.domain.model.Scheme
java.lang.NoSuchMethodError: pcGetManagedFieldCount
at com.xxx.domain.model.Fund.<clinit>(Fund.java)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAc
cessorFactory.java:25)
The class com.xxx.domain.model.Scheme is the mapped subclass of the abstract fund object in the single_table inheritance hierarchy, and I get this error for all objects in the hierarchy. I use both annotated classes and XML metadata to define mappings for my persistence classes.
I get this error only when deploying the application to weblogic, so everything works fine using junit. I tried updating to the latest version on javaassit.jar.
Problem It seems like a problem with the boot order, but I can't figure it out.
PS. As bea suggested, I added the following to weblogic.xml
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
- - , , ?