Sounds like the consensus is that Tomcat 5.0.x will work with jdk 1.5. FWIW I found the following two problems trying to run code built for jre 1.4 in a 1.5 jvm.

1. A couple DOM classes (don't remember which ones, but you'll know it if you run in to them) had some methods added in jdk 1.5. If you try to load an implementation class for one of these that was developed in jdk 1.4, you'll get missing method implementation errors. To resolve, you can add empty method specifications for the classes that require them, or upgrade to an XML parser that was written for jdk 1.5.

2. JDK 1.5 uses the symbol "enum" as a reserved keyword. You'll have to change any and all occurrences of this symbol in your code (where it is used as a variable name) to something else, e.g. "enumer."

There may be other backward compatibility issues, but these are the two that I've run into.

-Mark

Tim Diggins wrote:

And, oops, I'm sorry for spreading the original FUD - Following this thread, I've just tried again to get everything working on tc5.0/jdk1.5 and hey-presto, everything ok - guess I must've had TC running on jdk1.4 after all...

But planning to migrate to 5.5 anyway.

thanks everyone

T


Steve Kirk wrote:

Yes sorry, david is correct, I got it backwards.


-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday 26 May 2005 12:59
To: Tomcat Users List
Subject: Re: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5


Small correction -- 5.5 needs the compat package to work on jdk l.4, not 5.0 needs it to work on jdk 1.5. I've used TC 5.0 & jdk 1.5 together no problem.

--David

Steve Kirk wrote:


You can run 5.0.28 on jdk1.5 but you need to add a


compatibility package

which is available from the tc downloads page. Basically it


adds 3 jars to

fix issues with xml compatibility with the 1.4 vm.

I haven't done it myself (I upgraded both at once) but


google some of these

words and you can read all about it.

PS if you do go to 5.5 and have DBCP, be sure to change your


context.xml to

the new format required by TC5.5. I spent nearly 3 days


working that out.




-----Original Message-----
From: Raverkar, Sachin (Sachin) [mailto:[EMAIL PROTECTED] Sent: Thursday 26 May 2005 08:58
To: tomcat-user@jakarta.apache.org
Subject: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5


Hi all,
We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
We need to move onto JDK 1.5. We would build our war file using JDK 1.5. Can we continue to use Tomcat-5.0.28 with JDK 1.5? Do you see any problem? Are there any known issues?
Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
are we required to move to Tomcat 5.5 in order to move to JDK 1.5?

- Sachin





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to