views:

46

answers:

1

Hello All,

I'm having problems when I'm trying to deploy on JBoss 6.0 a roo spring application. The exception I'm getting is: "Deployment "here goes my war file/" is in error due to the following reason(s): java.lang.VerifyError: (class: org/hibernate/bytecode/cglib/CglibClassTransformer, method: doTransform signature: (Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/Class;Ljava/security/ProtectionDomain;[B)[B) Incompatible object argument for function call"

Please if anybody can help me. I'm new into JBoss and can't find the answer for it. Probably it is wrong version of classes but which?

Many thanks for any help! Agata

A: 

I believe there's a clash between the versions of CGLIB used by Hibernate and Spring. This problem is what OSGi was born to solve. Each one could have their own if you could use higher-order packaging.

duffymo
Thanks for your answer, I know that it is problem with CGLIB but don't know how to solve it. For the time being I don't want to use OSGI. I will try with my pom.xml and maybe change vesrions of hibernate?
Agata
You don't have a choice - Spring and Hibernate need them for dynamic proxy generation. Give it a go with pom.xml and version changes.
duffymo