aspose file tools*
The moose likes Websphere and the fly likes Failed to load servlet. Easy for you! Help me please! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Failed to load servlet. Easy for you! Help me please!" Watch "Failed to load servlet. Easy for you! Help me please!" New topic
Author

Failed to load servlet. Easy for you! Help me please!

Cynthia Tovar
Greenhorn

Joined: Mar 02, 2006
Posts: 2
I have 4 projects: ServerProject, EARProject, EJBProject y ApplicationClientProject.

I have this error:
SRVE0020E: [Servlet Error]-[helloWorld.servlet.HelloWorldServlet]: Failed to load servlet: java.lang.NoClassDefFoundError: Error while defining class: helloWorld.servlet.HelloWorldServlet
This error indicates that the class: <unknown>
could not be located while defining the class: helloWorld.servlet.HelloWorldServlet
This is often caused by having the class at a higher point in the classloader hierarchy
Dumping the current context classloader hierarchy:
==> indicates defining classloader
*** indicates classloader where the missing class could have been found


In the application.xml are the Module and the ProjectUtility JARs sections; in the first is the ApplicationClient.jar, WebProject.war and EJBProject.jar; and in the second, there's nothing.

What am I doing wrong?

Please help me!!! Please

Thank you very, very, much


Have a nice day!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30546
    
150

Cynthia,
Welcome to JavaRanch!

If you go into the server perspective and open the server, you can see the classloader policy. Drill down under your ear to the web application and change the default classloader policy.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Cynthia Tovar
Greenhorn

Joined: Mar 02, 2006
Posts: 2
Thanks for your replay Jeanne Boyarsky!!!

I've done what you said and the problem is still there. Do you need more information about my problem?

Thank you very much.
Shyam kumar
Ranch Hand

Joined: May 21, 2006
Posts: 146
Hi Jeanne,
I'm facing the same problem while launching the server, can you please send some information about it?

Thanks,
Naveen
William Janssen
Ranch Hand

Joined: Jan 02, 2007
Posts: 39
Since it is a java.lang.NoClassDefFoundError, can you confirm that the class is located inside the WebProject.war file in the /WEB-INF/classes/helloWorld/servlet/ directory?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Failed to load servlet. Easy for you! Help me please!