users@glassfish.java.net

Using GlassFish Tools Bundle For Eclipse, how 2 reference external classes?

From: <glassfish_at_javadesktop.org>
Date: Sun, 28 Feb 2010 15:27:49 PST

My apologies for what must seem as an extremely naive question, but I've spent the last few days trying to figure out how to avoid "root cause java.lang.NoClassDefFoundError:" errors when running a servlet that attempts to import and use classes that are part of other packages. Mind you, I included a reference to the class files in the Libraries section of the servlet project--the application seems to compile (i.e., the import statements seem to work and there are no errors raised at design time), but when running the servlet I get the aforementioned error. I am convinced this is totally a newbie configuration setup mistake. Does anyone have any quick tips for how to reference an external package or classes in a GlassFish servlet (for proof of concept only, not yet for deployment) without getting the NoClassDefFoundError? Many many many thanks in advance. -L.
[Message sent by forum member 'sandiegoluis' (luisynigo_at_gmail.com)]

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