DWR 3.0 Build 646 and Springs 4.2.3

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

DWR 3.0 Build 646 and Springs 4.2.3

zooppoop
Hello, I ran into a little different problem with running DWR 3 and
springs.   I will just paste the stacktrace here.  Let me know what
other information you would like and I can get it to you.

3964 [main] FATAL org.directwebremoting.servlet.DwrServlet  - init
failed
java.lang.NullPointerException
        at
org.directwebremoting.util.LocalUtil.getProperty(LocalUtil.java:1686)
        at
org.directwebremoting.impl.StartupUtil.logStartup(StartupUtil.java:155)
        at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:62)
        at
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:626)
        at
org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:405)
        at
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:875)
        at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:346)
        at
org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1379)
        at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1341)
        at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
        at
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
        at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:517)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
        at org.eclipse.jetty.server.Server.start(Server.java:405)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
        at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
        at org.eclipse.jetty.server.Server.doStart(Server.java:372)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)


Thanks

Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 Build 646 and Springs 4.2.3

david@butterdev.com
That's not very helpful.  The DWR code at those lines suggests you don't
have a ServletContext.  Perform some basic troubleshooting
(http://directwebremoting.org/dwr/support/common_problems.html)and write
back when you can provide us with information that will help us help you.

On 12/03/2015 04:14 PM, junkmail wrote:

> Hello, I ran into a little different problem with running DWR 3 and
> springs.   I will just paste the stacktrace here.  Let me know what
> other information you would like and I can get it to you.
>
> 3964 [main] FATAL org.directwebremoting.servlet.DwrServlet  - init failed
> java.lang.NullPointerException
>     at
> org.directwebremoting.util.LocalUtil.getProperty(LocalUtil.java:1686)
>     at
> org.directwebremoting.impl.StartupUtil.logStartup(StartupUtil.java:155)
>     at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:62)
>     at
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:626)
>     at
> org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:405)
>     at
> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:875)
>     at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:346)
>     at
> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1379)
>     at
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1341)
>     at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
>     at
> org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
>     at
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:517)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>     at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
>     at org.eclipse.jetty.server.Server.start(Server.java:405)
>     at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
>     at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
>     at org.eclipse.jetty.server.Server.doStart(Server.java:372)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>
>
> Thanks
>
>

Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 Build 646 and Springs 4.2.3

zooppoop
Yes it does appear that getServletContext() from HttpServlet is
returning null so something else is wrong.

Thanks

Reply | Threaded
Open this post in threaded view
|

Re: Re: DWR 3.0 Build 646 and Springs 4.2.3

zooppoop
For anyone else who runs into this.  
http://stackoverflow.com/questions/34172072/jetty-9-3-6-and-servlet-webappcontext-getservletcontext-returns-null



09.12.2015 18:53 に junkmail さんは書きました:
> Yes it does appear that getServletContext() from HttpServlet is
> returning null so something else is wrong.
>
> Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Re: DWR 3.0 Build 646 and Springs 4.2.3

david@butterdev.com
This link indicates that the issue is with v 9.3 of Jetty.  Is this
resolved when you run Jetty 9.2?

On 2015-12-10 13:18, junkmail wrote:

> For anyone else who runs into this.
> http://stackoverflow.com/questions/34172072/jetty-9-3-6-and-servlet-webappcontext-getservletcontext-returns-null
>
>
>
> 09.12.2015 18:53 に junkmail さんは書きました:
>> Yes it does appear that getServletContext() from HttpServlet is
>> returning null so something else is wrong.
>>
>> Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Re: DWR 3.0 Build 646 and Springs 4.2.3

zooppoop
10.12.2015 14:49 に [hidden email] さんは書きました:

> This link indicates that the issue is with v 9.3 of Jetty.  Is this
> resolved when you run Jetty 9.2?
>
> On 2015-12-10 13:18, junkmail wrote:
>> For anyone else who runs into this.
>> http://stackoverflow.com/questions/34172072/jetty-9-3-6-and-servlet-webappcontext-getservletcontext-returns-null
>>
>>
>>
>> 09.12.2015 18:53 に junkmail さんは書きました:
>>> Yes it does appear that getServletContext() from HttpServlet is
>>> returning null so something else is wrong.
>>>
>>> Thanks

Yes that is correct.  That is my Post on stack overflow. ;)

Thanks again for the help.