Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

[Servlet Error]- not a servlet class

Thread view: 
Jitender - 17 Oct 2007 06:55 GMT
I have deployed a web-application on WebSphere (WAS) 6.0, which uses
struts.
Upon start-up i see the following error message in the log:

[Servlet Error]-[javax.servlet.UnavailableException: Servlet
[com.company.MyServlet]: not a servlet class

The application works perfectly fine on Tomcat.

Additional Info::

My Wesbphere settings are to use Class Loading for web application as:
Parent Last, Application(not module). I have left the Server class
loading untouched, as if i change it (as suggested in one of the links
found on google, the server crashes).

Any help is greatly appreciated. I read somewhere j2ee.jar and
struts.jar have a conflict, but i do not know if this is true, or how
to resolve it. My web.xml is very simple with a simple servet
configured to extend from ActionServet.
Daniel Pitts - 17 Oct 2007 15:22 GMT
> I have deployed a web-application on WebSphere (WAS) 6.0, which uses
> struts.
[quoted text clipped - 16 lines]
> to resolve it. My web.xml is very simple with a simple servet
> configured to extend from ActionServet.

What does the declaration for MyServlet look like?
Lew - 17 Oct 2007 15:24 GMT
> I have deployed a web-application on WebSphere (WAS) 6.0, which uses
> struts [sic].
[quoted text clipped - 16 lines]
> to resolve it. My web.xml is very simple with a simple servet
> configured to extend from ActionServet [sic].

What is the line from your "servlet" class that declares the class, the one
similar to "public class Foo extends ..."?

Are you deploying the same WAR (in other words, with no intervening build) to
both Tomcat and WS?

Why are you using "Parent Last" class loading?

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.