Reputation: 2794
I developed a Java EE app under eclipse with server runtime as Tomcat 6.0 . All the things are working just fine , but when i uploaded war file to my hosting server it didn't work.
Support says : "create your war with tomcat 5.5"
what does that mean ? do eclipse creates war according to the server runtime installed (in my case its tomcat 6.0) ?
EDIT:
I tried running same app under tomcat 5.5 - locally...but eclipse says :
The server does not support version 2.5 of the J2EE Web module specification
so how can i make the Java EE app to work with tomcat 5.5 ..
Upvotes: 0
Views: 1399
Reputation: 311048
they use Tomcat 5.5
Your hosting provider is many years out of date. Tomcat 7 is now up to about as many point releases as Tomcat 6, which came out in 2006, and Tomcat 5.5 goes to End of Life on 30 September. Get them to upgrade their antique offering, or find someone better.
Upvotes: 2
Reputation: 6045
You need to compile your project for Servlet API 2.4 (and not 2.5). In Eclipse you need to change the version of the "Dynamic Web Module" (see here).
Upvotes: 2
Reputation: 656
Either when you create your project or when you export your WAR file you are able to to choose which version of Tomcat to use(pull down menu). You need to export your WAR file using the same version of Tomcat as the Tomcat your server is running.
Upvotes: 1