cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-4317) Interceptor annotation - Could not create annotation object
Date Wed, 05 Dec 2012 16:09:24 GMT

     [ https://issues.apache.org/jira/browse/CXF-4317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-4317.
------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: NeedMoreInfo)
                   Invalid


Never able to reproduce outside of Jonas and new options are now available (like using the
actual .class in the annotation instead of a class name).
                
> Interceptor annotation - Could not create annotation object
> -----------------------------------------------------------
>
>                 Key: CXF-4317
>                 URL: https://issues.apache.org/jira/browse/CXF-4317
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.5
>            Reporter: JJ
>             Fix For: Invalid
>
>
> I have an exception when I want to use Interceptor
> Caused by: org.apache.cxf.interceptor.Fault: Could not create annotation object: com.ztesoft.ocs.UserInterceptor
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.initializeAnnotationObjects(AnnotationInterceptors.java:79)
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.getAnnotationObject(AnnotationInterceptors.java:48)
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.getAnnotationInterceptorList(AnnotationInterceptors.java:102)
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.getInInterceptors(AnnotationInterceptors.java:118)
> 	at org.apache.cxf.endpoint.AbstractEndpointFactory.initializeAnnotationInterceptors(AbstractEndpointFactory.java:242)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.initializeAnnotationInterceptors(JaxWsServerFactoryBean.java:106)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:171)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)
> 	at org.ow2.jonas.ws.cxf.JOnASJaxWsServerFactoryBean.create(JOnASJaxWsServerFactoryBean.java:84)
> 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:415)
> 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:348)
> 	at org.ow2.jonas.ws.cxf.jaxws.CXFWSEndpoint.<init>(CXFWSEndpoint.java:106)
> 	at org.ow2.jonas.ws.cxf.CXFService.__createPOJOWebServiceEndpoint(CXFService.java:335)
> 	at org.ow2.jonas.ws.cxf.CXFService.createPOJOWebServiceEndpoint(CXFService.java)
> 	at org.ow2.jonas.web.tomcat7.ws.WSContextLifecycleListener.onAfterContextStart(WSContextLifecycleListener.java:167)
> 	at org.ow2.jonas.web.tomcat7.ws.WSContextLifecycleListener.lifecycleEvent(WSContextLifecycleListener.java:87)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:91)
> 	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:166)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:813)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:609)
> 	at org.ow2.jonas.web.tomcat7.Tomcat7Service.__doRegisterWar(Tomcat7Service.java:822)
> 	at org.ow2.jonas.web.tomcat7.Tomcat7Service.doRegisterWar(Tomcat7Service.java)
> 	at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1029)
> 	at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1268)
> 	at org.ow2.jonas.web.base.proxy.HttpOnDemandProxy.addWar(HttpOnDemandProxy.java:351)
> 	at org.ow2.jonas.web.base.WARDeployer.doDeploy(WARDeployer.java:70)
> 	at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:94)
> 	at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:91)
> 	at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77)
> 	at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:91)
> 	at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:149)
> 	... 3 more
> Caused by: java.lang.ClassNotFoundException: com.ztesoft.ocs.UserInterceptor not found
by org.apache.cxf.bundle [138]
> 	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
> 	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
> 	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 	at org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass2(ClassLoaderUtils.java:236)
> 	at org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:222)
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.initializeAnnotationObjects(AnnotationInterceptors.java:76)
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.getAnnotationObject(AnnotationInterceptors.java:48)
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.getAnnotationInterceptorList(AnnotationInterceptors.java:102)
> 	at org.apache.cxf.interceptor.AnnotationInterceptors.getInInterceptors(AnnotationInterceptors.java:118)
> 	at org.apache.cxf.endpoint.AbstractEndpointFactory.initializeAnnotationInterceptors(AbstractEndpointFactory.java:242)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.initializeAnnotationInterceptors(JaxWsServerFactoryBean.java:107)
> 	... 31 more
> I use in my class (WebServicesImpl) the annotation
> @InInterceptors (interceptors = {"com.ztesoft.ocs.UserInterceptor" })
> The class WebServicesImpl is in the same package
> package com.ztesoft.ocs
> I use Maven to produce a WAR, and deploy in Jonas 5.1.1 (cxf 2.0.12), I don't have the
exception and the interceptor works correctly.
> However when I use Maven to produce the same WAR, and deploy in Jonas 5.3.0-M5 (cxf 2.3.5),
I have this exception

--
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