users@glassfish.java.net

Re: Reflection in EAR project

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Jul 2010 12:43:51 PDT

I see. The classes inside the library jars should be visible to all component modules, but the classes inside the modules don't need to be visible to the library jars. This is kind of expected behavior. Probably the way the classloader was constructed in v2 made this work, but this is not something that should be expected to work.

The class which needs to use the reflection probably should be packaged inside the war for it to see other web classes..
[Message sent by forum member 'hzhang_jn']

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