cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <ning.ji...@iona.com>
Subject Re: xfire migration
Date Mon, 16 Jul 2007 08:12:41 GMT
Hi Deno,

You can use the jaxws syntax to deal with your annotated service class.
Please ref this URL [1] for more information.

http://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html

Cheers,

Willem.


Deno Vichas wrote:
> Thanks willem, that was the one.
>
> Now could somebody clue me into the correct syntax to inject some beans
> for the constructor on my service class. I'm not up on the new spring 2
> xml syntax. I was using annotations with xfire. 
>
> thanks
>
>
> -----Original Message-----
> From: Willem Jiang [mailto:ning.jiang@iona.com] 
> Sent: Sunday, July 15, 2007 8:55 PM
> To: cxf-user@incubator.apache.org
> Subject: Re: xfire migration
>
> I think you missed a jar in  you class path,
> It is xml-resolver-1.2.jar and it should be in the CXF_INSTALL/lib 
> directory.
>
> Willem.
>
> Deno Vichas wrote:
>   
>> All,
>>
>>  
>>
>> I'm trying to port my xfire services to cxf.  I figured it's a good
>>     
> time
>   
>> since I only have 2 of them.  I think I've followed the instructions
>>     
> on
>   
>> http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html to
>> the letter.  Right now I'm just trying to get a HelloWorld service
>> working before migrating my real ones.  I'm using spring 2.0.5 with
>> tomcat 5.5  on this project and think I removed all the xfire related
>> jars from the project.  I did keep the jars I added for xfire in my
>> project that CXF and did not replace them with the ones from the CXF
>> distro.  When I start up my app I'm getting the exception listed
>>     
> below.
>   
>>  
>>
>> Is there anything special I need to do to migrate my xfire services
>>     
> that
>   
>> I was created with schema first and JAXB?
>>
>>  
>>
>> Thanks!
>>
>>  
>>
>>  
>>
>> 2007-07-15 14:46:39,218 ERROR web.context.ContextLoader  - Context
>> initialization failed
>>
>> org.springframework.beans.factory.BeanCreationException: Error
>>     
> creating
>   
>> bean with name 'org.apache.cxf.catalog.OASISCatalogManager' defined in
>> class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean
>> failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate bean class [org.apache.cxf.catalog.OASISCatalogManager]:
>> Constructor threw exception; nested exception is
>> java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
>>
>> Caused by: 
>>
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate bean class [org.apache.cxf.catalog.OASISCatalogManager]:
>> Constructor threw exception; nested exception is
>> java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
>>
>> Caused by: 
>>
>> java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
>>
>>       at
>>
>>     
> org.apache.cxf.catalog.OASISCatalogManager.<init>(OASISCatalogManager.ja
>   
>> va:49)
>>
>>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>
>>       at
>>
>>     
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
>   
>> ccessorImpl.java:39)
>>
>>       at
>>
>>     
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
>   
>> tructorAccessorImpl.java:27)
>>
>>       at
>>     
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>   
>>       at
>>
>>     
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
>   
>>       at
>>
>>     
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
>   
>> stantiate(SimpleInstantiationStrategy.java:61)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>   
>> tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:759)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>   
>> tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:724)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>   
>> tory.createBean(AbstractAutowireCapableBeanFactory.java:387)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
>   
>> t(AbstractBeanFactory.java:251)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
>   
>> etSingleton(DefaultSingletonBeanRegistry.java:156)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
>   
>> stractBeanFactory.java:248)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
>   
>> stractBeanFactory.java:160)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
>   
>> InstantiateSingletons(DefaultListableBeanFactory.java:287)
>>
>>       at
>>
>>     
> org.springframework.context.support.AbstractApplicationContext.refresh(A
>   
>> bstractApplicationContext.java:352)
>>
>>       at
>>
>>     
> org.springframework.web.context.ContextLoader.createWebApplicationContex
>   
>> t(ContextLoader.java:244)
>>
>>       at
>>
>>     
> org.springframework.web.context.ContextLoader.initWebApplicationContext(
>   
>> ContextLoader.java:187)
>>
>>       at
>>
>>     
> org.springframework.web.context.ContextLoaderListener.contextInitialized
>   
>> (ContextLoaderListener.java:49)
>>
>>       at
>>
>>     
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
>   
>> ava:3764)
>>
>>       at
>>
>>     
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4216
>   
>> )
>>
>>       at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>
>>       at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>
>>       at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>
>>       at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>
>>       at
>>
>>     
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>   
>>       at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>
>>       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>
>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>       at
>>
>>     
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>   
>> a:39)
>>
>>       at
>>
>>     
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>   
>> Impl.java:25)
>>
>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>
>>       at
>>     
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>   
>>       at
>>     
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>   
>> 2007-07-15 14:46:39,234 ERROR [Catalina].[localhost].[/oracle]  -
>> Exception sending context initialized event to listener instance of
>> class org.springframework.web.context.ContextLoaderListener
>>
>> org.springframework.beans.factory.BeanCreationException: Error
>>     
> creating
>   
>> bean with name 'org.apache.cxf.catalog.OASISCatalogManager' defined in
>> class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean
>> failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate bean class [org.apache.cxf.catalog.OASISCatalogManager]:
>> Constructor threw exception; nested exception is
>> java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
>>
>> Caused by: 
>>
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate bean class [org.apache.cxf.catalog.OASISCatalogManager]:
>> Constructor threw exception; nested exception is
>> java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
>>
>> Caused by: 
>>
>> java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
>>
>>       at
>>
>>     
> org.apache.cxf.catalog.OASISCatalogManager.<init>(OASISCatalogManager.ja
>   
>> va:49)
>>
>>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>
>>       at
>>
>>     
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
>   
>> ccessorImpl.java:39)
>>
>>       at
>>
>>     
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
>   
>> tructorAccessorImpl.java:27)
>>
>>       at
>>     
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>   
>>       at
>>
>>     
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
>   
>>       at
>>
>>     
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
>   
>> stantiate(SimpleInstantiationStrategy.java:61)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>   
>> tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:759)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>   
>> tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:724)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>   
>> tory.createBean(AbstractAutowireCapableBeanFactory.java:387)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
>   
>> t(AbstractBeanFactory.java:251)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
>   
>> etSingleton(DefaultSingletonBeanRegistry.java:156)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
>   
>> stractBeanFactory.java:248)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
>   
>> stractBeanFactory.java:160)
>>
>>       at
>>
>>     
> org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
>   
>> InstantiateSingletons(DefaultListableBeanFactory.java:287)
>>
>>       at
>>
>>     
> org.springframework.context.support.AbstractApplicationContext.refresh(A
>   
>> bstractApplicationContext.java:352)
>>
>>       at
>>
>>     
> org.springframework.web.context.ContextLoader.createWebApplicationContex
>   
>> t(ContextLoader.java:244)
>>
>>       at
>>
>>     
> org.springframework.web.context.ContextLoader.initWebApplicationContext(
>   
>> ContextLoader.java:187)
>>
>>       at
>>
>>     
> org.springframework.web.context.ContextLoaderListener.contextInitialized
>   
>> (ContextLoaderListener.java:49)
>>
>>       at
>>
>>     
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
>   
>> ava:3764)
>>
>>       at
>>
>>     
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4216
>   
>> )
>>
>>       at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>
>>       at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>
>>       at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>
>>       at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>
>>       at
>>
>>     
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>   
>>       at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>
>>       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>
>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>       at
>>
>>     
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>   
>> a:39)
>>
>>       at
>>
>>     
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>   
>> Impl.java:25)
>>
>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>
>>       at
>>     
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>   
>>       at
>>     
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>   
>>   
>>     
>
>   

Mime
View raw message