Paul,
You are right. The JBoss 6 final bundle its RESTEasy in
deployer/resteasy.deployer directory.
This issue is solved by:
(1) removing resteasy.deployer from deployer.
(2) copy tcnative-1.dll (native connector) to JBOSS_HOME\bin, or I will
get:
14:02:03,040 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jquery
-pubsub].[AtmosphereServlet]] Servlet.service() for servlet
AtmosphereServlet threw exception: java.lang.IllegalStateException:
JBoss failed to detect this is a Comet application because the APR
Connector is not enabled.
Make sure atmosphere-compat-jboss.jar is not under your WEB-INF/lib and
there is no context.xml under WEB-INF
(3) Remove context.xml from WEB-INF, or I will get a
ClassNotFoundException.
(4) Remove atmosphere-compat-jbossweb-0.6.3.jar from WEB-INF\lib
following the instruction displayed by Atmoshpere on the console.
Then the jquery-pubsub demo is deployed successfully. I test it using
Google Chrome and Firefox. It works well.
Thanks
Guofeng
-----Original Message-----
From: Paul Sandoz [mailto:Paul.Sandoz_at_oracle.com]
Sent: Tuesday, January 11, 2011 6:15 PM
To: jfarcand
Cc: users_at_atmosphere.java.net; users_at_jersey.java.net
Subject: Re: [Jersey] Re: Deploying jquery-pubsun on JBoss 6 final
failed
On Jan 10, 2011, at 8:02 PM, jfarcand wrote:
> Salut,
>
> I don't think this is an Atmosphere issue. Cross posting to Jersey
> users list to see if someone tested Jersey on JBoss 6.
>
Does JBoss 6 bundle RESTEasy the JBoss JAX-RS implementation? If so it
could be a conflict between RESTEasy and Jersey.
Paul.
> Thanks
>
> -- Jeanfrancois
>
> On 11-01-10 3:50 AM, Guofeng Zhang wrote:
>> Hi,
>>
>> When I deploy jquery-pubsub on JBoss 6 final, I got:
>>
>> 2011-01-10 16:45:11,328 ERROR [ProfileServiceBootstrap] (Thread-2)
>> Failed to load profile::
>> org.jboss.deployers.client.spi.IncompleteDeploymentException:
>> Summary of
>> incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
>>
>> DEPLOYMENTS IN ERROR:
>>
>> Deployment
>> "vfs:///D:/projects/samples/jboss-6.0.0.Final/server/default/deploy/
>> jquery-pubsub.war"
>> is in error due to the following reason(s):
>> org.jboss.deployers.spi.DeploymentException: Only one JAX-RS
>> Application
>> Class allowed. com.sun.jersey.api.core.WebAppResourceConfig
>> com.sun.jersey.api.core.ApplicationAdapter
>> com.sun.jersey.api.core.ScanningResourceConfig
>> com.sun.jersey.api.core.ResourceConfig
>> com.sun.jersey.server.impl.application.DeferredResourceConfig
>> com.sun.jersey.api.core.ClasspathResourceConfig
>> com.sun.jersey.api.core.DefaultResourceConfig
>> com.sun.jersey.api.core.PackagesResourceConfig
>> com.sun.jersey.api.core.ClassNamesResourceConfig
>>
>> at
>> org
>> .jboss
>> .deployers
>> .plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:
>> 1228)
>> [:2.2.0.GA]
>>
>> at
>> org
>> .jboss
>> .deployers
>> .plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:
>> 905)
>> [:2.2.0.GA]
>>
>> at
>> org
>> .jboss
>> .system
>> .server
>> .profileservice
>> .deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:
>> 87)
>> [:6.0.0.Final]
>>
>> at
>> org
>> .jboss
>> .profileservice
>> .deployment
>> .ProfileDeployerPluginRegistry
>> .checkAllComplete(ProfileDeployerPluginRegistry.java:107)
>> [:0.2.2]
>>
>> at
>> org
>> .jboss
>> .system
>> .server
>> .profileservice
>> .bootstrap
>> .BasicProfileServiceBootstrap
>> .start(BasicProfileServiceBootstrap.java:135)
>> [:6.0.0.Final]
>>
>> at
>> org
>> .jboss
>> .system
>> .server
>> .profileservice
>> .bootstrap
>> .BasicProfileServiceBootstrap
>> .start(BasicProfileServiceBootstrap.java:56)
>> [:6.0.0.Final]
>>
>> at
>> org
>> .jboss
>> .bootstrap
>> .impl
>> .base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
>> [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
>>
>> at
>> org.jboss.bootstrap.impl.base.server.AbstractServer
>> $StartServerTask.run(AbstractServer.java:417)
>> [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
>>
>> at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
>>
>> 2011-01-10 16:45:11,359 INFO
>> [org.apache.coyote.http11.Http11Protocol]
>> (Thread-2) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
>>
>> 2011-01-10 16:45:11,359 INFO [org.apache.coyote.ajp.AjpProtocol]
>> (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
>>
>> 2011-01-10 16:45:11,390 INFO
>> [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2)
>> JBossAS
>> [6.0.0.Final "Neo"] Started in 43s:687ms
>>
>> I use 0.6.3.
>>
>> Can Atmoshpere run on JBoss 6.0?
>>
>> Thanks
>>
>> Guofeng
>>