ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Wooten" <woot...@hughes.net>
Subject RE: NoClassDefFoundError for class Resources
Date Wed, 16 May 2007 20:15:04 GMT
Thanks for the response but that is not the issue.
I am deploying an ear file.  All of the ibatis work is done in a session
bean so the web application knows nothing about it.

I have used ibatis 2.0.9 this way in other projects.
I have done many j2ee applications and I am pretty confident in using jboss.

Any other suggestions?

-----Original Message-----
From: Yee, Richard K CTR DMDC [mailto:Richard.Yee.ctr@osd.pentagon.mil] 
Sent: Wednesday, May 16, 2007 3:02 PM
To: user-java@ibatis.apache.org
Subject: RE: NoClassDefFoundError for class Resources

 This is caused by the fact that EJB classes are loaded by a different
class loader than the one used by the web application. Check your Jboss
documentation for using EJBs.


-----Original Message-----
From: Steve Wooten [mailto:wootens@hughes.net] 
Sent: Wednesday, May 16, 2007 11:16 AM
To: user-java@ibatis.apache.org
Subject: NoClassDefFoundError for class Resources


Has anyone else had this issue?

I am at a loss on how to solve it.  


I am attempting to use ibatis in a Session bean with JBoss.  

I have a helper class that loads the ibatis config with the following

            try {

                  ibatisConfigReader =


                  ibatisSqlMap = SqlMapClientBuilder


            } catch (Exception ex) {

                  log.fatal("Exception reading ibatis config file", ex);


I have all the ibatis jar file deploying with my ear so I know the file
"com/ibatis/common/resources/Resources exist."

The ibatis jar is deployed just like all my other 3rd party jars.  I
have no issues referencing them.

However when the above code is run I get
java.lang.NoClassDefFoundError: com/ibatis/common/resources/Resources


Please Help!



View raw message