cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4887) javax.ws.rs.NotFoundException at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.checkResources(AbstractJAXRSFactoryBean.java:319)
Date Sun, 10 Mar 2013 18:15:12 GMT

    [ https://issues.apache.org/jira/browse/CXF-4887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598339#comment-13598339
] 

Sergey Beryozkin commented on CXF-4887:
---------------------------------------

Can you confirm you have
http://search.maven.org/#artifactdetails|org.apache.servicemix.specs|org.apache.servicemix.specs.jsr339-api-m10|2.2.0|bundle

loaded ?
                
> javax.ws.rs.NotFoundException at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.checkResources(AbstractJAXRSFactoryBean.java:319)
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-4887
>                 URL: https://issues.apache.org/jira/browse/CXF-4887
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, OSGi
>    Affects Versions: 2.7.3
>         Environment: karaf@root> info
> Karaf
>   Karaf version               2.3.1
>   Karaf home                  /home/rudi/git/bippo-commerce5/karaf_cintalama
>   Karaf base                  /home/rudi/git/bippo-commerce5/karaf_cintalama
>   OSGi Framework              org.apache.felix.framework - 4.0.3
> JVM
>   Java Virtual Machine        OpenJDK 64-Bit Server VM version 23.7-b01
>   Version                     1.7.0_15
>   Vendor                      Oracle Corporation
>   Uptime                      4 minutes
>   Total compile time          18.488 seconds
> Threads
>   Live threads                108
>   Daemon threads              94
>   Peak                        140
>   Total started               223
> Memory
>   Current heap size           112,494 kbytes
>   Maximum heap size           466,048 kbytes
>   Committed heap size         155,520 kbytes
>   Pending objects             0
>   Garbage collector           Name = 'PS Scavenge', Collections = 57, Time = 0.288 seconds
>   Garbage collector           Name = 'PS MarkSweep', Collections = 1, Time = 0.052 seconds
> Classes
>   Current classes loaded      11,723
>   Total classes loaded        11,723
>   Total classes unloaded      0
> Operating system
>   Name                        Linux version 3.5.0-25-generic
>   Architecture                amd64
>   Processors                  8
>            Reporter: Rudi Wijaya
>
> When using CXF 2.7.3 this error happens. This did not happen in 2.6.6.
> {code}
> 2013-03-09 20:11:50,571 | DEBUG | rint Extender: 1 | site                           
 | ?                                   ? | 323 - org.soluvas.web.site - 2.0.0.SNAPSHOT | ServiceEvent
UNREGISTERING - [org.osgi.service.cm.ManagedService] - org.soluvas.web.site
> 2013-03-09 20:11:50,572 | ERROR | rint Extender: 1 | BlueprintContainerImpl         
 | container.BlueprintContainerImpl  393 | 7 - org.apache.aries.blueprint.core - 1.1.0 | Unable
to start blueprint container for bundle org.soluvas.web.site
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize
bean rsServer
>         at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:714)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[7:org.apache.aries.blueprint.core:1.1.0]
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_15]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_15]
>         at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:668)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)[7:org.apache.aries.blueprint.core:1.1.0]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_15]
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_15]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_15]
>         at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[7:org.apache.aries.blueprint.core:1.1.0]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_15]
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_15]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_15]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_15]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_15]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_15]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_15]
>         at java.lang.Thread.run(Thread.java:722)[:1.7.0_15]
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
>         at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:201)
>         at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:131)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_15]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_15]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_15]
>         at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_15]
>         at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)[7:org.apache.aries.blueprint.core:1.1.0]
>         at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)[7:org.apache.aries.blueprint.core:1.1.0]
>         ... 24 more
> Caused by: javax.ws.rs.NotFoundException
>         at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.checkResources(AbstractJAXRSFactoryBean.java:319)
>         at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:148)
>         ... 32 more
> {code}
> My hunch is that the bundle/Blueprint was being stopped but CXF doesn't handle this gracefully.
> Relevant blueprint:
> {code}
> 	<bean id="siteRs" class="org.soluvas.web.site.rs.SiteResource"
> 		depends-on="webAddress permalinkCatalog styleConfig">
> 		<argument ref="blueprintBundleContext" />
> 		<argument value="*" />
> 		<argument value="*" />
> 		<argument value="*" />
> 		<argument ref="webAddress" />
> 		<argument ref="permalinkCatalog" />
> 		<argument ref="styleConfig" />
> 	</bean>
> 	<reference id="jacksonMapperFactory" interface="org.soluvas.json.JacksonMapperFactory"
/>
> 	<bean id="jacksonContextResolver" class="org.soluvas.jaxrs.Jackson2ContextResolver">
> 		<argument ref="jacksonMapperFactory"/>
> 	</bean>
> 	<jaxrs:server id="rsServer" address="/api/org.soluvas.web.site">
> 		<jaxrs:providers>
> 			<bean class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider" />
> 			<ref component-id="jacksonContextResolver"/>
> 		</jaxrs:providers>
> 		<jaxrs:serviceBeans>
> 			<ref component-id="siteRs" />
> 		</jaxrs:serviceBeans>
> 	</jaxrs:server>	
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message