cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shaminda perera" <mahen...@googlemail.com>
Subject Re: deploying CXF Web service in JBoss
Date Thu, 18 Oct 2007 12:18:07 GMT
I put the jaxb jars to \lib\endorsed.

and now its working fine. I mean that error which cam earlier is not
coming..
however,, the spring context is not getting started because of another
(unrelated) error

This is the error log..

13:10:16,890 INFO  [Lifecycle] starting up:
org.jboss.seam.ioc.spring.springELResolver
13:10:16,921 INFO  [STDOUT] 13:10:16,921 ERROR [[/company]] Exception
sending context initialized event to listener insta
nce of class org.jboss.seam.servlet.SeamListener
java.lang.RuntimeException: exception invoking: initialize
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java
:133)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
        at org.jboss.seam.Component.newInstance(Component.java:1746)
        at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
        at org.jboss.seam.contexts.Lifecycle.endInitialization(
Lifecycle.java:145)
        at org.jboss.seam.init.Initialization.init(Initialization.java:504)
        at org.jboss.seam.servlet.SeamListener.contextInitialized(
SeamListener.java:33)
        at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3854)
        at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4359)
        at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:761)
        at org.apache.catalina.core.ContainerBase.addChild(
ContainerBase.java:741)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java
:553)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(
BaseModelMBean.java:297)
        at org.jboss.mx.server.RawDynamicInvoker.invoke(
RawDynamicInvoker.java:164)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.apache.catalina.core.StandardContext.init(
StandardContext.java:5310)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(
BaseModelMBean.java:297)
        at org.jboss.mx.server.RawDynamicInvoker.invoke(
RawDynamicInvoker.java:164)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal
(TomcatDeployer.java:301)
        at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(
TomcatDeployer.java:104)
        at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java
:375)
        at org.jboss.web.WebModule.startModule(WebModule.java:83)
        at org.jboss.web.WebModule.startService(WebModule.java:61)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(
ServiceMBeanSupport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(
ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(
ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java
:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy45.start(Unknown Source)
        at org.jboss.web.AbstractWebContainer.start(
AbstractWebContainer.java:466)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(
AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(
ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.interceptor.DynamicInterceptor.invoke(
DynamicInterceptor.java:97)
        at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(
InterceptorServiceMBeanSupport.java:238)
        at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(
DeployerInterceptor.java:93)
        at
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(
SubDeployerInterceptorSupport.java
:188)
        at org.jboss.deployment.SubDeployerInterceptor.invoke(
SubDeployerInterceptor.java:95)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy46.start(Unknown Source)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(
AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(
ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy9.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(
URLDeploymentScanner.java:421)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(
URLDeploymentScanner.java:634)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:26
3)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(
AbstractDeploymentScanner.java:336)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(
ServiceMBeanSupport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(
ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.j
13:10:17,046 INFO  [STDOUT] boss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(
ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java
:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(
AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(
ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(
AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java
:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:508)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java
:123)
        ... 143 more
Caused by: java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl
        at org.jboss.seam.ioc.spring.SpringELResolver.initialize(
SpringELResolver.java:45)
        ... 149 more
13:10:17,156 INFO  [STDOUT] 13:10:17,156 INFO  [[/company]] Initializing
Spring root WebApplicationContext
13:10:17,156 INFO  [STDOUT] 13:10:17,156 INFO  [ContextLoader] Root
WebApplicationContext: initialization started
13:10:17,203 INFO  [STDOUT] 13:10:17,203 INFO  [XmlWebApplicationContext]
Refreshing org.springframework.web.context.sup
port.XmlWebApplicationContext@16c3396: display name [Root
WebApplicationContext]; startup date [Thu Oct 18 13:10:17 BST


Please help... hope this is the last error i see :)



On 10/18/07, Jeff Yu <jeff.yu@iona.com> wrote:
>
> Hi,
>
> The simple way to verify whether it is the JAXB jar issue, you can put
> the jaxb-api, jaxb-impl in the $JBoss_HOME/lib/endorsed folder,
> and then see if it works or not.
>
> If it is the issue, you might need to refer to the this [1] to see how
> to configure a scoped classloader in JBoss to resolve classloader stuff.
>
> Hope This Helps.
> Jeff
>
> [1] http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
>
> shaminda perera wrote:
> > Yes, i put the CXF libraries in the war file. and then use maven to
> deploy a
> > EAR file which contains the war file.
> >
> > Does JBoss have a JAXB jar file? if so where can i locate it?
> >
> > On 10/18/07, Jeff Yu <jeff.yu@iona.com> wrote:
> >
> >> Hi,
> >>
> >> When I see the "ClassCastException", the "ClassLoader issue" would pop
> >> up in my mind.. ;-), I  stuck with the classloader issues these days.
> >>
> >> Can you show how you deploy the cxf libraries? put the required jars in
> >> the war, and then deploy the war to JBoss with scoping classloader? I
> am
> >> guessing it might be conflict with the JAXB  jar that JBoss had with
> the
> >> CXF's.
> >>
> >> Thanks
> >> Jeff
> >>
> >> shaminda perera wrote:
> >>
> >>> Hi Jim,
> >>> Thanks again,,
> >>>
> >>> updating the spring version to 2.0.6 did the trick..
> >>> now that error is not coming...
> >>> however,, now i am getting the following error:
> >>>
> >>> 11:50:41,860 ERROR [STDERR] 18-Oct-2007 11:50:41
> >>> org.apache.cxf.service.factory.ReflectionServiceFactoryBeanbuildServic
> >>> eFromClass
> >>> INFO: Creating Service {
> >>>
> >>>
> >>
> http://server.webservice.search.services.company.com}CompanySearchServicefrom
> >>
> >>> class
> >>> com.company.services.search.webservice.server.CompanySearchServiceImpl
> >>> 11:50:42,876 INFO  [STDOUT] 11:50:42,876
> >>>
> >> INFO  [DefaultListableBeanFactory]
> >>
> >>> Destroying singletons in org.springframework
> >>> .beans.factory.support.DefaultListableBeanFactory@b32b6: defining
> beans
> >>> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostPro
> >>> cessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,
> >>> org.apache.cxf.resource.ResourceManager,org.apache.cxf.bindin
> >>> g.BindingFactoryManager,
> >>>
> >> org.apache.cxf.transport.DestinationFactoryManager,
> >>
> >>> org.apache.cxf.transport.ConduitInitiatorMana
> >>> ger,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,
> >>> org.apache.cxf.workqueue.WorkQueueManager,org.apac
> >>> he.cxf.buslifecycle.BusLifeCycleManager,
> >>> org.apache.cxf.endpoint.ServerRegistry,
> >>> org.apache.cxf.endpoint.ServerLifeCycleMa
> >>> nager,org.apache.cxf.endpoint.ClientLifeCycleManager,
> >>> org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.
> >>> endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager
> ,
> >>> org.apache.cxf.catalog.OASISCatalogManager,org.ap
> >>> ache.cxf.binding.soap.SoapBindingFactory,
> >>> org.apache.cxf.binding.soap.SoapTransportFactory,
> >>> org.apache.cxf.binding.soap.cu
> >>> stomEditorConfigurer,
> >>> org.apache.cxf.transport.servlet.ServletTransportFactory
> >>>
> >> ,ricallTrackSearch];
> >>
> >>> root of factory hierar
> >>> chy
> >>> 11:50:42,892 INFO  [STDOUT] 11:50:42,892 ERROR [ContextLoader] Context
> >>> initialization failed
> >>> org.springframework.beans.factory.BeanCreationException: Error
> creating
> >>>
> >> bean
> >>
> >>> with name 'companyTrackSearch': Invocation o
> >>> f init method failed; nested exception is java.lang.ClassCastException
> :
> >>> com.company.services.search.webservice.server.Mai
> >>> nCompanySearchInput$JaxbAccessorF_clientID cannot be cast to
> >>> com.sun.xml.bind.v2.runtime.reflect.Accessor
> >>> Caused by:
> >>> java.lang.ClassCastException:
> >>>
> >>>
> >>
> com.company.services.search.webservice.server.MainCompanySearchInput$JaxbAccessorF_clientIDc
> >>
> >>> annot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor
> >>>         at
> >>>
> >>>
> >>
> com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate
> >>
> >>> (OptimizedAccessorFactory.java:15
> >>> 1)
> >>>         at
> >>> com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(
> >>> OptimizedAccessorFactory.java:143)
> >>>         at
> >>> com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(
> >>> Accessor.java:204)
> >>>         at
> >>>
> >> com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty
> >>
> >>> .<init>(SingleElementLeafProperty.java:45)
> >>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0
> (Native
> >>> Method)
> >>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> >>> NativeConstructorAccessorImpl.java:39)
> >>>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> >>> DelegatingConstructorAccessorImpl.java:27)
> >>>         at java.lang.reflect.Constructor.newInstance(Constructor.java
> >>>
> >> :513)
> >>
> >>>         at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create
> (
> >>> PropertyFactory.java:88)
> >>>
> >>> I think this is something to do with a library/jar issue, since when i
> >>> publish this same web service to Jetty HTTP server using
> >>>
> >> Endpoint.publish()
> >>
> >>> , it is working fine. I mean i was also able to access the WSDL using
> >>>
> >> the
> >>
> >>> URL.
> >>>
> >>> Please help.
> >>>
> >>> On 10/18/07, Jim Ma <ema@iona.com> wrote:
> >>>
> >>>
> >>>>> Jim,  yes I have those files in the classpath. I mean they are
> inside
> >>>>>
> >>>>>
> >>>> the
> >>>>
> >>>>
> >>>>> spring-beans-2.0-m2.jar\META-INF folder. this spring jar is in the
> >>>>> classpath.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> These files should be in cxf-rt-frontend-jaxws.jar. And jaxws.xsd  is
> >>>> also packaged into this jar file. Can you
> >>>> confirm this jar file on your classpath ?
> >>>>
> >>>> CXF2.0.2 use spring 2.0.6 . I also suggest you update the spring
> >>>>
> >> version
> >>
> >>>> to 2.0.6.
> >>>>
> >>>> -Jim
> >>>>
> >>>>
> >>>>
> >>>
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message