Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2005

Tip: Looking for answers? Try searching our database.

Tomcat question

Thread view: 
Frances - 01 Nov 2005 22:56 GMT
I was on JVM 1.5 now have reverted back to 1.4.2..  now my Tomcat won't
run.. (I did change JAVA_HOME to C:\j2sdk1.4.2_09 (& of course path to
C:\j2sdk1.4.2_09\bin;) don't know what other settings to change

can compile fine, but apps won't run, and get this error when try to run
Tomcat's home page..
javax.servlet.ServletException: org/apache/jsp/index_jsp (Unsupported
major.minor version 49.0)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

thank you..
Frances - 01 Nov 2005 23:07 GMT
> I was on JVM 1.5 now have reverted back to 1.4.2..  now my Tomcat won't
> run.. (I did change JAVA_HOME to C:\j2sdk1.4.2_09 (& of course path to
[quoted text clipped - 8 lines]
>
> thank you..

Tomcat version is 5.0.27... when I first installed it it ran fine on
1.4.2.. then upgraded to 1.5, now reverted back to 1.4.2..  so I don't
see why same Tomcat shouldn't run w/1.4.2..  thank you.. Frances
Ross Bamford - 01 Nov 2005 23:31 GMT
>> I was on JVM 1.5 now have reverted back to 1.4.2..  now my Tomcat won't  
>> run.. (I did change JAVA_HOME to C:\j2sdk1.4.2_09 (& of course path to  
[quoted text clipped - 10 lines]
> 1.4.2.. then upgraded to 1.5, now reverted back to 1.4.2..  so I don't  
> see why same Tomcat shouldn't run w/1.4.2..  thank you.. Frances

You'll need to delete the 'work' directory for any webapps - Jasper will  
have compiled your JSPs using the 1.5 compiler, so they won't be backward  
compatible. I think it's literally called $CATALINA_HOME/work - just empty  
it, Tomcat should recreate it.

Now you mention it that probably applies to the previous topic about this  
too...

Signature

Ross Bamford - rosco@roscopeco.remove.co.uk

Frances - 01 Nov 2005 23:47 GMT
>>> I was on JVM 1.5 now have reverted back to 1.4.2..  now my Tomcat
>>> won't  run.. (I did change JAVA_HOME to C:\j2sdk1.4.2_09 (& of course
[quoted text clipped - 18 lines]
> Now you mention it that probably applies to the previous topic about
> this  too...

thank you very much.. I did know about emptying out 'work' directory
(and have it before when I wanted to make sure JPS's are being
recompiled anew) however in this case it was even Tomcat home page
(http://localhost) that wouldn't run, which is why I was a bit puzzled..
 so: deleted all stuff inside here..

C:\tomcat\work\Catalina\localhost

wasn't sure whether also to delete 'Catalina' dir.. but deleting
everything inside 'localhost' did it.. will have to recompile all my
servlets again, but that's fine...  again, many thanks!!  :)

Frances


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.