Running on JBoss 5

22 messages Options
Embed this post
Permalink
1 2
Søren Hilmer

Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Hi

I tried to deploy a the application described in http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html
on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use Jboss RESTeasy framework instead of Jersey.

But i keep getting:
09:17:37,582 ERROR [[/aasevent]] Error configuring application listener of class org.jboss.web.tomcat.security.SecurityFlushSessionListener
java.lang.ClassNotFoundException: org.jboss.web.tomcat.security.SecurityFlushSessionListener
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)

Followed by CNFE's on
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
com.sun.faces.application.WebappLifecycleListener

Have anyone tried Atmosphere on this setup? I can see some succes report on jbossweb 2.1.4, but is that standalone or within jboss AS?
This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be an issue ( I do not believe so but...)

Best
  Soren
Jeanfrancois Arcand

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Salut,

Søren Hilmer wrote:

> Hi
>
> I tried to deploy a the application described in
> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html
> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use Jboss
> RESTeasy framework instead of Jersey.
>
> But i keep getting:
> 09:17:37,582 ERROR [[/aasevent]] Error configuring application listener
> of class org.jboss.web.tomcat.security.SecurityFlushSessionListener
> java.lang.ClassNotFoundException:
> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>    at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>
>

So you are trying RestEasy? Try to remove the atmosphere-compat.jar
under WEB-INF/lib and also all context.xml (which turn delegation to
false). I think that might help.

Can you share your code?


> Followed by CNFE's on
> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
> com.sun.faces.application.WebappLifecycleListener
>
> Have anyone tried Atmosphere on this setup? I can see some succes report
> on jbossweb 2.1.4, but is that standalone or within jboss AS?
> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be an
> issue ( I do not believe so but...)

I doubt too.

A+

-- Jeanfrancois


>
> Best
>   Soren

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

Paul Sandoz

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink

On Jun 25, 2009, at 11:24 PM, Jeanfrancois Arcand wrote:

> Salut,
>
> Søren Hilmer wrote:
>> Hi
>> I tried to deploy a the application described in http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html
>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use  
>> Jboss RESTeasy framework instead of Jersey.
>> But i keep getting:
>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application  
>> listener of class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>> java.lang.ClassNotFoundException: org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>   at  
>> org
>> .apache
>> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>> 1365)
>
> So you are trying RestEasy? Try to remove the atmosphere-compat.jar  
> under WEB-INF/lib and also all context.xml (which turn delegation to  
> false). I think that might help.
>

BTW the high level support is using Jersey specific features, so as  
currently implemented one cannot use another JAX-RS framework and  
expect @Suspend etc to work.

Paul.

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

Søren Hilmer

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanfrancois Arcand
Jeanfrancois Arcand wrote:

> Salut,
>
> Søren Hilmer wrote:
>> Hi
>>
>> I tried to deploy a the application described in
>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>
>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>> Jboss RESTeasy framework instead of Jersey.
>>
>> But i keep getting:
>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>> listener of class
>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>> java.lang.ClassNotFoundException:
>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>    at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>
>>
>
> So you are trying RestEasy? Try to remove the atmosphere-compat.jar
> under WEB-INF/lib and also all context.xml (which turn delegation to
> false). I think that might help.

ehh, atmosphere-compat.jar is not mentioned in the example above, is
that not part of 0.3 only?
Do you recommend me to try 0.3-snapshot

Btw. I tried removing both  context.xml, but with no effect.
>
> Can you share your code?

When there is something to share, sure.
What I have done right now is to simply change the atmosphere.xml to
read like this:
    <atmosphere-handler context-root="/event"
class-name="org.atmosphere.handler.ReflectorServletProcessor">
        <!-- Define some AtmosphereHandler properties -->
       <property name="servletClass"
value="org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher"/>
    </atmosphere-handler>


To my understanding this will call RESTeasy's HttpServletDispatcher's
service method with request's enriched with AtmosphereEvent, right?

--Soren

>
>
>> Followed by CNFE's on
>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>> com.sun.faces.application.WebappLifecycleListener
>>
>> Have anyone tried Atmosphere on this setup? I can see some succes
>> report on jbossweb 2.1.4, but is that standalone or within jboss AS?
>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be
>> an issue ( I do not believe so but...)
>
> I doubt too.
>
> A+
>
> -- Jeanfrancois
>
>
>>
>> Best
>>   Soren
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


--
Søren Hilmer
Senior Software Developer
Amplex A/S
Prismet
Silkeborgvej 2, 5. sal
8000 Aarhus C
Denmark
Tel: +45 30698596
Email: [hidden email]


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

Søren Hilmer

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
In reply to this post by Paul Sandoz
Paul Sandoz wrote:

>
> On Jun 25, 2009, at 11:24 PM, Jeanfrancois Arcand wrote:
>
>> Salut,
>>
>> Søren Hilmer wrote:
>>> Hi
>>> I tried to deploy a the application described in
>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>
>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>> Jboss RESTeasy framework instead of Jersey.
>>> But i keep getting:
>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>> listener of class
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>> java.lang.ClassNotFoundException:
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>   at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>
>>
>> So you are trying RestEasy? Try to remove the atmosphere-compat.jar
>> under WEB-INF/lib and also all context.xml (which turn delegation to
>> false). I think that might help.
>>
>
> BTW the high level support is using Jersey specific features, so as
> currently implemented one cannot use another JAX-RS framework and
> expect @Suspend etc to work.
How is that tied to Jersey?
I thought that @Suspend was handled by the Atmosphere framework, please
enlighten me.

--Soren

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


--
Søren Hilmer
Senior Software Developer
Amplex A/S
Prismet
Silkeborgvej 2, 5. sal
8000 Aarhus C
Denmark
Tel: +45 30698596
Email: [hidden email]


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

Paul Sandoz

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
On Jun 26, 2009, at 9:41 AM, Søren Hilmer wrote:
>>
>> BTW the high level support is using Jersey specific features, so as  
>> currently implemented one cannot use another JAX-RS framework and  
>> expect @Suspend etc to work.
> How is that tied to Jersey?

It is using a specific feature of resource filters:

   https://jersey.dev.java.net/nonav/apidocs/1.1.0-ea/jersey/com/sun/jersey/api/container/filter/package-summary.html
   https://jersey.dev.java.net/nonav/apidocs/1.1.0-ea/jersey/com/sun/jersey/spi/container/ResourceFilter.html


>
> I thought that @Suspend was handled by the Atmosphere framework,  
> please enlighten me.
>

It is handled by Atmosphere implementing a Jersey resource filter to  
process the @Suspend annotation on resource classes and methods.

More details on the config here:

   http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html

Notice in the web.xml the following:

         <init-param>
             <param-name>com.sun.jersey.spi.container.ResourceFilters</
param-name>
             <param-value>org.atmosphere.core.AtmosphereFilter</param-
value>
         </init-param>

Paul.

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

Jeanfrancois Arcand

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
In reply to this post by Søren Hilmer
Salut,

Søren Hilmer wrote:

> Jeanfrancois Arcand wrote:
>> Salut,
>>
>> Søren Hilmer wrote:
>>> Hi
>>>
>>> I tried to deploy a the application described in
>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>
>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>> Jboss RESTeasy framework instead of Jersey.
>>>
>>> But i keep getting:
>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>> listener of class
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>> java.lang.ClassNotFoundException:
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>    at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>
>>>
>>
>> So you are trying RestEasy? Try to remove the atmosphere-compat.jar
>> under WEB-INF/lib and also all context.xml (which turn delegation to
>> false). I think that might help.
>
> ehh, atmosphere-compat.jar is not mentioned in the example above, is
> that not part of 0.3 only?
> Do you recommend me to try 0.3-snapshot

Yes, use the snapshot as I created a new compat module exactly for that
reason. The name is atmosphere-compat-0.3-SNAPSHOT.jar

>         0  06-19-09 00:35   META-INF/
>       127  06-19-09 00:35   META-INF/MANIFEST.MF
>         0  06-18-09 22:48   WEB-INF/
>         0  06-18-09 22:48   WEB-INF/classes/
>         0  06-18-09 22:48   WEB-INF/classes/org/
>         0  06-18-09 22:48   WEB-INF/classes/org/atmosphere/
>         0  06-18-09 22:48   WEB-INF/classes/org/atmosphere/samples/
>         0  06-18-09 22:48   WEB-INF/classes/org/atmosphere/samples/counter/
>         0  06-18-09 22:48   WEB-INF/lib/
>         0  06-18-09 22:48   javascripts/
>         0  06-18-09 22:48   stylesheets/
>       906  06-09-09 12:21   index.html
>       167  06-09-09 12:38   WEB-INF/context.xml
>      2891  06-18-09 22:48   WEB-INF/classes/org/atmosphere/samples/counter/CounterLongPollingAtmosphereHandler.class
>     80873  06-19-09 00:15   WEB-INF/lib/atmosphere-portable-runtime-0.3-SNAPSHOT.jar
>      9309  06-19-09 00:14   WEB-INF/lib/atmosphere-compat-0.3-SNAPSHOT.jar
>      1416  06-09-09 12:42   WEB-INF/web.xml
>     71260  06-09-09 12:21   javascripts/prototype.js
>       669  06-09-09 12:21   javascripts/counter.js
>      8149  06-09-09 12:21   javascripts/behaviour.js
>       167  06-09-09 12:38   META-INF/context.xml
>       205  06-09-09 12:46   META-INF/atmosphere.xml
>       577  06-09-09 12:21   stylesheets/styles-site.css
>         0  06-19-09 00:35   META-INF/maven/
>         0  06-19-09 00:35   META-INF/maven/org.atmosphere.samples/
>         0  06-19-09 00:35   META-INF/maven/org.atmosphere.samples/atmosphere-counter/
>      1622  06-12-09 23:00   META-INF/maven/org.atmosphere.samples/atmosphere-counter/pom.xml
>       132  06-19-09 00:35   META-INF/maven/org.atmosphere.samples/atmosphere-counter/pom.properties


>
> Btw. I tried removing both  context.xml, but with no effect.
>>
>> Can you share your code?
>
> When there is something to share, sure.
> What I have done right now is to simply change the atmosphere.xml to
> read like this:
>    <atmosphere-handler context-root="/event"
> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>        <!-- Define some AtmosphereHandler properties -->
>       <property name="servletClass"
> value="org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher"/>
>    </atmosphere-handler>
>
>
> To my understanding this will call RESTeasy's HttpServletDispatcher's
> service method with request's enriched with AtmosphereEvent, right?

Yes, the AtmosphereEvent will be available inside RESTEasy. That way you
can invoke that object anytime you want to suspend/resume/broadcast.

Thanks!

-- Jeanfrancois


>
> --Soren
>>
>>
>>> Followed by CNFE's on
>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>> com.sun.faces.application.WebappLifecycleListener
>>>
>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>> report on jbossweb 2.1.4, but is that standalone or within jboss AS?
>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be
>>> an issue ( I do not believe so but...)
>>
>> I doubt too.
>>
>> A+
>>
>> -- Jeanfrancois
>>
>>
>>>
>>> Best
>>>   Soren
>>
>> ---------------------------------------------------------------------
>> 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]

mike_mac

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
In reply to this post by Søren Hilmer

I have the same problem as below when running on Jboss 5.1, if I include the context.xml file I get classloader errors trying to load listeners, if I remove the context.xml I get a 500 returned with the following ... what am I missing ?


java.lang.IllegalStateException: JBoss failed to detect this is a Comet application because context.xml is missing.
Enable it or if enabled add the following content under your WEB-INF/context.xml of your war file.
<Context> <Loader delegate="true"/> </Context>
        org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
        org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
        org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
        org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
        org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
        org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
        org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
        org.jboss.web.deployers.WebModule.start(WebModule.java:97)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:597)
        org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
        org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
        org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
        $Proxy38.start(Unknown Source)

