DWR 3.0M1-RC2 and Java 1.4

View: New views
3 Messages — Rating Filter:   Alert me  

DWR 3.0M1-RC2 and Java 1.4

by dlowe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to use the latest release of DWR 3.0, with Java 1.4 running on WebSphere 6, but I am getting the following exception on startup:

[4/25/08 21:46:55:500 EDT] 00000078 StartupUtil   I org.directwebremoting.impl.StartupUtil logStartup DWR Version 3.0.M1.RC2 starting.
[4/25/08 21:46:55:516 EDT] 00000078 StartupUtil   I org.directwebremoting.impl.StartupUtil logStartup - Servlet Engine:IBM WebSphere Application Server/6.0
[4/25/08 21:46:55:531 EDT] 00000078 StartupUtil   I org.directwebremoting.impl.StartupUtil logStartup - Java Version:1.4.2
[4/25/08 21:46:55:562 EDT] 00000078 StartupUtil   I org.directwebremoting.impl.StartupUtil logStartup - Java Vendor:IBM Corporation

[4/25/08 21:46:56:609 EDT] 00000078 ServletWrappe E   SRVE0100E: Did not realize  init() exception thrown by servlet dwr-servlet:
java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/ScheduledThreadPoolExecutor
        at org.directwebremoting.util.SharedObjects.<clinit>(SharedObjects.java:39)

I am using the dwr-jdk14.jar.

It seems that 1.4 compiled code still has a dependency on Java 1.5, is there any way around this?

Any help would be greatly appreciated.

Thanks
<david />

Re: DWR 3.0M1-RC2 and Java 1.4

by dlowe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have made some progress; I did not realize that I needed Retroweaver run time. As part of that package it also contained the backport-util-concurret.jar which contains the ScheduledThreadPoolExecutor class.

With that said, now I get a new exception:

[4/26/08 18:33:46:516 EDT] 00000015 ServletWrappe E   SRVE0100E: Did not realize  init() exception thrown by servlet dwr
-servlet: java.lang.NoClassDefFoundError: java/io/Closeable
        at org.directwebremoting.util.LocalUtil.close(LocalUtil.java:865)


I have looked through the DWR source code, that was post processed by Retroweaver, and the reference to the java.io.Closeable is still there (I would have assumed that it would have re-mapped it). The retroweaver-rt-2.0.5.jar does not have an overriding, Closeable class, so I assume that it does not support it.

Does this mean I am out of luck? Can the latest DWR code actually run under Java 1.4?

Thanks again,
<david />

Re: DWR 3.0M1-RC2 and Java 1.4

by Joe Walker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


(Appologies for the delay: JavaOne happened)

Hmm, that's nasty.
It is my intention to properly support 1.4, but I've not got a multi-server/jvm testing environment fully sorted out yet. This looks like a bug with retroweaver,
My best suggestion is to have a quick play with Retrotranslator instead: http://retrotranslator.sourceforge.net/ I think it should be fairly easy to take a the DWR jar for 1.5 and run it through Retrotranslator instead.
If you do, please tell us how you get on.
Thanks,

Joe.


On Sat, Apr 26, 2008 at 11:42 PM, dlowe <dlowe@...> wrote:

I have made some progress; I did not realize that I needed Retroweaver run
time. As part of that package it also contained the
backport-util-concurret.jar which contains the ScheduledThreadPoolExecutor
class.

With that said, now I get a new exception:

[4/26/08 18:33:46:516 EDT] 00000015 ServletWrappe E   SRVE0100E: Did not
realize  init() exception thrown by servlet dwr
-servlet: java.lang.NoClassDefFoundError: java/io/Closeable
       at org.directwebremoting.util.LocalUtil.close(LocalUtil.java:865)


I have looked through the DWR source code, that was post processed by
Retroweaver, and the reference to the java.io.Closeable is still there (I
would have assumed that it would have re-mapped it). The
retroweaver-rt-2.0.5.jar does not have an overriding, Closeable class, so I
assume that it does not support it.

Does this mean I am out of luck? Can the latest DWR code actually run under
Java 1.4?

Thanks again,
<david />
--
View this message in context: http://www.nabble.com/DWR-3.0M1-RC2-and-Java-1.4-tp16908541p16918105.html
Sent from the DWR - Issues mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...