Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does tomcat 5.5.9 support Java 5.0

 
Ramkumar Subburaj
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand without seeing the code, but why can't you just add the cast?
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)??
 
Ramkumar Subburaj
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic