DWR 3.0 RElease and greater Init failure / Long delay on start.

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

DWR 3.0 RElease and greater Init failure / Long delay on start.

zooppoop
I for some reason have a problem one start of my server with DWR.  for
versions less than 3.0 Release build it will work for a while normally
then when restarting the server and non-consistent times it will print
that it is starting DWR hang for 1 minute print that dWR was not
initialized properly then will start working about 3 minutes later.  I
will post the logs about this so you can see it.  The odd thing is that
it is in consistent.  Sometimes it will load and work normally.

2015-12-10 09:35:26,902 [main] INFO  
org.springframework.web.context.ContextLoader  - Root
WebApplicationContext: initialization started
2015-12-10 09:35:27,075 [main] INFO  
org.springframework.web.context.support.XmlWebApplicationContext  -
Refreshing Root WebApplicationContext: startup date [Thu Dec 10 09:35:27
GMT 2015]; root of context hierarchy
2015-12-10 09:35:27,138 [main] INFO  
org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading
XML bean definitions from class path resource [properties/spring.xml]
2015-12-10 09:35:28,082 [main] INFO  
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer  
- Loading properties file from class path resource
[properties/dbconnection.properties]
2015-12-10 09:35:31,150 [main] INFO  
org.springframework.web.context.ContextLoader  - Root
WebApplicationContext: initialization completed in 4248 ms
2015-12-10 09:35:31,157 [main] INFO  org.directwebremoting.log.startup  
- Starting: DwrSpringServlet v3.0.0-FINAL-646 on jetty/9.2.14.v20151106
/ JDK 1.8.0_51 from Oracle Corporation at
2015-12-10 09:36:31,071 [pool-10-thread-1] WARN  
org.directwebremoting.extend.Factory  - DWR has not been initialized
properly
2015-12-10 09:36:31,071 [pool-11-thread-1] WARN  
org.directwebremoting.extend.Factory  - DWR has not been initialized
properly
2015-12-10 09:36:31,076 [pool-11-thread-1] WARN  
org.directwebremoting.extend.Factory  - DWR has not been initialized
properly
2015-12-10 09:36:31,076 [pool-10-thread-1] WARN  
org.directwebremoting.extend.Factory  - DWR has not been initialized
properly
2015-12-10 09:39:02,654 [main] INFO  org.directwebremoting.log.startup  
- Starting: Using container abstraction
org.directwebremoting.server.servlet3.Servlet30ContainerAbstraction
2015-12-10 09:39:02,676 [main] INFO  
org.directwebremoting.servlet.UrlProcessor  - Probably not an issue: the
url:/gi.js (org.directwebremoting.gi.GiHandler) Handler is not
available. This is only an problem if you wanted to use it.
2015-12-10 09:39:02,783 [main] INFO  
org.directwebremoting.impl.DefaultConverterManager  - Probably not an
issue: jsx3.net.URIResolver is not available so the jsx3uri converter
will not load. This is only an problem if you wanted to use it.
2015-12-10 09:39:02,784 [main] INFO  
org.directwebremoting.impl.DefaultConverterManager  - Probably not an
issue: jsx3.xml.CdfDocument is not available so the jsx3doc converter
will not load. This is only an problem if you wanted to use it.


I am not sure what all information you would need for ihis but will
include my JavaConfig for the DWR servlet.   Please let me know what
other information I can provide.  I would stick with the older version,
but it does not work with Springs 4.2.3   Link:
http://dwr.2114559.n2.nabble.com/DWR-3-0-and-spring-4-2-td7581111.html


Thanks again, sorry for any lack of info.



Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 RElease and greater Init failure / Long delay on start.

david@butterdev.com
Can you send us any related Spring application contexts and your
web.xml?

On 2015-12-10 03:05, junkmail wrote:

