GrizzlyWebServerDeployer - Error Could not open ServletContext

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

GrizzlyWebServerDeployer - Error Could not open ServletContext

by aloleary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
    I am trying to use GrizzlyWebServerDeployer programatically in my unit tests so that i can test my Jersey/REST code.

I can see it starting ok but it fails to parse internal context paths correctly and in turn fails to start

I have the following path structure

...
WEB-INF
\config\applicationContext.xml   << spring app context which loads more from META-INF etc..
\jsp
web.xml
...

Here is the stack trace...

18:48:45,543  INFO JerseyServer:55 - Configuring Embedded REST Server
11-Jun-2009 18:48:45 com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: Will deploy application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: deployed application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.ServletContextImpl log
INFO: Initializing Spring root WebApplicationContext
18:48:46,425  INFO ContextLoader:189 - Root WebApplicationContext: initialization started
18:48:46,438  INFO XmlWebApplicationContext:411 - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@787c16: display name [Root WebApplicationContext]; startup date [Thu Jun 11 18:48:46 BST 2009]; root of context hierarchy
18:48:46,487 ERROR ContextLoader:215 - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)


I have no idea why it says the following:
Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

as the file is specified as the following:

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/config/application-context.xml</param-value>
    </context-param>

Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by survivant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

can you send us your war file please.  I want to test it on the latest version (not commited yet)

and the command line that you use to launch deployer.

Which verison of Deployer that you use ?


2009/6/11 aloleary <alanoleary@...>

Hello,
   I am trying to use GrizzlyWebServerDeployer programatically in my unit
tests so that i can test my Jersey/REST code.

I can see it starting ok but it fails to parse internal context paths
correctly and in turn fails to start

I have the following path structure

...
WEB-INF
\config\applicationContext.xml   << spring app context which loads more from
META-INF etc..
\jsp
web.xml
...

Here is the stack trace...

18:48:45,543  INFO JerseyServer:55 - Configuring Embedded REST Server
11-Jun-2009 18:48:45
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: Will deploy application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
11-Jun-2009 18:48:46
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: deployed application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.ServletContextImpl log
INFO: Initializing Spring root WebApplicationContext
18:48:46,425  INFO ContextLoader:189 - Root WebApplicationContext:
initialization started
18:48:46,438  INFO XmlWebApplicationContext:411 - Refreshing
org.springframework.web.context.support.XmlWebApplicationContext@787c16:
display name [Root WebApplicationContext]; startup date [Thu Jun 11 18:48:46
BST 2009]; root of context hierarchy
18:48:46,487 ERROR ContextLoader:215 - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/applicationContext.xml]
       at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
       at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
       at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)


I have no idea why it says the following:
Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

as the file is specified as the following:

   <context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>/WEB-INF/config/application-context.xml</param-value>
   </context-param>

--
View this message in context: http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986126.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.


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



Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by aloleary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is too much proprietary code in the war right now so i will have to spend a bit of time producing a small project to show this problem...  

My Maven snippet is:

        <dependency>
                        <groupId>com.sun.grizzly</groupId>
                        <artifactId>grizzly-servlet-deployer</artifactId>
                        <version>1.9.15a</version>
        </dependency>  

FYI this runs fine when deployed normally its only in this programmatic usage.






Survivant 00 wrote:
can you send us your war file please.  I want to test it on the latest
version (not commited yet)

and the command line that you use to launch deployer.

Which verison of Deployer that you use ?


2009/6/11 aloleary <alanoleary@gmail.com>

>
> Hello,
>    I am trying to use GrizzlyWebServerDeployer programatically in my unit
> tests so that i can test my Jersey/REST code.
>
> I can see it starting ok but it fails to parse internal context paths
> correctly and in turn fails to start
>
> I have the following path structure
>
> ...
> WEB-INF
> \config\applicationContext.xml   << spring app context which loads more
> from
> META-INF etc..
> \jsp
> web.xml
> ...
>
> Here is the stack trace...
>
> 18:48:45,543  INFO JerseyServer:55 - Configuring Embedded REST Server
> 11-Jun-2009 18:48:45
> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
> INFO: Will deploy application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
> 11-Jun-2009 18:48:46
> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
> INFO: deployed application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
> 11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.ServletContextImpl log
> INFO: Initializing Spring root WebApplicationContext
> 18:48:46,425  INFO ContextLoader:189 - Root WebApplicationContext:
> initialization started
> 18:48:46,438  INFO XmlWebApplicationContext:411 - Refreshing
> org.springframework.web.context.support.XmlWebApplicationContext@787c16:
> display name [Root WebApplicationContext]; startup date [Thu Jun 11
> 18:48:46
> BST 2009]; root of context hierarchy
> 18:48:46,487 ERROR ContextLoader:215 - Context initialization failed
> org.springframework.beans.factory.BeanDefinitionStoreException: IOException
> parsing XML document from ServletContext resource
> [/WEB-INF/applicationContext.xml]; nested exception is
> java.io.FileNotFoundException: Could not open ServletContext resource
> [/WEB-INF/applicationContext.xml]
>        at
>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
>        at
>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>
>
> I have no idea why it says the following:
> Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
>
> as the file is specified as the following:
>
>    <context-param>
>        <param-name>contextConfigLocation</param-name>
>        <param-value>/WEB-INF/config/application-context.xml</param-value>
>    </context-param>
>
> --
> View this message in context:
> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986126.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@grizzly.dev.java.net
> For additional commands, e-mail: users-help@grizzly.dev.java.net
>
>

Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by survivant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

can you tried with 1.9.16 ?

and what do you mean by deployed normally ?

it work by command line but not in a Junit ?


in my tests I use that syntax

GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();

deployer.main(args);    // and args it's from the command line (Eclipse)

or a Junit

GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();

String args[] = new String[]{"-a","path to application","-p","8080" .....};

deployer.main(args);





2009/6/11 aloleary <alanoleary@...>

There is too much proprietary code in the war right now so i will have to
spend a bit of time producing a small project to show this problem...

My Maven snippet is:

       <dependency>
                       <groupId>com.sun.grizzly</groupId>
                       <artifactId>grizzly-servlet-deployer</artifactId>
                       <version>1.9.15a</version>
       </dependency>

FYI this runs fine when deployed normally its only in this programmatic
usage.







Survivant 00 wrote:
>
> can you send us your war file please.  I want to test it on the latest
> version (not commited yet)
>
> and the command line that you use to launch deployer.
>
> Which verison of Deployer that you use ?
>
>
> 2009/6/11 aloleary <alanoleary@...>
>
>>
>> Hello,
>>    I am trying to use GrizzlyWebServerDeployer programatically in my unit
>> tests so that i can test my Jersey/REST code.
>>
>> I can see it starting ok but it fails to parse internal context paths
>> correctly and in turn fails to start
>>
>> I have the following path structure
>>
>> ...
>> WEB-INF
>> \config\applicationContext.xml   << spring app context which loads more
>> from
>> META-INF etc..
>> \jsp
>> web.xml
>> ...
>>
>> Here is the stack trace...
>>
>> 18:48:45,543  INFO JerseyServer:55 - Configuring Embedded REST Server
>> 11-Jun-2009 18:48:45
>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>> INFO: Will deploy application
>> path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
>> 11-Jun-2009 18:48:46
>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>> INFO: deployed application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
>> 11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.ServletContextImpl log
>> INFO: Initializing Spring root WebApplicationContext
>> 18:48:46,425  INFO ContextLoader:189 - Root WebApplicationContext:
>> initialization started
>> 18:48:46,438  INFO XmlWebApplicationContext:411 - Refreshing
>> org.springframework.web.context.support.XmlWebApplicationContext@787c16:
>> display name [Root WebApplicationContext]; startup date [Thu Jun 11
>> 18:48:46
>> BST 2009]; root of context hierarchy
>> 18:48:46,487 ERROR ContextLoader:215 - Context initialization failed
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> IOException
>> parsing XML document from ServletContext resource
>> [/WEB-INF/applicationContext.xml]; nested exception is
>> java.io.FileNotFoundException: Could not open ServletContext resource
>> [/WEB-INF/applicationContext.xml]
>>        at
>>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
>>        at
>>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>>        at
>>
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>>
>>
>> I have no idea why it says the following:
>> Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
>>
>> as the file is specified as the following:
>>
>>    <context-param>
>>        <param-name>contextConfigLocation</param-name>
>>        <param-value>/WEB-INF/config/application-context.xml</param-value>
>>    </context-param>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986126.html
>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986243.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.


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



Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by aloleary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tried to use 1.9.16 from Maven but the jar that downloaded:

grizzly-servlet-deployer-1.9.16.jar

does not have com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer class inside !?

Sorry when i meant runs outside i meant the war runs ok in a normal webserver..

-A-

Survivant 00 wrote:
can you tried with 1.9.16 ?

and what do you mean by deployed normally ?

it work by command line but not in a Junit ?


in my tests I use that syntax

GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();

deployer.main(args);    // and args it's from the command line (Eclipse)

or a Junit

GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();

String args[] = new String[]{"-a","path to application","-p","8080" .....};

deployer.main(args);





2009/6/11 aloleary <alanoleary@gmail.com>

>
> There is too much proprietary code in the war right now so i will have to
> spend a bit of time producing a small project to show this problem...
>
> My Maven snippet is:
>
>        <dependency>
>                        <groupId>com.sun.grizzly</groupId>
>                        <artifactId>grizzly-servlet-deployer</artifactId>
>                        <version>1.9.15a</version>
>        </dependency>
>
> FYI this runs fine when deployed normally its only in this programmatic
> usage.
>
>
>
>
>
>
>
> Survivant 00 wrote:
> >
> > can you send us your war file please.  I want to test it on the latest
> > version (not commited yet)
> >
> > and the command line that you use to launch deployer.
> >
> > Which verison of Deployer that you use ?
> >
> >
> > 2009/6/11 aloleary <alanoleary@gmail.com>
> >
> >>
> >> Hello,
> >>    I am trying to use GrizzlyWebServerDeployer programatically in my
> unit
> >> tests so that i can test my Jersey/REST code.
> >>
> >> I can see it starting ok but it fails to parse internal context paths
> >> correctly and in turn fails to start
> >>
> >> I have the following path structure
> >>
> >> ...
> >> WEB-INF
> >> \config\applicationContext.xml   << spring app context which loads more
> >> from
> >> META-INF etc..
> >> \jsp
> >> web.xml
> >> ...
> >>
> >> Here is the stack trace...
> >>
> >> 18:48:45,543  INFO JerseyServer:55 - Configuring Embedded REST Server
> >> 11-Jun-2009 18:48:45
> >> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
> >> INFO: Will deploy application
> >> path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
> >> 11-Jun-2009 18:48:46
> >> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
> >> INFO: deployed application path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
> >> 11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.ServletContextImpl log
> >> INFO: Initializing Spring root WebApplicationContext
> >> 18:48:46,425  INFO ContextLoader:189 - Root WebApplicationContext:
> >> initialization started
> >> 18:48:46,438  INFO XmlWebApplicationContext:411 - Refreshing
> >> org.springframework.web.context.support.XmlWebApplicationContext@787c16
> :
> >> display name [Root WebApplicationContext]; startup date [Thu Jun 11
> >> 18:48:46
> >> BST 2009]; root of context hierarchy
> >> 18:48:46,487 ERROR ContextLoader:215 - Context initialization failed
> >> org.springframework.beans.factory.BeanDefinitionStoreException:
> >> IOException
> >> parsing XML document from ServletContext resource
> >> [/WEB-INF/applicationContext.xml]; nested exception is
> >> java.io.FileNotFoundException: Could not open ServletContext resource
> >> [/WEB-INF/applicationContext.xml]
> >>        at
> >>
> >>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
> >>        at
> >>
> >>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
> >>        at
> >>
> >>
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
> >>
> >>
> >> I have no idea why it says the following:
> >> Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
> >>
> >> as the file is specified as the following:
> >>
> >>    <context-param>
> >>        <param-name>contextConfigLocation</param-name>
> >>
>  <param-value>/WEB-INF/config/application-context.xml</param-value>
> >>    </context-param>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986126.html
> >> Sent from the Grizzly - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@grizzly.dev.java.net
> >> For additional commands, e-mail: users-help@grizzly.dev.java.net
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986243.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@grizzly.dev.java.net
> For additional commands, e-mail: users-help@grizzly.dev.java.net
>
>

Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by survivant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

in another web server that's normal :)

I think that Deployer and Grizzly doesn't find your config file in the classpath.  We did a fix like that in 1.9.16. 

in 1.9.16 Deployer as been split in 2 modules (modules/bundles/http-servlet-deployer  and modules/http-servlet-deployer)

here are the dependencies in Deployer bundle


<dependencies>
        <dependency>
            <groupId>com.sun.grizzly</groupId>
            <artifactId>grizzly-http</artifactId>
            <version>${grizzly-version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.grizzly</groupId>
            <artifactId>grizzly-http-servlet</artifactId>
            <version>${grizzly-version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.grizzly</groupId>
            <artifactId>grizzly-servlet-deployer</artifactId>
            <version>${grizzly-version}</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
        </dependency>
    </dependencies>



2009/6/11 aloleary <alanoleary@...>

Tried to use 1.9.16 from Maven but the jar that downloaded:

grizzly-servlet-deployer-1.9.16.jar

does not have com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer
class inside !?

Sorry when i meant runs outside i meant the war runs ok in a normal
webserver..

-A-


Survivant 00 wrote:
>
> can you tried with 1.9.16 ?
>
> and what do you mean by deployed normally ?
>
> it work by command line but not in a Junit ?
>
>
> in my tests I use that syntax
>
> GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();
>
> deployer.main(args);    // and args it's from the command line (Eclipse)
>
> or a Junit
>
> GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();
>
> String args[] = new String[]{"-a","path to application","-p","8080"
> .....};
>
> deployer.main(args);
>
>
>
>
>
> 2009/6/11 aloleary <alanoleary@...>
>
>>
>> There is too much proprietary code in the war right now so i will have to
>> spend a bit of time producing a small project to show this problem...
>>
>> My Maven snippet is:
>>
>>        <dependency>
>>                        <groupId>com.sun.grizzly</groupId>
>>                        <artifactId>grizzly-servlet-deployer</artifactId>
>>                        <version>1.9.15a</version>
>>        </dependency>
>>
>> FYI this runs fine when deployed normally its only in this programmatic
>> usage.
>>
>>
>>
>>
>>
>>
>>
>> Survivant 00 wrote:
>> >
>> > can you send us your war file please.  I want to test it on the latest
>> > version (not commited yet)
>> >
>> > and the command line that you use to launch deployer.
>> >
>> > Which verison of Deployer that you use ?
>> >
>> >
>> > 2009/6/11 aloleary <alanoleary@...>
>> >
>> >>
>> >> Hello,
>> >>    I am trying to use GrizzlyWebServerDeployer programatically in my
>> unit
>> >> tests so that i can test my Jersey/REST code.
>> >>
>> >> I can see it starting ok but it fails to parse internal context paths
>> >> correctly and in turn fails to start
>> >>
>> >> I have the following path structure
>> >>
>> >> ...
>> >> WEB-INF
>> >> \config\applicationContext.xml   << spring app context which loads
>> more
>> >> from
>> >> META-INF etc..
>> >> \jsp
>> >> web.xml
>> >> ...
>> >>
>> >> Here is the stack trace...
>> >>
>> >> 18:48:45,543  INFO JerseyServer:55 - Configuring Embedded REST Server
>> >> 11-Jun-2009 18:48:45
>> >> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>> >> INFO: Will deploy application
>> >> path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
>> >> 11-Jun-2009 18:48:46
>> >> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>> >> INFO: deployed application
>> path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
>> >> 11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.ServletContextImpl
>> log
>> >> INFO: Initializing Spring root WebApplicationContext
>> >> 18:48:46,425  INFO ContextLoader:189 - Root WebApplicationContext:
>> >> initialization started
>> >> 18:48:46,438  INFO XmlWebApplicationContext:411 - Refreshing
>> >>
>> org.springframework.web.context.support.XmlWebApplicationContext@787c16
>> :
>> >> display name [Root WebApplicationContext]; startup date [Thu Jun 11
>> >> 18:48:46
>> >> BST 2009]; root of context hierarchy
>> >> 18:48:46,487 ERROR ContextLoader:215 - Context initialization failed
>> >> org.springframework.beans.factory.BeanDefinitionStoreException:
>> >> IOException
>> >> parsing XML document from ServletContext resource
>> >> [/WEB-INF/applicationContext.xml]; nested exception is
>> >> java.io.FileNotFoundException: Could not open ServletContext resource
>> >> [/WEB-INF/applicationContext.xml]
>> >>        at
>> >>
>> >>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
>> >>        at
>> >>
>> >>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>> >>        at
>> >>
>> >>
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>> >>
>> >>
>> >> I have no idea why it says the following:
>> >> Could not open ServletContext resource
>> [/WEB-INF/applicationContext.xml]
>> >>
>> >> as the file is specified as the following:
>> >>
>> >>    <context-param>
>> >>        <param-name>contextConfigLocation</param-name>
>> >>
>>  <param-value>/WEB-INF/config/application-context.xml</param-value>
>> >>    </context-param>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986126.html
>> >> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@...
>> >> For additional commands, e-mail: users-help@...
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986243.html
>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986433.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.


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



Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by survivant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

the link for deployer on the webpage is not valid.  THe module moved in 1.9.16

https://grizzly.dev.java.net/issues/show_bug.cgi?id=664

you can download it from

http://download.java.net/maven/2/com/sun/grizzly/grizzly-http-servlet-deployer/1.9.16/grizzly-http-servlet-deployer-1.9.16.jar



2009/6/11 aloleary <alanoleary@...>

Tried to use 1.9.16 from Maven but the jar that downloaded:

grizzly-servlet-deployer-1.9.16.jar

does not have com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer
class inside !?

Sorry when i meant runs outside i meant the war runs ok in a normal
webserver..

-A-


Survivant 00 wrote:
>
> can you tried with 1.9.16 ?
>
> and what do you mean by deployed normally ?
>
> it work by command line but not in a Junit ?
>
>
> in my tests I use that syntax
>
> GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();
>
> deployer.main(args);    // and args it's from the command line (Eclipse)
>
> or a Junit
>
> GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();
>
> String args[] = new String[]{"-a","path to application","-p","8080"
> .....};
>
> deployer.main(args);
>
>
>
>
>
> 2009/6/11 aloleary <alanoleary@...>
>
>>
>> There is too much proprietary code in the war right now so i will have to
>> spend a bit of time producing a small project to show this problem...
>>
>> My Maven snippet is:
>>
>>        <dependency>
>>                        <groupId>com.sun.grizzly</groupId>
>>                        <artifactId>grizzly-servlet-deployer</artifactId>
>>                        <version>1.9.15a</version>
>>        </dependency>
>>
>> FYI this runs fine when deployed normally its only in this programmatic
>> usage.
>>
>>
>>
>>
>>
>>
>>
>> Survivant 00 wrote:
>> >
>> > can you send us your war file please.  I want to test it on the latest
>> > version (not commited yet)
>> >
>> > and the command line that you use to launch deployer.
>> >
>> > Which verison of Deployer that you use ?
>> >
>> >
>> > 2009/6/11 aloleary <alanoleary@...>
>> >
>> >>
>> >> Hello,
>> >>    I am trying to use GrizzlyWebServerDeployer programatically in my
>> unit
>> >> tests so that i can test my Jersey/REST code.
>> >>
>> >> I can see it starting ok but it fails to parse internal context paths
>> >> correctly and in turn fails to start
>> >>
>> >> I have the following path structure
>> >>
>> >> ...
>> >> WEB-INF
>> >> \config\applicationContext.xml   << spring app context which loads
>> more
>> >> from
>> >> META-INF etc..
>> >> \jsp
>> >> web.xml
>> >> ...
>> >>
>> >> Here is the stack trace...
>> >>
>> >> 18:48:45,543  INFO JerseyServer:55 - Configuring Embedded REST Server
>> >> 11-Jun-2009 18:48:45
>> >> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>> >> INFO: Will deploy application
>> >> path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
>> >> 11-Jun-2009 18:48:46
>> >> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
>> >> INFO: deployed application
>> path=xxxxxxxx\src\main\webapp\WEB-INF\web.xml
>> >> 11-Jun-2009 18:48:46 com.sun.grizzly.http.servlet.ServletContextImpl
>> log
>> >> INFO: Initializing Spring root WebApplicationContext
>> >> 18:48:46,425  INFO ContextLoader:189 - Root WebApplicationContext:
>> >> initialization started
>> >> 18:48:46,438  INFO XmlWebApplicationContext:411 - Refreshing
>> >>
>> org.springframework.web.context.support.XmlWebApplicationContext@787c16
>> :
>> >> display name [Root WebApplicationContext]; startup date [Thu Jun 11
>> >> 18:48:46
>> >> BST 2009]; root of context hierarchy
>> >> 18:48:46,487 ERROR ContextLoader:215 - Context initialization failed
>> >> org.springframework.beans.factory.BeanDefinitionStoreException:
>> >> IOException
>> >> parsing XML document from ServletContext resource
>> >> [/WEB-INF/applicationContext.xml]; nested exception is
>> >> java.io.FileNotFoundException: Could not open ServletContext resource
>> >> [/WEB-INF/applicationContext.xml]
>> >>        at
>> >>
>> >>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
>> >>        at
>> >>
>> >>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>> >>        at
>> >>
>> >>
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>> >>
>> >>
>> >> I have no idea why it says the following:
>> >> Could not open ServletContext resource
>> [/WEB-INF/applicationContext.xml]
>> >>
>> >> as the file is specified as the following:
>> >>
>> >>    <context-param>
>> >>        <param-name>contextConfigLocation</param-name>
>> >>
>>  <param-value>/WEB-INF/config/application-context.xml</param-value>
>> >>    </context-param>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986126.html
>> >> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@...
>> >> For additional commands, e-mail: users-help@...
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986243.html
>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>

--
View this message in context: http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23986433.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.


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



Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by aloleary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the pointers so far....

The following is what I get now:

12-Jun-2009 09:07:19 com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: Will deploy application path=xxxxxx\src\main\webapp\WEB-INF\web.xml
java.lang.IllegalArgumentException: Unable to load listener class: org.springframework.security.ui.session.HttpSessionEventPublisher - class must implement javax.servlet.ServletContextListener or javax.servlet.ServletContextAttributeListener
        at com.sun.grizzly.http.servlet.ServletAdapter.addServletListener(ServletAdapter.java:619)


Looking at that class it does not implement either of those but it does impl:
javax.servlet.http.HttpSessionListener


Survivant 00 wrote:
the link for deployer on the webpage is not valid.  THe module moved in
1.9.16

[snip]

Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by aloleary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This must be since i moved to 1.9.16 as my tests using GrizzlyWebServer now fail too when I do something like:


ServletAdapter restAdapter.....

.....
restAdapter.addServletListener("org.springframework.security.ui.session.HttpSessionEventPublisher");




Thanks for the pointers so far....

The following is what I get now:

12-Jun-2009 09:07:19 com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: Will deploy application path=xxxxxx\src\main\webapp\WEB-INF\web.xml
java.lang.IllegalArgumentException: Unable to load listener class: org.springframework.security.ui.session.HttpSessionEventPublisher - class must implement javax.servlet.ServletContextListener or javax.servlet.ServletContextAttributeListener
        at com.sun.grizzly.http.servlet.ServletAdapter.addServletListener(ServletAdapter.java:619)


Looking at that class it does not implement either of those but it does impl:
javax.servlet.http.HttpSessionListener


Survivant 00 wrote:
the link for deployer on the webpage is not valid.  THe module moved in
1.9.16

[snip]


Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by survivant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

can you fill a issue please.  I don't want to lose this one.

thanks for your time.


2009/6/12 aloleary <alanoleary@...>

Thanks for the pointers so far....

The following is what I get now:

12-Jun-2009 09:07:19
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: Will deploy application path=xxxxxx\src\main\webapp\WEB-INF\web.xml
java.lang.IllegalArgumentException: Unable to load listener class:
org.springframework.security.ui.session.HttpSessionEventPublisher - class
must implement javax.servlet.ServletContextListener or
javax.servlet.ServletContextAttributeListener
       at
com.sun.grizzly.http.servlet.ServletAdapter.addServletListener(ServletAdapter.java:619)


Looking at that class it does not implement either of those but it does
impl:
javax.servlet.http.HttpSessionListener



Survivant 00 wrote:
>
> the link for deployer on the webpage is not valid.  THe module moved in
> 1.9.16
>
> [snip]
>
>

--
View this message in context: http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23994683.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.


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



Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by aloleary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have requested Observer status so that I can raise an issue...



Survivant 00 wrote:
can you fill a issue please.  I don't want to lose this one.

thanks for your time.

Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by aloleary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is now issue 666 ;-)

https://grizzly.dev.java.net/issues/show_bug.cgi?id=666

Survivant 00 wrote:
can you fill a issue please.  I don't want to lose this one.

thanks for your time.

Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by survivant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks

can you add your web.xml.  Just to test, which parser will  be used.

2009/6/12 aloleary <alanoleary@...>

This is now issue 666 ;-)

https://grizzly.dev.java.net/issues/show_bug.cgi?id=666


Survivant 00 wrote:
>
> can you fill a issue please.  I don't want to lose this one.
>
> thanks for your time.
>

--
View this message in context: http://www.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p23996621.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.


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



Windows 1.9.11 intermittent socket read problem

by Amy Kang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

We have noticed  an intermittent socket read problem under stress on Windows
using Grizzly 1.9.11 - as if a section of bytes was missing.  This is
only noticed
on Windows.  I'v tried on Solaris different CPU #/speed machines all
work fine
with the same test.  The Windows machine I used/noticed the problem is a
Windows
Server 2003 with JDK 1.6.0_12, and at least another user reported
similar problem
on his Windows machine.

Is this a known problem ?  I'd like to try 1.9.16 to see if by any
chance it's fixed there.
However I'v noticed that the same test, which has been running fine with
previous versions
of Grizzly, hangs in waiting first reply packet from server when using
1.9.16 on the same
Windows machine.  Is there any Grizzly initialization code change
necessary to use 1.9.16 ?

Thanks,
amy

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


Re: Windows 1.9.11 intermittent socket read problem

by Jeanfrancois Arcand-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Salut,

Amy Kang wrote:

> Hi,
>
> We have noticed  an intermittent socket read problem under stress on
> Windows
> using Grizzly 1.9.11 - as if a section of bytes was missing.  This is
> only noticed
> on Windows.  I'v tried on Solaris different CPU #/speed machines all
> work fine
> with the same test.  The Windows machine I used/noticed the problem is a
> Windows
> Server 2003 with JDK 1.6.0_12, and at least another user reported
> similar problem
> on his Windows machine.

Huh...win2003 and NIO doesn't work well. I've reported to Microsoft a
couple of years back an issue were the nbpool was leaking and eventually
bringing down the entire TCP stack. Can you look at the nbpool value in
task mager and see if it keeps increasing?

>
> Is this a known problem ?  I'd like to try 1.9.16 to see if by any
> chance it's fixed there.
> However I'v noticed that the same test, which has been running fine with
> previous versions
> of Grizzly, hangs in waiting first reply packet from server when using
> 1.9.16 on the same
> Windows machine.  Is there any Grizzly initialization code change
> necessary to use 1.9.16 ?

Hum this is bad. Can you share a test case?

Thanks

-- Jeanfrancois

>
> Thanks,
> amy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

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


Re: GrizzlyWebServerDeployer - Error Could not open ServletContext

by Jeanfrancois Arcand-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nice catch!

Fixed.

-- Jeanfrancois

aloleary wrote:

> This is now issue 666 ;-)
>
> https://grizzly.dev.java.net/issues/show_bug.cgi?id=666
>
>
> Survivant 00 wrote:
>> can you fill a issue please.  I don't want to lose this one.
>>
>> thanks for your time.
>>
>

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


Re: Windows 1.9.11 intermittent socket read problem

by Amy Kang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It turned out this is not a Windows specific problem.  I eventually
found a Solaris
machine with the right CPU# and speed reproduced the same problem under
stress test.   It is a bug in our code - a misinterpretation of
ByteBufferFactory.allocateView()
position in ProtocolParser.

Cheers,
amy


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


unable to serve request after 1.9.16 controller started

by Amy Kang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'v noticed this on Solaris as well as on Windows after replaced Grizzly
1.9.11 framework jar to 1.9.16:  after Grizzly controller
initialized/started,
it's unable to serve client request - the client just hangs in waiting
for server reply.
The same client has been working fine with previous versions of Grizzly NIO
framework (used versions <= 1.9.11).

I wonder if any initialization setup changes  needed to use 1.9.16.  The
following
is the server side stacktrace right after the controller is started and
during client
attempting connecting.  Please contact me for a pointer to reproduce
this if necessary.

 >>>>>>>>>after Grizzly Controller started
Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode):

"DestroyJavaVM" prio=10 tid=0x00037530 nid=0x1 waiting on condition
[0x00000000..0xffbfe620]


"Grizzly-WorkerThread(4)" prio=10 tid=0x00a9e780 nid=0x24 runnable
[0xe80af000..0xe80afa70]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xf4fc2ef8> (a sun.nio.ch.Util$1)
        - locked <0xf4fc2ee8> (a java.util.Collections$UnmodifiableSet)
        - locked <0xf4fc2cf8> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(2)" daemon prio=10 tid=0x009e4d48 nid=0x23
runnable [0xe80df000..0xe80df8f0]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xf4dd7178> (a sun.nio.ch.Util$1)
        - locked <0xf4dd7168> (a java.util.Collections$UnmodifiableSet)
        - locked <0xf4dd6f68> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(3)" daemon prio=10 tid=0x00a2ec48 nid=0x22
runnable [0xe810f000..0xe810f970]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xf4dd8138> (a sun.nio.ch.Util$1)
        - locked <0xf4dd8128> (a java.util.Collections$UnmodifiableSet)
        - locked <0xf4dd7f38> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(0)" daemon prio=10 tid=0x00a05db0 nid=0x21
runnable [0xe813f000..0xe813fbf0]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xf4dd8f18> (a sun.nio.ch.Util$1)
        - locked <0xf4dd8f08> (a java.util.Collections$UnmodifiableSet)
        - locked <0xf4dd8d18> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(1)" daemon prio=10 tid=0x00a76258 nid=0x20
runnable [0xe816f000..0xe816fc70]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xf4dd9cf8> (a sun.nio.ch.Util$1)
        - locked <0xf4dd9ce8> (a java.util.Collections$UnmodifiableSet)
        - locked <0xf4dd9af8> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Thread-10" daemon prio=10 tid=0x00466848 nid=0x1f in Object.wait()
