• 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

development environment:eclipse jdk6.0 +Tomcat6.0.host only support Tomcat4.0 what

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all:
I have problem with version issue of tomcat.
My development environment is :eclipse jdk6.0 +ApachTomcat6.0.

and I have web host. I uploaded my war file. and got
javax.servlet.ServletException: Bad version number in .class file error.

later I find out that host only support Tomcat4.0+jdk1.6.

what can i do now to make my web application work fine on the web host? please advise.thanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat 4 supports Servlet API 2.3 and JSP 1.2. You need to make sure that you're not using any servlet/JSP features introduced later. A starting point would be to compile your servlets against the Tomcat 4 libraries instead of the Tomcat 6 ones, and also to not use the JSP EL. A surer alternative would be to install Tomcat 4 and develop against that.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic