Pavel, on jboss not works: please see tomcat traces (works fine) and
jboss (throws errors)
Can be related by "vfs" URIs used by jboss? (Can not find resource
classes on jboss)
Tomcat 7.0.20 _____________________________________________________________
[37] INFO 12:28:18 PackagesResourceConfig.init: Scanning for root
resource and provider classes in the packages:
es.bfc.base
es.rbcdexia.ulysses
[37] INFO 12:28:19 ScanningResourceConfig.logClasses: Root resource
classes found:
class es.rbcdexia.ulysses.Say
[37] INFO 12:28:19 ScanningResourceConfig.logClasses: Provider classes
found:
class es.bfc.base.rest.XMLMessageBodyReader
class es.bfc.base.rest.XHTMLMessageBodyWriter
class es.bfc.base.rest.XMLMessageBodyWriter
class es.bfc.base.rest.JSONMessageBodyWriter
class es.bfc.base.rest.CSVMessageBodyWriter
class es.bfc.base.rest.PDFMessageBodyWriter
jboss 7.0.2 _____________________________________________________________
12:33:22,714 INFO [com.sun.jersey.api.core.PackagesResourceConfig] (MSC
service thread 1-4) Scanning for root resource and provider classes in
the packages:
es.bfc.base
es.rbcdexia.ulysses
12:33:22,765 INFO
[com.sun.jersey.server.impl.application.WebApplicationImpl] (MSC service
thread 1-4) Initiating Jersey application, version 'Jersey:
1.10-SNAPSHOT 10/25/2011 10:50 AM'
12:33:22,935 SEVERE
[com.sun.jersey.server.impl.application.RootResourceUriRules] (MSC
service thread 1-4) The ResourceConfig instance does not contain any
root resource classes.
12:33:22,935 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ulysses]]
(MSC service thread 1-4) Exception starting filter GuiceFilter:
com.sun.jersey.api.container.ContainerException: The ResourceConfig
instance does not contain any root resource classes.
at
com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:99)
[jersey-server-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1298)
[jersey-server-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:169)
[jersey-server-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:775)
[jersey-server-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:771)
[jersey-server-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
[jersey-core-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:771)
[jersey-server-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.guice.spi.container.servlet.GuiceContainer.initiate(GuiceContainer.java:121)
[jersey-guice-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)
[jersey-servlet-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:609)
[jersey-servlet-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:210)
[jersey-servlet-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
[jersey-servlet-1.10-SNAPSHOT.jar:]
at
com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)
[jersey-servlet-1.10-SNAPSHOT.jar:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:117)
[guice-servlet-3.0.jar:]
at
com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:82)
[guice-servlet-3.0.jar:]
at
com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:102)
[guice-servlet-3.0.jar:]
at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:172)
[guice-servlet-3.0.jar:]
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3245)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3836) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[:1.6.0_23]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[:1.6.0_23]
at java.lang.Thread.run(Thread.java:679) [:1.6.0_23]
On 26/10/2011 11:34, Pavel Bucek wrote:
> Yep, that is kind of recent change, you need to have jersey-servlet on
> your classpath as well.
>
> Hope it works for you now.
>
> Regards,
> Pavel
>
> On 10/26/11 11:23 AM, Jose Antonio Illescas Del Olmo wrote:
>> Sorry, I not include;
>>
>> · jersey-servlet
>>
>> that includes this class
>>
>> On 26/10/2011 11:19, Jose Antonio Illescas Del Olmo wrote:
>>> Yes, I downloaded jersey-archive-1.10-20111025.114924-39.zip and use:
>>>
>>> * jersey-core-1.10-SNAPSHOT.jar
>>> * jersey-guice-1.10-SNAPSHOT.jar
>>> * jersey-server-1.10-SNAPSHOT.jar
>>>
>>>
>>> I decompiled jersey-server-1.10-SNAPSHOT.jar and not include class
>>> com.sun.jersey.server.impl.container.servlet.Include
>>>
>>> Not exits directory /servlet on /com/sun/jersey/server/impl/container
>>>
>>> This class (Include) must be on jersey-server jar?
>>>
>>>
>>> On 26/10/2011 11:05, Pavel Bucek wrote:
>>>> Are you sure you have downloaded latest version? There was an issue
>>>> filled and fixed recently (JERSEY-791).
>>>>
>>>> this archive should be complete:
>>>> https://maven.java.net/content/repositories/snapshots/com/sun/jersey/jersey-archive/1.10-SNAPSHOT/jersey-archive-1.10-20111025.114924-39.zip
>>>>
>>>> Pavel
>>>>
>>>> On 10/26/11 10:56 AM, Jose Antonio Illescas Del Olmo wrote:
>>>>> Thank you Pavel,
>>>>>
>>>>> I downloaded jersey-archive and use their jars, but jboss-7 throws
>>>>> next exception:
>>>>>
>>>>> Any idea or fix? (please)
>>>>>
>>>>> 10:52:42,172 ERROR [org.jboss.msc.service.fail] (MSC service
>>>>> thread 1-1) MSC00001: Failed to start service
>>>>> jboss.deployment.unit."ulysses.war".INSTALL:
>>>>> org.jboss.msc.service.StartException in service
>>>>> jboss.deployment.unit."ulysses.war".INSTALL: Failed to process
>>>>> phase INSTALL of deployment "ulysses.war"
>>>>> at
>>>>> org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
>>>>> at
>>>>> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
>>>>> at
>>>>> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>>>> [:1.6.0_23]
>>>>> at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>>>> [:1.6.0_23]
>>>>> at java.lang.Thread.run(Thread.java:679) [:1.6.0_23]
>>>>> Caused by: java.lang.RuntimeException: Failed to load class
>>>>> com.sun.jersey.server.impl.container.servlet.Include
>>>>> at
>>>>> org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:141)
>>>>> at
>>>>> org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:122)
>>>>> at org.jboss.as.ee.component.LazyValue.get(LazyValue.java:40)
>>>>> at
>>>>> org.jboss.as.ee.component.EEApplicationDescription.getClassConfiguration(EEApplicationDescription.java:183)
>>>>> at
>>>>> org.jboss.as.ee.component.ComponentDescription.createConfiguration(ComponentDescription.java:153)
>>>>> at
>>>>> org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:70)
>>>>> at
>>>>> org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
>>>>> ... 5 more
>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>> com.sun.jersey.server.impl.container.servlet.Include from [Module
>>>>> "deployment.ulysses.war:main" from Service Module Loader]
>>>>> at
>>>>> org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
>>>>> at
>>>>> org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
>>>>> at
>>>>> org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
>>>>> at
>>>>> org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
>>>>> at
>>>>> org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
>>>>> at java.lang.Class.forName0(Native Method) [:1.6.0_23]
>>>>> at java.lang.Class.forName(Class.java:264) [:1.6.0_23]
>>>>> at
>>>>> org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:139)
>>>>> ... 11 more
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 26/10/2011 10:13, Pavel Bucek wrote:
>>>>>> Hi Jose,
>>>>>>
>>>>>> snapshots are being deployed to
>>>>>> https://maven.java.net/content/repositories/snapshots/
>>>>>>
>>>>>> and you might use jersey-archive artifact, which should contain
>>>>>> everything you need:
>>>>>> https://maven.java.net/content/repositories/snapshots/com/sun/jersey/jersey-archive/1.10-SNAPSHOT/
>>>>>>
>>>>>> Regards,
>>>>>> Pavel
>>>>>>
>>>>>> On 10/26/11 9:46 AM, Jose Antonio Illescas Del Olmo wrote:
>>>>>>> I try jersey with jboss-7 and throws exception documented on
>>>>>>> Jira (bug JERSEY-763), I like to check if version 1-10
>>>>>>> (snapshot) fixed this issue...
>>>>>>>
>>>>>>> thank you
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>