[0xe82bf000..0xe82bfaf0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xf4f0fd18> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xf4f0fd18> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-9" daemon prio=10 tid=0x0062dd60 nid=0x1e in Object.wait()
[0xe82ef000..0xe82efb70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xf4ebde38> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xf4ebde38> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-8" daemon prio=10 tid=0x00ad11b0 nid=0x1d in Object.wait()
[0xe843f000..0xe843f9f0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xf4e6bf58> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xf4e6bf58> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-7" daemon prio=10 tid=0x0061bf30 nid=0x1c in Object.wait()
[0xe846f000..0xe846fa70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xf4e1a078> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xf4e1a078> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-6" prio=10 tid=0x00a75bb8 nid=0x1b in Object.wait()
[0xe86ef000..0xe86ef8f0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xf4de2260> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xf4de2260> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.Controller.start(Controller.java:764)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at java.lang.Thread.run(Thread.java:595)

"GC Daemon" daemon prio=2 tid=0x00394400 nid=0x16 in Object.wait()
[0xf88bf000..0xf88bfb70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec804028> (a sun.misc.GC$LatencyLock)
        at sun.misc.GC$Daemon.run(GC.java:100)
        - locked <0xec804028> (a sun.misc.GC$LatencyLock)

"RMI Reaper" prio=10 tid=0x005cb658 nid=0x15 in Object.wait()
[0xf88ef000..0xf88ef9f0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec804158> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
        - locked <0xec804158> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
        at sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:336)
        at java.lang.Thread.run(Thread.java:595)

"Timer-0" daemon prio=10 tid=0x0044d438 nid=0x14 in Object.wait()
[0xf89bf000..0xf89bfa70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec804250> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:474)
        at java.util.TimerThread.mainLoop(Timer.java:483)
        - locked <0xec804250> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"RMI TCP Accept-0" daemon prio=10 tid=0x0044b5c0 nid=0x13 runnable
[0xf89ef000..0xf89ef8f0]
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        - locked <0xec8044e0> (a java.net.SocksSocketImpl)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:340)
        at java.lang.Thread.run(Thread.java:595)

"Low Memory Detector" daemon prio=10 tid=0x0015e680 nid=0xd runnable
[0x00000000..0x00000000]

"CompilerThread1" daemon prio=10 tid=0x0015cdc0 nid=0xc waiting on
condition [0x00000000..0xf8a7ea7c]

"CompilerThread0" daemon prio=10 tid=0x0015bf48 nid=0xb waiting on
condition [0x00000000..0xf8b7e8b4]

"AdapterThread" daemon prio=10 tid=0x0015b0d0 nid=0xa waiting on
condition [0x00000000..0x00000000]

"Signal Dispatcher" daemon prio=10 tid=0x0015a2c0 nid=0x9 waiting on
condition [0x00000000..0x00000000]

"Finalizer" daemon prio=10 tid=0x0014dea8 nid=0x8 in Object.wait()
[0xfe46f000..0xfe46fc70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec808220> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
        - locked <0xec808220> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x0014d968 nid=0x7 in
Object.wait() [0xfe52f000..0xfe52faf0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec804018> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:474)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0xec804018> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x0014b280 nid=0x6 runnable

"GC task thread#0 (ParallelGC)" prio=10 tid=0x000b8ff8 nid=0x2 runnable

"GC task thread#1 (ParallelGC)" prio=10 tid=0x000b9a38 nid=0x3 runnable

"GC task thread#2 (ParallelGC)" prio=10 tid=0x000ba478 nid=0x4 runnable

"GC task thread#3 (ParallelGC)" prio=10 tid=0x000baeb8 nid=0x5 runnable

"VM Periodic Task Thread" prio=10 tid=0x000b06f0 nid=0xe waiting on
condition
----------------------------------------------------------------------------------------------

 >>>>>>when first client attempt connecting, client just hangs in
waiting server reply
Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode):

"DestroyJavaVM" prio=10 tid=0x00037530 nid=0x1 waiting on condition
[0x00000000..0xffbfe620]

"Grizzly-WorkerThread(4)" prio=10 tid=0x00a9e780 nid=0x24 runnable
[0xe80af000..0xe80afa70]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xec941de8> (a sun.nio.ch.Util$1)
        - locked <0xec941dd8> (a java.util.Collections$UnmodifiableSet)
        - locked <0xec941c00> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(2)" daemon prio=10 tid=0x009e4d48 nid=0x23
runnable [0xe80df000..0xe80df8f0]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xec932f10> (a sun.nio.ch.Util$1)
        - locked <0xec932f00> (a java.util.Collections$UnmodifiableSet)
        - locked <0xec932e20> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(3)" daemon prio=10 tid=0x00a2ec48 nid=0x22
runnable [0xe810f000..0xe810f970]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xec95ccf0> (a sun.nio.ch.Util$1)
        - locked <0xec95cce0> (a java.util.Collections$UnmodifiableSet)
        - locked <0xec953d68> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(0)" daemon prio=10 tid=0x00a05db0 nid=0x21
runnable [0xe813f000..0xe813fbf0]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xec934100> (a sun.nio.ch.Util$1)
        - locked <0xec9340f0> (a java.util.Collections$UnmodifiableSet)
        - locked <0xec934010> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Grizzly-WorkerThread(1)" daemon prio=10 tid=0x00a76258 nid=0x20
runnable [0xe816f000..0xe816fc70]
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at
sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked <0xec931690> (a sun.nio.ch.Util$1)
        - locked <0xec931680> (a java.util.Collections$UnmodifiableSet)
        - locked <0xec931548> (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at
com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
        at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
        at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
        at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
        at java.lang.Thread.run(Thread.java:595)

"Thread-10" daemon prio=10 tid=0x00466848 nid=0x1f in Object.wait()
[0xe82bf000..0xe82bfaf0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec930c18> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xec930c18> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-9" daemon prio=10 tid=0x0062dd60 nid=0x1e in Object.wait()
[0xe82ef000..0xe82efb70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec931168> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xec931168> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-8" daemon prio=10 tid=0x00ad11b0 nid=0x1d in Object.wait()
[0xe843f000..0xe843f9f0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec940f90> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xec940f90> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-7" daemon prio=10 tid=0x0061bf30 nid=0x1c in Object.wait()
[0xe846f000..0xe846fa70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec91eb30> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xec91eb30> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.ReadController.start(ReadController.java:120)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

"Thread-6" prio=10 tid=0x00a75bb8 nid=0x1b in Object.wait()
[0xe86ef000..0xe86ef8f0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec91d5e8> (a
java.util.concurrent.atomic.AtomicInteger)
        at
com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
        - locked <0xec91d5e8> (a java.util.concurrent.atomic.AtomicInteger)
        at com.sun.grizzly.Controller.start(Controller.java:764)
        at com.sun.grizzly.Controller.run(Controller.java:634)
        at java.lang.Thread.run(Thread.java:595)

"GC Daemon" daemon prio=2 tid=0x00394400 nid=0x16 in Object.wait()
[0xf88bf000..0xf88bfb70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec8038f0> (a sun.misc.GC$LatencyLock)
        at sun.misc.GC$Daemon.run(GC.java:100)
        - locked <0xec8038f0> (a sun.misc.GC$LatencyLock)

"RMI Reaper" prio=10 tid=0x005cb658 nid=0x15 in Object.wait()
[0xf88ef000..0xf88ef9f0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec803a20> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
        - locked <0xec803a20> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
        at sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:336)
        at java.lang.Thread.run(Thread.java:595)

"Timer-0" daemon prio=10 tid=0x0044d438 nid=0x14 in Object.wait()
[0xf89bf000..0xf89bfa70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec803b18> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:474)
        at java.util.TimerThread.mainLoop(Timer.java:483)
        - locked <0xec803b18> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"RMI TCP Accept-0" daemon prio=10 tid=0x0044b5c0 nid=0x13 runnable
[0xf89ef000..0xf89ef8f0]
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
        - locked <0xec803da8> (a java.net.SocksSocketImpl)
        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
        at java.net.ServerSocket.accept(ServerSocket.java:421)
        at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:340)
        at java.lang.Thread.run(Thread.java:595)

"Low Memory Detector" daemon prio=10 tid=0x0015e680 nid=0xd runnable
[0x00000000..0x00000000]

"CompilerThread1" daemon prio=10 tid=0x0015cdc0 nid=0xc waiting on
condition [0x00000000..0xf8a7ea7c]

"CompilerThread0" daemon prio=10 tid=0x0015bf48 nid=0xb waiting on
condition [0x00000000..0xf8b7e9a4]

"AdapterThread" daemon prio=10 tid=0x0015b0d0 nid=0xa waiting on
condition [0x00000000..0x00000000]

"Signal Dispatcher" daemon prio=10 tid=0x0015a2c0 nid=0x9 waiting on
condition [0x00000000..0x00000000]

"Finalizer" daemon prio=10 tid=0x0014dea8 nid=0x8 in Object.wait()
[0xfe46f000..0xfe46fc70]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec806b10> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
        - locked <0xec806b10> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x0014d968 nid=0x7 in
Object.wait() [0xfe52f000..0xfe52faf0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xec8038e0> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:474)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0xec8038e0> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x0014b280 nid=0x6 runnable

"GC task thread#0 (ParallelGC)" prio=10 tid=0x000b8ff8 nid=0x2 runnable

"GC task thread#1 (ParallelGC)" prio=10 tid=0x000b9a38 nid=0x3 runnable

"GC task thread#2 (ParallelGC)" prio=10 tid=0x000ba478 nid=0x4 runnable

"GC task thread#3 (ParallelGC)" prio=10 tid=0x000baeb8 nid=0x5 runnable

"VM Periodic Task Thread" prio=10 tid=0x000b06f0 nid=0xe waiting on
condition
----------------------------------------------------------



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


Re: unable to serve request after 1.9.16 controller started

by Jeanfrancois Arcand-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Salut,

Amy Kang wrote:

> Hi,
>
> I'v noticed this on Solaris as well as on Windows after replaced Grizzly
> 1.9.11 framework jar to 1.9.16:  after Grizzly controller
> initialized/started,
> it's unable to serve client request - the client just hangs in waiting
> for server reply.
> The same client has been working fine with previous versions of Grizzly NIO
> framework (used versions <= 1.9.11).
>
> I wonder if any initialization setup changes  needed to use 1.9.16.  The
> following
> is the server side stacktrace right after the controller is started and
> during client
> attempting connecting.  Please contact me for a pointer to reproduce
> this if necessary.

Can you send me privately the test case? The only thing that changes and
now we configure, under the hood, the number of ReaderController. Have
you used that API before:

https://grizzly.dev.java.net/nonav/apidocs/com/sun/grizzly/Controller.html#setReadThreadsCount(int)

If no, can you add and set to 1 to see if that help?

Thanks!

-- Jeanfrancois

>
>  >>>>>>>>>after Grizzly Controller started
> Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode):
>
> "DestroyJavaVM" prio=10 tid=0x00037530 nid=0x1 waiting on condition
> [0x00000000..0xffbfe620]
>
>
> "Grizzly-WorkerThread(4)" prio=10 tid=0x00a9e780 nid=0x24 runnable
> [0xe80af000..0xe80afa70]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xf4fc2ef8> (a sun.nio.ch.Util$1)
>        - locked <0xf4fc2ee8> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xf4fc2cf8> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(2)" daemon prio=10 tid=0x009e4d48 nid=0x23
> runnable [0xe80df000..0xe80df8f0]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xf4dd7178> (a sun.nio.ch.Util$1)
>        - locked <0xf4dd7168> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xf4dd6f68> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(3)" daemon prio=10 tid=0x00a2ec48 nid=0x22
> runnable [0xe810f000..0xe810f970]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xf4dd8138> (a sun.nio.ch.Util$1)
>        - locked <0xf4dd8128> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xf4dd7f38> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(0)" daemon prio=10 tid=0x00a05db0 nid=0x21
> runnable [0xe813f000..0xe813fbf0]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xf4dd8f18> (a sun.nio.ch.Util$1)
>        - locked <0xf4dd8f08> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xf4dd8d18> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(1)" daemon prio=10 tid=0x00a76258 nid=0x20
> runnable [0xe816f000..0xe816fc70]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xf4dd9cf8> (a sun.nio.ch.Util$1)
>        - locked <0xf4dd9ce8> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xf4dd9af8> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-10" daemon prio=10 tid=0x00466848 nid=0x1f in Object.wait()
> [0xe82bf000..0xe82bfaf0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xf4f0fd18> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xf4f0fd18> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-9" daemon prio=10 tid=0x0062dd60 nid=0x1e in Object.wait()
> [0xe82ef000..0xe82efb70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xf4ebde38> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xf4ebde38> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-8" daemon prio=10 tid=0x00ad11b0 nid=0x1d in Object.wait()
> [0xe843f000..0xe843f9f0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xf4e6bf58> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xf4e6bf58> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-7" daemon prio=10 tid=0x0061bf30 nid=0x1c in Object.wait()
> [0xe846f000..0xe846fa70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xf4e1a078> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xf4e1a078> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-6" prio=10 tid=0x00a75bb8 nid=0x1b in Object.wait()
> [0xe86ef000..0xe86ef8f0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xf4de2260> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xf4de2260> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.Controller.start(Controller.java:764)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at java.lang.Thread.run(Thread.java:595)
>
> "GC Daemon" daemon prio=2 tid=0x00394400 nid=0x16 in Object.wait()
> [0xf88bf000..0xf88bfb70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec804028> (a sun.misc.GC$LatencyLock)
>        at sun.misc.GC$Daemon.run(GC.java:100)
>        - locked <0xec804028> (a sun.misc.GC$LatencyLock)
>
> "RMI Reaper" prio=10 tid=0x005cb658 nid=0x15 in Object.wait()
> [0xf88ef000..0xf88ef9f0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec804158> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
>        - locked <0xec804158> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
>        at sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:336)
>        at java.lang.Thread.run(Thread.java:595)
>
> "Timer-0" daemon prio=10 tid=0x0044d438 nid=0x14 in Object.wait()
> [0xf89bf000..0xf89bfa70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec804250> (a java.util.TaskQueue)
>        at java.lang.Object.wait(Object.java:474)
>        at java.util.TimerThread.mainLoop(Timer.java:483)
>        - locked <0xec804250> (a java.util.TaskQueue)
>        at java.util.TimerThread.run(Timer.java:462)
>
> "RMI TCP Accept-0" daemon prio=10 tid=0x0044b5c0 nid=0x13 runnable
> [0xf89ef000..0xf89ef8f0]
>        at java.net.PlainSocketImpl.socketAccept(Native Method)
>        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
>        - locked <0xec8044e0> (a java.net.SocksSocketImpl)
>        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
>        at java.net.ServerSocket.accept(ServerSocket.java:421)
>        at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:340)
>        at java.lang.Thread.run(Thread.java:595)
>
> "Low Memory Detector" daemon prio=10 tid=0x0015e680 nid=0xd runnable
> [0x00000000..0x00000000]
>
> "CompilerThread1" daemon prio=10 tid=0x0015cdc0 nid=0xc waiting on
> condition [0x00000000..0xf8a7ea7c]
>
> "CompilerThread0" daemon prio=10 tid=0x0015bf48 nid=0xb waiting on
> condition [0x00000000..0xf8b7e8b4]
>
> "AdapterThread" daemon prio=10 tid=0x0015b0d0 nid=0xa waiting on
> condition [0x00000000..0x00000000]
>
> "Signal Dispatcher" daemon prio=10 tid=0x0015a2c0 nid=0x9 waiting on
> condition [0x00000000..0x00000000]
>
> "Finalizer" daemon prio=10 tid=0x0014dea8 nid=0x8 in Object.wait()
> [0xfe46f000..0xfe46fc70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec808220> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
>        - locked <0xec808220> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
>        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
>
> "Reference Handler" daemon prio=10 tid=0x0014d968 nid=0x7 in
> Object.wait() [0xfe52f000..0xfe52faf0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec804018> (a java.lang.ref.Reference$Lock)
>        at java.lang.Object.wait(Object.java:474)
>        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
>        - locked <0xec804018> (a java.lang.ref.Reference$Lock)
>
> "VM Thread" prio=10 tid=0x0014b280 nid=0x6 runnable
>
> "GC task thread#0 (ParallelGC)" prio=10 tid=0x000b8ff8 nid=0x2 runnable
>
> "GC task thread#1 (ParallelGC)" prio=10 tid=0x000b9a38 nid=0x3 runnable
>
> "GC task thread#2 (ParallelGC)" prio=10 tid=0x000ba478 nid=0x4 runnable
>
> "GC task thread#3 (ParallelGC)" prio=10 tid=0x000baeb8 nid=0x5 runnable
>
> "VM Periodic Task Thread" prio=10 tid=0x000b06f0 nid=0xe waiting on
> condition
> ----------------------------------------------------------------------------------------------
>
>
>  >>>>>>when first client attempt connecting, client just hangs in
> waiting server reply
> Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode):
>
> "DestroyJavaVM" prio=10 tid=0x00037530 nid=0x1 waiting on condition
> [0x00000000..0xffbfe620]
>
> "Grizzly-WorkerThread(4)" prio=10 tid=0x00a9e780 nid=0x24 runnable
> [0xe80af000..0xe80afa70]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xec941de8> (a sun.nio.ch.Util$1)
>        - locked <0xec941dd8> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xec941c00> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(2)" daemon prio=10 tid=0x009e4d48 nid=0x23
> runnable [0xe80df000..0xe80df8f0]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xec932f10> (a sun.nio.ch.Util$1)
>        - locked <0xec932f00> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xec932e20> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(3)" daemon prio=10 tid=0x00a2ec48 nid=0x22
> runnable [0xe810f000..0xe810f970]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xec95ccf0> (a sun.nio.ch.Util$1)
>        - locked <0xec95cce0> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xec953d68> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(0)" daemon prio=10 tid=0x00a05db0 nid=0x21
> runnable [0xe813f000..0xe813fbf0]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xec934100> (a sun.nio.ch.Util$1)
>        - locked <0xec9340f0> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xec934010> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Grizzly-WorkerThread(1)" daemon prio=10 tid=0x00a76258 nid=0x20
> runnable [0xe816f000..0xe816fc70]
>        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
>        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
>        at
> sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
>        - locked <0xec931690> (a sun.nio.ch.Util$1)
>        - locked <0xec931680> (a java.util.Collections$UnmodifiableSet)
>        - locked <0xec931548> (a sun.nio.ch.DevPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:487)
>        at
> com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:184)
>
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:129)
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:338)
>
>        at
> com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:321)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-10" daemon prio=10 tid=0x00466848 nid=0x1f in Object.wait()
> [0xe82bf000..0xe82bfaf0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec930c18> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xec930c18> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-9" daemon prio=10 tid=0x0062dd60 nid=0x1e in Object.wait()
> [0xe82ef000..0xe82efb70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec931168> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xec931168> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-8" daemon prio=10 tid=0x00ad11b0 nid=0x1d in Object.wait()
> [0xe843f000..0xe843f9f0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec940f90> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xec940f90> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-7" daemon prio=10 tid=0x0061bf30 nid=0x1c in Object.wait()
> [0xe846f000..0xe846fa70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec91eb30> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xec91eb30> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.ReadController.start(ReadController.java:120)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>
>        at java.lang.Thread.run(Thread.java:595)
>
> "Thread-6" prio=10 tid=0x00a75bb8 nid=0x1b in Object.wait()
> [0xe86ef000..0xe86ef8f0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec91d5e8> (a
> java.util.concurrent.atomic.AtomicInteger)
>        at
> com.sun.grizzly.Controller.waitUntilSeletorHandlersStop(Controller.java:1012)
>
>        - locked <0xec91d5e8> (a java.util.concurrent.atomic.AtomicInteger)
>        at com.sun.grizzly.Controller.start(Controller.java:764)
>        at com.sun.grizzly.Controller.run(Controller.java:634)
>        at java.lang.Thread.run(Thread.java:595)
>
> "GC Daemon" daemon prio=2 tid=0x00394400 nid=0x16 in Object.wait()
> [0xf88bf000..0xf88bfb70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec8038f0> (a sun.misc.GC$LatencyLock)
>        at sun.misc.GC$Daemon.run(GC.java:100)
>        - locked <0xec8038f0> (a sun.misc.GC$LatencyLock)
>
> "RMI Reaper" prio=10 tid=0x005cb658 nid=0x15 in Object.wait()
> [0xf88ef000..0xf88ef9f0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec803a20> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
>        - locked <0xec803a20> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
>        at sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:336)
>        at java.lang.Thread.run(Thread.java:595)
>
> "Timer-0" daemon prio=10 tid=0x0044d438 nid=0x14 in Object.wait()
> [0xf89bf000..0xf89bfa70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec803b18> (a java.util.TaskQueue)
>        at java.lang.Object.wait(Object.java:474)
>        at java.util.TimerThread.mainLoop(Timer.java:483)
>        - locked <0xec803b18> (a java.util.TaskQueue)
>        at java.util.TimerThread.run(Timer.java:462)
>
> "RMI TCP Accept-0" daemon prio=10 tid=0x0044b5c0 nid=0x13 runnable
> [0xf89ef000..0xf89ef8f0]
>        at java.net.PlainSocketImpl.socketAccept(Native Method)
>        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
>        - locked <0xec803da8> (a java.net.SocksSocketImpl)
>        at java.net.ServerSocket.implAccept(ServerSocket.java:450)
>        at java.net.ServerSocket.accept(ServerSocket.java:421)
>        at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:340)
>        at java.lang.Thread.run(Thread.java:595)
>
> "Low Memory Detector" daemon prio=10 tid=0x0015e680 nid=0xd runnable
> [0x00000000..0x00000000]
>
> "CompilerThread1" daemon prio=10 tid=0x0015cdc0 nid=0xc waiting on
> condition [0x00000000..0xf8a7ea7c]
>
> "CompilerThread0" daemon prio=10 tid=0x0015bf48 nid=0xb waiting on
> condition [0x00000000..0xf8b7e9a4]
>
> "AdapterThread" daemon prio=10 tid=0x0015b0d0 nid=0xa waiting on
> condition [0x00000000..0x00000000]
>
> "Signal Dispatcher" daemon prio=10 tid=0x0015a2c0 nid=0x9 waiting on
> condition [0x00000000..0x00000000]
>
> "Finalizer" daemon prio=10 tid=0x0014dea8 nid=0x8 in Object.wait()
> [0xfe46f000..0xfe46fc70]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec806b10> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
>        - locked <0xec806b10> (a java.lang.ref.ReferenceQueue$Lock)
>        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
>        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
>
> "Reference Handler" daemon prio=10 tid=0x0014d968 nid=0x7 in
> Object.wait() [0xfe52f000..0xfe52faf0]
>        at java.lang.Object.wait(Native Method)
>        - waiting on <0xec8038e0> (a java.lang.ref.Reference$Lock)
>        at java.lang.Object.wait(Object.java:474)
>        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
>        - locked <0xec8038e0> (a java.lang.ref.Reference$Lock)
>
> "VM Thread" prio=10 tid=0x0014b280 nid=0x6 runnable
>
> "GC task thread#0 (ParallelGC)" prio=10 tid=0x000b8ff8 nid=0x2 runnable
>
> "GC task thread#1 (ParallelGC)" prio=10 tid=0x000b9a38 nid=0x3 runnable
>
> "GC task thread#2 (ParallelGC)" prio=10 tid=0x000ba478 nid=0x4 runnable
>
> "GC task thread#3 (ParallelGC)" prio=10 tid=0x000baeb8 nid=0x5 runnable
>
> "VM Periodic Task Thread" prio=10 tid=0x000b06f0 nid=0xe waiting on
> condition
> ----------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

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


GrizzlyWebServerDeployer - Error Could not deploy war due to ServetletContext

by Shawn_Pan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear grizzly developers:

I have a similar problem when using GrizzlyWebServerDeployer to deploy a WAR that works fine in both Tomcat and Glassfish. GrizzlyWebServerDeployer throws the following error:
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
...

This looks like a problem that the Deployer does not deal with the web.xml correctly, because 'applicationContext.xml' is in the WAR but at a different location that is specified in the web.xml

I am using GrizzlyWebServerDeployer 1.9.18-e.

The WAR that I used for this experiment is downloaded from here:
http://www.ja-sig.org/downloads/cas/cas-server-3.3-RC3-release.zip
After unzip it, the WAR is under the folder \cas-server-3.3-RC3\modules\

Any help would be thanked whole heatedly :)

Regards, Shawn