• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Web Application Migration from Tomcat 4.1 to Tomcat 6.0

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,

I am having trouble migrating by web application from Tomcat 4.1 to Tomcat 6.0 . This application uses struts 1.3.8.

When I deploy the application in Tomcat 6.0 , I get the below error.



If I include the servlet.jar from Tomcat 4.1 in the WEB-INF/lib the application works fine .
Except for the warning validateJarFile(C:\Apache\Tomcat 6.0\webapps\MyApplication\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class.

This happens on pages that use the Tiles Layout.

I dont want to use the servlet.jar from Tomcat 4.1 . I want to use the servlet-api.jar & jsp-api.jar from Tomcat 6.0 .

Can anyone please advise .
Thanks
Madhuri

 
Saloon Keeper
Posts: 28067
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Were you attempting to include the Tomcat 6 servlet jar in your webapp?

You shouldn't ever include servlet.jar. If you do, you may experience classpath errors, since the TOMCAT_HOME/lib servlet.jar is in the server's system classpath.

I guess the split between servet-api.jar and servlet-impl.jar must have occurred between Tomcat 4 and Tomcat 5. It's been long enough I don't remember. Web applications should be compiled with the servlet-api.jar in their compile classpath, though the actual jar itself should not be included in the WAR file, since the server's copy will be used at runtime.
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic