-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: java.lang.NoClassDefFoundError: net/sf/cglib/beans/
PostPosted: Fri Aug 10, 2012 3:29 am 
Newbie

Joined: Fri Aug 10, 2012 3:13 am
Posts: 1
Hi,

I have an EJB project deployed in jboss-5.1.0. I have cglib-2.1.3.jar in my classpath and when I do "echo $CLASSPATH" it is also listed there. But still I am getting "java.lang.reflect.InvocationTargetException" caused by "java.lang.NoClassDefFoundError: net/sf/cglib/beans/BulkBeanException". I searched in net they are suggesting that cglib should be there in classpath.I already have that in my classpath. My project has jboss service in it which will copy some data from Mysql and insert it in HSQl.Both the db interaction is done by hibernate.I am cold deploying my EJB application.And getting this message
"Error installing to Create: name=jboss.j2ee:jar=SDP_MTN_TIM_Telus_OI_V9.jar,name=DbStartUpService,service=EJB3 state=Configured" followed by the exception trace.My project name has been highlighted.

One more thing I want to add here that is I am using the same jboss copy same HSQL and Mysql in a different server and I also have the same application deployed.(Since I have the same copy of whole jboss folder) where I am not getting this exception.Along with that I am having the same copy of .bash_profile where all the classpaths are defined.Following are the output of "uname -a" command in both the servers

Linux SDP139 2.6.9-89.EL #1 Mon Apr 20 10:23:08 EDT 2009 i686 i686 i386 GNU/Linux (Getting exception on this server)

Linux localhost.localdomain 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686 i686 i386 GNU/Linux (This server no exceptions are coming)

I also checked for multiple jar entries of cglib.So I did "find / | grep cglib" which gives me only one cglib jar which is already added in the classpath.So no cglib in JBOSS_HOME/server/default/lib which cause multile classpath entry for the same jar.I have also tried with cglib-nodep.2.2.jar with no luck.

I tried after rebooting the server with no luck.I ahve noticed some difference in working and not working jboss console output.

The working copy is showing

19:44:00,077 INFO [Environment] Hibernate 3.3.1.GA
19:44:00,110 INFO [Environment] hibernate.properties not found
19:44:00,116 INFO [Environment] Bytecode provider name : javassist

The non working copy was showing

19:49:28,817 INFO [Environment] Hibernate 3.1.1
19:49:28,823 INFO [Environment] hibernate.properties not found
19:49:28,825 INFO [Environment] using CGLIB reflection optimizer

followed by exception trace

Both jboss copies are same.Both class path entries are same.And all jars are in the classpath are in the same path hierarchy in both the servers.

And again I repeat both Jboss copies .bash_profile file and the CLASSPATH entries are same.So are the JDK versions in both the servers.

Any help ? I can also provide the trace of both of the servers.

Regards,
Arka


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.