users@glassfish.java.net

EAR compatability problem in migration from WL10 to Glassfish

From: <glassfish_at_javadesktop.org>
Date: Thu, 26 Feb 2009 13:39:17 PST

I am trying to migrate an application from Web Logic 10x to Glassfish and have encountered the following problem attempting to run the ear file against the verifier.

WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/.../CustomInputException

This class along with several others that are reported as not found are all located inside a jar file that is included in the ear file.

It looks like the annotation processing cannot find the libraries that are contained in the ear file. Is the annotation processing using location to look for libraries? Any idea how to make the libraries visible for processing, I would like to keep them inside the ear file.

I have tried the following
- Adding "<library-directory>APP-INF/lib</library-directory>" to the application.xml file
- Moved the libraries to the top level of the ear file
- Moved the libraries to the /lib directory of the ear
[Message sent by forum member 'sol1001' (sol1001)]

http://forums.java.net/jive/thread.jspa?messageID=334086