• 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

Does tomcat 5.5.9 support Java 5.0

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure I understand without seeing the code, but why can't you just add the cast?
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic