wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Does tomcat 5.5.9 support Java 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Does tomcat 5.5.9 support Java 5.0" Watch "Does tomcat 5.5.9 support Java 5.0" New topic
Author

Does tomcat 5.5.9 support Java 5.0

Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
Hello,

I have developed a web application using tomcat 6, Java 6 but now the project is to be hosted in a server that supports only tomcat version 5.5.9.

when i run my web application in the tomcat 5.5.9, the arraylist items are not getting type casted automatically rather i am getting the items as type Object.

Does tomcat 5.5.9 support java version 5 or what might be the issue.

The project runf fine in tomcat 6.


SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I'm not sure I understand without seeing the code, but why can't you just add the cast?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

What java version does Tomcat 5.5.9 run with on the hosted server??

Is the deployed code compiled with "target=1.5" (if it is JDK 1.5, on the server)??


Regards, Rene Larsen
Dropbox Invite
Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
the hosted server has java version 6

I developed the project using eclipse in which the compiler compliance level is set to 6.0.
Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
I can add the cast manually but i have completed the project. I takes a lot of time to check all the code and insert manual casting
 
wood burning stoves
 
subject: Does tomcat 5.5.9 support Java 5.0