Atmosphere Comet NIO not working in jboss-4.2.3.GA

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Atmosphere Comet NIO not working in jboss-4.2.3.GA

abeytom
Hi

I tried to deploy the atmosphere sample application(https://www.dev.java.net/svn/atmosphere/trunk/atmosphere/samples/chat) 'atmosphere\samples\chat' in jboss-4.2.3.GA, but its failing to detect comet. I'm getting the following WARNING.


19:35:24,728 ERROR [STDERR] May 11, 2009 7:35:24 PM org.atmosphere.cpr.AtmosphereServlet doPost
WARNING: Tomcat failed to detect this is a Comet application because context.xml is missing or the Http11NioProtocol Connector is not enabled.
Enable it or if enabled add the following content under your META-INF/context.xml of your war file.
<Context>       <Loader delegate="true"/>       </Context>
19:35:24,728 ERROR [STDERR] May 11, 2009 7:35:24 PM org.atmosphere.cpr.AtmosphereServlet doPost
WARNING: Using the BlockingIOCometSupport.

I have the context.xml in META-INF and I have modified the connector in 'jboss-web.deployer\server.xml' as


 <Connector port="8080" address="0.0.0.0"    
         maxThreads="250" maxHttpHeaderSize="8192"
         emptySessionPath="true" protocol="org.apache.coyote.http11.Http11NioProtocol"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true" />
         


The version of 'atmosphere-portable-runtime' which i'm using is '0.2-SNAPSHOT'.

Please find the attached war file, and the jboss startup logs.


I also tried with jboss-5.0.1.GA but its not detecting the container, throwing some NPE.
I was able to deploy the same war and same server.xml configuration in apache-tomcat-6.0.18 and it detected comet.

Am I missing some configuration? Kindly look into this.

=====Attachments=======

War File   : atmosphere-chat.war
Jboss Log : server.log

Thanks,
Abey Tom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

Jeanfrancois Arcand


abeytom wrote:

> Hi
>
> I tried to deploy the atmosphere sample
> application(https://www.dev.java.net/svn/atmosphere/trunk/atmosphere/samples/chat)
> 'atmosphere\samples\chat' in jboss-4.2.3.GA, but its failing to detect
> comet. I'm getting the following WARNING.
>
>
> 19:35:24,728 ERROR [STDERR] May 11, 2009 7:35:24 PM
> org.atmosphere.cpr.AtmosphereServlet doPost
> WARNING: Tomcat failed to detect this is a Comet application because
> context.xml is missing or the Http11NioProtocol Connector is not enabled.
> Enable it or if enabled add the following content under your
> META-INF/context.xml of your war file.
> <Context>       <Loader delegate="true"/>       </Context>
> 19:35:24,728 ERROR [STDERR] May 11, 2009 7:35:24 PM
> org.atmosphere.cpr.AtmosphereServlet doPost
> WARNING: Using the BlockingIOCometSupport.
>
> I have the context.xml in META-INF and I have modified the connector in
> 'jboss-web.deployer\server.xml' as
>
>
>  <Connector port="8080" address="0.0.0.0"    
>          maxThreads="250" maxHttpHeaderSize="8192"
>          emptySessionPath="true"
> protocol="org.apache.coyote.http11.Http11NioProtocol"
>          enableLookups="false" redirectPort="8443" acceptCount="100"
>          connectionTimeout="20000" disableUploadTimeout="true" />
>
>
> The version of 'atmosphere-portable-runtime' which i'm using is
> '0.2-SNAPSHOT'.
>
> Please find the attached war file, and the jboss startup logs.
>
>
> I also tried with jboss-5.0.1.GA but its not detecting the container,
> throwing some NPE.
> I was able to deploy the same war and same server.xml configuration in
> apache-tomcat-6.0.18 and it detected comet.
>
> Am I missing some configuration? Kindly look into this.


Ok let me install JBoss. I was under the impression that if it worked
with Tomcat it would work out of the box with JBoss...looks like not.

Thanks!

-- Jeanfrancois

>
> =====Attachments=======
>
> War File   :  http://n2.nabble.com/file/n2863401/atmosphere-chat.war
> atmosphere-chat.war
> Jboss Log :  http://n2.nabble.com/file/n2863401/server.log server.log
>
> Thanks,
> Abey Tom
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

Jeanfrancois Arcand
Salut,

mainly, put your context.xml file under WEB-INF instead of META-INF and
it will works. See:



but now it seems Comet using the Http11NioConnector cause issue:

> 16:23:53,061 ERROR [[AtmosphereServlet]] Servlet.service() for servlet AtmosphereServlet threw exception
> java.lang.ClassCastException: org.jboss.web.tomcat.filters.ReplyHeaderFilter cannot be cast to org.apache.catalina.CometFilter
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(ApplicationFilterChain.java:398)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(ApplicationFilterChain.java:363)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:887)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:696)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2008)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)

It seems Comet on JBoss is bogus:

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4106554#4106554

In any case using JBossWeb instead if the Http11NioConnector should fix
the issue.

I will go ahead and duplicate the context.xml location so it works out
of the bix with JBoss.

A+

-- Jeanfrancois


Jeanfrancois Arcand wrote:

>
>
> abeytom wrote:
>> Hi
>> I tried to deploy the atmosphere sample
>> application(https://www.dev.java.net/svn/atmosphere/trunk/atmosphere/samples/chat)
>>
>> 'atmosphere\samples\chat' in jboss-4.2.3.GA, but its failing to detect
>> comet. I'm getting the following WARNING.
>>
>>
>> 19:35:24,728 ERROR [STDERR] May 11, 2009 7:35:24 PM
>> org.atmosphere.cpr.AtmosphereServlet doPost
>> WARNING: Tomcat failed to detect this is a Comet application because
>> context.xml is missing or the Http11NioProtocol Connector is not enabled.
>> Enable it or if enabled add the following content under your
>> META-INF/context.xml of your war file.
>> <Context>       <Loader delegate="true"/>       </Context>
>> 19:35:24,728 ERROR [STDERR] May 11, 2009 7:35:24 PM
>> org.atmosphere.cpr.AtmosphereServlet doPost
>> WARNING: Using the BlockingIOCometSupport.
>>
>> I have the context.xml in META-INF and I have modified the connector in
>> 'jboss-web.deployer\server.xml' as
>>
>>
>>  <Connector port="8080" address="0.0.0.0"             maxThreads="250"
>> maxHttpHeaderSize="8192"
>>          emptySessionPath="true"
>> protocol="org.apache.coyote.http11.Http11NioProtocol"
>>          enableLookups="false" redirectPort="8443" acceptCount="100"
>>          connectionTimeout="20000" disableUploadTimeout="true" />
>>    
>> The version of 'atmosphere-portable-runtime' which i'm using is
>> '0.2-SNAPSHOT'.
>>
>> Please find the attached war file, and the jboss startup logs.
>>
>>
>> I also tried with jboss-5.0.1.GA but its not detecting the container,
>> throwing some NPE. I was able to deploy the same war and same
>> server.xml configuration in
>> apache-tomcat-6.0.18 and it detected comet.
>>
>> Am I missing some configuration? Kindly look into this.
>
>
> Ok let me install JBoss. I was under the impression that if it worked
> with Tomcat it would work out of the box with JBoss...looks like not.
>
> Thanks!
>
> -- Jeanfrancois
>
>>
>> =====Attachments=======
>>
>> War File   :  http://n2.nabble.com/file/n2863401/atmosphere-chat.war
>> atmosphere-chat.war Jboss Log :  
>> http://n2.nabble.com/file/n2863401/server.log server.log
>> Thanks,
>> Abey Tom
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

abeytom
Salut,

> It seems Comet on JBoss is bogus:
>
> http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4106554#4106554

So as per your above comment I assume that the atmosphere comet NIO application will not work in any versions of jboss (4.x, 5.x), is that right?

> In any case using JBossWeb instead if the Http11NioConnector should fix
> the issue.
Because i tried to use jboss-web-2.1.2.GA standalone server with the connector protocol "org.apache.coyote.http11.Http11AprProtocol" but I still get the warning
 'WARNING: Using the BlockingIOCometSupport'.

>I will go ahead and duplicate the context.xml location so it works out
>of the bix with JBoss.

In WEB-INF its detecting the context.xml(4.x, 5.x).

Thanks,
Abey Tom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

Jeanfrancois Arcand
Salut,

abeytom wrote:

> Salut,
>
>> It seems Comet on JBoss is bogus:
>>
>> http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4106554#4106554
>
> So as per your above comment I assume that the atmosphere comet NIO
> application will not work in any versions of jboss (4.x, 5.x), is that
> right?
>

No it will works, but you need to use the JBossWeb extension (APR
Connector).

>> In any case using JBossWeb instead if the Http11NioConnector should fix
>> the issue.
> Because i tried to use jboss-web-2.1.2.GA standalone server with the
> connector protocol "org.apache.coyote.http11.Http11AprProtocol" but I still
> get the warning
>  'WARNING: Using the BlockingIOCometSupport'.
>
>> I will go ahead and duplicate the context.xml location so it works out
>> of the bix with JBoss.
>
> In WEB-INF its detecting the context.xml(4.x, 5.x).

Yes. I've updated the workspace.

Thanks!

-- Jeanfrancois


>
> Thanks,
> Abey Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

abeytom
Salut,

Jeanfrancois Arcand wrote:
Salut,


>No it will works, but you need to use the JBossWeb extension (APR
>Connector).


Is "org.apache.coyote.http11.Http11AprProtocol" the APR Connector ?.
I used tha above one but I got the WARNING,


May 12, 2009 11:33:13 AM org.atmosphere.cpr.AtmosphereServlet doPost
WARNING: Tomcat failed to detect this is a Comet application because context.xml is missing or the Http11NioProtocol Connector is not enabled.
Enable it or if enabled add the following content under your META-INF/context.xml of your war file.
<Context>        <Loader delegate="true"/>        </Context>


I used jboss-web-2.1.2.GA standalone server and my conf is

<Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol"
               connectionTimeout="20000" redirectPort="8443" />


Is this the correct Configuration ???

PFA the attached Logs.catalina.2009-05-12.log 

Thanks,
Tom



>> In any case using JBossWeb instead if the Http11NioConnector should fix
>> the issue.
> Because i tried to use jboss-web-2.1.2.GA standalone server with the
> connector protocol "org.apache.coyote.http11.Http11AprProtocol" but I still
> get the warning
>  'WARNING: Using the BlockingIOCometSupport'.
>
>> I will go ahead and duplicate the context.xml location so it works out
>> of the bix with JBoss.
>
> In WEB-INF its detecting the context.xml(4.x, 5.x).
>
>Yes. I've updated the workspace.
>
>Thanks!
>
>-- Jeanfrancois


>
> Thanks,
> Abey Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
For additional commands, e-mail: users-help@atmosphere.dev.java.net



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

Jeanfrancois Arcand
Salut,

abeytom wrote:

> Salut,
>
> Jeanfrancois Arcand wrote:
> Salut,
>
>
>> No it will works, but you need to use the JBossWeb extension (APR
>> Connector).
>
>
> Is "org.apache.coyote.http11.Http11AprProtocol" the APR Connector ?.

Yes

> I used tha above one but I got the WARNING,
>
>
> May 12, 2009 11:33:13 AM org.atmosphere.cpr.AtmosphereServlet doPost
> WARNING: Tomcat failed to detect this is a Comet application because
> context.xml is missing or the Http11NioProtocol Connector is not enabled.
> Enable it or if enabled add the following content under your
> META-INF/context.xml of your war file.
> <Context> <Loader delegate="true"/> </Context>
>
>
> I used jboss-web-2.1.2.GA standalone server and my conf is
>
> <Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol"
>                connectionTimeout="20000" redirectPort="8443" />
>
>
> Is this the correct Configuration ???

Yes. Have you put your context.xml under WEB-INF/ ? Let me try that.

A+

-- Jeanfrancois

>
> PFA the attached Logs.
> http://n2.nabble.com/file/n2870332/catalina.2009-05-12.log
> catalina.2009-05-12.log  
>
> Thanks,
> Tom
>
>
>
>>> In any case using JBossWeb instead if the Http11NioConnector should fix
>>> the issue.
>> Because i tried to use jboss-web-2.1.2.GA standalone server with the
>> connector protocol "org.apache.coyote.http11.Http11AprProtocol" but I
>> still
>> get the warning
>>  'WARNING: Using the BlockingIOCometSupport'.
>>
>>> I will go ahead and duplicate the context.xml location so it works out
>>> of the bix with JBoss.
>> In WEB-INF its detecting the context.xml(4.x, 5.x).
>>
>> Yes. I've updated the workspace.
>>
>> Thanks!
>>
>> -- Jeanfrancois
>
>
>> Thanks,
>> Abey Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

abeytom
Salut,

> Have you put your context.xml under WEB-INF/ ? Let me try that.

Yes I have it in both the places WEB-INF and META-INF.
PFA  war file.atmosphere-chat.war


Thank You
Abey


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

Jeanfrancois Arcand
Salut,

thanks for the information. I've filled

https://atmosphere.dev.java.net/issues/show_bug.cgi?id=7

for AtmosphereEvent leaks and fixed it. I'm attaching the atmosphere-cpr
which contains the fix.

Thanks!

-- Jeanfrancois

abeytom wrote:

> Salut,
>
>> Have you put your context.xml under WEB-INF/ ? Let me try that.
>
> Yes I have it in both the places WEB-INF and META-INF.
> PFA  war file. http://n2.nabble.com/file/n2870621/atmosphere-chat.war
> atmosphere-chat.war
>
>
> Thank You
> Abey
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

atmosphere-portable-runtime-0.2-SNAPSHOT.jar (90K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Atmosphere Comet NIO not working in jboss-4.2.3.GA

abeytom
>Jeanfrancois Arcand wrote:
>Salut,
>
>thanks for the information. I've filled
>
>https://atmosphere.dev.java.net/issues/show_bug.cgi?id=7
>
>for AtmosphereEvent leaks and fixed it. I'm attaching the atmosphere-cpr
>which contains the fix.
>
>Thanks!
>
>-- Jeanfrancois




Salut,

I think you posted this in the wrong topic..... We will continue this discussion in the other topic.
Thanks for the fix...
Abey Tom



abeytom wrote:
> Salut,
>
>> Have you put your context.xml under WEB-INF/ ? Let me try that.
>
> Yes I have it in both the places WEB-INF and META-INF.
> PFA  war file. http://n2.nabble.com/file/n2870621/atmosphere-chat.war
> atmosphere-chat.war
>
>
> Thank You
> Abey
>
>
>

 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
For additional commands, e-mail: users-help@atmosphere.dev.java.net

Loading...