> I for some reason have a problem one start of my server with DWR.  for
> versions less than 3.0 Release build it will work for a while normally
> then when restarting the server and non-consistent times it will print
> that it is starting DWR hang for 1 minute print that dWR was not
> initialized properly then will start working about 3 minutes later.  I
> will post the logs about this so you can see it.  The odd thing is
> that it is in consistent.  Sometimes it will load and work normally.
>
> 2015-12-10 09:35:26,902 [main] INFO
> org.springframework.web.context.ContextLoader  - Root
> WebApplicationContext: initialization started
> 2015-12-10 09:35:27,075 [main] INFO
> org.springframework.web.context.support.XmlWebApplicationContext  -
> Refreshing Root WebApplicationContext: startup date [Thu Dec 10
> 09:35:27 GMT 2015]; root of context hierarchy
> 2015-12-10 09:35:27,138 [main] INFO
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader  -
> Loading XML bean definitions from class path resource
> [properties/spring.xml]
> 2015-12-10 09:35:28,082 [main] INFO
> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
>  - Loading properties file from class path resource
> [properties/dbconnection.properties]
> 2015-12-10 09:35:31,150 [main] INFO
> org.springframework.web.context.ContextLoader  - Root
> WebApplicationContext: initialization completed in 4248 ms
> 2015-12-10 09:35:31,157 [main] INFO  org.directwebremoting.log.startup
>  - Starting: DwrSpringServlet v3.0.0-FINAL-646 on
> jetty/9.2.14.v20151106 / JDK 1.8.0_51 from Oracle Corporation at
> 2015-12-10 09:36:31,071 [pool-10-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:36:31,071 [pool-11-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:36:31,076 [pool-11-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:36:31,076 [pool-10-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:39:02,654 [main] INFO  org.directwebremoting.log.startup
>  - Starting: Using container abstraction
> org.directwebremoting.server.servlet3.Servlet30ContainerAbstraction
> 2015-12-10 09:39:02,676 [main] INFO
> org.directwebremoting.servlet.UrlProcessor  - Probably not an issue:
> the url:/gi.js (org.directwebremoting.gi.GiHandler) Handler is not
> available. This is only an problem if you wanted to use it.
> 2015-12-10 09:39:02,783 [main] INFO
> org.directwebremoting.impl.DefaultConverterManager  - Probably not an
> issue: jsx3.net.URIResolver is not available so the jsx3uri converter
> will not load. This is only an problem if you wanted to use it.
> 2015-12-10 09:39:02,784 [main] INFO
> org.directwebremoting.impl.DefaultConverterManager  - Probably not an
> issue: jsx3.xml.CdfDocument is not available so the jsx3doc converter
> will not load. This is only an problem if you wanted to use it.
>
>
> I am not sure what all information you would need for ihis but will
> include my JavaConfig for the DWR servlet.   Please let me know what
> other information I can provide.  I would stick with the older
> version, but it does not work with Springs 4.2.3   Link:
> http://dwr.2114559.n2.nabble.com/DWR-3-0-and-spring-4-2-td7581111.html
>
>
> Thanks again, sorry for any lack of info.
Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 RElease and greater Init failure / Long delay on start.

david@butterdev.com
In reply to this post by zooppoop
Are you using Spring MVC?  If so, see the instructions here (I wouldn't
use the DwrSpringServlet):
http://directwebremoting.org/dwr/documentation/server/integration/spring.html

It appears to me that maybe you are trying to use both methods?

On 2015-12-10 03:05, junkmail wrote:

> I for some reason have a problem one start of my server with DWR.  for
> versions less than 3.0 Release build it will work for a while normally
> then when restarting the server and non-consistent times it will print
> that it is starting DWR hang for 1 minute print that dWR was not
> initialized properly then will start working about 3 minutes later.  I
> will post the logs about this so you can see it.  The odd thing is
> that it is in consistent.  Sometimes it will load and work normally.
>
> 2015-12-10 09:35:26,902 [main] INFO
> org.springframework.web.context.ContextLoader  - Root
> WebApplicationContext: initialization started
> 2015-12-10 09:35:27,075 [main] INFO
> org.springframework.web.context.support.XmlWebApplicationContext  -
> Refreshing Root WebApplicationContext: startup date [Thu Dec 10
> 09:35:27 GMT 2015]; root of context hierarchy
> 2015-12-10 09:35:27,138 [main] INFO
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader  -
> Loading XML bean definitions from class path resource
> [properties/spring.xml]
> 2015-12-10 09:35:28,082 [main] INFO
> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
>  - Loading properties file from class path resource
> [properties/dbconnection.properties]
> 2015-12-10 09:35:31,150 [main] INFO
> org.springframework.web.context.ContextLoader  - Root
> WebApplicationContext: initialization completed in 4248 ms
> 2015-12-10 09:35:31,157 [main] INFO  org.directwebremoting.log.startup
>  - Starting: DwrSpringServlet v3.0.0-FINAL-646 on
> jetty/9.2.14.v20151106 / JDK 1.8.0_51 from Oracle Corporation at
> 2015-12-10 09:36:31,071 [pool-10-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:36:31,071 [pool-11-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:36:31,076 [pool-11-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:36:31,076 [pool-10-thread-1] WARN
> org.directwebremoting.extend.Factory  - DWR has not been initialized
> properly
> 2015-12-10 09:39:02,654 [main] INFO  org.directwebremoting.log.startup
>  - Starting: Using container abstraction
> org.directwebremoting.server.servlet3.Servlet30ContainerAbstraction
> 2015-12-10 09:39:02,676 [main] INFO
> org.directwebremoting.servlet.UrlProcessor  - Probably not an issue:
> the url:/gi.js (org.directwebremoting.gi.GiHandler) Handler is not
> available. This is only an problem if you wanted to use it.
> 2015-12-10 09:39:02,783 [main] INFO
> org.directwebremoting.impl.DefaultConverterManager  - Probably not an
> issue: jsx3.net.URIResolver is not available so the jsx3uri converter
> will not load. This is only an problem if you wanted to use it.
> 2015-12-10 09:39:02,784 [main] INFO
> org.directwebremoting.impl.DefaultConverterManager  - Probably not an
> issue: jsx3.xml.CdfDocument is not available so the jsx3doc converter
> will not load. This is only an problem if you wanted to use it.
>
>
> I am not sure what all information you would need for ihis but will
> include my JavaConfig for the DWR servlet.   Please let me know what
> other information I can provide.  I would stick with the older
> version, but it does not work with Springs 4.2.3   Link:
> http://dwr.2114559.n2.nabble.com/DWR-3-0-and-spring-4-2-td7581111.html
>
>
> Thanks again, sorry for any lack of info.
Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 RElease and greater Init failure / Long delay on start.

zooppoop
Sorry I intended to include this on the original post.  I am not using
Spring MVC.  I am using JavaConfig for the dwr servlet.


                        WebAppContext root = new WebAppContext();
                        root.setDescriptor("./WEB-INF/web.xml");
                        root.setDisplayName("Root Context");
                        root.setSessionHandler(sesh); //Persist Session across restarts of
context
                        root.setInitParameter("contextConfigLocation","classpath:properties/spring.xml");
                        root.setHandler(csh);
                        root.addEventListener(new
org.springframework.web.context.ContextLoaderListener());

                        DwrSpringServlet dss = new DwrSpringServlet();
                        ServletHolder sh = new ServletHolder(dss);
                        sh.setDisplayName("DWR Servlet");
                        sh.setName("DWR");
                        sh.setInitParameter("debug", "true");
                        sh.setInitParameter("allowScriptTagRemoting","true");
                        sh.setInitParameter("activeReverseAjaxEnabled", "true");
                        // cross site scripting
                        sh.setInitParameter("crossDomainSessionSecurity", "false");
                        sh.setInitParameter("allowGetForSafariButMakeForgeryEasier", "true");
                        root.addServlet(sh, "/dwr/*");

I also for testing purposes set it up in the web.xml but it resulted in
the same problem.

        <!--  <servlet>
    <servlet-name>dwr</servlet-name>
   
                <servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>true</param-value>
                        <param-name>allowScriptTagRemoting</param-name>
                        <param-value>true</param-value>
                        <param-name>activeReverseAjaxEnabled</param-name>
                        <param-value>true</param-value>
                        <param-name>crossDomainSessionSecurity</param-name>
                        <param-value>false</param-value>
                        <param-name>allowGetForSafariButMakeForgeryEasier</param-name>
                        <param-value>true</param-value>
    </init-param>
        </servlet>
        <servlet-mapping>
    <servlet-name>dwr</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
        </servlet-mapping> -->

I have also created a dummy Server with just creating the dwr and one
other servlet to re-create the issue if you are interested.

10.12.2015 07:31 に [hidden email] さんは書きました:

> Are you using Spring MVC?  If so, see the instructions here (I
> wouldn't use the DwrSpringServlet):
> http://directwebremoting.org/dwr/documentation/server/integration/spring.html
>
> It appears to me that maybe you are trying to use both methods?
>
> On 2015-12-10 03:05, junkmail wrote:
>> I for some reason have a problem one start of my server with DWR.  for
>> versions less than 3.0 Release build it will work for a while normally
>> then when restarting the server and non-consistent times it will print
>> that it is starting DWR hang for 1 minute print that dWR was not
>> initialized properly then will start working about 3 minutes later.  I
>> will post the logs about this so you can see it.  The odd thing is
>> that it is in consistent.  Sometimes it will load and work normally.
>>
>> 2015-12-10 09:35:26,902 [main] INFO
>> org.springframework.web.context.ContextLoader  - Root
>> WebApplicationContext: initialization started
>> 2015-12-10 09:35:27,075 [main] INFO
>> org.springframework.web.context.support.XmlWebApplicationContext  -
>> Refreshing Root WebApplicationContext: startup date [Thu Dec 10
>> 09:35:27 GMT 2015]; root of context hierarchy
>> 2015-12-10 09:35:27,138 [main] INFO
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader  -
>> Loading XML bean definitions from class path resource
>> [properties/spring.xml]
>> 2015-12-10 09:35:28,082 [main] INFO
>> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
>>  - Loading properties file from class path resource
>> [properties/dbconnection.properties]
>> 2015-12-10 09:35:31,150 [main] INFO
>> org.springframework.web.context.ContextLoader  - Root
>> WebApplicationContext: initialization completed in 4248 ms
>> 2015-12-10 09:35:31,157 [main] INFO  org.directwebremoting.log.startup
>>  - Starting: DwrSpringServlet v3.0.0-FINAL-646 on
>> jetty/9.2.14.v20151106 / JDK 1.8.0_51 from Oracle Corporation at
>> 2015-12-10 09:36:31,071 [pool-10-thread-1] WARN
>> org.directwebremoting.extend.Factory  - DWR has not been initialized
>> properly
>> 2015-12-10 09:36:31,071 [pool-11-thread-1] WARN
>> org.directwebremoting.extend.Factory  - DWR has not been initialized
>> properly
>> 2015-12-10 09:36:31,076 [pool-11-thread-1] WARN
>> org.directwebremoting.extend.Factory  - DWR has not been initialized
>> properly
>> 2015-12-10 09:36:31,076 [pool-10-thread-1] WARN
>> org.directwebremoting.extend.Factory  - DWR has not been initialized
>> properly
>> 2015-12-10 09:39:02,654 [main] INFO  org.directwebremoting.log.startup
>>  - Starting: Using container abstraction
>> org.directwebremoting.server.servlet3.Servlet30ContainerAbstraction
>> 2015-12-10 09:39:02,676 [main] INFO
>> org.directwebremoting.servlet.UrlProcessor  - Probably not an issue:
>> the url:/gi.js (org.directwebremoting.gi.GiHandler) Handler is not
>> available. This is only an problem if you wanted to use it.
>> 2015-12-10 09:39:02,783 [main] INFO
>> org.directwebremoting.impl.DefaultConverterManager  - Probably not an
>> issue: jsx3.net.URIResolver is not available so the jsx3uri converter
>> will not load. This is only an problem if you wanted to use it.
>> 2015-12-10 09:39:02,784 [main] INFO
>> org.directwebremoting.impl.DefaultConverterManager  - Probably not an
>> issue: jsx3.xml.CdfDocument is not available so the jsx3doc converter
>> will not load. This is only an problem if you wanted to use it.
>>
>>
>> I am not sure what all information you would need for ihis but will
>> include my JavaConfig for the DWR servlet.   Please let me know what
>> other information I can provide.  I would stick with the older
>> version, but it does not work with Springs 4.2.3   Link:
>> http://dwr.2114559.n2.nabble.com/DWR-3-0-and-spring-4-2-td7581111.html
>>
>>
>> Thanks again, sorry for any lack of info.
Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 RElease and greater Init failure / Long delay on start.

Mike Wilson
Administrator
When reproducing with a standard web.xml servlet def it would be
very helpful if you would set breakpoints at the log.warn()
statements in org.directwebremoting.extend.Factory and then
record the current call stack.

Best regards
Mike Wilson

junkmail wrote:

>
> Sorry I intended to include this on the original post.  I am
> not using
> Spring MVC.  I am using JavaConfig for the dwr servlet.
>
>
> WebAppContext root = new WebAppContext();
> root.setDescriptor("./WEB-INF/web.xml");
> root.setDisplayName("Root Context");
> root.setSessionHandler(sesh); //Persist
> Session across restarts of
> context
>
> root.setInitParameter("contextConfigLocation","classpath:prope
> rties/spring.xml");
> root.setHandler(csh);
> root.addEventListener(new
> org.springframework.web.context.ContextLoaderListener());
>
> DwrSpringServlet dss = new DwrSpringServlet();
> ServletHolder sh = new ServletHolder(dss);
> sh.setDisplayName("DWR Servlet");
> sh.setName("DWR");
> sh.setInitParameter("debug", "true");
>
> sh.setInitParameter("allowScriptTagRemoting","true");
>
> sh.setInitParameter("activeReverseAjaxEnabled", "true");
> // cross site scripting
>
> sh.setInitParameter("crossDomainSessionSecurity", "false");
>
> sh.setInitParameter("allowGetForSafariButMakeForgeryEasier", "true");
> root.addServlet(sh, "/dwr/*");
>
> I also for testing purposes set it up in the web.xml but it
> resulted in
> the same problem.
>
> <!--  <servlet>
>     <servlet-name>dwr</servlet-name>
>    
>
> <servlet-class>org.directwebremoting.spring.DwrSpringServlet</
servlet-class>

>     <init-param>
>       <param-name>debug</param-name>
>       <param-value>true</param-value>
> <param-name>allowScriptTagRemoting</param-name>
> <param-value>true</param-value>
>
> <param-name>activeReverseAjaxEnabled</param-name>
> <param-value>true</param-value>
>
> <param-name>crossDomainSessionSecurity</param-name>
> <param-value>false</param-value>
>
> <param-name>allowGetForSafariButMakeForgeryEasier</param-name>
> <param-value>true</param-value>
>     </init-param>
> </servlet>
> <servlet-mapping>
>     <servlet-name>dwr</servlet-name>
>     <url-pattern>/dwr/*</url-pattern>
> </servlet-mapping> -->
>
> I have also created a dummy Server with just creating the dwr and one
> other servlet to re-create the issue if you are interested.
>
> 10.12.2015 07:31 に [hidden email] さんは書きました:
> > Are you using Spring MVC?  If so, see the instructions here (I
> > wouldn't use the DwrSpringServlet):
> >
> http://directwebremoting.org/dwr/documentation/server/integrat
> ion/spring.html
> >
> > It appears to me that maybe you are trying to use both methods?
> >
> > On 2015-12-10 03:05, junkmail wrote:
> >> I for some reason have a problem one start of my server
> with DWR.  for
> >> versions less than 3.0 Release build it will work for a
> while normally
> >> then when restarting the server and non-consistent times
> it will print
> >> that it is starting DWR hang for 1 minute print that dWR was not
> >> initialized properly then will start working about 3
> minutes later.  I
> >> will post the logs about this so you can see it.  The odd thing is
> >> that it is in consistent.  Sometimes it will load and work
> normally.
> >>
> >> 2015-12-10 09:35:26,902 [main] INFO
> >> org.springframework.web.context.ContextLoader  - Root
> >> WebApplicationContext: initialization started
> >> 2015-12-10 09:35:27,075 [main] INFO
> >> org.springframework.web.context.support.XmlWebApplicationContext  -
> >> Refreshing Root WebApplicationContext: startup date [Thu Dec 10
> >> 09:35:27 GMT 2015]; root of context hierarchy
> >> 2015-12-10 09:35:27,138 [main] INFO
> >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader  -
> >> Loading XML bean definitions from class path resource
> >> [properties/spring.xml]
> >> 2015-12-10 09:35:28,082 [main] INFO
> >>
> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
> >>  - Loading properties file from class path resource
> >> [properties/dbconnection.properties]
> >> 2015-12-10 09:35:31,150 [main] INFO
> >> org.springframework.web.context.ContextLoader  - Root
> >> WebApplicationContext: initialization completed in 4248 ms
> >> 2015-12-10 09:35:31,157 [main] INFO  
> org.directwebremoting.log.startup
> >>  - Starting: DwrSpringServlet v3.0.0-FINAL-646 on
> >> jetty/9.2.14.v20151106 / JDK 1.8.0_51 from Oracle Corporation at
> >> 2015-12-10 09:36:31,071 [pool-10-thread-1] WARN
> >> org.directwebremoting.extend.Factory  - DWR has not been
> initialized
> >> properly
> >> 2015-12-10 09:36:31,071 [pool-11-thread-1] WARN
> >> org.directwebremoting.extend.Factory  - DWR has not been
> initialized
> >> properly
> >> 2015-12-10 09:36:31,076 [pool-11-thread-1] WARN
> >> org.directwebremoting.extend.Factory  - DWR has not been
> initialized
> >> properly
> >> 2015-12-10 09:36:31,076 [pool-10-thread-1] WARN
> >> org.directwebremoting.extend.Factory  - DWR has not been
> initialized
> >> properly
> >> 2015-12-10 09:39:02,654 [main] INFO  
> org.directwebremoting.log.startup
> >>  - Starting: Using container abstraction
> >> org.directwebremoting.server.servlet3.Servlet30ContainerAbstraction
> >> 2015-12-10 09:39:02,676 [main] INFO
> >> org.directwebremoting.servlet.UrlProcessor  - Probably not
> an issue:
> >> the url:/gi.js (org.directwebremoting.gi.GiHandler) Handler is not
> >> available. This is only an problem if you wanted to use it.
> >> 2015-12-10 09:39:02,783 [main] INFO
> >> org.directwebremoting.impl.DefaultConverterManager  -
> Probably not an
> >> issue: jsx3.net.URIResolver is not available so the
> jsx3uri converter
> >> will not load. This is only an problem if you wanted to use it.
> >> 2015-12-10 09:39:02,784 [main] INFO
> >> org.directwebremoting.impl.DefaultConverterManager  -
> Probably not an
> >> issue: jsx3.xml.CdfDocument is not available so the
> jsx3doc converter
> >> will not load. This is only an problem if you wanted to use it.
> >>
> >>
> >> I am not sure what all information you would need for ihis but will
> >> include my JavaConfig for the DWR servlet.   Please let me
> know what
> >> other information I can provide.  I would stick with the older
> >> version, but it does not work with Springs 4.2.3   Link:
> >>
> http://dwr.2114559.n2.nabble.com/DWR-3-0-and-spring-4-2-td7581111.html
> >>
> >>
> >> Thanks again, sorry for any lack of info.

Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 RElease and greater Init failure / Long delay on start.

zooppoop
Sorry I am not sure how to do that.  The log messages are not something
that I wrote of course.  So not sure what you are asking me to actually
do.  I am not that familiar with Springs and the web.xml config to do
what you might be asking.

Thanks



10.12.2015 14:24 に Mike Wilson さんは書きました:

> When reproducing with a standard web.xml servlet def it would be
> very helpful if you would set breakpoints at the log.warn()
> statements in org.directwebremoting.extend.Factory and then
> record the current call stack.
>
> Best regards
> Mike Wilson
>
> junkmail wrote:
>>
>> Sorry I intended to include this on the original post.  I am
>> not using
>> Spring MVC.  I am using JavaConfig for the dwr servlet.
>>
>>
>> WebAppContext root = new WebAppContext();
>> root.setDescriptor("./WEB-INF/web.xml");
>> root.setDisplayName("Root Context");
>> root.setSessionHandler(sesh); //Persist
>> Session across restarts of
>> context
>>
>> root.setInitParameter("contextConfigLocation","classpath:prope
>> rties/spring.xml");
>> root.setHandler(csh);
>> root.addEventListener(new
>> org.springframework.web.context.ContextLoaderListener());
>>
>> DwrSpringServlet dss = new DwrSpringServlet();
>> ServletHolder sh = new ServletHolder(dss);
>> sh.setDisplayName("DWR Servlet");
>> sh.setName("DWR");
>> sh.setInitParameter("debug", "true");
>>
>> sh.setInitParameter("allowScriptTagRemoting","true");
>>
>> sh.setInitParameter("activeReverseAjaxEnabled", "true");
>> // cross site scripting
>>
>> sh.setInitParameter("crossDomainSessionSecurity", "false");
>>
>> sh.setInitParameter("allowGetForSafariButMakeForgeryEasier", "true");
>> root.addServlet(sh, "/dwr/*");
>>
>> I also for testing purposes set it up in the web.xml but it
>> resulted in
>> the same problem.
>>
>> <!--  <servlet>
>>     <servlet-name>dwr</servlet-name>
>>
>>
>> <servlet-class>org.directwebremoting.spring.DwrSpringServlet</
> servlet-class>
>>     <init-param>
>>       <param-name>debug</param-name>
>>       <param-value>true</param-value>
>> <param-name>allowScriptTagRemoting</param-name>
>> <param-value>true</param-value>
>>
>> <param-name>activeReverseAjaxEnabled</param-name>
>> <param-value>true</param-value>
>>
>> <param-name>crossDomainSessionSecurity</param-name>
>> <param-value>false</param-value>
>>
>> <param-name>allowGetForSafariButMakeForgeryEasier</param-name>
>> <param-value>true</param-value>
>>     </init-param>
>> </servlet>
>> <servlet-mapping>
>>     <servlet-name>dwr</servlet-name>
>>     <url-pattern>/dwr/*</url-pattern>
>> </servlet-mapping> -->
>>
>> I have also created a dummy Server with just creating the dwr and one
>> other servlet to re-create the issue if you are interested.
>>
>> 10.12.2015 07:31 に [hidden email] さんは書きました:
>> > Are you using Spring MVC?  If so, see the instructions here (I
>> > wouldn't use the DwrSpringServlet):
>> >
>> http://directwebremoting.org/dwr/documentation/server/integrat
>> ion/spring.html
>> >
>> > It appears to me that maybe you are trying to use both methods?
>> >
>> > On 2015-12-10 03:05, junkmail wrote:
>> >> I for some reason have a problem one start of my server
>> with DWR.  for
>> >> versions less than 3.0 Release build it will work for a
>> while normally
>> >> then when restarting the server and non-consistent times
>> it will print
>> >> that it is starting DWR hang for 1 minute print that dWR was not
>> >> initialized properly then will start working about 3
>> minutes later.  I
>> >> will post the logs about this so you can see it.  The odd thing is
>> >> that it is in consistent.  Sometimes it will load and work
>> normally.
>> >>
>> >> 2015-12-10 09:35:26,902 [main] INFO
>> >> org.springframework.web.context.ContextLoader  - Root
>> >> WebApplicationContext: initialization started
>> >> 2015-12-10 09:35:27,075 [main] INFO
>> >> org.springframework.web.context.support.XmlWebApplicationContext  -
>> >> Refreshing Root WebApplicationContext: startup date [Thu Dec 10
>> >> 09:35:27 GMT 2015]; root of context hierarchy
>> >> 2015-12-10 09:35:27,138 [main] INFO
>> >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader  -
>> >> Loading XML bean definitions from class path resource
>> >> [properties/spring.xml]
>> >> 2015-12-10 09:35:28,082 [main] INFO
>> >>
>> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
>> >>  - Loading properties file from class path resource
>> >> [properties/dbconnection.properties]
>> >> 2015-12-10 09:35:31,150 [main] INFO
>> >> org.springframework.web.context.ContextLoader  - Root
>> >> WebApplicationContext: initialization completed in 4248 ms
>> >> 2015-12-10 09:35:31,157 [main] INFO
>> org.directwebremoting.log.startup
>> >>  - Starting: DwrSpringServlet v3.0.0-FINAL-646 on
>> >> jetty/9.2.14.v20151106 / JDK 1.8.0_51 from Oracle Corporation at
>> >> 2015-12-10 09:36:31,071 [pool-10-thread-1] WARN
>> >> org.directwebremoting.extend.Factory  - DWR has not been
>> initialized
>> >> properly
>> >> 2015-12-10 09:36:31,071 [pool-11-thread-1] WARN
>> >> org.directwebremoting.extend.Factory  - DWR has not been
>> initialized
>> >> properly
>> >> 2015-12-10 09:36:31,076 [pool-11-thread-1] WARN
>> >> org.directwebremoting.extend.Factory  - DWR has not been
>> initialized
>> >> properly
>> >> 2015-12-10 09:36:31,076 [pool-10-thread-1] WARN
>> >> org.directwebremoting.extend.Factory  - DWR has not been
>> initialized
>> >> properly
>> >> 2015-12-10 09:39:02,654 [main] INFO
>> org.directwebremoting.log.startup
>> >>  - Starting: Using container abstraction
>> >> org.directwebremoting.server.servlet3.Servlet30ContainerAbstraction
>> >> 2015-12-10 09:39:02,676 [main] INFO
>> >> org.directwebremoting.servlet.UrlProcessor  - Probably not
>> an issue:
>> >> the url:/gi.js (org.directwebremoting.gi.GiHandler) Handler is not
>> >> available. This is only an problem if you wanted to use it.
>> >> 2015-12-10 09:39:02,783 [main] INFO
>> >> org.directwebremoting.impl.DefaultConverterManager  -
>> Probably not an
>> >> issue: jsx3.net.URIResolver is not available so the
>> jsx3uri converter
>> >> will not load. This is only an problem if you wanted to use it.
>> >> 2015-12-10 09:39:02,784 [main] INFO
>> >> org.directwebremoting.impl.DefaultConverterManager  -
>> Probably not an
>> >> issue: jsx3.xml.CdfDocument is not available so the
>> jsx3doc converter
>> >> will not load. This is only an problem if you wanted to use it.
>> >>
>> >>
>> >> I am not sure what all information you would need for ihis but will
>> >> include my JavaConfig for the DWR servlet.   Please let me
>> know what
>> >> other information I can provide.  I would stick with the older
>> >> version, but it does not work with Springs 4.2.3   Link:
>> >>
>> http://dwr.2114559.n2.nabble.com/DWR-3-0-and-spring-4-2-td7581111.html
>> >>
>> >>
>> >> Thanks again, sorry for any lack of info.
Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 RElease and greater Init failure / Long delay on start.

Mike Wilson
Administrator
Sorry, I got the impression that you had reproduced the problem in a smaller
and simpler (standard web.xml config-based) app.

You need to provide more info for us to be able to help you with this issue.
Either use your debugger to set breakpoints at the log statements in the DWR
org.directwebremoting.extend.Factory class or give us the smallest possible
cut-down version of your application. If you don't know how to set a
breakpoint in imported library code then please ask someone for help that
has more experience in this area.

Best regards
Mike Wilson

junkmail wrote:

> Sorry I am not sure how to do that.  The log messages are not
> something
> that I wrote of course.  So not sure what you are asking me
> to actually
> do.  I am not that familiar with Springs and the web.xml config to do
> what you might be asking.
>
> Thanks
>
>
>
> 10.12.2015 14:24 に Mike Wilson さんは書きました:
> > When reproducing with a standard web.xml servlet def it would be
> > very helpful if you would set breakpoints at the log.warn()
> > statements in org.directwebremoting.extend.Factory and then
> > record the current call stack.
> >
> > Best regards
> > Mike Wilson
> >
> > junkmail wrote:
> >>
> >> Sorry I intended to include this on the original post.  I am
> >> not using
> >> Spring MVC.  I am using JavaConfig for the dwr servlet.
> >>
> >>
> >> WebAppContext root = new WebAppContext();
> >> root.setDescriptor("./WEB-INF/web.xml");
> >> root.setDisplayName("Root Context");
> >> root.setSessionHandler(sesh); //Persist
> >> Session across restarts of
> >> context
> >>
> >> root.setInitParameter("contextConfigLocation","classpath:prope
> >> rties/spring.xml");
> >> root.setHandler(csh);
> >> root.addEventListener(new
> >> org.springframework.web.context.ContextLoaderListener());
> >>
> >> DwrSpringServlet dss = new DwrSpringServlet();
> >> ServletHolder sh = new ServletHolder(dss);
> >> sh.setDisplayName("DWR Servlet");
> >> sh.setName("DWR");
> >> sh.setInitParameter("debug", "true");
> >>
> >> sh.setInitParameter("allowScriptTagRemoting","true");
> >>
> >> sh.setInitParameter("activeReverseAjaxEnabled", "true");
> >> // cross site scripting
> >>
> >> sh.setInitParameter("crossDomainSessionSecurity", "false");
> >>
> >>
> sh.setInitParameter("allowGetForSafariButMakeForgeryEasier", "true");
> >> root.addServlet(sh, "/dwr/*");
> >>
> >> I also for testing purposes set it up in the web.xml but it
> >> resulted in
> >> the same problem.
> >>
> >> <!--  <servlet>
> >>     <servlet-name>dwr</servlet-name>
> >>
> >>
> >> <servlet-class>org.directwebremoting.spring.DwrSpringServlet</
> > servlet-class>
> >>     <init-param>
> >>       <param-name>debug</param-name>
> >>       <param-value>true</param-value>
> >> <param-name>allowScriptTagRemoting</param-name>
> >> <param-value>true</param-value>
> >>
> >> <param-name>activeReverseAjaxEnabled</param-name>
> >> <param-value>true</param-value>
> >>
> >> <param-name>crossDomainSessionSecurity</param-name>
> >> <param-value>false</param-value>
> >>
> >> <param-name>allowGetForSafariButMakeForgeryEasier</param-name>
> >> <param-value>true</param-value>
> >>     </init-param>
> >> </servlet>
> >> <servlet-mapping>
> >>     <servlet-name>dwr</servlet-name>
> >>     <url-pattern>/dwr/*</url-pattern>
> >> </servlet-mapping> -->
> >>
> >> I have also created a dummy Server with just creating the
> dwr and one
> >> other servlet to re-create the issue if you are interested.
> >>
> >> 10.12.2015 07:31 に [hidden email] さんは書きました:
> >> > Are you using Spring MVC?  If so, see the instructions here (I
> >> > wouldn't use the DwrSpringServlet):
> >> >
> >> http://directwebremoting.org/dwr/documentation/server/integrat
> >> ion/spring.html
> >> >
> >> > It appears to me that maybe you are trying to use both methods?
> >> >
> >> > On 2015-12-10 03:05, junkmail wrote:
> >> >> I for some reason have a problem one start of my server
> >> with DWR.  for
> >> >> versions less than 3.0 Release build it will work for a
> >> while normally
> >> >> then when restarting the server and non-consistent times
> >> it will print
> >> >> that it is starting DWR hang for 1 minute print that dWR was not
> >> >> initialized properly then will start working about 3
> >> minutes later.  I
> >> >> will post the logs about this so you can see it.  The
> odd thing is
> >> >> that it is in consistent.  Sometimes it will load and work
> >> normally.
> >> >>
> >> >> 2015-12-10 09:35:26,902 [main] INFO
> >> >> org.springframework.web.context.ContextLoader  - Root
> >> >> WebApplicationContext: initialization started
> >> >> 2015-12-10 09:35:27,075 [main] INFO
> >> >>
> org.springframework.web.context.support.XmlWebApplicationContext  -
> >> >> Refreshing Root WebApplicationContext: startup date [Thu Dec 10
> >> >> 09:35:27 GMT 2015]; root of context hierarchy
> >> >> 2015-12-10 09:35:27,138 [main] INFO
> >> >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader  -
> >> >> Loading XML bean definitions from class path resource
> >> >> [properties/spring.xml]
> >> >> 2015-12-10 09:35:28,082 [main] INFO
> >> >>
> >>
> org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
> >> >>  - Loading properties file from class path resource
> >> >> [properties/dbconnection.properties]
> >> >> 2015-12-10 09:35:31,150 [main] INFO
> >> >> org.springframework.web.context.ContextLoader  - Root
> >> >> WebApplicationContext: initialization completed in 4248 ms
> >> >> 2015-12-10 09:35:31,157 [main] INFO
> >> org.directwebremoting.log.startup
> >> >>  - Starting: DwrSpringServlet v3.0.0-FINAL-646 on
> >> >> jetty/9.2.14.v20151106 / JDK 1.8.0_51 from Oracle Corporation at
> >> >> 2015-12-10 09:36:31,071 [pool-10-thread-1] WARN
> >> >> org.directwebremoting.extend.Factory  - DWR has not been
> >> initialized
> >> >> properly
> >> >> 2015-12-10 09:36:31,071 [pool-11-thread-1] WARN
> >> >> org.directwebremoting.extend.Factory  - DWR has not been
> >> initialized
> >> >> properly
> >> >> 2015-12-10 09:36:31,076 [pool-11-thread-1] WARN
> >> >> org.directwebremoting.extend.Factory  - DWR has not been
> >> initialized
> >> >> properly
> >> >> 2015-12-10 09:36:31,076 [pool-10-thread-1] WARN
> >> >> org.directwebremoting.extend.Factory  - DWR has not been
> >> initialized
> >> >> properly
> >> >> 2015-12-10 09:39:02,654 [main] INFO
> >> org.directwebremoting.log.startup
> >> >>  - Starting: Using container abstraction
> >> >>
> org.directwebremoting.server.servlet3.Servlet30ContainerAbstraction
> >> >> 2015-12-10 09:39:02,676 [main] INFO
> >> >> org.directwebremoting.servlet.UrlProcessor  - Probably not
> >> an issue:
> >> >> the url:/gi.js (org.directwebremoting.gi.GiHandler)
> Handler is not
> >> >> available. This is only an problem if you wanted to use it.
> >> >> 2015-12-10 09:39:02,783 [main] INFO
> >> >> org.directwebremoting.impl.DefaultConverterManager  -
> >> Probably not an
> >> >> issue: jsx3.net.URIResolver is not available so the
> >> jsx3uri converter
> >> >> will not load. This is only an problem if you wanted to use it.
> >> >> 2015-12-10 09:39:02,784 [main] INFO
> >> >> org.directwebremoting.impl.DefaultConverterManager  -
> >> Probably not an
> >> >> issue: jsx3.xml.CdfDocument is not available so the
> >> jsx3doc converter
> >> >> will not load. This is only an problem if you wanted to use it.
> >> >>
> >> >>
> >> >> I am not sure what all information you would need for
> ihis but will
> >> >> include my JavaConfig for the DWR servlet.   Please let me
> >> know what
> >> >> other information I can provide.  I would stick with the older
> >> >> version, but it does not work with Springs 4.2.3   Link:
> >> >>
> >>
> http://dwr.2114559.n2.nabble.com/DWR-3-0-and-spring-4-2-td7581111.html
> >> >>
> >> >>
> >> >> Thanks again, sorry for any lack of info.