You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Brad O'Hearne <br...@neurofire.com> on 2008/08/04 18:20:55 UTC

Deserialization/data binding of byte arrays broken (was: CXF Maven Dependencies)

Dan,

Thanks for the reply. I did add that jar and it resolved the problem  
with receiving incoming requests, so it appears that there is an error  
somewhere in the Maven dependency chain.

However, this has now exposed a new problem, which is why I changed  
the subject line of the thread. As mentioned, I'm really upgrading  
existing code which was working on an older 2.1-incubating-snapshot of  
CXF. It now appears that deserialization of byte arrays (binary data)  
is broken in my code, where it worked fine previously. It is throwing  
an exception on invalid XML characters which it is detecting, which I  
would assume should be handled by the data binding framework  
recognizing the target as a byte array property.

Have there been any changes in the way data binding is being handled  
in the 2.1 release, and are there any examples anywhere of the  
*current* proper way to serialize / deserialize binary data using CXF?  
I'm currently at a bit of a loss, as I'm working with code that  
previously worked without error -- the older snapshot seemed to have  
no problems.

Any help or insight is greatly appreciated.

Thanks,

Brad


On Aug 1, 2008, at 8:16 PM, Daniel Kulp wrote:

>
> Maven is SOOO supposed to deal with these things....   Something  
> isn't being included in the right scope someplace.  :-(
>
> Try adding a dependency on the abdera-i18n jar:
> http://people.apache.org/repo/m2-incubating-repository/org/apache/abdera/abdera-i18n/0.4.0-incubating/
>
> Dan
>
>
> On Aug 1, 2008, at 6:37 PM, Brad O'Hearne wrote:
>
>> Sergey,
>>
>> I reverted back to CXF 2.1. Here is a chunk of my pom.xml:
>>
>> 	<properties>
>> 		<cxf.version>2.1.1</cxf.version>
>> 	</properties>
>> 	<dependencies>
>> 		<dependency>
>> 			<groupId>org.springframework</groupId>
>> 			<artifactId>spring</artifactId>
>> 			<version>2.5.2</version>
>> 		</dependency>
>> 		<dependency>
>> 			<groupId>org.springframework</groupId>
>> 			<artifactId>spring-webmvc</artifactId>
>> 			<version>2.5.2</version>
>> 		</dependency>		
>> 		
>> 		<dependency>
>> 			<groupId>org.apache.cxf</groupId>
>> 			<artifactId>cxf-rt-frontend-jaxrs</artifactId>
>> 			<version>${cxf.version}</version>
>> 		</dependency>
>> 	
>> 		<dependency>
>> 			<groupId>org.apache.ws.commons.axiom</groupId>
>> 			<artifactId>axiom-impl</artifactId>
>> 			<version>1.2.7</version>
>> 		</dependency>
>> 				
>> 		<dependency>
>> 			<groupId>junit</groupId>
>> 			<artifactId>junit</artifactId>
>> 			<version>3.8.2</version>
>> 			<scope>test</scope>
>> 		</dependency>
>> 		
>> 	</dependencies>
>>
>> Everything builds cleanly. Tomcat starts cleanly with my deployed  
>> WAR. When I try to hit the service, I receive:
>>
>> SEVERE: Servlet.service() for servlet CXFServlet threw exception
>> java.lang.ClassNotFoundException:  
>> org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
>> 	at  
>> org 
>> .apache 
>> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>> 1360)
>> 	at  
>> org 
>> .apache 
>> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>> 1206)
>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> 	at java.lang.ClassLoader.defineClass1(Native Method)
>> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>> 	at  
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
>> 124)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .loader.WebappClassLoader.findClassInternal(WebappClassLoader.java: 
>> 1819)
>> 	at  
>> org 
>> .apache 
>> .catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java: 
>> 872)
>> 	at  
>> org 
>> .apache 
>> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>> 1327)
>> 	at  
>> org 
>> .apache 
>> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>> 1206)
>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
>> 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>> 	at java.lang.Class.getConstructor0(Class.java:2699)
>> 	at java.lang.Class.getConstructor(Class.java:1657)
>> 	at org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:175)
>> 	at  
>> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java: 
>> 229)
>> 	at  
>> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java: 
>> 222)
>> 	at org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
>> 	at org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java: 
>> 58)
>> 	at  
>> org 
>> .apache.abdera.util.ServiceUtil.newParserInstance(ServiceUtil.java: 
>> 87)
>> 	at  
>> org 
>> .apache 
>> .abdera 
>> .util 
>> .AbderaConfiguration.newParserInstance(AbderaConfiguration.java:282)
>> 	at org.apache.abdera.Abdera.newParser(Abdera.java:219)
>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:91)
>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:81)
>> 	at  
>> org 
>> .apache 
>> .cxf.jaxrs.provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java: 
>> 46)
>> 	at  
>> org 
>> .apache 
>> .cxf.jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java:49)
>> 	at  
>> org 
>> .apache 
>> .cxf.jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:38)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .jaxrs 
>> .interceptor 
>> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:86)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java: 
>> 221)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .transport 
>> .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .transport 
>> .servlet.ServletDestination.invoke(ServletDestination.java:92)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .transport 
>> .servlet.ServletController.invokeDestination(ServletController.java: 
>> 279)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .transport.servlet.ServletController.invoke(ServletController.java: 
>> 123)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .transport 
>> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:174)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .transport 
>> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:152)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core 
>> .ApplicationFilterChain 
>> .internalDoFilter(ApplicationFilterChain.java:290)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 
>> 206)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>> 	at  
>> org 
>> .apache 
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> 	at  
>> org 
>> .apache 
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> 	at  
>> org 
>> .apache 
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
>> 109)
>> 	at  
>> org 
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
>> 286)
>> 	at  
>> org 
>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
>> 844)
>> 	at org.apache.coyote.http11.Http11Protocol 
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> 	at org.apache.tomcat.util.net.JIoEndpoint 
>> $Worker.run(JIoEndpoint.java:447)
>> 	at java.lang.Thread.run(Thread.java:619)
>>
>> I have in my WAR, the only one deployed to vanilla Tomcat, the  
>> 0.4.0-incubating version of the abdera jars. Let me ask this, has  
>> *anyone* gotten Restful services using jax-rs running on CXF 2.1.1?  
>> Does it even work? And if not, what to do now, as even the older  
>> 2.1-incubating versions of the CXF dependencies no longer work  
>> either....where can the answer be found?
>>
>> Thanks....
>>
>> Brad
>>
>> On Aug 1, 2008, at 3:17 PM, Brad O'Hearne wrote:
>>
>>> Sergey,
>>>
>>> Thanks for the reply. It really isn't an issue of whether I can  
>>> upgrade to 2.1.2 or not -- I was using the 2.1-incubating snapshot  
>>> just fine, but a recent maven build which downloaded new artifacts  
>>> broke everything. I of course want to use whatever code is deemed  
>>> current and superior, so I've tried to use the 2.1 release, but  
>>> haven't been able to get it to work. I just tried changing the  
>>> version to 2.1.2-SNAPSHOT per your email below, but now my pom  
>>> breaks on my jax-rs jar. I'm caught here -- what I was using just  
>>> fine is now broken, and I haven't been able to move successfully  
>>> forward, so even the code I had running properly before is now  
>>> dead in the water. Put simply, I just need a set of CXF/Rest/jax- 
>>> rs maven dependencies that work. If anyone can give me that, then  
>>> problem solved for now. I am attaching my maven output when trying  
>>> to build with 2.1.2-SNAPSHOT as my cxf.version property:
>>>
>>> Help!
>>>
>>> Thanks,
>>>
>>> Brad
>>>
>>> $ mvn compile
>>> [INFO] Scanning for projects...
>>> [INFO]  
>>> -------------------------------------------------------------------------
>>> ---
>>> [INFO] Building Unnamed -  
>>> com.whitenoise.securenow:SecureNOW_RemoteDataService:w
>>> ar:0.7.0
>>> [INFO]    task-segment: [compile]
>>> [INFO]  
>>> -------------------------------------------------------------------------
>>> ---
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] snapshot org.apache.cxf:cxf-rt-frontend-jaxrs:2.1.2- 
>>> SNAPSHOT: checking fo
>>> r updates from maven-proxy-webapp
>>> [WARNING] repository metadata for: 'snapshot org.apache.cxf:cxf-rt- 
>>> frontend-jaxr
>>> s:2.1.2-SNAPSHOT' could not be retrieved from repository: maven- 
>>> proxy-webapp due
>>> to an error: Error transferring file
>>> [INFO] Repository 'maven-proxy-webapp' will be blacklisted
>>> [INFO] snapshot org.apache.cxf:cxf-rt-frontend-jaxrs:2.1.2- 
>>> SNAPSHOT: checking fo
>>> r updates from codehaus-repository
>>> Downloading: http://maven.codehaus.org/maven2//org/apache/cxf/cxf-rt-frontend-ja
>>> xrs/2.1.2-SNAPSHOT/cxf-rt-frontend-jaxrs-2.1.2-SNAPSHOT.pom
>>> Downloading: http://maven.codehaus.org/maven2//org/apache/cxf/cxf-rt-frontend-ja
>>> xrs/2.1.2-SNAPSHOT/cxf-rt-frontend-jaxrs-2.1.2-SNAPSHOT.jar
>>> [INFO]  
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]  
>>> ------------------------------------------------------------------------
>>> [INFO] Failed to resolve artifact.
>>>
>>> Missing:
>>> ----------
>>> 1) org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1.2-SNAPSHOT
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command:
>>>    mvn install:install-file -DgroupId=org.apache.cxf - 
>>> DartifactId=cxf-rt-fron
>>> tend-jaxrs \
>>>        -Dversion=2.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>>> Alternatively, if you host your own repository you can deploy the  
>>> file there:
>>>  mvn deploy:deploy-file -DgroupId=org.apache.cxf -DartifactId=cxf- 
>>> rt-frontend
>>> -jaxrs \
>>>        -Dversion=2.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/ 
>>> file \
>>>         -Durl=[url] -DrepositoryId=[id]
>>>
>>> Path to dependency:
>>>      1) com.whitenoise.securenow:SecureNOW_RemoteDataService:war: 
>>> 0.7.0
>>>      2) org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1.2-SNAPSHOT
>>>
>>> ----------
>>> 1 required artifact is missing.
>>>
>>> for artifact:
>>> com.whitenoise.securenow:SecureNOW_RemoteDataService:war:0.7.0
>>>
>>> from the specified remote repositories:
>>> maven-proxy-webapp (http://rocksolid1.got.net/maven-proxy-webapp/repository 
>>> ),
>>> codehaus-repository (http://maven.codehaus.org/maven2/),
>>> central (http://repo1.maven.org/maven2)
>>>
>>>
>>> [INFO]  
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]  
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 4 seconds
>>> [INFO] Finished at: Fri Aug 01 15:10:20 MST 2008
>>> [INFO] Final Memory: 5M/9M
>>> [INFO]  
>>> ------------------------------------------------------------------------
>>>
>>> On Aug 1, 2008, at 2:57 PM, Sergey Beryozkin wrote:
>>>
>>>> Hi
>>>>
>>>> In 2.1.2-snapshot, there're no direct registration of  
>>>> AtomProvider, that is
>>>> I removed it from the default list, so I hope this issue would  
>>>> really go
>>>> away so people who do not want to deal with Atom won't need to  
>>>> worry about
>>>> installing all the required abdera libs - though to be honest I'm  
>>>> not sure
>>>> why these issues occur in the first place - the Atom system test  
>>>> in the
>>>> trunk runs all right...
>>>>
>>>> Sorry I can be of much help here. If you can't upgrade to 2.1.2 -  
>>>> snapshot
>>>> then installing some of the required libs (listed at the Abdera's  
>>>> getting
>>>> started guide) may help.
>>>>
>>>> I'm also on holidays from tomorrow for the most part of August so  
>>>> I won't be
>>>> able to contribute to any of the jax-rs related discussions...
>>>>
>>>> Cheers, Sergey
>>>>
>>>> -----Original Message-----
>>>> From: Brad O'Hearne [mailto:brado@neurofire.com]
>>>> Sent: 01 August 2008 22:22
>>>> To: users@cxf.apache.org
>>>> Subject: Re: CXF Maven Dependencies
>>>>
>>>> Here's my tree, I see the 0.4.0-incubating version of abdera  
>>>> only, and
>>>> do not see axiom at all:
>>>>
>>>> [INFO] com.whitenoise.securenow:SecureNOW_RemoteDataService:war: 
>>>> 0.7.0
>>>> [INFO] +- org.springframework:spring:jar:2.5.2:compile
>>>> [INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
>>>> [INFO] +- org.springframework:spring-webmvc:jar:2.5.2:compile
>>>> [INFO] |  +- org.springframework:spring-beans:jar:2.5.2:compile
>>>> [INFO] |  |  \- org.springframework:spring-core:jar:2.5.2:compile
>>>> [INFO] |  +- org.springframework:spring-context:jar:2.5.2:compile
>>>> [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
>>>> [INFO] |  +- org.springframework:spring-context-support:jar:
>>>> 2.5.2:compile
>>>> [INFO] |  +- org.springframework:spring-core:jar:2.5.2:compile
>>>> [INFO] |  \- org.springframework:spring-web:jar:2.5.2:compile
>>>> [INFO] +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1:compile
>>>> [INFO] |  +- org.apache.cxf:cxf-common-utilities:jar:2.1:compile
>>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-
>>>> annotation_1.0_spec:jar:1.1.1
>>>> :compile
>>>> [INFO] |  |  +- javax.xml.bind:jaxb-api:jar:2.1:compile
>>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-stax-
>>>> api_1.0_spec:jar:1.0.1:c
>>>> ompile
>>>> [INFO] |  |  +- wsdl4j:wsdl4j:jar:1.6.1:compile
>>>> [INFO] |  |  +- xml-resolver:xml-resolver:jar:1.2:compile
>>>> [INFO] |  |  +- org.apache.ws.commons.schema:XmlSchema:jar: 
>>>> 1.4.2:compile
>>>> [INFO] |  |  \- commons-lang:commons-lang:jar:2.4:compile
>>>> [INFO] |  +- org.apache.cxf:cxf-api:jar:2.1:compile
>>>> [INFO] |  |  +- org.apache.neethi:neethi:jar:2.0.4:compile
>>>> [INFO] |  |  |  \- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
>>>> [INFO] |  |  |     \- stax:stax-api:jar:1.0.1:compile
>>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-
>>>> activation_1.1_spec:jar:1.0.2
>>>> :compile
>>>> [INFO] |  |  +- org.apache.cxf:cxf-common-schemas:jar:2.1:compile
>>>> [INFO] |  |  \- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
>>>> [INFO] |  +- org.apache.cxf:cxf-rt-core:jar:2.1:compile
>>>> [INFO] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.1.6:compile
>>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-
>>>> javamail_1.4_spec:jar:1.3:com
>>>> pile
>>>> [INFO] |  |  \- com.sun.xml.fastinfoset:FastInfoset:jar: 
>>>> 1.2.2:compile
>>>> [INFO] |  +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.1:compile
>>>> [INFO] |  |  +- javax.xml.ws:jaxws-api:jar:2.1-1:compile
>>>> [INFO] |  |  +- asm:asm:jar:2.2.3:compile
>>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-bindings-soap:jar:2.1:compile
>>>> [INFO] |  |  |  +- org.apache.cxf:cxf-tools-common:jar:2.1:compile
>>>> [INFO] |  |  |  |  +- velocity:velocity:jar:1.4:compile
>>>> [INFO] |  |  |  |  |  \- velocity:velocity-dep:jar:1.4:runtime
>>>> [INFO] |  |  |  |  +- com.sun.xml.bind:jaxb-xjc:jar:2.1.6:compile
>>>> [INFO] |  |  |  |  +- javax.xml.soap:saaj-api:jar:1.3:compile
>>>> [INFO] |  |  |  |  \- org.apache.geronimo.specs:geronimo-ws-
>>>> metadata_2.0_spec:ja
>>>> r:1.1.2:compile
>>>> [INFO] |  |  |  \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:
>>>> 2.1:compile
>>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.1:compile
>>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-frontend-simple:jar: 
>>>> 2.1:compile
>>>> [INFO] |  |  |  \- javax.xml.soap:saaj-api:jar:1.3:compile
>>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-ws-addr:jar:2.1:compile
>>>> [INFO] |  |  +- javax.xml.soap:saaj-api:jar:1.3:compile
>>>> [INFO] |  |  \- com.sun.xml.messaging.saaj:saaj-impl:jar: 
>>>> 1.3:compile
>>>> [INFO] |  +- javax.ws.rs:jsr311-api:jar:0.6:compile
>>>> [INFO] |  +- org.apache.cxf:cxf-rt-transports-http:jar:2.1:compile
>>>> [INFO] |  +- jaxen:jaxen:jar:1.1:compile
>>>> [INFO] |  |  \- jdom:jdom:jar:1.0:compile
>>>> [INFO] |  +- org.apache.abdera:abdera-core:jar:0.4.0- 
>>>> incubating:compile
>>>> [INFO] |  +- org.apache.abdera:abdera-parser:jar:0.4.0-
>>>> incubating:compile
>>>> [INFO] |  +- org.apache.abdera:abdera-extensions-json:jar:0.4.0-
>>>> incubating:compi
>>>> le
>>>> [INFO] |  \- org.codehaus.jettison:jettison:jar:1.0:compile
>>>> [INFO] \- junit:junit:jar:3.8.2:test
>>>>
>>>> So I added the axiom dependency you mentioned prior, and tried the
>>>> thing again. Again it compiles clean, Tomcat starts clean, but
>>>> invoking a service throws the following exception:
>>>>
>>>> SEVERE: Servlet.service() for servlet CXFServlet threw exception
>>>> java.lang.ClassNotFoundException:
>>>> org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>>>> 1360)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>>>> 1206)
>>>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>> 	at java.lang.ClassLoader.defineClass1(Native Method)
>>>> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>> 	at
>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
>>>> 124)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina
>>>> ..loader 
>>>> .WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>>>> 1327)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>>>> 1206)
>>>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>> 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>>>> 	at java.lang.Class.getConstructor0(Class.java:2699)
>>>> 	at java.lang.Class.getConstructor(Class.java:1657)
>>>> 	at org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java: 
>>>> 175)
>>>> 	at
>>>> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
>>>> 229)
>>>> 	at
>>>> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
>>>> 222)
>>>> 	at org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
>>>> 	at
>>>> org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
>>>> 	at
>>>> org 
>>>> .apache.abdera.util.ServiceUtil.newParserInstance(ServiceUtil.java:
>>>> 87)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..abdera
>>>> ..util 
>>>> .AbderaConfiguration.newParserInstance(AbderaConfiguration.java:
>>>> 282)
>>>> 	at org.apache.abdera.Abdera.newParser(Abdera.java:219)
>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:91)
>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:81)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf 
>>>> .jaxrs.provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java:46)
>>>> 	at
>>>> org
>>>> ..apache 
>>>> .cxf.jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java:
>>>> 49)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf 
>>>> .jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:38)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf
>>>> ..jaxrs
>>>> ..interceptor 
>>>> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:
>>>> 86)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf
>>>> ..phase 
>>>> .PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf
>>>> ..transport
>>>> ..ChainInitiationObserver.onMessage(ChainInitiationObserver.java: 
>>>> 78)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf
>>>> ..transport 
>>>> .servlet.ServletDestination.invoke(ServletDestination.java:92)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf
>>>> ..transport
>>>> ..servlet 
>>>> .ServletController.invokeDestination(ServletController.java:214)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf 
>>>> .transport.servlet.ServletController.invoke(ServletController.java:
>>>> 113)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf
>>>> ..transport 
>>>> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:
>>>> 170)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..cxf
>>>> ..transport 
>>>> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:
>>>> 148)
>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina
>>>> ..core
>>>> ..ApplicationFilterChain 
>>>> .internalDoFilter(ApplicationFilterChain.java:
>>>> 290)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina
>>>> ..core 
>>>> .ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:
>>>> 233)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .core.StandardContextValve.invoke(StandardContextValve.java:
>>>> 175)
>>>> 	at
>>>> org
>>>> ..apache 
>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:
>>>> 128)
>>>> 	at
>>>> org
>>>> ..apache 
>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
>>>> 102)
>>>> 	at
>>>> org
>>>> ..apache
>>>> ..catalina 
>>>> .core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>> 	at
>>>> org 
>>>> .apache 
>>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>> 286)
>>>> 	at
>>>> org 
>>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>>>> 844)
>>>> 	at org.apache.coyote.http11.Http11Protocol
>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> 	at
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>>>> 447)
>>>> 	at java.lang.Thread.run(Thread.java:619)
>>>>
>>>> ??? Any ideas? Still an abdera problem it appears, but that  
>>>> appears to
>>>> be getting pulled in. I checked my WAR file being generated, and  
>>>> the
>>>> 0.4.0-incubating version of the jars are being added. This is the  
>>>> only
>>>> WAR I've deployed to vanilla Tomcat 6.0.
>>>>
>>>> Brad
>>>>
>>>>
>>>>
>>>> On Aug 1, 2008, at 1:09 PM, Daniel Kulp wrote:
>>>>
>>>>>
>>>>> I would suggest trying a:
>>>>>
>>>>> mvn dependency:tree
>>>>>
>>>>> and checking the versions that are being pulled in.     It might  
>>>>> be
>>>>> an old version of abdera or an old version of axiom or something.
>>>>>
>>>>> For reference, here is what jaxrs seems to want:
>>>>> [INFO] org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1.2-SNAPSHOT
>>>>> [INFO] +- junit:junit:jar:4.4:test
>>>>> [INFO] +- org.apache.cxf:cxf-common-utilities:jar:2.1.2-
>>>>> SNAPSHOT:compile
>>>>> [INFO] |  +- org.springframework:spring-beans:jar:2.0.8:compile
>>>>> [INFO] |  +- org.springframework:spring-context:jar:2.0.8:compile
>>>>> [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
>>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-
>>>>> annotation_1.0_spec:jar:1.1.1:compile
>>>>> [INFO] |  +- javax.xml.bind:jaxb-api:jar:2.1:compile
>>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-stax-
>>>>> api_1.0_spec:jar:1.0.1:compile
>>>>> [INFO] |  +- wsdl4j:wsdl4j:jar:1.6.2:compile
>>>>> [INFO] |  +- xml-resolver:xml-resolver:jar:1.2:compile
>>>>> [INFO] |  +- org.apache.ws.commons.schema:XmlSchema:jar: 
>>>>> 1.4.2:compile
>>>>> [INFO] |  \- commons-lang:commons-lang:jar:2.4:compile
>>>>> [INFO] +- org.apache.cxf:cxf-api:jar:2.1.2-SNAPSHOT:compile
>>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-
>>>>> activation_1.1_spec:jar:1.0.2:compile
>>>>> [INFO] |  +- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
>>>>> [INFO] |  +- org.apache.neethi:neethi:jar:2.0.4:compile
>>>>> [INFO] |  \- org.apache.cxf:cxf-common-schemas:jar:2.1.2-
>>>>> SNAPSHOT:compile
>>>>> [INFO] +- org.apache.cxf:cxf-rt-core:jar:2.1.2-SNAPSHOT:compile
>>>>> [INFO] |  +- com.sun.xml.bind:jaxb-impl:jar:2.1.7:compile
>>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-
>>>>> javamail_1.4_spec:jar:1.3:compile
>>>>> [INFO] |  \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.2:compile
>>>>> [INFO] +- org.springframework:spring-core:jar:2.0.8:compile
>>>>> [INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
>>>>> (version managed from 1.1)
>>>>> [INFO] +- javax.ws.rs:jsr311-api:jar:0.8:compile
>>>>> [INFO] +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.1.2-
>>>>> SNAPSHOT:compile
>>>>> [INFO] +- org.apache.cxf:cxf-rt-transports-http:jar:2.1.2-
>>>>> SNAPSHOT:compile
>>>>> [INFO] |  \- org.springframework:spring-web:jar:2.0.8:compile
>>>>> [INFO] +- jaxen:jaxen:jar:1.1:compile
>>>>> [INFO] |  \- jdom:jdom:jar:1.0:compile
>>>>> [INFO] +- org.apache.abdera:abdera-core:jar:0.4.0- 
>>>>> incubating:compile
>>>>> [INFO] |  +- org.apache.abdera:abdera-i18n:jar:0.4.0-
>>>>> incubating:compile
>>>>> [INFO] |  \- commons-codec:commons-codec:jar:1.3:compile
>>>>> [INFO] +- org.apache.abdera:abdera-parser:jar:0.4.0- 
>>>>> incubating:compile
>>>>> [INFO] |  \- org.apache.ws.commons.axiom:axiom-impl:jar:
>>>>> 1.2.7:compile (version managed from 1.2.5)
>>>>> [INFO] |     \- org.apache.ws.commons.axiom:axiom-api:jar:
>>>>> 1.2.7:compile
>>>>> [INFO] +- org.apache.abdera:abdera-extensions-json:jar:0.4.0-
>>>>> incubating:compile
>>>>> [INFO] |  \- org.apache.abdera:abdera-extensions-main:jar:0.4.0-
>>>>> incubating:compile
>>>>> [INFO] +- org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:
>>>>> 1.2:provided
>>>>> [INFO] +- org.codehaus.jettison:jettison:jar:1.0.1:compile
>>>>> [INFO] +- org.apache.cxf:cxf-testutils:jar:2.1.2-SNAPSHOT:test
>>>>> [INFO] |  +- org.codehaus.jra:jra:jar:1.0-alpha-3:test
>>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-ws-
>>>>> metadata_2.0_spec:jar:1.1.2:test
>>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo- 
>>>>> jaxws_2.1_spec:jar:
>>>>> 1.0:test
>>>>> [INFO] |  \- javax.xml.soap:saaj-api:jar:1.3:test
>>>>> [INFO] +- org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
>>>>> [INFO] \- org.easymock:easymockclassextension:jar:2.2.2:test
>>>>> [INFO]    +- org.easymock:easymock:jar:2.2:test
>>>>> [INFO]    \- cglib:cglib-nodep:jar:2.1_3:test
>>>>>
>>>>>
>>>>>
>>>>> On Aug 1, 2008, at 3:56 PM, Brad O'Hearne wrote:
>>>>>
>>>>>> Dan,
>>>>>>
>>>>>> Thanks for the reply. I did as you said, depending on the cxf-rt-
>>>>>> frontend-jaxrs module, and here is what happened:
>>>>>>
>>>>>> - compiled clean.
>>>>>> - deployed to Tomcat, and started Tomcat successfully (no  
>>>>>> errors).
>>>>>> - invoked a rest service from a client, and received the  
>>>>>> following
>>>>>> exception:
>>>>>>
>>>>>> SEVERE: Servlet.service() for servlet CXFServlet threw exception
>>>>>> java.lang.NoSuchMethodError:
>>>>>> org
>>>>>> .apache 
>>>>>> .abdera.protocol.error.ErrorExtensionFactory.addImpl(Ljavax/
>>>>>> xml/namespace/QName;Ljava/lang/Class;)Lorg/apache/abdera/util/
>>>>>> AbstractExtensionFactory;
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .abdera
>>>>>> .protocol
>>>>>> .error.ErrorExtensionFactory.<init>(ErrorExtensionFactory.java: 
>>>>>> 27)
>>>>>> 	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 java.lang.Class.newInstance0(Class.java:355)
>>>>>> 	at java.lang.Class.newInstance(Class.java:308)
>>>>>> 	at org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java: 
>>>>>> 174)
>>>>>> 	at
>>>>>> org 
>>>>>> .apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
>>>>>> 217)
>>>>>> 	at  
>>>>>> org.apache.abdera.util.ServiceUtil._loadimpls(ServiceUtil.java:
>>>>>> 325)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .abdera 
>>>>>> .util.ServiceUtil.loadExtensionFactories(ServiceUtil.java:302)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .abdera 
>>>>>> .util.AbderaConfiguration.<init>(AbderaConfiguration.java:95)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .abdera 
>>>>>> .util.AbderaConfiguration.<init>(AbderaConfiguration.java:81)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .abdera
>>>>>> .util.AbderaConfiguration.getDefault(AbderaConfiguration.java:48)
>>>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:56)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf 
>>>>>> .jaxrs.provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java:
>>>>>> 46)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java: 
>>>>>> 49)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf 
>>>>>> .jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:38)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .jaxrs
>>>>>> .interceptor
>>>>>> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:86)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .phase 
>>>>>> .PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
>>>>>> 220)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .ChainInitiationObserver.onMessage(ChainInitiationObserver.java: 
>>>>>> 78)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .servlet.ServletDestination.invoke(ServletDestination.java:92)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .servlet 
>>>>>> .ServletController.invokeDestination(ServletController.java:
>>>>>> 214)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport 
>>>>>> .servlet.ServletController.invoke(ServletController.java:
>>>>>> 113)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
>>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .catalina
>>>>>> .core
>>>>>> .ApplicationFilterChain
>>>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .catalina
>>>>>> .core 
>>>>>> .ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>>>> 206)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .catalina
>>>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .catalina
>>>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java: 
>>>>>> 128)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 
>>>>>> 102)
>>>>>> 	at
>>>>>> org
>>>>>> .apache
>>>>>> .catalina 
>>>>>> .core.StandardEngineValve.invoke(StandardEngineValve.java:
>>>>>> 109)
>>>>>> 	at
>>>>>> org
>>>>>> .apache 
>>>>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>>>>>> 286)
>>>>>> 	at
>>>>>> org
>>>>>> .apache 
>>>>>> .coyote.http11.Http11Processor.process(Http11Processor.java:
>>>>>> 844)
>>>>>> 	at org.apache.coyote.http11.Http11Protocol
>>>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>> 	at org.apache.tomcat.util.net.JIoEndpoint
>>>>>> $Worker.run(JIoEndpoint.java:447)
>>>>>> 	at java.lang.Thread.run(Thread.java:619)
>>>>>>
>>>>>> Any ideas?
>>>>>>
>>>>>> Thanks!  There is next to nothing on Google about this, any help
>>>>>> you can give is greatly appreciated.
>>>>>>
>>>>>> B
>>>>>>
>>>>>> On Aug 1, 2008, at 12:40 PM, Daniel Kulp wrote:
>>>>>>
>>>>>>>
>>>>>>> In theory, all you should need is to depend on the cxf-rt- 
>>>>>>> frontend-
>>>>>>> jaxrs module and it would pull in all the rest of the stuff it
>>>>>>> needs.
>>>>>>>
>>>>>>> This specific error could be addressed by depending on:
>>>>>>> org.apache.ws.commons.axiom:axiom-impl:jar:1.2.7
>>>>>>>
>>>>>>> Dan
>>>>>>>
>>>>>>>
>>>>>>> On Aug 1, 2008, at 3:16 PM, Brad O'Hearne wrote:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> I have been using the 2.1-incubating version of CXF for several
>>>>>>>> months, and have tried upgrading to 2.1.1. When I did so, my  
>>>>>>>> app
>>>>>>>> compiled / deployed cleanly, but I received an error from my
>>>>>>>> server when it tried to initialize the CXF servlet. I believe
>>>>>>>> this is likely due to some change in the dependency list -- I
>>>>>>>> tried cut/paste from the user guide, plus adding a few jars  
>>>>>>>> (jax-
>>>>>>>> rs transport, for one), but the same error occurred. Long story
>>>>>>>> short, I am trying to use CXF and RESTful services via jax-rs.
>>>>>>>> Can someone enlighten me as to the Maven dependencies and
>>>>>>>> versions which need to be declared in my pom.xml? It does not
>>>>>>>> appear that these are listed in the user guide.
>>>>>>>>
>>>>>>>> Thanks, my stack trace is below.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> Brad
>>>>>>>>
>>>>>>>> STACK TRACE
>>>>>>>>
>>>>>>>> SEVERE: Servlet.service() for servlet CXFServlet threw  
>>>>>>>> exception
>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>> org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>>>>>>>> 1360)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>>>>>>>> 1206)
>>>>>>>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
>>>>>>>> 319)
>>>>>>>> 	at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>>>> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>>>>>> 	at
>>>>>>>> java
>>>>>>>> .security 
>>>>>>>> .SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .loader
>>>>>>>> .WebappClassLoader.findClassInternal(WebappClassLoader.java: 
>>>>>>>> 1819)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>>>>>>>> 1327)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
>>>>>>>> 1206)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache 
>>>>>>>> .abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
>>>>>>>> 228)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache 
>>>>>>>> .abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
>>>>>>>> 222)
>>>>>>>> 	at  
>>>>>>>> org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
>>>>>>>> 	at
>>>>>>>> org 
>>>>>>>> .apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java: 
>>>>>>>> 58)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .abdera.util.ServiceUtil.newFactoryInstance(ServiceUtil.java: 
>>>>>>>> 97)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .abdera
>>>>>>>> .util
>>>>>>>> .AbderaConfiguration 
>>>>>>>> .newFactoryInstance(AbderaConfiguration.java:
>>>>>>>> 273)
>>>>>>>> 	at org.apache.abdera.Abdera.newFactory(Abdera.java:210)
>>>>>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:90)
>>>>>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:81)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .jaxrs 
>>>>>>>> .provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java:46)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf 
>>>>>>>> .jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java:49)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf 
>>>>>>>> .jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:
>>>>>>>> 38)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .jaxrs
>>>>>>>> .interceptor
>>>>>>>> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:86)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .phase
>>>>>>>> .PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java: 
>>>>>>>> 221)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .ChainInitiationObserver 
>>>>>>>> .onMessage(ChainInitiationObserver.java:78)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .servlet.ServletDestination.invoke(ServletDestination.java:92)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .servlet
>>>>>>>> .ServletController.invokeDestination(ServletController.java: 
>>>>>>>> 214)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .servlet.ServletController.invoke(ServletController.java:113)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
>>>>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
>>>>>>>> 710)
>>>>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
>>>>>>>> 803)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .core
>>>>>>>> .ApplicationFilterChain
>>>>>>>> .internalDoFilter(ApplicationFilterChain.java:290)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .core 
>>>>>>>> .ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>>>>>>>> 206)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
>>>>>>>> 233)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .core.StandardContextValve.invoke(StandardContextValve.java: 
>>>>>>>> 175)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina 
>>>>>>>> .core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina 
>>>>>>>> .valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina
>>>>>>>> .core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
>>>>>>>> 286)
>>>>>>>> 	at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .coyote.http11.Http11Processor.process(Http11Processor.java: 
>>>>>>>> 844)
>>>>>>>> 	at org.apache.coyote.http11.Http11Protocol
>>>>>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>>>>>> 	at org.apache.tomcat.util.net.JIoEndpoint
>>>>>>>> $Worker.run(JIoEndpoint.java:447)
>>>>>>>> 	at java.lang.Thread.run(Thread.java:619)
>>>>>>>> Aug 1, 2008 11:43:07 AM
>>>>>>>> org.apache.catalina.core.StandardWrapperValve invoke
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ---
>>>>>>> Daniel Kulp
>>>>>>> dkulp@apache.org
>>>>>>> http://www.dankulp.com/blog
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> ---
>>>>> Daniel Kulp
>>>>> dkulp@apache.org
>>>>> http://www.dankulp.com/blog
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> ----------------------------
>>>> IONA Technologies PLC (registered in Ireland)
>>>> Registered Number: 171387
>>>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,  
>>>> Ireland
>>>
>>
>
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>
>
>
>


