« Return to Thread: DWR 3.0 RC1 and WAS

RE: DWR 3.0 RC1 and WAS

by zcurtis :: Rate this Message:

Reply to Author | View in Thread

I have come back to tryng to use DWR 3.0.0.0.116. I added the init-param you mentioned. I was not able to get it to work with DWR Java1.4 jar using retroweaver. However, it did work when using a jar I built thru retrotranslator. This appears to be working now with my environment of WAS 6.0/Java 1.4. Thx!


add in the DWR servlet  (web.xml)

<init-param>
  <param-name>scheduledThreadPoolExecutor</param-name>
  <param-value>org.directwebremoting.impl.AutoShutdownScheduledThreadPoolExecutor</param-value>
</init-param>

<init-param>
  <param-name>compressor</param-name>
  <param-value></param-value>
</init-param>


DefaultContainer.initializeBean:

java.util.concurrent.ScheduledThreadPoolExecutor

after retroweaver:

edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor


And unset default compressor.

       
Sorry for my google's translation

Best regards
Ronaldo Marques




I tried using http://retrotranslator.sourceforge.net/ against the base DWR 3.0 RC1 jar. I still end up with errors trying to run my web app when invoking DWR. Is anyone using this release with Java 1.4?

[4/28/09 13:47:16:165 MDT] 0000005d ServletWrappe E   Uncaught init() exception thrown by servlet dwr-invoker
[4/28/09 13:47:16:196 MDT] 0000005d WebApp        E   SRVE0026E: [Servlet Error]-[dwr-invoker]: org.directwebremoting.extend.ContainerConfigurationException: java.lang.NullPointerException
        at org.directwebremoting.impl.StartupUtil.createAndSetupDefaultContainer(StartupUtil.java:193)
        at org.directwebremoting.servlet.DwrServlet.createContainer(DwrServlet.java:97)
        at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:64)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:321)
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:621)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3226)
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
        at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:120)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:434)
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:373)
        at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
        at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1475)
Caused by: java.lang.NullPointerException
        at org.directwebremoting.impl.DefaultScriptSessionManager.afterContainerSetup(DefaultScriptSessionManager.java:70)
        at org.directwebremoting.impl.AbstractContainer.callInitializingBeans(AbstractContainer.java:55)
        at org.directwebremoting.impl.AbstractContainer.callInitializingBeans(AbstractContainer.java:39)
        at org.directwebremoting.impl.DefaultContainer.setupFinished(DefaultContainer.java:180)
        at org.directwebremoting.impl.StartupUtil.setupDefaultContainer(StartupUtil.java:264)
        at org.directwebremoting.impl.StartupUtil.createAndSetupDefaultContainer(StartupUtil.java:188)
        ... 17 more

Thanks.
Zach



 « Return to Thread: DWR 3.0 RC1 and WAS