users@glassfish.java.net

Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Sat, 20 Jun 2009 11:00:53 +0200

It seems that you solved the problem, but I thought it be worth
stating that if you have placed some JAR in domains/lib/ext, then it
is considered as an extension to the JDK and hence higher up the stack
in the class-loader hierarchy. That can prevent core Java EE classes
to be loaded.
-Alexis

On Jun 19, 2009, at 22:01, glassfish_at_javadesktop.org wrote:

> Hi,
>
> I'm getting this exception, whatever on Earth I do.
> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
>
> I've migrated a VERY simple enterprise app from windows to my little
> linux.
>
> What I have:
> Sun Java System Application Server 9.1_02 (build b04-fcs)
> Netbeans 6.1
>
> Maybe this stuff too old or wwwwwhat ?...
>
> This drives me crazy. On W$ it worked like a charm, but just copying
> source files here my Glassfish just crash with this nonsense
> "NoClassDefFoundError". I've created entirely new app in netbeans,
> and just copied source files into it, modified web.xml registering
> this very-very simple servlet. And that's it.
>
> Thx.
> MB
> [Message sent by forum member 'mbazs' (mbazs)]
>
> http://forums.java.net/jive/thread.jspa?messageID=352159
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>