• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDK - Tomcat version compatibility

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am new to J2EE. I am trying to develop my first project but facing some problem

I have JDK6 installed, and Tomcat 5.5 configured with the Environment Variables.
I put my first project folder into Tomcat->webapps, started the Tomcat server but could not successfully run the project in the browser.

But later I upgraded the Tomcat to version 6 and run the project & this time it ran!

Is there any issue of the JDK-Tomcat version compatibility?
I am using Tomcat 6, does that mean I am using J2EE 6 ??

If so- then what should I write in the web-app version="?" in the web.xml file?
earlier I copied an existing web.xml into one project where it was:
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4", but the project did not run...

can you please show me some light on this??
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shajid Johnny wrote:Hello,
I am new to J2EE. I am trying to develop my first project but facing some problem
I have JDK6 installed, and Tomcat 5.5 configured with the Environment Variables.
I put my first project folder into Tomcat->webapps, started the Tomcat server but could not successfully run the project in the browser.



What does "could not successfully run the project" mean? Did you get any error messages?

Shajid Johnny wrote:
I am using Tomcat 6, does that mean I am using J2EE 6 ??



No. It depends how did you set Tomcat up.

Shajid Johnny wrote:
If so- then what should I write in the web-app version="?" in the web.xml file?
earlier I copied an existing web.xml into one project where it was:
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4", but the project did not run...



There are a few link which may help you to figure everything out

http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt
http://wiki.apache.org/tomcat/TomcatVersions
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Misha Ver wrote:

Shajid Johnny wrote:
I am using Tomcat 6, does that mean I am using J2EE 6 ??



No. It depends how did you set Tomcat up.


No, it does not. Tomcat 6 implements Servlet API 2.5, which is part of JEE 5. Tomcat 7 will implement Servlet API 3.0 (which is part of JEE 6). Note that there's no such thing as J2EE 5 or J2EE 6 - they are called JEE 5 and JEE 6, respectively. Also note that JEE contains much more than just Servlets and JSP (which are the only parts Tomcat implements).
 
Shajid Johnny
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot.

@Ulf Dittmer: since Tomcat 6 implements Servlet API 2.5, which is part of JEE 5, what should the web.xml should be like?
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4
should i replace web-app_2_4 and version=2.4 with 2.5 ?

 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably; the ultimate reference for such details is the Servlet Specification - follow the Specification URLs link in my signature to find it.
reply
    Bookmark Topic Watch Topic
  • New Topic