Skip to main content

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

2 replies [Last post]
mbazs
Offline
Joined: 2005-12-17

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Alexis Moussine-Pouchkine

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@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@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

mbazs
Offline
Joined: 2005-12-17

Solved, I've installed newest Glassfish, problem has gone.
Cause of this error will never be known.

"The Ways of God are Inscrutable".

Thx.
MB