File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes AnnotationConfiguration class - jbossall-client.jar and hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "AnnotationConfiguration class - jbossall-client.jar and hibernate" Watch "AnnotationConfiguration class - jbossall-client.jar and hibernate" New topic
Author

AnnotationConfiguration class - jbossall-client.jar and hibernate

Anurag Bhatia
Greenhorn

Joined: May 12, 2009
Posts: 27
I am currently using jboss-4.2.2.GA. I have a client that has to do a remote lookup on the jbos server to get some info and then persist it onto it's own db using hibernate 3.4.
The jbossall-client.jar is on the build path of the client; there is a class AnnotationConfiguration that is there on the in the hibernate-annotations lib that clashes with the AnnotationsConfiguration in the jbossall-client.jar. Since I placed the jbossall-client on the build ; I keep getting a NoSuthMethodError Exception on the AnnotationsConfiguration class when I try and initialize the db.
I am not sure how to proceed. I cannot write a custome class loader as the hibernate code is not in my control.
Anurag Bhatia
Greenhorn

Joined: May 12, 2009
Posts: 27
In case someone else ran into the same issue; you need to get all the relevant jars that you need one by one from the jboss libs instead of using the jboss-all client jar.
 
 
subject: AnnotationConfiguration class - jbossall-client.jar and hibernate
 
developer file tools