Søren Hilmer wrote:
Hi

I tried to deploy a the application described in
http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html
on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use Jboss
RESTeasy framework instead of Jersey.

But i keep getting:
09:17:37,582 ERROR [[/aasevent]] Error configuring application listener of
class org.jboss.web.tomcat.security.SecurityFlushSessionListener
java.lang.ClassNotFoundException:
org.jboss.web.tomcat.security.SecurityFlushSessionListener
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)


Followed by CNFE's on
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
com.sun.faces.application.WebappLifecycleListener

Have anyone tried Atmosphere on this setup? I can see some succes report on
jbossweb 2.1.4, but is that standalone or within jboss AS?
This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be an
issue ( I do not believe so but...)

Best
  Soren
Jeanfrancois Arcand

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Salut,

mike_mac wrote:
>
> I have the same problem as below when running on Jboss 5.1, if I include the
> context.xml file I get classloader errors trying to load listeners,

What kind of listeners?

  if I
> remove the context.xml I get a 500 returned with the following ... what am I
> missing ?

Can you share a test case? Send it to me privately -> jfarcand @ apache
dot org.

An ugly workaround will consist of removing the context.xml, unzip
atmosphere-compat.jar and remove the org.apache and org.jboss classes. I
can send it it to you but be aware the application will only works on
JBoss :-)

A+

-_ Jeanfrancois


>
>
> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
> application because context.xml is missing.
> Enable it or if enabled add the following content under your
> WEB-INF/context.xml of your war file.
> <Context> <Loader delegate="true"/> </Context>
>
> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>
> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>
> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> org.jboss.web.deployers.WebModule.start(WebModule.java:97)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
>
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
> org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
> org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
> $Proxy38.start(Unknown Source)
>
>
> Søren Hilmer wrote:
>> Hi
>>
>> I tried to deploy a the application described in
>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html
>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use Jboss
>> RESTeasy framework instead of Jersey.
>>
>> But i keep getting:
>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application listener of
>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>> java.lang.ClassNotFoundException:
>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>    at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>
>>
>> Followed by CNFE's on
>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>> com.sun.faces.application.WebappLifecycleListener
>>
>> Have anyone tried Atmosphere on this setup? I can see some succes report
>> on
>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be an
>> issue ( I do not believe so but...)
>>
>> Best
>>   Soren
>>
>>
>

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

Jeanfrancois Arcand

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Salut,

just replace atmosphere-compat with the attached jar, and remove
context.xml. Let me know if that help.

If that works, I may have breaks the compat jar into smaller one.

A+

-- Jeanfrancois

Jeanfrancois Arcand wrote:

> Salut,
>
> mike_mac wrote:
>>
>> I have the same problem as below when running on Jboss 5.1, if I
>> include the
>> context.xml file I get classloader errors trying to load listeners,
>
> What kind of listeners?
>
>  if I
>> remove the context.xml I get a 500 returned with the following ...
>> what am I
>> missing ?
>
> Can you share a test case? Send it to me privately -> jfarcand @ apache
> dot org.
>
> An ugly workaround will consist of removing the context.xml, unzip
> atmosphere-compat.jar and remove the org.apache and org.jboss classes. I
> can send it it to you but be aware the application will only works on
> JBoss :-)
>
> A+
>
> -_ Jeanfrancois
>
>
>>
>>
>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>> application because context.xml is missing.
>> Enable it or if enabled add the following content under your
>> WEB-INF/context.xml of your war file.
>> <Context>    <Loader delegate="true"/>    </Context>
>>
>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>
>>
>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>
>>     org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>
>>
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>
>>
>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>
>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>     java.lang.reflect.Method.invoke(Method.java:597)
>>
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>
>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>
>>     org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>     org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>
>>     $Proxy38.start(Unknown Source)
>>
>>
>> Søren Hilmer wrote:
>>> Hi
>>>
>>> I tried to deploy a the application described in
>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>
>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use Jboss
>>> RESTeasy framework instead of Jersey.
>>>
>>> But i keep getting:
>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>> listener of
>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>> java.lang.ClassNotFoundException:
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>    at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>
>>>
>>>
>>> Followed by CNFE's on
>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>> com.sun.faces.application.WebappLifecycleListener
>>>
>>> Have anyone tried Atmosphere on this setup? I can see some succes report
>>> on
>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be an
>>> issue ( I do not believe so but...)
>>>
>>> Best
>>>   Soren
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> 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]

atmosphere-compat-jbossonly.jar (5K) Download Attachment
mike_mac

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Wow ... thanks for the quick reply , but it didn't work ...

I got a class not found exception
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)


The original exceptions were

Error configuring application listener of class org.jboss.web.tomcat.security.SecurityFlushSessionListener
java.lang.ClassNotFoundException: org.jboss.web.tomcat.security.SecurityFlushSessionListener
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
        at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
        at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

also
java.lang.ClassNotFoundException: org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

I'm trying to integrate the pubsub example into my exisiting project (a war inside an ear).
I copied the pubsub class into a jar thats contained in my project.
I copied the servlet and servlet mappings from the web.xml into my web.xml and the atmosphere.xml and context.xml as is into my war.

I added the following to my web.xml

   <servlet>
        <description>AtmosphereServlet</description>
        <servlet-name>AtmosphereServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <!-- Uncomment if you want to use Servlet 3.0 Async Support
        <async-supported>true</async-supported>
        -->
        <load-on-startup>0</load-on-startup>
    </servlet>
     
    <servlet-mapping>
        <servlet-name>AtmosphereServlet</servlet-name>
        <url-pattern>/Atmosphere/*</url-pattern>
    </servlet-mapping>

atmosphere.xml

<atmosphere-handlers>
    <atmosphere-handler context-root="/*" class-name="org.atmosphere.handler.ReflectorServletProcessor">
        <property name="servletClass" value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
    </atmosphere-handler>
</atmosphere-handlers>

I have the following jars in war lib
atmosphere-annotations-0.5-SNAPSHOT.jar
atmosphere-compat-0.5-SNAPSHOT.jar
atmosphere-jersey-0.5-SNAPSHOT.jar
atmosphere-runtime-0.5-SNAPSHOT.jar
jersey-core-1.1.5-ea-v20091019.jar
jersey-server-1.1.5-ea-v20091019.jar

Let me know if you need anymore info ...

Jeanfrancois Arcand wrote:
Salut,

just replace atmosphere-compat with the attached jar, and remove
context.xml. Let me know if that help.

If that works, I may have breaks the compat jar into smaller one.

A+

-- Jeanfrancois

Jeanfrancois Arcand wrote:
> Salut,
>
> mike_mac wrote:
>>
>> I have the same problem as below when running on Jboss 5.1, if I
>> include the
>> context.xml file I get classloader errors trying to load listeners,
>
> What kind of listeners?
>
>  if I
>> remove the context.xml I get a 500 returned with the following ...
>> what am I
>> missing ?
>
> Can you share a test case? Send it to me privately -> jfarcand @ apache
> dot org.
>
> An ugly workaround will consist of removing the context.xml, unzip
> atmosphere-compat.jar and remove the org.apache and org.jboss classes. I
> can send it it to you but be aware the application will only works on
> JBoss :-)
>
> A+
>
> -_ Jeanfrancois
>
>
>>
>>
>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>> application because context.xml is missing.
>> Enable it or if enabled add the following content under your
>> WEB-INF/context.xml of your war file.
>> <Context>    <Loader delegate="true"/>    </Context>
>>
>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>
>>
>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>
>>     org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>
>>
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>
>>
>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>
>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>     java.lang.reflect.Method.invoke(Method.java:597)
>>
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>
>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>
>>     org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>     org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>
>>     $Proxy38.start(Unknown Source)
>>
>>
>> Søren Hilmer wrote:
>>> Hi
>>>
>>> I tried to deploy a the application described in
>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>
>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use Jboss
>>> RESTeasy framework instead of Jersey.
>>>
>>> But i keep getting:
>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>> listener of
>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>> java.lang.ClassNotFoundException:
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>    at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>
>>>
>>>
>>> Followed by CNFE's on
>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>> com.sun.faces.application.WebappLifecycleListener
>>>
>>> Have anyone tried Atmosphere on this setup? I can see some succes report
>>> on
>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be an
>>> issue ( I do not believe so but...)
>>>
>>> Best
>>>   Soren
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>

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

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink

FYI ... the jar you attached that said jboss only had weblogic code in it (jboss and apache code removed), is that correct ?
mike_mac wrote:
Wow ... thanks for the quick reply , but it didn't work ...

I got a class not found exception
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)


The original exceptions were

Error configuring application listener of class org.jboss.web.tomcat.security.SecurityFlushSessionListener
java.lang.ClassNotFoundException: org.jboss.web.tomcat.security.SecurityFlushSessionListener
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
        at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
        at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

also
java.lang.ClassNotFoundException: org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

I'm trying to integrate the pubsub example into my exisiting project (a war inside an ear).
I copied the pubsub class into a jar thats contained in my project.
I copied the servlet and servlet mappings from the web.xml into my web.xml and the atmosphere.xml and context.xml as is into my war.

I added the following to my web.xml

   <servlet>
        <description>AtmosphereServlet</description>
        <servlet-name>AtmosphereServlet</servlet-name>
        <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
        <!-- Uncomment if you want to use Servlet 3.0 Async Support
        <async-supported>true</async-supported>
        -->
        <load-on-startup>0</load-on-startup>
    </servlet>
     
    <servlet-mapping>
        <servlet-name>AtmosphereServlet</servlet-name>
        <url-pattern>/Atmosphere/*</url-pattern>
    </servlet-mapping>

atmosphere.xml

<atmosphere-handlers>
    <atmosphere-handler context-root="/*" class-name="org.atmosphere.handler.ReflectorServletProcessor">
        <property name="servletClass" value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
    </atmosphere-handler>
</atmosphere-handlers>

I have the following jars in war lib
atmosphere-annotations-0.5-SNAPSHOT.jar
atmosphere-compat-0.5-SNAPSHOT.jar
atmosphere-jersey-0.5-SNAPSHOT.jar
atmosphere-runtime-0.5-SNAPSHOT.jar
jersey-core-1.1.5-ea-v20091019.jar
jersey-server-1.1.5-ea-v20091019.jar

Let me know if you need anymore info ...

Jeanfrancois Arcand wrote:
Salut,

just replace atmosphere-compat with the attached jar, and remove
context.xml. Let me know if that help.

If that works, I may have breaks the compat jar into smaller one.

A+

-- Jeanfrancois

Jeanfrancois Arcand wrote:
> Salut,
>
> mike_mac wrote:
>>
>> I have the same problem as below when running on Jboss 5.1, if I
>> include the
>> context.xml file I get classloader errors trying to load listeners,
>
> What kind of listeners?
>
>  if I
>> remove the context.xml I get a 500 returned with the following ...
>> what am I
>> missing ?
>
> Can you share a test case? Send it to me privately -> jfarcand @ apache
> dot org.
>
> An ugly workaround will consist of removing the context.xml, unzip
> atmosphere-compat.jar and remove the org.apache and org.jboss classes. I
> can send it it to you but be aware the application will only works on
> JBoss :-)
>
> A+
>
> -_ Jeanfrancois
>
>
>>
>>
>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>> application because context.xml is missing.
>> Enable it or if enabled add the following content under your
>> WEB-INF/context.xml of your war file.
>> <Context>    <Loader delegate="true"/>    </Context>
>>
>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>
>>
>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>
>>     org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>
>>
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>
>>
>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>
>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>     java.lang.reflect.Method.invoke(Method.java:597)
>>
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>
>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>
>>     org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>     org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>
>>     $Proxy38.start(Unknown Source)
>>
>>
>> Søren Hilmer wrote:
>>> Hi
>>>
>>> I tried to deploy a the application described in
>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>
>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use Jboss
>>> RESTeasy framework instead of Jersey.
>>>
>>> But i keep getting:
>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>> listener of
>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>> java.lang.ClassNotFoundException:
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>    at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>
>>>
>>>
>>> Followed by CNFE's on
>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>> com.sun.faces.application.WebappLifecycleListener
>>>
>>> Have anyone tried Atmosphere on this setup? I can see some succes report
>>> on
>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be an
>>> issue ( I do not believe so but...)
>>>
>>> Best
>>>   Soren
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>

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

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
In reply to this post by mike_mac
Salut,

mike_mac wrote:
> Wow ... thanks for the quick reply =), but it didn't work ...

Hum not good.

>
> I got a class not found exception
> Caused by: java.lang.ClassNotFoundException:
> org.apache.catalina.CometProcessor
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:247)
> at
> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
> at
> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
> at
> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
> at
> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>
>
> The original exceptions were
>
> Error configuring application listener of class
> org.jboss.web.tomcat.security.SecurityFlushSessionListener
> java.lang.ClassNotFoundException:
> org.jboss.web.tomcat.security.SecurityFlushSessionListener
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
> at
> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
> at
> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
> at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
> at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
> at
> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>
> also
> java.lang.ClassNotFoundException:
> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
> java.lang.ClassNotFoundException:
> com.sun.faces.application.WebappLifecycleListener
> java.lang.ClassNotFoundException:
> org.springframework.web.context.ContextLoaderListener
>
> I'm trying to integrate the pubsub example into my exisiting project (a war
> inside an ear).

I think the context.xml content is causing this.

> I copied the pubsub class into a jar thats contained in my project.
> I copied the servlet and servlet mappings from the web.xml into my web.xml
> and the atmosphere.xml and context.xml as is into my war.

I see...the context.xml is really the issue here as it turn off
delegation (classloader), but this seems to cause issues with the
com.sun.faces.* implementation.

>
> I added the following to my web.xml
>
>    <servlet>
>         <description>AtmosphereServlet</description>
>         <servlet-name>AtmosphereServlet</servlet-name>
>         <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>         <async-supported>true</async-supported>
>         -->
>         <load-on-startup>0</load-on-startup>
>     </servlet>
>      
>     <servlet-mapping>
>         <servlet-name>AtmosphereServlet</servlet-name>
>         <url-pattern>/Atmosphere/*</url-pattern>
>     </servlet-mapping>
>
> atmosphere.xml
>
> <atmosphere-handlers>
>     <atmosphere-handler context-root="/*"
> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>         <property name="servletClass"
> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>     </atmosphere-handler>
> </atmosphere-handlers>
>
> I have the following jars in war lib
> atmosphere-annotations-0.5-SNAPSHOT.jar
> atmosphere-compat-0.5-SNAPSHOT.jar
> atmosphere-jersey-0.5-SNAPSHOT.jar
> atmosphere-runtime-0.5-SNAPSHOT.jar
> jersey-core-1.1.5-ea-v20091019.jar
> jersey-server-1.1.5-ea-v20091019.jar
>
> Let me know if you need anymore info ...

Do you think you can send me privately your war file? Just send it to
[hidden email] so I can take a look. The issue is a packaging
issue. The jar I've sent you should works better IMO as it remove all
jboss/tomcat fake classes. But you must remove the context.xml in that case.

A+ and sorry for the issues.

-- Jeanfrancois


>
>
> Jeanfrancois Arcand wrote:
>> Salut,
>>
>> just replace atmosphere-compat with the attached jar, and remove
>> context.xml. Let me know if that help.
>>
>> If that works, I may have breaks the compat jar into smaller one.
>>
>> A+
>>
>> -- Jeanfrancois
>>
>> Jeanfrancois Arcand wrote:
>>> Salut,
>>>
>>> mike_mac wrote:
>>>> I have the same problem as below when running on Jboss 5.1, if I
>>>> include the
>>>> context.xml file I get classloader errors trying to load listeners,
>>> What kind of listeners?
>>>
>>>  if I
>>>> remove the context.xml I get a 500 returned with the following ...
>>>> what am I
>>>> missing ?
>>> Can you share a test case? Send it to me privately -> jfarcand @ apache
>>> dot org.
>>>
>>> An ugly workaround will consist of removing the context.xml, unzip
>>> atmosphere-compat.jar and remove the org.apache and org.jboss classes. I
>>> can send it it to you but be aware the application will only works on
>>> JBoss :-)
>>>
>>> A+
>>>
>>> -_ Jeanfrancois
>>>
>>>
>>>>
>>>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>>>> application because context.xml is missing.
>>>> Enable it or if enabled add the following content under your
>>>> WEB-INF/context.xml of your war file.
>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>
>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>
>>>>
>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>
>>>>    
>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>
>>>>
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>
>>>>
>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>
>>>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>
>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>
>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>
>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>
>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>
>>>>     org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>    
>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>
>>>>     $Proxy38.start(Unknown Source)
>>>>
>>>>
>>>> Søren Hilmer wrote:
>>>>> Hi
>>>>>
>>>>> I tried to deploy a the application described in
>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>
>>>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>>>> Jboss
>>>>> RESTeasy framework instead of Jersey.
>>>>>
>>>>> But i keep getting:
>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>>>> listener of
>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>> java.lang.ClassNotFoundException:
>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>    at
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>
>>>>>
>>>>>
>>>>> Followed by CNFE's on
>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>
>>>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>>>> report
>>>>> on
>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be
>>>>> an
>>>>> issue ( I do not believe so but...)
>>>>>
>>>>> Best
>>>>>   Soren
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>

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

Jeanfrancois Arcand

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
In reply to this post by mike_mac


mike_mac wrote:
>
> FYI ... the jar you attached that said jboss only had weblogic code in it
> (jboss and apache code removed), is that correct ?

Yes. Mainly, it remove the fake classes needed for portability. If you
remove context.xml, it should fix the below classloading issues.

Thanks

-- Jeanfrancois


>
> mike_mac wrote:
>> Wow ... thanks for the quick reply =), but it didn't work ...
>>
>> I got a class not found exception
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.catalina.CometProcessor
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:247)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>
>>
>> The original exceptions were
>>
>> Error configuring application listener of class
>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>> java.lang.ClassNotFoundException:
>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>> at
>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
>> at
>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>> at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>> at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>> at
>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>
>> also
>> java.lang.ClassNotFoundException:
>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>> java.lang.ClassNotFoundException:
>> com.sun.faces.application.WebappLifecycleListener
>> java.lang.ClassNotFoundException:
>> org.springframework.web.context.ContextLoaderListener
>>
>> I'm trying to integrate the pubsub example into my exisiting project (a
>> war inside an ear).
>> I copied the pubsub class into a jar thats contained in my project.
>> I copied the servlet and servlet mappings from the web.xml into my web.xml
>> and the atmosphere.xml and context.xml as is into my war.
>>
>> I added the following to my web.xml
>>
>>    <servlet>
>>         <description>AtmosphereServlet</description>
>>         <servlet-name>AtmosphereServlet</servlet-name>
>>        
>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>>         <async-supported>true</async-supported>
>>         -->
>>         <load-on-startup>0</load-on-startup>
>>     </servlet>
>>      
>>     <servlet-mapping>
>>         <servlet-name>AtmosphereServlet</servlet-name>
>>         <url-pattern>/Atmosphere/*</url-pattern>
>>     </servlet-mapping>
>>
>> atmosphere.xml
>>
>> <atmosphere-handlers>
>>     <atmosphere-handler context-root="/*"
>> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>>         <property name="servletClass"
>> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>>     </atmosphere-handler>
>> </atmosphere-handlers>
>>
>> I have the following jars in war lib
>> atmosphere-annotations-0.5-SNAPSHOT.jar
>> atmosphere-compat-0.5-SNAPSHOT.jar
>> atmosphere-jersey-0.5-SNAPSHOT.jar
>> atmosphere-runtime-0.5-SNAPSHOT.jar
>> jersey-core-1.1.5-ea-v20091019.jar
>> jersey-server-1.1.5-ea-v20091019.jar
>>
>> Let me know if you need anymore info ...
>>
>>
>> Jeanfrancois Arcand wrote:
>>> Salut,
>>>
>>> just replace atmosphere-compat with the attached jar, and remove
>>> context.xml. Let me know if that help.
>>>
>>> If that works, I may have breaks the compat jar into smaller one.
>>>
>>> A+
>>>
>>> -- Jeanfrancois
>>>
>>> Jeanfrancois Arcand wrote:
>>>> Salut,
>>>>
>>>> mike_mac wrote:
>>>>> I have the same problem as below when running on Jboss 5.1, if I
>>>>> include the
>>>>> context.xml file I get classloader errors trying to load listeners,
>>>> What kind of listeners?
>>>>
>>>>  if I
>>>>> remove the context.xml I get a 500 returned with the following ...
>>>>> what am I
>>>>> missing ?
>>>> Can you share a test case? Send it to me privately -> jfarcand @ apache
>>>> dot org.
>>>>
>>>> An ugly workaround will consist of removing the context.xml, unzip
>>>> atmosphere-compat.jar and remove the org.apache and org.jboss classes. I
>>>> can send it it to you but be aware the application will only works on
>>>> JBoss :-)
>>>>
>>>> A+
>>>>
>>>> -_ Jeanfrancois
>>>>
>>>>
>>>>>
>>>>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>>>>> application because context.xml is missing.
>>>>> Enable it or if enabled add the following content under your
>>>>> WEB-INF/context.xml of your war file.
>>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>>
>>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>>
>>>>>
>>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>>
>>>>>    
>>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>>
>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>
>>>>>
>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>
>>>>>
>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>
>>>>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>
>>>>>
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>
>>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>>
>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>
>>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>>
>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>
>>>>>    
>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>>    
>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>
>>>>>     $Proxy38.start(Unknown Source)
>>>>>
>>>>>
>>>>> Søren Hilmer wrote:
>>>>>> Hi
>>>>>>
>>>>>> I tried to deploy a the application described in
>>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>>
>>>>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>>>>> Jboss
>>>>>> RESTeasy framework instead of Jersey.
>>>>>>
>>>>>> But i keep getting:
>>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>>>>> listener of
>>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>    at
>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>
>>>>>>
>>>>>>
>>>>>> Followed by CNFE's on
>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>
>>>>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>>>>> report
>>>>>> on
>>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be
>>>>>> an
>>>>>> issue ( I do not believe so but...)
>>>>>>
>>>>>> Best
>>>>>>   Soren
>>>>>>
>>>>>>
>>>> ---------------------------------------------------------------------
>>>> 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]
>>>
>>
>

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

Jeanfrancois Arcand

Classloading issue <was> Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Salut,

I've refactored our atmosphere-compat file in order to allow your
application to deploy and run without the needs of context.xml, which
seems to cause all the issues you have experienced (apology for that).

   * http://is.gd/4PST6

Mainly, just bundle the atmosphere-compat-weblogic.jar without any
context.xml file and you should be free of classloading issue. If you
can share a test case, I can take a look as well.

A+

--Jeanfrancois


Jeanfrancois Arcand wrote:

>
>
> mike_mac wrote:
>>
>> FYI ... the jar you attached that said jboss only had weblogic code in it
>> (jboss and apache code removed), is that correct ?
>
> Yes. Mainly, it remove the fake classes needed for portability. If you
> remove context.xml, it should fix the below classloading issues.
>
> Thanks
>
> -- Jeanfrancois
>
>
>>
>> mike_mac wrote:
>>> Wow ... thanks for the quick reply =), but it didn't work ...
>>>
>>> I got a class not found exception Caused by:
>>> java.lang.ClassNotFoundException:
>>> org.apache.catalina.CometProcessor
>>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>     at java.security.AccessController.doPrivileged(Native Method)
>>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>     at java.lang.Class.forName0(Native Method)
>>>     at java.lang.Class.forName(Class.java:247)
>>>     at
>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
>>>
>>>     at
>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
>>>
>>>     at
>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
>>>
>>>     at
>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
>>>
>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>
>>>
>>> The original exceptions were
>>> Error configuring application listener of class
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>> java.lang.ClassNotFoundException:
>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>     at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>
>>>     at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>>>
>>>     at
>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
>>>
>>>     at
>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>>>
>>>     at
>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
>>>
>>>     at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>>
>>>     at
>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>
>>>     at
>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>
>>>     at
>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>
>>>     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>
>>> also
>>> java.lang.ClassNotFoundException:
>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>>> java.lang.ClassNotFoundException:
>>> com.sun.faces.application.WebappLifecycleListener
>>> java.lang.ClassNotFoundException:
>>> org.springframework.web.context.ContextLoaderListener
>>>
>>> I'm trying to integrate the pubsub example into my exisiting project (a
>>> war inside an ear).
>>> I copied the pubsub class into a jar thats contained in my project.
>>> I copied the servlet and servlet mappings from the web.xml into my
>>> web.xml
>>> and the atmosphere.xml and context.xml as is into my war.
>>> I added the following to my web.xml
>>>
>>>    <servlet>
>>>         <description>AtmosphereServlet</description>
>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>        
>>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>>>         <async-supported>true</async-supported>
>>>         -->
>>>         <load-on-startup>0</load-on-startup>
>>>     </servlet>
>>>           <servlet-mapping>
>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>         <url-pattern>/Atmosphere/*</url-pattern>
>>>     </servlet-mapping>
>>>
>>> atmosphere.xml
>>>
>>> <atmosphere-handlers>
>>>     <atmosphere-handler context-root="/*"
>>> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>>>         <property name="servletClass"
>>> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>>>     </atmosphere-handler>
>>> </atmosphere-handlers>
>>>
>>> I have the following jars in war lib
>>> atmosphere-annotations-0.5-SNAPSHOT.jar
>>> atmosphere-compat-0.5-SNAPSHOT.jar
>>> atmosphere-jersey-0.5-SNAPSHOT.jar
>>> atmosphere-runtime-0.5-SNAPSHOT.jar
>>> jersey-core-1.1.5-ea-v20091019.jar
>>> jersey-server-1.1.5-ea-v20091019.jar
>>>
>>> Let me know if you need anymore info ...
>>>
>>>
>>> Jeanfrancois Arcand wrote:
>>>> Salut,
>>>>
>>>> just replace atmosphere-compat with the attached jar, and remove
>>>> context.xml. Let me know if that help.
>>>>
>>>> If that works, I may have breaks the compat jar into smaller one.
>>>>
>>>> A+
>>>>
>>>> -- Jeanfrancois
>>>>
>>>> Jeanfrancois Arcand wrote:
>>>>> Salut,
>>>>>
>>>>> mike_mac wrote:
>>>>>> I have the same problem as below when running on Jboss 5.1, if I
>>>>>> include the
>>>>>> context.xml file I get classloader errors trying to load listeners,
>>>>> What kind of listeners?
>>>>>
>>>>>  if I
>>>>>> remove the context.xml I get a 500 returned with the following ...
>>>>>> what am I
>>>>>> missing ?
>>>>> Can you share a test case? Send it to me privately -> jfarcand @
>>>>> apache dot org.
>>>>>
>>>>> An ugly workaround will consist of removing the context.xml, unzip
>>>>> atmosphere-compat.jar and remove the org.apache and org.jboss
>>>>> classes. I can send it it to you but be aware the application will
>>>>> only works on JBoss :-)
>>>>>
>>>>> A+
>>>>>
>>>>> -_ Jeanfrancois
>>>>>
>>>>>
>>>>>>
>>>>>> java.lang.IllegalStateException: JBoss failed to detect this is a
>>>>>> Comet
>>>>>> application because context.xml is missing.
>>>>>> Enable it or if enabled add the following content under your
>>>>>> WEB-INF/context.xml of your war file.
>>>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>>>
>>>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>>>
>>>>>>
>>>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>>>
>>>>>>    
>>>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>>>
>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>>
>>>>>>
>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>>
>>>>>>
>>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>>
>>>>>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>
>>>>>>
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>
>>>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>
>>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>>
>>>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>>>
>>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>>
>>>>>>    
>>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>>>    
>>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>>
>>>>>>     $Proxy38.start(Unknown Source)
>>>>>>
>>>>>>
>>>>>> Søren Hilmer wrote:
>>>>>>> Hi
>>>>>>>
>>>>>>> I tried to deploy a the application described in
>>>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>>>
>>>>>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>>>>>> Jboss
>>>>>>> RESTeasy framework instead of Jersey.
>>>>>>>
>>>>>>> But i keep getting:
>>>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>>>>>> listener of
>>>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>> java.lang.ClassNotFoundException:
>>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>    at
>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Followed by CNFE's on
>>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>>
>>>>>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>>>>>> report
>>>>>>> on
>>>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could
>>>>>>> that be
>>>>>>> an
>>>>>>> issue ( I do not believe so but...)
>>>>>>>
>>>>>>> Best
>>>>>>>   Soren
>>>>>>>
>>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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]
>>>>
>>>
>>
>
> ---------------------------------------------------------------------
> 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]

mike_mac

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanfrancois Arcand

Hi ..

   I sent this to the apache e-mail you gave but just in case I'll post here as well

Hi ...
   As requested I'v attached the example I've been trying to get working. This is simply the publish subscribe example up on svn. It actually might be working properly but maybe I'm using it incorrectly. Attached is the example with the jar you suggested (weblogic), but in that case I get the same exception as I was getting on friday with the Jboss jar you provided i.e. java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor

    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

If I include the combined jars without the context file it seems to load ok, I get the following trace ...

00:56:52,370 INFO  [TomcatDeployment] deploy, ctxPath=/atmosphere-pubsub
00:56:52,546 INFO  [Atmosphere] Sucessfully loaded org.atmosphere.handler.ReflectorServletProcessor@e06ed6 mapped to context-path /*
00:56:52,561 INFO  [Atmosphere] Using org.atmosphere.jersey.JerseyBroadcaster with a Thread Pool size of : 2
00:56:52,561 INFO  [Atmosphere] Forcing the use of the container's native Comet API implementation instead of Servlet 3.0
00:56:52,569 INFO  [Atmosphere] Atmosphere Framework running under container JBoss Web/2.1.3.GA
00:56:52,597 INFO  [ClasspathResourceConfig] Scanning for root resource and provider classes in the paths:
  C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\lib
  C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\classes
00:56:52,794 INFO  [ClasspathResourceConfig] Root resource classes found:
  class org.atmosphere.samples.pubsub.PubSub
00:56:52,794 INFO  [ClasspathResourceConfig] Provider classes found:
  class org.atmosphere.jersey.BroadcasterLookupInjector
  class org.atmosphere.jersey.AtmosphereResourceInjector
  class org.atmosphere.jersey.BroadcasterInjector
  class org.atmosphere.jersey.AtmosphereResourceConfigurator
00:56:52,926 INFO  [WebApplicationImpl] Initiating Jersey application, version 'Jersey: 1.1.5-ea-v20091019 10/19/2009 08:44 PM'
00:56:52,932 INFO  [WebApplicationImpl] Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
  class org.atmosphere.jersey.BroadcasterInjector
  class org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider
  class org.atmosphere.jersey.BroadcasterLookupInjector
  class org.atmosphere.jersey.AtmosphereResourceInjector
  class org.atmosphere.jersey.AtmosphereResourceConfigurator

But when open a browser and put the url http://localhost:8080/atmosphere-pubsub/hello

11:17:04,065 ERROR [[AtmosphereServlet]] Servlet.service() for servlet AtmosphereServlet threw exception
java.lang.IllegalStateException: JBoss failed to detect this is a Comet application because context.xml is missing.
Enable it or if enabled add the following content under your WEB-INF/context.xml of your war file.
<Context>    <Loader delegate="true"/>    </Context>
    at org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
    at org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:590)
    at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:339)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


Jeanfrancois Arcand wrote:

mike_mac wrote:
>
> FYI ... the jar you attached that said jboss only had weblogic code in it
> (jboss and apache code removed), is that correct ?

Yes. Mainly, it remove the fake classes needed for portability. If you
remove context.xml, it should fix the below classloading issues.

Thanks

-- Jeanfrancois


>
> mike_mac wrote:
>> Wow ... thanks for the quick reply =), but it didn't work ...
>>
>> I got a class not found exception
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.catalina.CometProcessor
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:247)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
>> at
>> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>
>>
>> The original exceptions were
>>
>> Error configuring application listener of class
>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>> java.lang.ClassNotFoundException:
>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>> at
>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
>> at
>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>> at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>> at
>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>> at
>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>
>> also
>> java.lang.ClassNotFoundException:
>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>> java.lang.ClassNotFoundException:
>> com.sun.faces.application.WebappLifecycleListener
>> java.lang.ClassNotFoundException:
>> org.springframework.web.context.ContextLoaderListener
>>
>> I'm trying to integrate the pubsub example into my exisiting project (a
>> war inside an ear).
>> I copied the pubsub class into a jar thats contained in my project.
>> I copied the servlet and servlet mappings from the web.xml into my web.xml
>> and the atmosphere.xml and context.xml as is into my war.
>>
>> I added the following to my web.xml
>>
>>    <servlet>
>>         <description>AtmosphereServlet</description>
>>         <servlet-name>AtmosphereServlet</servlet-name>
>>        
>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>>         <async-supported>true</async-supported>
>>         -->
>>         <load-on-startup>0</load-on-startup>
>>     </servlet>
>>      
>>     <servlet-mapping>
>>         <servlet-name>AtmosphereServlet</servlet-name>
>>         <url-pattern>/Atmosphere/*</url-pattern>
>>     </servlet-mapping>
>>
>> atmosphere.xml
>>
>> <atmosphere-handlers>
>>     <atmosphere-handler context-root="/*"
>> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>>         <property name="servletClass"
>> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>>     </atmosphere-handler>
>> </atmosphere-handlers>
>>
>> I have the following jars in war lib
>> atmosphere-annotations-0.5-SNAPSHOT.jar
>> atmosphere-compat-0.5-SNAPSHOT.jar
>> atmosphere-jersey-0.5-SNAPSHOT.jar
>> atmosphere-runtime-0.5-SNAPSHOT.jar
>> jersey-core-1.1.5-ea-v20091019.jar
>> jersey-server-1.1.5-ea-v20091019.jar
>>
>> Let me know if you need anymore info ...
>>
>>
>> Jeanfrancois Arcand wrote:
>>> Salut,
>>>
>>> just replace atmosphere-compat with the attached jar, and remove
>>> context.xml. Let me know if that help.
>>>
>>> If that works, I may have breaks the compat jar into smaller one.
>>>
>>> A+
>>>
>>> -- Jeanfrancois
>>>
>>> Jeanfrancois Arcand wrote:
>>>> Salut,
>>>>
>>>> mike_mac wrote:
>>>>> I have the same problem as below when running on Jboss 5.1, if I
>>>>> include the
>>>>> context.xml file I get classloader errors trying to load listeners,
>>>> What kind of listeners?
>>>>
>>>>  if I
>>>>> remove the context.xml I get a 500 returned with the following ...
>>>>> what am I
>>>>> missing ?
>>>> Can you share a test case? Send it to me privately -> jfarcand @ apache
>>>> dot org.
>>>>
>>>> An ugly workaround will consist of removing the context.xml, unzip
>>>> atmosphere-compat.jar and remove the org.apache and org.jboss classes. I
>>>> can send it it to you but be aware the application will only works on
>>>> JBoss :-)
>>>>
>>>> A+
>>>>
>>>> -_ Jeanfrancois
>>>>
>>>>
>>>>>
>>>>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>>>>> application because context.xml is missing.
>>>>> Enable it or if enabled add the following content under your
>>>>> WEB-INF/context.xml of your war file.
>>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>>
>>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>>
>>>>>
>>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>>
>>>>>    
>>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>>
>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>
>>>>>
>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>
>>>>>
>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>
>>>>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>
>>>>>
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>
>>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>>
>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>
>>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>>
>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>
>>>>>    
>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>>    
>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>
>>>>>     $Proxy38.start(Unknown Source)
>>>>>
>>>>>
>>>>> Søren Hilmer wrote:
>>>>>> Hi
>>>>>>
>>>>>> I tried to deploy a the application described in
>>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>>
>>>>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>>>>> Jboss
>>>>>> RESTeasy framework instead of Jersey.
>>>>>>
>>>>>> But i keep getting:
>>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>>>>> listener of
>>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>    at
>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>
>>>>>>
>>>>>>
>>>>>> Followed by CNFE's on
>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>
>>>>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>>>>> report
>>>>>> on
>>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that be
>>>>>> an
>>>>>> issue ( I do not believe so but...)
>>>>>>
>>>>>> Best
>>>>>>   Soren
>>>>>>
>>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
>>>> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>>>>
>>>  
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
>>> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>>>
>>
>

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

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Salut,

mike_mac wrote:
>
> Hi ..
>
>    I sent this to the apache e-mail you gave but just in case I'll post here
> as well

Thanks I will work on it. The idea is to not bundle the
atmosphere-compat-jboss.jar classes, but keep -weblogic and -tomcat. Let
me try...

A+

-- Jeanfrancois


>
> Hi ...
>    As requested I'v attached the example I've been trying to get working.
> This is simply the publish subscribe example up on svn. It actually might be
> working properly but maybe I'm using it incorrectly. Attached is the example
> with the jar you suggested (weblogic), but in that case I get the same
> exception as I was getting on friday with the Jboss jar you provided i.e.
> java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor
>
>     at
> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
>     at
> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
>     at
> org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
>     at
> org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
>     at
> org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
>     at
> org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>     at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>
> If I include the combined jars without the context file it seems to load ok,
> I get the following trace ...
>
> 00:56:52,370 INFO  [TomcatDeployment] deploy, ctxPath=/atmosphere-pubsub
> 00:56:52,546 INFO  [Atmosphere] Sucessfully loaded
> org.atmosphere.handler.ReflectorServletProcessor@e06ed6 mapped to
> context-path /*
> 00:56:52,561 INFO  [Atmosphere] Using
> org.atmosphere.jersey.JerseyBroadcaster with a Thread Pool size of : 2
> 00:56:52,561 INFO  [Atmosphere] Forcing the use of the container's native
> Comet API implementation instead of Servlet 3.0
> 00:56:52,569 INFO  [Atmosphere] Atmosphere Framework running under container
> JBoss Web/2.1.3.GA
> 00:56:52,597 INFO  [ClasspathResourceConfig] Scanning for root resource and
> provider classes in the paths:
>  
> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\lib
>  
> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\classes
> 00:56:52,794 INFO  [ClasspathResourceConfig] Root resource classes found:
>   class org.atmosphere.samples.pubsub.PubSub
> 00:56:52,794 INFO  [ClasspathResourceConfig] Provider classes found:
>   class org.atmosphere.jersey.BroadcasterLookupInjector
>   class org.atmosphere.jersey.AtmosphereResourceInjector
>   class org.atmosphere.jersey.BroadcasterInjector
>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
> 00:56:52,926 INFO  [WebApplicationImpl] Initiating Jersey application,
> version 'Jersey: 1.1.5-ea-v20091019 10/19/2009 08:44 PM'
> 00:56:52,932 INFO  [WebApplicationImpl] Adding the following classes
> declared in META-INF/services/jersey-server-components to the resource
> configuration:
>   class org.atmosphere.jersey.BroadcasterInjector
>   class org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider
>   class org.atmosphere.jersey.BroadcasterLookupInjector
>   class org.atmosphere.jersey.AtmosphereResourceInjector
>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
>
> But when open a browser and put the url
> http://localhost:8080/atmosphere-pubsub/hello
>
> 11:17:04,065 ERROR [[AtmosphereServlet]] Servlet.service() for servlet
> AtmosphereServlet threw exception
> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
> application because context.xml is missing.
> Enable it or if enabled add the following content under your
> WEB-INF/context.xml of your war file.
> <Context>    <Loader delegate="true"/>    </Context>
>     at
> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>     at
> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:590)
>     at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:339)
>     at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
>     at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
>     at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
>     at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
>     at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>     at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>     at
> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>
>
> Jeanfrancois Arcand wrote:
>>
>>
>> mike_mac wrote:
>>> FYI ... the jar you attached that said jboss only had weblogic code in it
>>> (jboss and apache code removed), is that correct ?
>> Yes. Mainly, it remove the fake classes needed for portability. If you
>> remove context.xml, it should fix the below classloading issues.
>>
>> Thanks
>>
>> -- Jeanfrancois
>>
>>
>>> mike_mac wrote:
>>>> Wow ... thanks for the quick reply =), but it didn't work ...
>>>>
>>>> I got a class not found exception
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.apache.catalina.CometProcessor
>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>> at java.lang.Class.forName0(Native Method)
>>>> at java.lang.Class.forName(Class.java:247)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>
>>>>
>>>> The original exceptions were
>>>>
>>>> Error configuring application listener of class
>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>> java.lang.ClassNotFoundException:
>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>> at
>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>> at
>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>>>> at
>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
>>>> at
>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>>>> at
>>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
>>>> at
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>>> at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>> at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>> at
>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>
>>>> also
>>>> java.lang.ClassNotFoundException:
>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>>>> java.lang.ClassNotFoundException:
>>>> com.sun.faces.application.WebappLifecycleListener
>>>> java.lang.ClassNotFoundException:
>>>> org.springframework.web.context.ContextLoaderListener
>>>>
>>>> I'm trying to integrate the pubsub example into my exisiting project (a
>>>> war inside an ear).
>>>> I copied the pubsub class into a jar thats contained in my project.
>>>> I copied the servlet and servlet mappings from the web.xml into my
>>>> web.xml
>>>> and the atmosphere.xml and context.xml as is into my war.
>>>>
>>>> I added the following to my web.xml
>>>>
>>>>    <servlet>
>>>>         <description>AtmosphereServlet</description>
>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>        
>>>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>>>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>>>>         <async-supported>true</async-supported>
>>>>         -->
>>>>         <load-on-startup>0</load-on-startup>
>>>>     </servlet>
>>>>      
>>>>     <servlet-mapping>
>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>         <url-pattern>/Atmosphere/*</url-pattern>
>>>>     </servlet-mapping>
>>>>
>>>> atmosphere.xml
>>>>
>>>> <atmosphere-handlers>
>>>>     <atmosphere-handler context-root="/*"
>>>> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>>>>         <property name="servletClass"
>>>> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>>>>     </atmosphere-handler>
>>>> </atmosphere-handlers>
>>>>
>>>> I have the following jars in war lib
>>>> atmosphere-annotations-0.5-SNAPSHOT.jar
>>>> atmosphere-compat-0.5-SNAPSHOT.jar
>>>> atmosphere-jersey-0.5-SNAPSHOT.jar
>>>> atmosphere-runtime-0.5-SNAPSHOT.jar
>>>> jersey-core-1.1.5-ea-v20091019.jar
>>>> jersey-server-1.1.5-ea-v20091019.jar
>>>>
>>>> Let me know if you need anymore info ...
>>>>
>>>>
>>>> Jeanfrancois Arcand wrote:
>>>>> Salut,
>>>>>
>>>>> just replace atmosphere-compat with the attached jar, and remove
>>>>> context.xml. Let me know if that help.
>>>>>
>>>>> If that works, I may have breaks the compat jar into smaller one.
>>>>>
>>>>> A+
>>>>>
>>>>> -- Jeanfrancois
>>>>>
>>>>> Jeanfrancois Arcand wrote:
>>>>>> Salut,
>>>>>>
>>>>>> mike_mac wrote:
>>>>>>> I have the same problem as below when running on Jboss 5.1, if I
>>>>>>> include the
>>>>>>> context.xml file I get classloader errors trying to load listeners,
>>>>>> What kind of listeners?
>>>>>>
>>>>>>  if I
>>>>>>> remove the context.xml I get a 500 returned with the following ...
>>>>>>> what am I
>>>>>>> missing ?
>>>>>> Can you share a test case? Send it to me privately -> jfarcand @
>>>>>> apache
>>>>>> dot org.
>>>>>>
>>>>>> An ugly workaround will consist of removing the context.xml, unzip
>>>>>> atmosphere-compat.jar and remove the org.apache and org.jboss classes.
>>>>>> I
>>>>>> can send it it to you but be aware the application will only works on
>>>>>> JBoss :-)
>>>>>>
>>>>>> A+
>>>>>>
>>>>>> -_ Jeanfrancois
>>>>>>
>>>>>>
>>>>>>> java.lang.IllegalStateException: JBoss failed to detect this is a
>>>>>>> Comet
>>>>>>> application because context.xml is missing.
>>>>>>> Enable it or if enabled add the following content under your
>>>>>>> WEB-INF/context.xml of your war file.
>>>>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>>>>
>>>>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>>>>
>>>>>>>
>>>>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>>>>
>>>>>>>    
>>>>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>>>>
>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>>>
>>>>>>>
>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>>>
>>>>>>>
>>>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>>>
>>>>>>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>>
>>>>>>>
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>
>>>>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>
>>>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>>>
>>>>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>>>>
>>>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>>>
>>>>>>>    
>>>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>>>>    
>>>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>>>
>>>>>>>     $Proxy38.start(Unknown Source)
>>>>>>>
>>>>>>>
>>>>>>> Søren Hilmer wrote:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> I tried to deploy a the application described in
>>>>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>>>>
>>>>>>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>>>>>>> Jboss
>>>>>>>> RESTeasy framework instead of Jersey.
>>>>>>>>
>>>>>>>> But i keep getting:
>>>>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>>>>>>> listener of
>>>>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>>    at
>>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Followed by CNFE's on
>>>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>>>
>>>>>>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>>>>>>> report
>>>>>>>> on
>>>>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that
>>>>>>>> be
>>>>>>>> an
>>>>>>>> issue ( I do not believe so but...)
>>>>>>>>
>>>>>>>> Best
>>>>>>>>   Soren
>>>>>>>>
>>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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]
>>>>>
>> ---------------------------------------------------------------------
>> 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]

mike_mac

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink

Hey ... yeah ... it wasn't clear from your previous posts that the tomcat jar was needed as well as the weblogic, when I include both of them it starts up correctly, but I still get the " ... failed to detect this is a comet appilcation ..." when I try to invoke the following from a browser ...
 http://localhost:8080/atmosphere-pubsub/hello

Judging by the code I presume this should have me subscribing to topic "hello", am I testing it correctly ?

Thanks,
Mike.

Jeanfrancois Arcand wrote:
Salut,

mike_mac wrote:
>
> Hi ..
>
>    I sent this to the apache e-mail you gave but just in case I'll post here
> as well

Thanks I will work on it. The idea is to not bundle the
atmosphere-compat-jboss.jar classes, but keep -weblogic and -tomcat. Let
me try...

A+

-- Jeanfrancois


>
> Hi ...
>    As requested I'v attached the example I've been trying to get working.
> This is simply the publish subscribe example up on svn. It actually might be
> working properly but maybe I'm using it incorrectly. Attached is the example
> with the jar you suggested (weblogic), but in that case I get the same
> exception as I was getting on friday with the Jboss jar you provided i.e.
> java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor
>
>     at
> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
>     at
> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
>     at
> org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
>     at
> org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
>     at
> org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
>     at
> org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>     at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>
> If I include the combined jars without the context file it seems to load ok,
> I get the following trace ...
>
> 00:56:52,370 INFO  [TomcatDeployment] deploy, ctxPath=/atmosphere-pubsub
> 00:56:52,546 INFO  [Atmosphere] Sucessfully loaded
> org.atmosphere.handler.ReflectorServletProcessor@e06ed6 mapped to
> context-path /*
> 00:56:52,561 INFO  [Atmosphere] Using
> org.atmosphere.jersey.JerseyBroadcaster with a Thread Pool size of : 2
> 00:56:52,561 INFO  [Atmosphere] Forcing the use of the container's native
> Comet API implementation instead of Servlet 3.0
> 00:56:52,569 INFO  [Atmosphere] Atmosphere Framework running under container
> JBoss Web/2.1.3.GA
> 00:56:52,597 INFO  [ClasspathResourceConfig] Scanning for root resource and
> provider classes in the paths:
>  
> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\lib
>  
> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\classes
> 00:56:52,794 INFO  [ClasspathResourceConfig] Root resource classes found:
>   class org.atmosphere.samples.pubsub.PubSub
> 00:56:52,794 INFO  [ClasspathResourceConfig] Provider classes found:
>   class org.atmosphere.jersey.BroadcasterLookupInjector
>   class org.atmosphere.jersey.AtmosphereResourceInjector
>   class org.atmosphere.jersey.BroadcasterInjector
>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
> 00:56:52,926 INFO  [WebApplicationImpl] Initiating Jersey application,
> version 'Jersey: 1.1.5-ea-v20091019 10/19/2009 08:44 PM'
> 00:56:52,932 INFO  [WebApplicationImpl] Adding the following classes
> declared in META-INF/services/jersey-server-components to the resource
> configuration:
>   class org.atmosphere.jersey.BroadcasterInjector
>   class org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider
>   class org.atmosphere.jersey.BroadcasterLookupInjector
>   class org.atmosphere.jersey.AtmosphereResourceInjector
>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
>
> But when open a browser and put the url
> http://localhost:8080/atmosphere-pubsub/hello
>
> 11:17:04,065 ERROR [[AtmosphereServlet]] Servlet.service() for servlet
> AtmosphereServlet threw exception
> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
> application because context.xml is missing.
> Enable it or if enabled add the following content under your
> WEB-INF/context.xml of your war file.
> <Context>    <Loader delegate="true"/>    </Context>
>     at
> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>     at
> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:590)
>     at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:339)
>     at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
>     at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
>     at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
>     at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
>     at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>     at
> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>     at
> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>
>
> Jeanfrancois Arcand wrote:
>>
>>
>> mike_mac wrote:
>>> FYI ... the jar you attached that said jboss only had weblogic code in it
>>> (jboss and apache code removed), is that correct ?
>> Yes. Mainly, it remove the fake classes needed for portability. If you
>> remove context.xml, it should fix the below classloading issues.
>>
>> Thanks
>>
>> -- Jeanfrancois
>>
>>
>>> mike_mac wrote:
>>>> Wow ... thanks for the quick reply =), but it didn't work ...
>>>>
>>>> I got a class not found exception
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.apache.catalina.CometProcessor
>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>> at java.lang.Class.forName0(Native Method)
>>>> at java.lang.Class.forName(Class.java:247)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
>>>> at
>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>
>>>>
>>>> The original exceptions were
>>>>
>>>> Error configuring application listener of class
>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>> java.lang.ClassNotFoundException:
>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>> at
>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>> at
>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>>>> at
>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
>>>> at
>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>>>> at
>>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
>>>> at
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>>> at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>> at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>> at
>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>
>>>> also
>>>> java.lang.ClassNotFoundException:
>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>>>> java.lang.ClassNotFoundException:
>>>> com.sun.faces.application.WebappLifecycleListener
>>>> java.lang.ClassNotFoundException:
>>>> org.springframework.web.context.ContextLoaderListener
>>>>
>>>> I'm trying to integrate the pubsub example into my exisiting project (a
>>>> war inside an ear).
>>>> I copied the pubsub class into a jar thats contained in my project.
>>>> I copied the servlet and servlet mappings from the web.xml into my
>>>> web.xml
>>>> and the atmosphere.xml and context.xml as is into my war.
>>>>
>>>> I added the following to my web.xml
>>>>
>>>>    <servlet>
>>>>         <description>AtmosphereServlet</description>
>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>        
>>>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>>>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>>>>         <async-supported>true</async-supported>
>>>>         -->
>>>>         <load-on-startup>0</load-on-startup>
>>>>     </servlet>
>>>>      
>>>>     <servlet-mapping>
>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>         <url-pattern>/Atmosphere/*</url-pattern>
>>>>     </servlet-mapping>
>>>>
>>>> atmosphere.xml
>>>>
>>>> <atmosphere-handlers>
>>>>     <atmosphere-handler context-root="/*"
>>>> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>>>>         <property name="servletClass"
>>>> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>>>>     </atmosphere-handler>
>>>> </atmosphere-handlers>
>>>>
>>>> I have the following jars in war lib
>>>> atmosphere-annotations-0.5-SNAPSHOT.jar
>>>> atmosphere-compat-0.5-SNAPSHOT.jar
>>>> atmosphere-jersey-0.5-SNAPSHOT.jar
>>>> atmosphere-runtime-0.5-SNAPSHOT.jar
>>>> jersey-core-1.1.5-ea-v20091019.jar
>>>> jersey-server-1.1.5-ea-v20091019.jar
>>>>
>>>> Let me know if you need anymore info ...
>>>>
>>>>
>>>> Jeanfrancois Arcand wrote:
>>>>> Salut,
>>>>>
>>>>> just replace atmosphere-compat with the attached jar, and remove
>>>>> context.xml. Let me know if that help.
>>>>>
>>>>> If that works, I may have breaks the compat jar into smaller one.
>>>>>
>>>>> A+
>>>>>
>>>>> -- Jeanfrancois
>>>>>
>>>>> Jeanfrancois Arcand wrote:
>>>>>> Salut,
>>>>>>
>>>>>> mike_mac wrote:
>>>>>>> I have the same problem as below when running on Jboss 5.1, if I
>>>>>>> include the
>>>>>>> context.xml file I get classloader errors trying to load listeners,
>>>>>> What kind of listeners?
>>>>>>
>>>>>>  if I
>>>>>>> remove the context.xml I get a 500 returned with the following ...
>>>>>>> what am I
>>>>>>> missing ?
>>>>>> Can you share a test case? Send it to me privately -> jfarcand @
>>>>>> apache
>>>>>> dot org.
>>>>>>
>>>>>> An ugly workaround will consist of removing the context.xml, unzip
>>>>>> atmosphere-compat.jar and remove the org.apache and org.jboss classes.
>>>>>> I
>>>>>> can send it it to you but be aware the application will only works on
>>>>>> JBoss :-)
>>>>>>
>>>>>> A+
>>>>>>
>>>>>> -_ Jeanfrancois
>>>>>>
>>>>>>
>>>>>>> java.lang.IllegalStateException: JBoss failed to detect this is a
>>>>>>> Comet
>>>>>>> application because context.xml is missing.
>>>>>>> Enable it or if enabled add the following content under your
>>>>>>> WEB-INF/context.xml of your war file.
>>>>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>>>>
>>>>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>>>>
>>>>>>>
>>>>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>>>>
>>>>>>>    
>>>>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>>>>
>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>>>
>>>>>>>
>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>>>
>>>>>>>
>>>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>>>
>>>>>>>     org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>>
>>>>>>>
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>
>>>>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>
>>>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>>>
>>>>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>>>>
>>>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>>>
>>>>>>>    
>>>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>>>>    
>>>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>>>
>>>>>>>     $Proxy38.start(Unknown Source)
>>>>>>>
>>>>>>>
>>>>>>> Søren Hilmer wrote:
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> I tried to deploy a the application described in
>>>>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>>>>
>>>>>>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>>>>>>> Jboss
>>>>>>>> RESTeasy framework instead of Jersey.
>>>>>>>>
>>>>>>>> But i keep getting:
>>>>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>>>>>>> listener of
>>>>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>>    at
>>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Followed by CNFE's on
>>>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>>>
>>>>>>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>>>>>>> report
>>>>>>>> on
>>>>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that
>>>>>>>> be
>>>>>>>> an
>>>>>>>> issue ( I do not believe so but...)
>>>>>>>>
>>>>>>>> Best
>>>>>>>>   Soren
>>>>>>>>
>>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
>>>>>> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>>>>>>
>>>>>  
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
>>>>> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
>> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>>
>>
>>
>

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

Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Salut,

mike_mac wrote:
>
> Hey ... yeah ... it wasn't clear from your previous posts that the tomcat
> jar was needed as well as the weblogic, when I include both of them it
> starts up correctly, but I still get the " ... failed to detect this is a
> comet appilcation ..." when I try to invoke the following from a browser ...
>  http://localhost:8080/atmosphere-pubsub/hello
>
> Judging by the code I presume this should have me subscribing to topic
> "hello", am I testing it correctly ?

Yes you are testing correclty. I'm installing JBoss 5 now and will give
a try.

A+

-- Jeanfrancois


>
> Thanks,
> Mike.
>
>
> Jeanfrancois Arcand wrote:
>> Salut,
>>
>> mike_mac wrote:
>>> Hi ..
>>>
>>>    I sent this to the apache e-mail you gave but just in case I'll post
>>> here
>>> as well
>> Thanks I will work on it. The idea is to not bundle the
>> atmosphere-compat-jboss.jar classes, but keep -weblogic and -tomcat. Let
>> me try...
>>
>> A+
>>
>> -- Jeanfrancois
>>
>>
>>> Hi ...
>>>    As requested I'v attached the example I've been trying to get working.
>>> This is simply the publish subscribe example up on svn. It actually might
>>> be
>>> working properly but maybe I'm using it incorrectly. Attached is the
>>> example
>>> with the jar you suggested (weblogic), but in that case I get the same
>>> exception as I was getting on friday with the Jboss jar you provided i.e.
>>> java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor
>>>
>>>     at
>>> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
>>>     at
>>> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
>>>     at
>>> org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
>>>     at
>>> org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
>>>     at
>>> org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
>>>     at
>>> org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
>>>     at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>     at
>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>
>>> If I include the combined jars without the context file it seems to load
>>> ok,
>>> I get the following trace ...
>>>
>>> 00:56:52,370 INFO  [TomcatDeployment] deploy, ctxPath=/atmosphere-pubsub
>>> 00:56:52,546 INFO  [Atmosphere] Sucessfully loaded
>>> org.atmosphere.handler.ReflectorServletProcessor@e06ed6 mapped to
>>> context-path /*
>>> 00:56:52,561 INFO  [Atmosphere] Using
>>> org.atmosphere.jersey.JerseyBroadcaster with a Thread Pool size of : 2
>>> 00:56:52,561 INFO  [Atmosphere] Forcing the use of the container's native
>>> Comet API implementation instead of Servlet 3.0
>>> 00:56:52,569 INFO  [Atmosphere] Atmosphere Framework running under
>>> container
>>> JBoss Web/2.1.3.GA
>>> 00:56:52,597 INFO  [ClasspathResourceConfig] Scanning for root resource
>>> and
>>> provider classes in the paths:
>>>  
>>> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\lib
>>>  
>>> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\classes
>>> 00:56:52,794 INFO  [ClasspathResourceConfig] Root resource classes found:
>>>   class org.atmosphere.samples.pubsub.PubSub
>>> 00:56:52,794 INFO  [ClasspathResourceConfig] Provider classes found:
>>>   class org.atmosphere.jersey.BroadcasterLookupInjector
>>>   class org.atmosphere.jersey.AtmosphereResourceInjector
>>>   class org.atmosphere.jersey.BroadcasterInjector
>>>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
>>> 00:56:52,926 INFO  [WebApplicationImpl] Initiating Jersey application,
>>> version 'Jersey: 1.1.5-ea-v20091019 10/19/2009 08:44 PM'
>>> 00:56:52,932 INFO  [WebApplicationImpl] Adding the following classes
>>> declared in META-INF/services/jersey-server-components to the resource
>>> configuration:
>>>   class org.atmosphere.jersey.BroadcasterInjector
>>>   class org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider
>>>   class org.atmosphere.jersey.BroadcasterLookupInjector
>>>   class org.atmosphere.jersey.AtmosphereResourceInjector
>>>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
>>>
>>> But when open a browser and put the url
>>> http://localhost:8080/atmosphere-pubsub/hello
>>>
>>> 11:17:04,065 ERROR [[AtmosphereServlet]] Servlet.service() for servlet
>>> AtmosphereServlet threw exception
>>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>>> application because context.xml is missing.
>>> Enable it or if enabled add the following content under your
>>> WEB-INF/context.xml of your war file.
>>> <Context>    <Loader delegate="true"/>    </Context>
>>>     at
>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>     at
>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:590)
>>>     at
>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:339)
>>>     at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
>>>     at
>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
>>>     at
>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
>>>     at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
>>>     at
>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>     at
>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>     at
>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>>>
>>>
>>> Jeanfrancois Arcand wrote:
>>>>
>>>> mike_mac wrote:
>>>>> FYI ... the jar you attached that said jboss only had weblogic code in
>>>>> it
>>>>> (jboss and apache code removed), is that correct ?
>>>> Yes. Mainly, it remove the fake classes needed for portability. If you
>>>> remove context.xml, it should fix the below classloading issues.
>>>>
>>>> Thanks
>>>>
>>>> -- Jeanfrancois
>>>>
>>>>
>>>>> mike_mac wrote:
>>>>>> Wow ... thanks for the quick reply =), but it didn't work ...
>>>>>>
>>>>>> I got a class not found exception
>>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>>> org.apache.catalina.CometProcessor
>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>>> at java.lang.Class.forName0(Native Method)
>>>>>> at java.lang.Class.forName(Class.java:247)
>>>>>> at
>>>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
>>>>>> at
>>>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
>>>>>> at
>>>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
>>>>>> at
>>>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>>>
>>>>>>
>>>>>> The original exceptions were
>>>>>>
>>>>>> Error configuring application listener of class
>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>> at
>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>> at
>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>>>>>> at
>>>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
>>>>>> at
>>>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>>>>>> at
>>>>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
>>>>>> at
>>>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>>>>> at
>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>> at
>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>> at
>>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>>
>>>>>> also
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>>>>>> java.lang.ClassNotFoundException:
>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.springframework.web.context.ContextLoaderListener
>>>>>>
>>>>>> I'm trying to integrate the pubsub example into my exisiting project
>>>>>> (a
>>>>>> war inside an ear).
>>>>>> I copied the pubsub class into a jar thats contained in my project.
>>>>>> I copied the servlet and servlet mappings from the web.xml into my
>>>>>> web.xml
>>>>>> and the atmosphere.xml and context.xml as is into my war.
>>>>>>
>>>>>> I added the following to my web.xml
>>>>>>
>>>>>>    <servlet>
>>>>>>         <description>AtmosphereServlet</description>
>>>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>>>        
>>>>>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>>>>>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>>>>>>         <async-supported>true</async-supported>
>>>>>>         -->
>>>>>>         <load-on-startup>0</load-on-startup>
>>>>>>     </servlet>
>>>>>>      
>>>>>>     <servlet-mapping>
>>>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>>>         <url-pattern>/Atmosphere/*</url-pattern>
>>>>>>     </servlet-mapping>
>>>>>>
>>>>>> atmosphere.xml
>>>>>>
>>>>>> <atmosphere-handlers>
>>>>>>     <atmosphere-handler context-root="/*"
>>>>>> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>>>>>>         <property name="servletClass"
>>>>>> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>>>>>>     </atmosphere-handler>
>>>>>> </atmosphere-handlers>
>>>>>>
>>>>>> I have the following jars in war lib
>>>>>> atmosphere-annotations-0.5-SNAPSHOT.jar
>>>>>> atmosphere-compat-0.5-SNAPSHOT.jar
>>>>>> atmosphere-jersey-0.5-SNAPSHOT.jar
>>>>>> atmosphere-runtime-0.5-SNAPSHOT.jar
>>>>>> jersey-core-1.1.5-ea-v20091019.jar
>>>>>> jersey-server-1.1.5-ea-v20091019.jar
>>>>>>
>>>>>> Let me know if you need anymore info ...
>>>>>>
>>>>>>
>>>>>> Jeanfrancois Arcand wrote:
>>>>>>> Salut,
>>>>>>>
>>>>>>> just replace atmosphere-compat with the attached jar, and remove
>>>>>>> context.xml. Let me know if that help.
>>>>>>>
>>>>>>> If that works, I may have breaks the compat jar into smaller one.
>>>>>>>
>>>>>>> A+
>>>>>>>
>>>>>>> -- Jeanfrancois
>>>>>>>
>>>>>>> Jeanfrancois Arcand wrote:
>>>>>>>> Salut,
>>>>>>>>
>>>>>>>> mike_mac wrote:
>>>>>>>>> I have the same problem as below when running on Jboss 5.1, if I
>>>>>>>>> include the
>>>>>>>>> context.xml file I get classloader errors trying to load listeners,
>>>>>>>> What kind of listeners?
>>>>>>>>
>>>>>>>>  if I
>>>>>>>>> remove the context.xml I get a 500 returned with the following ...
>>>>>>>>> what am I
>>>>>>>>> missing ?
>>>>>>>> Can you share a test case? Send it to me privately -> jfarcand @
>>>>>>>> apache
>>>>>>>> dot org.
>>>>>>>>
>>>>>>>> An ugly workaround will consist of removing the context.xml, unzip
>>>>>>>> atmosphere-compat.jar and remove the org.apache and org.jboss
>>>>>>>> classes.
>>>>>>>> I
>>>>>>>> can send it it to you but be aware the application will only works
>>>>>>>> on
>>>>>>>> JBoss :-)
>>>>>>>>
>>>>>>>> A+
>>>>>>>>
>>>>>>>> -_ Jeanfrancois
>>>>>>>>
>>>>>>>>
>>>>>>>>> java.lang.IllegalStateException: JBoss failed to detect this is a
>>>>>>>>> Comet
>>>>>>>>> application because context.xml is missing.
>>>>>>>>> Enable it or if enabled add the following content under your
>>>>>>>>> WEB-INF/context.xml of your war file.
>>>>>>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>>>>>>
>>>>>>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>>>>>>
>>>>>>>>>    
>>>>>>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>>>>>>
>>>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>>>>>
>>>>>>>>>    
>>>>>>>>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>>>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>
>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>>
>>>>>>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>>
>>>>>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>>>>>
>>>>>>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>>>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>>>>>>
>>>>>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>>>>>
>>>>>>>>>    
>>>>>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>>>>>>    
>>>>>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>>>>>
>>>>>>>>>     $Proxy38.start(Unknown Source)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Søren Hilmer wrote:
>>>>>>>>>> Hi
>>>>>>>>>>
>>>>>>>>>> I tried to deploy a the application described in
>>>>>>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>>>>>>
>>>>>>>>>> on JBoss AS 5.1GA, with a few changes so  it would (hopefully) use
>>>>>>>>>> Jboss
>>>>>>>>>> RESTeasy framework instead of Jersey.
>>>>>>>>>>
>>>>>>>>>> But i keep getting:
>>>>>>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring application
>>>>>>>>>> listener of
>>>>>>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>>>>    at
>>>>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Followed by CNFE's on
>>>>>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener and
>>>>>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>>>>>
>>>>>>>>>> Have anyone tried Atmosphere on this setup? I can see some succes
>>>>>>>>>> report
>>>>>>>>>> on
>>>>>>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>>>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could that
>>>>>>>>>> be
>>>>>>>>>> an
>>>>>>>>>> issue ( I do not believe so but...)
>>>>>>>>>>
>>>>>>>>>> Best
>>>>>>>>>>   Soren
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> 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]
>>>>>>>
>>>> ---------------------------------------------------------------------
>>>> 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]
>>
>>
>>
>

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

Jeanfrancois Arcand

Enabling APR connector <was> Re: Running on JBoss 5

Reply Threaded More More options
Print post
Permalink
Salut,

my mistake from the beginning...you needs to configure JBoss properly in
order to enable native Comet. When you start, you should see:

> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
> 9-Nov-2009 10:18:28 AM org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 9-Nov-2009 10:18:28 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2718 ms

You must configure the APR connector as in JBoss 5 they have removed the
NIO connection from Tomcat:

    * http://is.gd/4QY9f

If you configure it, the PubSub samples will works without any change.
Now it will also work if you remove the context.xml files and the
atmosphere-compat-jboss|tomcat and it should works.

A+

-- Jeanfrancois




Jeanfrancois Arcand wrote:

> Salut,
>
> mike_mac wrote:
>>
>> Hey ... yeah ... it wasn't clear from your previous posts that the tomcat
>> jar was needed as well as the weblogic, when I include both of them it
>> starts up correctly, but I still get the " ... failed to detect this is a
>> comet appilcation ..." when I try to invoke the following from a
>> browser ...
>>  http://localhost:8080/atmosphere-pubsub/hello
>>
>> Judging by the code I presume this should have me subscribing to topic
>> "hello", am I testing it correctly ?
>
> Yes you are testing correclty. I'm installing JBoss 5 now and will give
> a try.
>
> A+
>
> -- Jeanfrancois
>
>
>>
>> Thanks, Mike.
>>
>>
>> Jeanfrancois Arcand wrote:
>>> Salut,
>>>
>>> mike_mac wrote:
>>>> Hi ..
>>>>
>>>>    I sent this to the apache e-mail you gave but just in case I'll post
>>>> here
>>>> as well
>>> Thanks I will work on it. The idea is to not bundle the
>>> atmosphere-compat-jboss.jar classes, but keep -weblogic and -tomcat.
>>> Let me try...
>>>
>>> A+
>>>
>>> -- Jeanfrancois
>>>
>>>
>>>> Hi ...
>>>>    As requested I'v attached the example I've been trying to get
>>>> working.
>>>> This is simply the publish subscribe example up on svn. It actually
>>>> might
>>>> be
>>>> working properly but maybe I'm using it incorrectly. Attached is the
>>>> example
>>>> with the jar you suggested (weblogic), but in that case I get the same
>>>> exception as I was getting on friday with the Jboss jar you provided
>>>> i.e.
>>>> java.lang.ClassNotFoundException: org.apache.catalina.CometProcessor
>>>>
>>>>     at
>>>> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
>>>>
>>>>     at
>>>> org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
>>>>
>>>>     at
>>>> org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
>>>>
>>>>     at
>>>> org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
>>>>
>>>>     at
>>>> org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
>>>>
>>>>     at
>>>> org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
>>>>
>>>>     at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>>>     at
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>>>
>>>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>>>
>>>> If I include the combined jars without the context file it seems to
>>>> load
>>>> ok,
>>>> I get the following trace ...
>>>>
>>>> 00:56:52,370 INFO  [TomcatDeployment] deploy,
>>>> ctxPath=/atmosphere-pubsub
>>>> 00:56:52,546 INFO  [Atmosphere] Sucessfully loaded
>>>> org.atmosphere.handler.ReflectorServletProcessor@e06ed6 mapped to
>>>> context-path /*
>>>> 00:56:52,561 INFO  [Atmosphere] Using
>>>> org.atmosphere.jersey.JerseyBroadcaster with a Thread Pool size of : 2
>>>> 00:56:52,561 INFO  [Atmosphere] Forcing the use of the container's
>>>> native
>>>> Comet API implementation instead of Servlet 3.0
>>>> 00:56:52,569 INFO  [Atmosphere] Atmosphere Framework running under
>>>> container
>>>> JBoss Web/2.1.3.GA
>>>> 00:56:52,597 INFO  [ClasspathResourceConfig] Scanning for root resource
>>>> and
>>>> provider classes in the paths:
>>>>  
>>>> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\lib
>>>>
>>>>  
>>>> C:\dev\jboss\jboss-5.1.0.GA\server\default\tmp\5c4o12-5sbvf7-g1sisin1-1-g1siwjkh-9r\atmosphere-pubsub.war\WEB-INF\classes
>>>>
>>>> 00:56:52,794 INFO  [ClasspathResourceConfig] Root resource classes
>>>> found:
>>>>   class org.atmosphere.samples.pubsub.PubSub
>>>> 00:56:52,794 INFO  [ClasspathResourceConfig] Provider classes found:
>>>>   class org.atmosphere.jersey.BroadcasterLookupInjector
>>>>   class org.atmosphere.jersey.AtmosphereResourceInjector
>>>>   class org.atmosphere.jersey.BroadcasterInjector
>>>>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
>>>> 00:56:52,926 INFO  [WebApplicationImpl] Initiating Jersey application,
>>>> version 'Jersey: 1.1.5-ea-v20091019 10/19/2009 08:44 PM'
>>>> 00:56:52,932 INFO  [WebApplicationImpl] Adding the following classes
>>>> declared in META-INF/services/jersey-server-components to the resource
>>>> configuration:
>>>>   class org.atmosphere.jersey.BroadcasterInjector
>>>>   class org.atmosphere.jersey.AtmosphereProviders$BroadcasterProvider
>>>>   class org.atmosphere.jersey.BroadcasterLookupInjector
>>>>   class org.atmosphere.jersey.AtmosphereResourceInjector
>>>>   class org.atmosphere.jersey.AtmosphereResourceConfigurator
>>>>
>>>> But when open a browser and put the url
>>>> http://localhost:8080/atmosphere-pubsub/hello
>>>>
>>>> 11:17:04,065 ERROR [[AtmosphereServlet]] Servlet.service() for servlet
>>>> AtmosphereServlet threw exception
>>>> java.lang.IllegalStateException: JBoss failed to detect this is a Comet
>>>> application because context.xml is missing.
>>>> Enable it or if enabled add the following content under your
>>>> WEB-INF/context.xml of your war file.
>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>     at
>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>
>>>>     at
>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:590)
>>>>
>>>>     at
>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:339)
>>>>     at
>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
>>>>
>>>>     at
>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
>>>>     at
>>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
>>>>
>>>>     at
>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
>>>>
>>>>     at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>
>>>>     at
>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>
>>>>     at
>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>
>>>>     at
>>>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>
>>>>
>>>>
>>>> Jeanfrancois Arcand wrote:
>>>>>
>>>>> mike_mac wrote:
>>>>>> FYI ... the jar you attached that said jboss only had weblogic
>>>>>> code in
>>>>>> it
>>>>>> (jboss and apache code removed), is that correct ?
>>>>> Yes. Mainly, it remove the fake classes needed for portability. If
>>>>> you remove context.xml, it should fix the below classloading issues.
>>>>>
>>>>> Thanks
>>>>>
>>>>> -- Jeanfrancois
>>>>>
>>>>>
>>>>>> mike_mac wrote:
>>>>>>> Wow ... thanks for the quick reply =), but it didn't work ...
>>>>>>>
>>>>>>> I got a class not found exception Caused by:
>>>>>>> java.lang.ClassNotFoundException:
>>>>>>> org.apache.catalina.CometProcessor
>>>>>>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>>>>>>     at java.security.AccessController.doPrivileged(Native Method)
>>>>>>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>>>>>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>>>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>>>>     at java.lang.Class.forName0(Native Method)
>>>>>>>     at java.lang.Class.forName(Class.java:247)
>>>>>>>     at
>>>>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:292)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
>>>>>>>
>>>>>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>>>>>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>>>>>
>>>>>>>
>>>>>>> The original exceptions were
>>>>>>> Error configuring application listener of class
>>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>> java.lang.ClassNotFoundException:
>>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>     at
>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>>
>>>>>>>     at
>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:262)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
>>>>>>>
>>>>>>>     at
>>>>>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
>>>>>>>
>>>>>>>     at
>>>>>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>>>
>>>>>>>     at
>>>>>>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>>>
>>>>>>> also
>>>>>>> java.lang.ClassNotFoundException:
>>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>>>>>>> java.lang.ClassNotFoundException:
>>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>> java.lang.ClassNotFoundException:
>>>>>>> org.springframework.web.context.ContextLoaderListener
>>>>>>>
>>>>>>> I'm trying to integrate the pubsub example into my exisiting project
>>>>>>> (a
>>>>>>> war inside an ear).
>>>>>>> I copied the pubsub class into a jar thats contained in my project.
>>>>>>> I copied the servlet and servlet mappings from the web.xml into my
>>>>>>> web.xml
>>>>>>> and the atmosphere.xml and context.xml as is into my war.
>>>>>>> I added the following to my web.xml
>>>>>>>
>>>>>>>    <servlet>
>>>>>>>         <description>AtmosphereServlet</description>
>>>>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>>>>        
>>>>>>> <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
>>>>>>>         <!-- Uncomment if you want to use Servlet 3.0 Async Support
>>>>>>>         <async-supported>true</async-supported>
>>>>>>>         -->
>>>>>>>         <load-on-startup>0</load-on-startup>
>>>>>>>     </servlet>
>>>>>>>           <servlet-mapping>
>>>>>>>         <servlet-name>AtmosphereServlet</servlet-name>
>>>>>>>         <url-pattern>/Atmosphere/*</url-pattern>
>>>>>>>     </servlet-mapping>
>>>>>>>
>>>>>>> atmosphere.xml
>>>>>>>
>>>>>>> <atmosphere-handlers>
>>>>>>>     <atmosphere-handler context-root="/*"
>>>>>>> class-name="org.atmosphere.handler.ReflectorServletProcessor">
>>>>>>>         <property name="servletClass"
>>>>>>> value="com.sun.jersey.spi.container.servlet.ServletContainer"/>
>>>>>>>     </atmosphere-handler>
>>>>>>> </atmosphere-handlers>
>>>>>>>
>>>>>>> I have the following jars in war lib
>>>>>>> atmosphere-annotations-0.5-SNAPSHOT.jar
>>>>>>> atmosphere-compat-0.5-SNAPSHOT.jar
>>>>>>> atmosphere-jersey-0.5-SNAPSHOT.jar
>>>>>>> atmosphere-runtime-0.5-SNAPSHOT.jar
>>>>>>> jersey-core-1.1.5-ea-v20091019.jar
>>>>>>> jersey-server-1.1.5-ea-v20091019.jar
>>>>>>>
>>>>>>> Let me know if you need anymore info ...
>>>>>>>
>>>>>>>
>>>>>>> Jeanfrancois Arcand wrote:
>>>>>>>> Salut,
>>>>>>>>
>>>>>>>> just replace atmosphere-compat with the attached jar, and remove
>>>>>>>> context.xml. Let me know if that help.
>>>>>>>>
>>>>>>>> If that works, I may have breaks the compat jar into smaller one.
>>>>>>>>
>>>>>>>> A+
>>>>>>>>
>>>>>>>> -- Jeanfrancois
>>>>>>>>
>>>>>>>> Jeanfrancois Arcand wrote:
>>>>>>>>> Salut,
>>>>>>>>>
>>>>>>>>> mike_mac wrote:
>>>>>>>>>> I have the same problem as below when running on Jboss 5.1, if
>>>>>>>>>> I include the
>>>>>>>>>> context.xml file I get classloader errors trying to load
>>>>>>>>>> listeners,
>>>>>>>>> What kind of listeners?
>>>>>>>>>
>>>>>>>>>  if I
>>>>>>>>>> remove the context.xml I get a 500 returned with the following
>>>>>>>>>> ... what am I
>>>>>>>>>> missing ?
>>>>>>>>> Can you share a test case? Send it to me privately -> jfarcand @
>>>>>>>>> apache dot org.
>>>>>>>>>
>>>>>>>>> An ugly workaround will consist of removing the context.xml,
>>>>>>>>> unzip atmosphere-compat.jar and remove the org.apache and
>>>>>>>>> org.jboss
>>>>>>>>> classes.
>>>>>>>>> I can send it it to you but be aware the application will only
>>>>>>>>> works
>>>>>>>>> on JBoss :-)
>>>>>>>>>
>>>>>>>>> A+
>>>>>>>>>
>>>>>>>>> -_ Jeanfrancois
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> java.lang.IllegalStateException: JBoss failed to detect this is a
>>>>>>>>>> Comet
>>>>>>>>>> application because context.xml is missing.
>>>>>>>>>> Enable it or if enabled add the following content under your
>>>>>>>>>> WEB-INF/context.xml of your war file.
>>>>>>>>>> <Context>    <Loader delegate="true"/>    </Context>
>>>>>>>>>>
>>>>>>>>>> org.atmosphere.container.JBossWebCometSupport.<clinit>(JBossWebCometSupport.java:63)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> org.atmosphere.cpr.AtmosphereServlet.autoDetectContainer(AtmosphereServlet.java:592)
>>>>>>>>>>
>>>>>>>>>>    
>>>>>>>>>> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:341)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
>>>>>>>>>>
>>>>>>>>>>    
>>>>>>>>>> org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
>>>>>>>>>>     org.jboss.web.deployers.WebModule.start(WebModule.java:97)
>>>>>>>>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>
>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>>>
>>>>>>>>>>     java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>>>
>>>>>>>>>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
>>>>>>>>>>
>>>>>>>>>>     org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
>>>>>>>>>>     org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>>>>>>>>>>
>>>>>>>>>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>>>>>>>>>>
>>>>>>>>>>    
>>>>>>>>>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
>>>>>>>>>>
>>>>>>>>>>    
>>>>>>>>>> org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
>>>>>>>>>>
>>>>>>>>>>     $Proxy38.start(Unknown Source)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Søren Hilmer wrote:
>>>>>>>>>>> Hi
>>>>>>>>>>>
>>>>>>>>>>> I tried to deploy a the application described in
>>>>>>>>>>> http://weblogs.java.net/blog/jfarcand/archive/2009/06/getting_started_2.html 
>>>>>>>>>>>
>>>>>>>>>>> on JBoss AS 5.1GA, with a few changes so  it would
>>>>>>>>>>> (hopefully) use
>>>>>>>>>>> Jboss
>>>>>>>>>>> RESTeasy framework instead of Jersey.
>>>>>>>>>>>
>>>>>>>>>>> But i keep getting:
>>>>>>>>>>> 09:17:37,582 ERROR [[/aasevent]] Error configuring
>>>>>>>>>>> application listener of
>>>>>>>>>>> class org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>>>>> org.jboss.web.tomcat.security.SecurityFlushSessionListener
>>>>>>>>>>>    at
>>>>>>>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Followed by CNFE's on
>>>>>>>>>>> org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
>>>>>>>>>>> and
>>>>>>>>>>> com.sun.faces.application.WebappLifecycleListener
>>>>>>>>>>>
>>>>>>>>>>> Have anyone tried Atmosphere on this setup? I can see some
>>>>>>>>>>> succes
>>>>>>>>>>> report
>>>>>>>>>>> on
>>>>>>>>>>> jbossweb 2.1.4, but is that standalone or within jboss AS?
>>>>>>>>>>> This is on a stock JBoss 5.1, so it has jbossweb 2.1.3, could
>>>>>>>>>>> that
>>>>>>>>>>> be
>>>>>>>>>>> an
>>>>>>>>>>> issue ( I do not believe so but...)
>>>>>>>>>>>
>>>>>>>>>>> Best
>>>>>>>>>>>   Soren
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> 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]
>>>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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]
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> 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]

1 2