Re: Deserialization/data binding of byte arrays broken (was: CXF Maven Dependencies)

Posted by Daniel Kulp <dk...@apache.org>.
Brad,

The 2.1-incubating stuff was probably implementing the (then current) 0.5 or 
0.6 JAX-RS stuff.   The 2.1.x releases have been updating that newer versions 
each time.   Thus, the JAX-RS stuff is kind of a moving target right now 
since the specification is in complete flux.    That's PROBABLY what you hit.

I know trunk (what will be 2.1.2 in a couple weeks) is now up to 0.8 and has a 
TON of fixes on it.   

As far as an example, no idea.  Not sure there is one.  

Dan


On Monday 04 August 2008 12:20:55 pm Brad O'Hearne wrote:
> Dan,
>
> Thanks for the reply. I did add that jar and it resolved the problem
> with receiving incoming requests, so it appears that there is an error
> somewhere in the Maven dependency chain.
>
> However, this has now exposed a new problem, which is why I changed
> the subject line of the thread. As mentioned, I'm really upgrading
> existing code which was working on an older 2.1-incubating-snapshot of
> CXF. It now appears that deserialization of byte arrays (binary data)
> is broken in my code, where it worked fine previously. It is throwing
> an exception on invalid XML characters which it is detecting, which I
> would assume should be handled by the data binding framework
> recognizing the target as a byte array property.
>
> Have there been any changes in the way data binding is being handled
> in the 2.1 release, and are there any examples anywhere of the
> *current* proper way to serialize / deserialize binary data using CXF?
> I'm currently at a bit of a loss, as I'm working with code that
> previously worked without error -- the older snapshot seemed to have
> no problems.
>
> Any help or insight is greatly appreciated.
>
> Thanks,
>
> Brad
>
> On Aug 1, 2008, at 8:16 PM, Daniel Kulp wrote:
> > Maven is SOOO supposed to deal with these things....   Something
> > isn't being included in the right scope someplace.  :-(
> >
> > Try adding a dependency on the abdera-i18n jar:
> > http://people.apache.org/repo/m2-incubating-repository/org/apache/abdera/
> >abdera-i18n/0.4.0-incubating/
> >
> > Dan
> >
> > On Aug 1, 2008, at 6:37 PM, Brad O'Hearne wrote:
> >> Sergey,
> >>
> >> I reverted back to CXF 2.1. Here is a chunk of my pom.xml:
> >>
> >> 	<properties>
> >> 		<cxf.version>2.1.1</cxf.version>
> >> 	</properties>
> >> 	<dependencies>
> >> 		<dependency>
> >> 			<groupId>org.springframework</groupId>
> >> 			<artifactId>spring</artifactId>
> >> 			<version>2.5.2</version>
> >> 		</dependency>
> >> 		<dependency>
> >> 			<groupId>org.springframework</groupId>
> >> 			<artifactId>spring-webmvc</artifactId>
> >> 			<version>2.5.2</version>
> >> 		</dependency>
> >>
> >> 		<dependency>
> >> 			<groupId>org.apache.cxf</groupId>
> >> 			<artifactId>cxf-rt-frontend-jaxrs</artifactId>
> >> 			<version>${cxf.version}</version>
> >> 		</dependency>
> >>
> >> 		<dependency>
> >> 			<groupId>org.apache.ws.commons.axiom</groupId>
> >> 			<artifactId>axiom-impl</artifactId>
> >> 			<version>1.2.7</version>
> >> 		</dependency>
> >>
> >> 		<dependency>
> >> 			<groupId>junit</groupId>
> >> 			<artifactId>junit</artifactId>
> >> 			<version>3.8.2</version>
> >> 			<scope>test</scope>
> >> 		</dependency>
> >>
> >> 	</dependencies>
> >>
> >> Everything builds cleanly. Tomcat starts cleanly with my deployed
> >> WAR. When I try to hit the service, I receive:
> >>
> >> SEVERE: Servlet.service() for servlet CXFServlet threw exception
> >> java.lang.ClassNotFoundException:
> >> org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
> >> 	at
> >> org
> >> .apache
> >> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >> 1360)
> >> 	at
> >> org
> >> .apache
> >> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >> 1206)
> >> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >> 	at java.lang.ClassLoader.defineClass1(Native Method)
> >> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> >> 	at
> >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
> >> 124)
> >> 	at
> >> org
> >> .apache
> >> .catalina
> >> .loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:
> >> 1819)
> >> 	at
> >> org
> >> .apache
> >> .catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:
> >> 872)
> >> 	at
> >> org
> >> .apache
> >> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >> 1327)
> >> 	at
> >> org
> >> .apache
> >> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >> 1206)
> >> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> >> 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
> >> 	at java.lang.Class.getConstructor0(Class.java:2699)
> >> 	at java.lang.Class.getConstructor(Class.java:1657)
> >> 	at org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:175)
> >> 	at
> >> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
> >> 229)
> >> 	at
> >> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
> >> 222)
> >> 	at org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> >> 	at org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:
> >> 58)
> >> 	at
> >> org
> >> .apache.abdera.util.ServiceUtil.newParserInstance(ServiceUtil.java:
> >> 87)
> >> 	at
> >> org
> >> .apache
> >> .abdera
> >> .util
> >> .AbderaConfiguration.newParserInstance(AbderaConfiguration.java:282)
> >> 	at org.apache.abdera.Abdera.newParser(Abdera.java:219)
> >> 	at org.apache.abdera.Abdera.<init>(Abdera.java:91)
> >> 	at org.apache.abdera.Abdera.<init>(Abdera.java:81)
> >> 	at
> >> org
> >> .apache
> >> .cxf.jaxrs.provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java:
> >> 46)
> >> 	at
> >> org
> >> .apache
> >> .cxf.jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java:49)
> >> 	at
> >> org
> >> .apache
> >> .cxf.jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:38)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .jaxrs
> >> .interceptor
> >> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:86)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> >> 221)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .transport
> >> .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .transport
> >> .servlet.ServletDestination.invoke(ServletDestination.java:92)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .transport
> >> .servlet.ServletController.invokeDestination(ServletController.java:
> >> 279)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .transport.servlet.ServletController.invoke(ServletController.java:
> >> 123)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .transport
> >> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:174)
> >> 	at
> >> org
> >> .apache
> >> .cxf
> >> .transport
> >> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:152)
> >> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >> 	at
> >> org
> >> .apache
> >> .catalina
> >> .core
> >> .ApplicationFilterChain
> >> .internalDoFilter(ApplicationFilterChain.java:290)
> >> 	at
> >> org
> >> .apache
> >> .catalina
> >> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> >> 206)
> >> 	at
> >> org
> >> .apache
> >> .catalina
> >> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >> 	at
> >> org
> >> .apache
> >> .catalina
> >> .core.StandardContextValve.invoke(StandardContextValve.java:175)
> >> 	at
> >> org
> >> .apache
> >> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >> 	at
> >> org
> >> .apache
> >> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >> 	at
> >> org
> >> .apache
> >> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> >> 109)
> >> 	at
> >> org
> >> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> >> 286)
> >> 	at
> >> org
> >> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> >> 844)
> >> 	at org.apache.coyote.http11.Http11Protocol
> >> $Http11ConnectionHandler.process(Http11Protocol.java:583)
> >> 	at org.apache.tomcat.util.net.JIoEndpoint
> >> $Worker.run(JIoEndpoint.java:447)
> >> 	at java.lang.Thread.run(Thread.java:619)
> >>
> >> I have in my WAR, the only one deployed to vanilla Tomcat, the
> >> 0.4.0-incubating version of the abdera jars. Let me ask this, has
> >> *anyone* gotten Restful services using jax-rs running on CXF 2.1.1?
> >> Does it even work? And if not, what to do now, as even the older
> >> 2.1-incubating versions of the CXF dependencies no longer work
> >> either....where can the answer be found?
> >>
> >> Thanks....
> >>
> >> Brad
> >>
> >> On Aug 1, 2008, at 3:17 PM, Brad O'Hearne wrote:
> >>> Sergey,
> >>>
> >>> Thanks for the reply. It really isn't an issue of whether I can
> >>> upgrade to 2.1.2 or not -- I was using the 2.1-incubating snapshot
> >>> just fine, but a recent maven build which downloaded new artifacts
> >>> broke everything. I of course want to use whatever code is deemed
> >>> current and superior, so I've tried to use the 2.1 release, but
> >>> haven't been able to get it to work. I just tried changing the
> >>> version to 2.1.2-SNAPSHOT per your email below, but now my pom
> >>> breaks on my jax-rs jar. I'm caught here -- what I was using just
> >>> fine is now broken, and I haven't been able to move successfully
> >>> forward, so even the code I had running properly before is now
> >>> dead in the water. Put simply, I just need a set of CXF/Rest/jax-
> >>> rs maven dependencies that work. If anyone can give me that, then
> >>> problem solved for now. I am attaching my maven output when trying
> >>> to build with 2.1.2-SNAPSHOT as my cxf.version property:
> >>>
> >>> Help!
> >>>
> >>> Thanks,
> >>>
> >>> Brad
> >>>
> >>> $ mvn compile
> >>> [INFO] Scanning for projects...
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>>-- ---
> >>> [INFO] Building Unnamed -
> >>> com.whitenoise.securenow:SecureNOW_RemoteDataService:w
> >>> ar:0.7.0
> >>> [INFO]    task-segment: [compile]
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>>-- ---
> >>> [INFO] [resources:resources]
> >>> [INFO] Using default encoding to copy filtered resources.
> >>> [INFO] snapshot org.apache.cxf:cxf-rt-frontend-jaxrs:2.1.2-
> >>> SNAPSHOT: checking fo
> >>> r updates from maven-proxy-webapp
> >>> [WARNING] repository metadata for: 'snapshot org.apache.cxf:cxf-rt-
> >>> frontend-jaxr
> >>> s:2.1.2-SNAPSHOT' could not be retrieved from repository: maven-
> >>> proxy-webapp due
> >>> to an error: Error transferring file
> >>> [INFO] Repository 'maven-proxy-webapp' will be blacklisted
> >>> [INFO] snapshot org.apache.cxf:cxf-rt-frontend-jaxrs:2.1.2-
> >>> SNAPSHOT: checking fo
> >>> r updates from codehaus-repository
> >>> Downloading:
> >>> http://maven.codehaus.org/maven2//org/apache/cxf/cxf-rt-frontend-ja
> >>> xrs/2.1.2-SNAPSHOT/cxf-rt-frontend-jaxrs-2.1.2-SNAPSHOT.pom
> >>> Downloading:
> >>> http://maven.codehaus.org/maven2//org/apache/cxf/cxf-rt-frontend-ja
> >>> xrs/2.1.2-SNAPSHOT/cxf-rt-frontend-jaxrs-2.1.2-SNAPSHOT.jar
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>>- [ERROR] BUILD ERROR
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>>- [INFO] Failed to resolve artifact.
> >>>
> >>> Missing:
> >>> ----------
> >>> 1) org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1.2-SNAPSHOT
> >>>
> >>> Try downloading the file manually from the project website.
> >>>
> >>> Then, install it using the command:
> >>>    mvn install:install-file -DgroupId=org.apache.cxf -
> >>> DartifactId=cxf-rt-fron
> >>> tend-jaxrs \
> >>>        -Dversion=2.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> >>> Alternatively, if you host your own repository you can deploy the
> >>> file there:
> >>>  mvn deploy:deploy-file -DgroupId=org.apache.cxf -DartifactId=cxf-
> >>> rt-frontend
> >>> -jaxrs \
> >>>        -Dversion=2.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/
> >>> file \
> >>>         -Durl=[url] -DrepositoryId=[id]
> >>>
> >>> Path to dependency:
> >>>      1) com.whitenoise.securenow:SecureNOW_RemoteDataService:war:
> >>> 0.7.0
> >>>      2) org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1.2-SNAPSHOT
> >>>
> >>> ----------
> >>> 1 required artifact is missing.
> >>>
> >>> for artifact:
> >>> com.whitenoise.securenow:SecureNOW_RemoteDataService:war:0.7.0
> >>>
> >>> from the specified remote repositories:
> >>> maven-proxy-webapp
> >>> (http://rocksolid1.got.net/maven-proxy-webapp/repository ),
> >>> codehaus-repository (http://maven.codehaus.org/maven2/),
> >>> central (http://repo1.maven.org/maven2)
> >>>
> >>>
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>>- [INFO] For more information, run Maven with the -e switch
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>>- [INFO] Total time: 4 seconds
> >>> [INFO] Finished at: Fri Aug 01 15:10:20 MST 2008
> >>> [INFO] Final Memory: 5M/9M
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>>-
> >>>
> >>> On Aug 1, 2008, at 2:57 PM, Sergey Beryozkin wrote:
> >>>> Hi
> >>>>
> >>>> In 2.1.2-snapshot, there're no direct registration of
> >>>> AtomProvider, that is
> >>>> I removed it from the default list, so I hope this issue would
> >>>> really go
> >>>> away so people who do not want to deal with Atom won't need to
> >>>> worry about
> >>>> installing all the required abdera libs - though to be honest I'm
> >>>> not sure
> >>>> why these issues occur in the first place - the Atom system test
> >>>> in the
> >>>> trunk runs all right...
> >>>>
> >>>> Sorry I can be of much help here. If you can't upgrade to 2.1.2 -
> >>>> snapshot
> >>>> then installing some of the required libs (listed at the Abdera's
> >>>> getting
> >>>> started guide) may help.
> >>>>
> >>>> I'm also on holidays from tomorrow for the most part of August so
> >>>> I won't be
> >>>> able to contribute to any of the jax-rs related discussions...
> >>>>
> >>>> Cheers, Sergey
> >>>>
> >>>> -----Original Message-----
> >>>> From: Brad O'Hearne [mailto:brado@neurofire.com]
> >>>> Sent: 01 August 2008 22:22
> >>>> To: users@cxf.apache.org
> >>>> Subject: Re: CXF Maven Dependencies
> >>>>
> >>>> Here's my tree, I see the 0.4.0-incubating version of abdera
> >>>> only, and
> >>>> do not see axiom at all:
> >>>>
> >>>> [INFO] com.whitenoise.securenow:SecureNOW_RemoteDataService:war:
> >>>> 0.7.0
> >>>> [INFO] +- org.springframework:spring:jar:2.5.2:compile
> >>>> [INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
> >>>> [INFO] +- org.springframework:spring-webmvc:jar:2.5.2:compile
> >>>> [INFO] |  +- org.springframework:spring-beans:jar:2.5.2:compile
> >>>> [INFO] |  |  \- org.springframework:spring-core:jar:2.5.2:compile
> >>>> [INFO] |  +- org.springframework:spring-context:jar:2.5.2:compile
> >>>> [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
> >>>> [INFO] |  +- org.springframework:spring-context-support:jar:
> >>>> 2.5.2:compile
> >>>> [INFO] |  +- org.springframework:spring-core:jar:2.5.2:compile
> >>>> [INFO] |  \- org.springframework:spring-web:jar:2.5.2:compile
> >>>> [INFO] +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1:compile
> >>>> [INFO] |  +- org.apache.cxf:cxf-common-utilities:jar:2.1:compile
> >>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-
> >>>> annotation_1.0_spec:jar:1.1.1
> >>>>
> >>>> :compile
> >>>>
> >>>> [INFO] |  |  +- javax.xml.bind:jaxb-api:jar:2.1:compile
> >>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-stax-
> >>>> api_1.0_spec:jar:1.0.1:c
> >>>> ompile
> >>>> [INFO] |  |  +- wsdl4j:wsdl4j:jar:1.6.1:compile
> >>>> [INFO] |  |  +- xml-resolver:xml-resolver:jar:1.2:compile
> >>>> [INFO] |  |  +- org.apache.ws.commons.schema:XmlSchema:jar:
> >>>> 1.4.2:compile
> >>>> [INFO] |  |  \- commons-lang:commons-lang:jar:2.4:compile
> >>>> [INFO] |  +- org.apache.cxf:cxf-api:jar:2.1:compile
> >>>> [INFO] |  |  +- org.apache.neethi:neethi:jar:2.0.4:compile
> >>>> [INFO] |  |  |  \- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
> >>>> [INFO] |  |  |     \- stax:stax-api:jar:1.0.1:compile
> >>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-
> >>>> activation_1.1_spec:jar:1.0.2
> >>>>
> >>>> :compile
> >>>>
> >>>> [INFO] |  |  +- org.apache.cxf:cxf-common-schemas:jar:2.1:compile
> >>>> [INFO] |  |  \- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
> >>>> [INFO] |  +- org.apache.cxf:cxf-rt-core:jar:2.1:compile
> >>>> [INFO] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.1.6:compile
> >>>> [INFO] |  |  +- org.apache.geronimo.specs:geronimo-
> >>>> javamail_1.4_spec:jar:1.3:com
> >>>> pile
> >>>> [INFO] |  |  \- com.sun.xml.fastinfoset:FastInfoset:jar:
> >>>> 1.2.2:compile
> >>>> [INFO] |  +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.1:compile
> >>>> [INFO] |  |  +- javax.xml.ws:jaxws-api:jar:2.1-1:compile
> >>>> [INFO] |  |  +- asm:asm:jar:2.2.3:compile
> >>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-bindings-soap:jar:2.1:compile
> >>>> [INFO] |  |  |  +- org.apache.cxf:cxf-tools-common:jar:2.1:compile
> >>>> [INFO] |  |  |  |  +- velocity:velocity:jar:1.4:compile
> >>>> [INFO] |  |  |  |  |  \- velocity:velocity-dep:jar:1.4:runtime
> >>>> [INFO] |  |  |  |  +- com.sun.xml.bind:jaxb-xjc:jar:2.1.6:compile
> >>>> [INFO] |  |  |  |  +- javax.xml.soap:saaj-api:jar:1.3:compile
> >>>> [INFO] |  |  |  |  \- org.apache.geronimo.specs:geronimo-ws-
> >>>> metadata_2.0_spec:ja
> >>>> r:1.1.2:compile
> >>>> [INFO] |  |  |  \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:
> >>>> 2.1:compile
> >>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.1:compile
> >>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-frontend-simple:jar:
> >>>> 2.1:compile
> >>>> [INFO] |  |  |  \- javax.xml.soap:saaj-api:jar:1.3:compile
> >>>> [INFO] |  |  +- org.apache.cxf:cxf-rt-ws-addr:jar:2.1:compile
> >>>> [INFO] |  |  +- javax.xml.soap:saaj-api:jar:1.3:compile
> >>>> [INFO] |  |  \- com.sun.xml.messaging.saaj:saaj-impl:jar:
> >>>> 1.3:compile
> >>>> [INFO] |  +- javax.ws.rs:jsr311-api:jar:0.6:compile
> >>>> [INFO] |  +- org.apache.cxf:cxf-rt-transports-http:jar:2.1:compile
> >>>> [INFO] |  +- jaxen:jaxen:jar:1.1:compile
> >>>> [INFO] |  |  \- jdom:jdom:jar:1.0:compile
> >>>> [INFO] |  +- org.apache.abdera:abdera-core:jar:0.4.0-
> >>>> incubating:compile
> >>>> [INFO] |  +- org.apache.abdera:abdera-parser:jar:0.4.0-
> >>>> incubating:compile
> >>>> [INFO] |  +- org.apache.abdera:abdera-extensions-json:jar:0.4.0-
> >>>> incubating:compi
> >>>> le
> >>>> [INFO] |  \- org.codehaus.jettison:jettison:jar:1.0:compile
> >>>> [INFO] \- junit:junit:jar:3.8.2:test
> >>>>
> >>>> So I added the axiom dependency you mentioned prior, and tried the
> >>>> thing again. Again it compiles clean, Tomcat starts clean, but
> >>>> invoking a service throws the following exception:
> >>>>
> >>>> SEVERE: Servlet.service() for servlet CXFServlet threw exception
> >>>> java.lang.ClassNotFoundException:
> >>>> org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>> 1360)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>> 1206)
> >>>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >>>> 	at java.lang.ClassLoader.defineClass1(Native Method)
> >>>> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> >>>> 	at
> >>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
> >>>> 124)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> ..loader
> >>>> .WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>> 1327)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>> 1206)
> >>>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >>>> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> >>>> 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
> >>>> 	at java.lang.Class.getConstructor0(Class.java:2699)
> >>>> 	at java.lang.Class.getConstructor(Class.java:1657)
> >>>> 	at org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:
> >>>> 175)
> >>>> 	at
> >>>> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
> >>>> 229)
> >>>> 	at
> >>>> org.apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
> >>>> 222)
> >>>> 	at org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> >>>> 	at
> >>>> org.apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:58)
> >>>> 	at
> >>>> org
> >>>> .apache.abdera.util.ServiceUtil.newParserInstance(ServiceUtil.java:
> >>>> 87)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..abdera
> >>>> ..util
> >>>> .AbderaConfiguration.newParserInstance(AbderaConfiguration.java:
> >>>> 282)
> >>>> 	at org.apache.abdera.Abdera.newParser(Abdera.java:219)
> >>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:91)
> >>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:81)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> .jaxrs.provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java:46)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> .cxf.jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java:
> >>>> 49)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> .jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:38)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> ..jaxrs
> >>>> ..interceptor
> >>>> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:
> >>>> 86)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> ..phase
> >>>> .PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> ..transport
> >>>> ..ChainInitiationObserver.onMessage(ChainInitiationObserver.java:
> >>>> 78)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> ..transport
> >>>> .servlet.ServletDestination.invoke(ServletDestination.java:92)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> ..transport
> >>>> ..servlet
> >>>> .ServletController.invokeDestination(ServletController.java:214)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> .transport.servlet.ServletController.invoke(ServletController.java:
> >>>> 113)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> ..transport
> >>>> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:
> >>>> 170)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..cxf
> >>>> ..transport
> >>>> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:
> >>>> 148)
> >>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> ..core
> >>>> ..ApplicationFilterChain
> >>>> .internalDoFilter(ApplicationFilterChain.java:
> >>>> 290)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> ..core
> >>>> .ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> >>>> 233)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .core.StandardContextValve.invoke(StandardContextValve.java:
> >>>> 175)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> >>>> 128)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> >>>> 102)
> >>>> 	at
> >>>> org
> >>>> ..apache
> >>>> ..catalina
> >>>> .core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >>>> 	at
> >>>> org
> >>>> .apache
> >>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> >>>> 286)
> >>>> 	at
> >>>> org
> >>>> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> >>>> 844)
> >>>> 	at org.apache.coyote.http11.Http11Protocol
> >>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>>> 	at
> >>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> >>>> 447)
> >>>> 	at java.lang.Thread.run(Thread.java:619)
> >>>>
> >>>> ??? Any ideas? Still an abdera problem it appears, but that
> >>>> appears to
> >>>> be getting pulled in. I checked my WAR file being generated, and
> >>>> the
> >>>> 0.4.0-incubating version of the jars are being added. This is the
> >>>> only
> >>>> WAR I've deployed to vanilla Tomcat 6.0.
> >>>>
> >>>> Brad
> >>>>
> >>>> On Aug 1, 2008, at 1:09 PM, Daniel Kulp wrote:
> >>>>> I would suggest trying a:
> >>>>>
> >>>>> mvn dependency:tree
> >>>>>
> >>>>> and checking the versions that are being pulled in.     It might
> >>>>> be
> >>>>> an old version of abdera or an old version of axiom or something.
> >>>>>
> >>>>> For reference, here is what jaxrs seems to want:
> >>>>> [INFO] org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.1.2-SNAPSHOT
> >>>>> [INFO] +- junit:junit:jar:4.4:test
> >>>>> [INFO] +- org.apache.cxf:cxf-common-utilities:jar:2.1.2-
> >>>>> SNAPSHOT:compile
> >>>>> [INFO] |  +- org.springframework:spring-beans:jar:2.0.8:compile
> >>>>> [INFO] |  +- org.springframework:spring-context:jar:2.0.8:compile
> >>>>> [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
> >>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-
> >>>>> annotation_1.0_spec:jar:1.1.1:compile
> >>>>> [INFO] |  +- javax.xml.bind:jaxb-api:jar:2.1:compile
> >>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-stax-
> >>>>> api_1.0_spec:jar:1.0.1:compile
> >>>>> [INFO] |  +- wsdl4j:wsdl4j:jar:1.6.2:compile
> >>>>> [INFO] |  +- xml-resolver:xml-resolver:jar:1.2:compile
> >>>>> [INFO] |  +- org.apache.ws.commons.schema:XmlSchema:jar:
> >>>>> 1.4.2:compile
> >>>>> [INFO] |  \- commons-lang:commons-lang:jar:2.4:compile
> >>>>> [INFO] +- org.apache.cxf:cxf-api:jar:2.1.2-SNAPSHOT:compile
> >>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-
> >>>>> activation_1.1_spec:jar:1.0.2:compile
> >>>>> [INFO] |  +- org.codehaus.woodstox:wstx-asl:jar:3.2.4:compile
> >>>>> [INFO] |  +- org.apache.neethi:neethi:jar:2.0.4:compile
> >>>>> [INFO] |  \- org.apache.cxf:cxf-common-schemas:jar:2.1.2-
> >>>>> SNAPSHOT:compile
> >>>>> [INFO] +- org.apache.cxf:cxf-rt-core:jar:2.1.2-SNAPSHOT:compile
> >>>>> [INFO] |  +- com.sun.xml.bind:jaxb-impl:jar:2.1.7:compile
> >>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-
> >>>>> javamail_1.4_spec:jar:1.3:compile
> >>>>> [INFO] |  \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.2:compile
> >>>>> [INFO] +- org.springframework:spring-core:jar:2.0.8:compile
> >>>>> [INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
> >>>>> (version managed from 1.1)
> >>>>> [INFO] +- javax.ws.rs:jsr311-api:jar:0.8:compile
> >>>>> [INFO] +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.1.2-
> >>>>> SNAPSHOT:compile
> >>>>> [INFO] +- org.apache.cxf:cxf-rt-transports-http:jar:2.1.2-
> >>>>> SNAPSHOT:compile
> >>>>> [INFO] |  \- org.springframework:spring-web:jar:2.0.8:compile
> >>>>> [INFO] +- jaxen:jaxen:jar:1.1:compile
> >>>>> [INFO] |  \- jdom:jdom:jar:1.0:compile
> >>>>> [INFO] +- org.apache.abdera:abdera-core:jar:0.4.0-
> >>>>> incubating:compile
> >>>>> [INFO] |  +- org.apache.abdera:abdera-i18n:jar:0.4.0-
> >>>>> incubating:compile
> >>>>> [INFO] |  \- commons-codec:commons-codec:jar:1.3:compile
> >>>>> [INFO] +- org.apache.abdera:abdera-parser:jar:0.4.0-
> >>>>> incubating:compile
> >>>>> [INFO] |  \- org.apache.ws.commons.axiom:axiom-impl:jar:
> >>>>> 1.2.7:compile (version managed from 1.2.5)
> >>>>> [INFO] |     \- org.apache.ws.commons.axiom:axiom-api:jar:
> >>>>> 1.2.7:compile
> >>>>> [INFO] +- org.apache.abdera:abdera-extensions-json:jar:0.4.0-
> >>>>> incubating:compile
> >>>>> [INFO] |  \- org.apache.abdera:abdera-extensions-main:jar:0.4.0-
> >>>>> incubating:compile
> >>>>> [INFO] +- org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:
> >>>>> 1.2:provided
> >>>>> [INFO] +- org.codehaus.jettison:jettison:jar:1.0.1:compile
> >>>>> [INFO] +- org.apache.cxf:cxf-testutils:jar:2.1.2-SNAPSHOT:test
> >>>>> [INFO] |  +- org.codehaus.jra:jra:jar:1.0-alpha-3:test
> >>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-ws-
> >>>>> metadata_2.0_spec:jar:1.1.2:test
> >>>>> [INFO] |  +- org.apache.geronimo.specs:geronimo-
> >>>>> jaxws_2.1_spec:jar:
> >>>>> 1.0:test
> >>>>> [INFO] |  \- javax.xml.soap:saaj-api:jar:1.3:test
> >>>>> [INFO] +- org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
> >>>>> [INFO] \- org.easymock:easymockclassextension:jar:2.2.2:test
> >>>>> [INFO]    +- org.easymock:easymock:jar:2.2:test
> >>>>> [INFO]    \- cglib:cglib-nodep:jar:2.1_3:test
> >>>>>
> >>>>> On Aug 1, 2008, at 3:56 PM, Brad O'Hearne wrote:
> >>>>>> Dan,
> >>>>>>
> >>>>>> Thanks for the reply. I did as you said, depending on the cxf-rt-
> >>>>>> frontend-jaxrs module, and here is what happened:
> >>>>>>
> >>>>>> - compiled clean.
> >>>>>> - deployed to Tomcat, and started Tomcat successfully (no
> >>>>>> errors).
> >>>>>> - invoked a rest service from a client, and received the
> >>>>>> following
> >>>>>> exception:
> >>>>>>
> >>>>>> SEVERE: Servlet.service() for servlet CXFServlet threw exception
> >>>>>> java.lang.NoSuchMethodError:
> >>>>>> org
> >>>>>> .apache
> >>>>>> .abdera.protocol.error.ErrorExtensionFactory.addImpl(Ljavax/
> >>>>>> xml/namespace/QName;Ljava/lang/Class;)Lorg/apache/abdera/util/
> >>>>>> AbstractExtensionFactory;
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .abdera
> >>>>>> .protocol
> >>>>>> .error.ErrorExtensionFactory.<init>(ErrorExtensionFactory.java:
> >>>>>> 27)
> >>>>>> 	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 java.lang.Class.newInstance0(Class.java:355)
> >>>>>> 	at java.lang.Class.newInstance(Class.java:308)
> >>>>>> 	at org.apache.abdera.util.ServiceUtil._create(ServiceUtil.java:
> >>>>>> 174)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache.abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
> >>>>>> 217)
> >>>>>> 	at
> >>>>>> org.apache.abdera.util.ServiceUtil._loadimpls(ServiceUtil.java:
> >>>>>> 325)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .abdera
> >>>>>> .util.ServiceUtil.loadExtensionFactories(ServiceUtil.java:302)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .abdera
> >>>>>> .util.AbderaConfiguration.<init>(AbderaConfiguration.java:95)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .abdera
> >>>>>> .util.AbderaConfiguration.<init>(AbderaConfiguration.java:81)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .abdera
> >>>>>> .util.AbderaConfiguration.getDefault(AbderaConfiguration.java:48)
> >>>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:56)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .jaxrs.provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java:
> >>>>>> 46)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf.jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java:
> >>>>>> 49)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:38)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .jaxrs
> >>>>>> .interceptor
> >>>>>> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:86)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .phase
> >>>>>> .PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> >>>>>> 220)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .transport
> >>>>>> .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:
> >>>>>> 78)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .transport
> >>>>>> .servlet.ServletDestination.invoke(ServletDestination.java:92)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .transport
> >>>>>> .servlet
> >>>>>> .ServletController.invokeDestination(ServletController.java:
> >>>>>> 214)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .transport
> >>>>>> .servlet.ServletController.invoke(ServletController.java:
> >>>>>> 113)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .transport
> >>>>>> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .cxf
> >>>>>> .transport
> >>>>>> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
> >>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina
> >>>>>> .core
> >>>>>> .ApplicationFilterChain
> >>>>>> .internalDoFilter(ApplicationFilterChain.java:290)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina
> >>>>>> .core
> >>>>>> .ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> >>>>>> 206)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina
> >>>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina
> >>>>>> .core.StandardContextValve.invoke(StandardContextValve.java:175)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> >>>>>> 128)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> >>>>>> 102)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina
> >>>>>> .core.StandardEngineValve.invoke(StandardEngineValve.java:
> >>>>>> 109)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> >>>>>> 286)
> >>>>>> 	at
> >>>>>> org
> >>>>>> .apache
> >>>>>> .coyote.http11.Http11Processor.process(Http11Processor.java:
> >>>>>> 844)
> >>>>>> 	at org.apache.coyote.http11.Http11Protocol
> >>>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>>>>> 	at org.apache.tomcat.util.net.JIoEndpoint
> >>>>>> $Worker.run(JIoEndpoint.java:447)
> >>>>>> 	at java.lang.Thread.run(Thread.java:619)
> >>>>>>
> >>>>>> Any ideas?
> >>>>>>
> >>>>>> Thanks!  There is next to nothing on Google about this, any help
> >>>>>> you can give is greatly appreciated.
> >>>>>>
> >>>>>> B
> >>>>>>
> >>>>>> On Aug 1, 2008, at 12:40 PM, Daniel Kulp wrote:
> >>>>>>> In theory, all you should need is to depend on the cxf-rt-
> >>>>>>> frontend-
> >>>>>>> jaxrs module and it would pull in all the rest of the stuff it
> >>>>>>> needs.
> >>>>>>>
> >>>>>>> This specific error could be addressed by depending on:
> >>>>>>> org.apache.ws.commons.axiom:axiom-impl:jar:1.2.7
> >>>>>>>
> >>>>>>> Dan
> >>>>>>>
> >>>>>>> On Aug 1, 2008, at 3:16 PM, Brad O'Hearne wrote:
> >>>>>>>> Hello,
> >>>>>>>>
> >>>>>>>> I have been using the 2.1-incubating version of CXF for several
> >>>>>>>> months, and have tried upgrading to 2.1.1. When I did so, my
> >>>>>>>> app
> >>>>>>>> compiled / deployed cleanly, but I received an error from my
> >>>>>>>> server when it tried to initialize the CXF servlet. I believe
> >>>>>>>> this is likely due to some change in the dependency list -- I
> >>>>>>>> tried cut/paste from the user guide, plus adding a few jars
> >>>>>>>> (jax-
> >>>>>>>> rs transport, for one), but the same error occurred. Long story
> >>>>>>>> short, I am trying to use CXF and RESTful services via jax-rs.
> >>>>>>>> Can someone enlighten me as to the Maven dependencies and
> >>>>>>>> versions which need to be declared in my pom.xml? It does not
> >>>>>>>> appear that these are listed in the user guide.
> >>>>>>>>
> >>>>>>>> Thanks, my stack trace is below.
> >>>>>>>>
> >>>>>>>> Cheers,
> >>>>>>>>
> >>>>>>>> Brad
> >>>>>>>>
> >>>>>>>> STACK TRACE
> >>>>>>>>
> >>>>>>>> SEVERE: Servlet.service() for servlet CXFServlet threw
> >>>>>>>> exception
> >>>>>>>> java.lang.ClassNotFoundException:
> >>>>>>>> org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>>>>>> 1360)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>>>>>> 1206)
> >>>>>>>> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> >>>>>>>> 319)
> >>>>>>>> 	at java.lang.ClassLoader.defineClass1(Native Method)
> >>>>>>>> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> >>>>>>>> 	at
> >>>>>>>> java
> >>>>>>>> .security
> >>>>>>>> .SecureClassLoader.defineClass(SecureClassLoader.java:124)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .loader
> >>>>>>>> .WebappClassLoader.findClassInternal(WebappClassLoader.java:
> >>>>>>>> 1819)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>>>>>> 1327)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> >>>>>>>> 1206)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
> >>>>>>>> 228)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .abdera.util.ServiceUtil.locateInstance(ServiceUtil.java:
> >>>>>>>> 222)
> >>>>>>>> 	at
> >>>>>>>> org.apache.abdera.util.ServiceUtil.locate(ServiceUtil.java:144)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache.abdera.util.ServiceUtil.newInstance(ServiceUtil.java:
> >>>>>>>> 58)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .abdera.util.ServiceUtil.newFactoryInstance(ServiceUtil.java:
> >>>>>>>> 97)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .abdera
> >>>>>>>> .util
> >>>>>>>> .AbderaConfiguration
> >>>>>>>> .newFactoryInstance(AbderaConfiguration.java:
> >>>>>>>> 273)
> >>>>>>>> 	at org.apache.abdera.Abdera.newFactory(Abdera.java:210)
> >>>>>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:90)
> >>>>>>>> 	at org.apache.abdera.Abdera.<init>(Abdera.java:81)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .jaxrs
> >>>>>>>> .provider.AtomFeedProvider.<clinit>(AtomFeedProvider.java:46)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .jaxrs.provider.ProviderFactory.<init>(ProviderFactory.java:49)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .jaxrs.provider.ProviderFactory.<clinit>(ProviderFactory.java:
> >>>>>>>> 38)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .jaxrs
> >>>>>>>> .interceptor
> >>>>>>>> .JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:86)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .phase
> >>>>>>>> .PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> >>>>>>>> 221)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .transport
> >>>>>>>> .ChainInitiationObserver
> >>>>>>>> .onMessage(ChainInitiationObserver.java:78)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .transport
> >>>>>>>> .servlet.ServletDestination.invoke(ServletDestination.java:92)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .transport
> >>>>>>>> .servlet
> >>>>>>>> .ServletController.invokeDestination(ServletController.java:
> >>>>>>>> 214)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .transport
> >>>>>>>> .servlet.ServletController.invoke(ServletController.java:113)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .transport
> >>>>>>>> .servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .cxf
> >>>>>>>> .transport
> >>>>>>>> .servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
> >>>>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> >>>>>>>> 710)
> >>>>>>>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> >>>>>>>> 803)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .core
> >>>>>>>> .ApplicationFilterChain
> >>>>>>>> .internalDoFilter(ApplicationFilterChain.java:290)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .core
> >>>>>>>> .ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> >>>>>>>> 206)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> >>>>>>>> 233)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .core.StandardContextValve.invoke(StandardContextValve.java:
> >>>>>>>> 175)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .core.StandardHostValve.invoke(StandardHostValve.java:128)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina
> >>>>>>>> .core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> >>>>>>>> 286)
> >>>>>>>> 	at
> >>>>>>>> org
> >>>>>>>> .apache
> >>>>>>>> .coyote.http11.Http11Processor.process(Http11Processor.java:
> >>>>>>>> 844)
> >>>>>>>> 	at org.apache.coyote.http11.Http11Protocol
> >>>>>>>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>>>>>>> 	at org.apache.tomcat.util.net.JIoEndpoint
> >>>>>>>> $Worker.run(JIoEndpoint.java:447)
> >>>>>>>> 	at java.lang.Thread.run(Thread.java:619)
> >>>>>>>> Aug 1, 2008 11:43:07 AM
> >>>>>>>> org.apache.catalina.core.StandardWrapperValve invoke
> >>>>>>>
> >>>>>>> ---
> >>>>>>> Daniel Kulp
> >>>>>>> dkulp@apache.org
> >>>>>>> http://www.dankulp.com/blog
> >>>>>
> >>>>> ---
> >>>>> Daniel Kulp
> >>>>> dkulp@apache.org
> >>>>> http://www.dankulp.com/blog
> >>>>
> >>>> ----------------------------
> >>>> IONA Technologies PLC (registered in Ireland)
> >>>> Registered Number: 171387
> >>>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4,
> >>>> Ireland
> >
> > ---
> > Daniel Kulp
> > dkulp@apache.org
> > http://www.dankulp.com/blog



-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog