Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Tomcat 4.x won't work with JDK 1.4
Tomcat 4.x won't work with JDK 1.4 [message #33938] Wed, 21 May 2003 15:22 Go to next message
Eclipse UserFriend
Originally posted by: esuastegui701.esmartweb.com

I am using the Sysdeo Tomcat plug-in (v2.1) for Eclipse (v2.1), and I have
the following problems:

1) Tomcat 4.0.6:
a) Works okay if I use JDK 1.3.1
b) Doesn't work with JDK 1.4.1: After using JDK 1.3.1, if I remove all
compiled JSPs from the work/org/apache/jsp folder prior to starting Tomcat,
I get the following exception:

<<<
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Invalid class file format in
D:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor
version '48.0' is too recent for this tool to understand.

D:\DevJ\vp_web_Eclipse\web\work\org\apache\jsp\login$jsp.jav a:0: Class
java.lang.Object not found in class javax.servlet.GenericServlet.
package org.apache.jsp;
^
2 errors
>>>

NOTE: No Sysdeo patch is available for Tomcat 4.0.6, so I installed none.

2) Tomcat 4.1.24: I installed the Tomcat 4.1.24 Sysdeo patch to
<TOMCAT_HOME>/common/classes. Again I remove all previously compiled JSPs
from the work directory, and now...
a) JDK 1.3.1: Tomcat starts without errors, but as far as I can tell, my
application is not deployed, and I cannot access my main page.
b) JDK 1.4.1: Ditto.

I have re-checked my setup countless times, and everything matches the
"working" case (Tomcat 4.0.6) except I am now pointing to the Tomcat 4.1.24
directory under Window-Preferences-Tomcat and have selected the 4.1.x
checkbox.

From what I have seen on Google, others have gotten this to work. Perhaps my
situation is different because my Web application uses struts? Any help will
greatly appreciated.

--
Eduardo Suastegui
"Test everything; Hold on to the good."
(Remove 701 when replying via e-mail)
Re: Tomcat 4.x won't work with JDK 1.4 [message #35216 is a reply to message #33938] Thu, 22 May 2003 13:21 Go to previous message
Eclipse UserFriend
Originally posted by: robert.varga.fathomtechnology.com

I am using Tomcat 4.1.18 and Sun JDK 1.4.0 with Sysdeo 2.1beta + the patch
for 4.1.18 from Sysdeo webpage
without problems in Eclipse 2.1 on Win2K, without any additional setup steps
other than
- install JDK,
- install Eclipse,
- configure Eclipse to use the JDK from the JDK directory,
- install Tomcat in default place,
- extract the patch at the specified place,
- setup Sysdeo plugin,
- configure directories for Tomcat plugin, including the Path variables as
well.

Regards,

Robert Varga

"Eduardo Suastegui" <esuastegui701@esmartweb.com> wrote in message
news:bag5j9$mk5$1@rogue.oti.com...
> I am using the Sysdeo Tomcat plug-in (v2.1) for Eclipse (v2.1), and I have
> the following problems:
>
> 1) Tomcat 4.0.6:
> a) Works okay if I use JDK 1.3.1
> b) Doesn't work with JDK 1.4.1: After using JDK 1.3.1, if I remove all
> compiled JSPs from the work/org/apache/jsp folder prior to starting
Tomcat,
> I get the following exception:
>
> <<<
> org.apache.jasper.JasperException: Unable to compile class for JSPerror:
> Invalid class file format in
> D:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor
> version '48.0' is too recent for this tool to understand.
>
> D:\DevJ\vp_web_Eclipse\web\work\org\apache\jsp\login$jsp.jav a:0: Class
> java.lang.Object not found in class javax.servlet.GenericServlet.
> package org.apache.jsp;
> ^
> 2 errors
> >>>
>
> NOTE: No Sysdeo patch is available for Tomcat 4.0.6, so I installed none.
>
> 2) Tomcat 4.1.24: I installed the Tomcat 4.1.24 Sysdeo patch to
> <TOMCAT_HOME>/common/classes. Again I remove all previously compiled JSPs
> from the work directory, and now...
> a) JDK 1.3.1: Tomcat starts without errors, but as far as I can tell,
my
> application is not deployed, and I cannot access my main page.
> b) JDK 1.4.1: Ditto.
>
> I have re-checked my setup countless times, and everything matches the
> "working" case (Tomcat 4.0.6) except I am now pointing to the Tomcat
4.1.24
> directory under Window-Preferences-Tomcat and have selected the 4.1.x
> checkbox.
>
> From what I have seen on Google, others have gotten this to work. Perhaps
my
> situation is different because my Web application uses struts? Any help
will
> greatly appreciated.
>
> --
> Eduardo Suastegui
> "Test everything; Hold on to the good."
> (Remove 701 when replying via e-mail)
>
>
Previous Topic:Attempting to install a breakpoint
Next Topic:PDE JUnit Plugin - is this the place to ask on that matter?
Goto Forum:
  


Current Time: Sat Jul 27 16:20:15 GMT 2024

Powered by FUDForum. Page generated in 0.02675 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top