[jboss-user] [JBoss Web Services] - Re: JBoss 5.1.0, Apache CXF, Spring, and WSS4J issue

john h do-not-reply at jboss.com
Mon Apr 4 12:10:46 EDT 2011


john h [http://community.jboss.org/people/anotherjbossuser] created the discussion

"Re: JBoss 5.1.0, Apache CXF, Spring, and WSS4J issue"

To view the discussion, visit: http://community.jboss.org/message/597620#597620

--------------------------------------------------------------
Thanks Alessio for the response. Forgive me I'm relatively new to this.

I haven't done anything with the JBoss 5.1.0 GA server that is downloaded other than adding the ojdbc.jar to access an Oracle datasource.

Deploying works fine and other than the addition of the wss4j security the web service works fine. Here's the beginning of the stack trace happening when I call any web service interface method:

2011-04-01 11:09:00,126 ERROR [STDERR] (http-127.0.0.1-8080-2) java.lang.ClassNotFoundException: org.apache.ws.security.transform.STRTransform 
from  mailto:BaseClassLoader at 110769b{VFSClassLoaderPolicy at 1daf835{name=vfsfile:/C:/Documents%20and%20Settings/webedj/Desktop/GA/jboss-5.1.0.GA/server/default BaseClassLoader at 110769b{VFSClassLoaderPolicy at 1daf835{name=vfsfile:/C:/Documents%20and%20Settings/jj/Desktop/GA/jboss-5.1.0.GA/server/default
/deployers/jbossws.deployer/  http://community.jboss.org/mailto:domain=ClassLoaderDomain@19c7c21{name=DefaultDomain domain=ClassLoaderDomain at 19c7c21{name=DefaultDomain parentPolicy=BEFORE  mailto:parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at 1de3f2d parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at 1de3f2d}
roots=[MemoryContextHandler at 14513156[path= context=vfsmemory://ap403g-tsevsv-glz909pu-1-glz910q2-e real=vfsmemory://ap403g-tsevsv-glz909pu-1-glz910q2-e], 

Even though this exception is thrown, the web service still works.

For the WSS4J stuff I added:

<cxf.version>2.2.12</cxf.version>



<dependency> 
<groupId>org.apache.cxf</groupId> 
<artifactId>cxf-rt-ws-security</artifactId> 

As far as I know I haven't done anything with jbossws-cxf as all the CXF stuff I'm working with is directly Apache. I assume the jbossws-cxf stack is JBoss specific? If so I would prefer to stay away from a vendor specific implemetation of anything as I don't want to tie it to JBoss in the future.

I'm also using the Spring framework if that is of any use.

When I deploy the war, I also make sure the war file uses the library files I include in the war file and not the ones in JBoss via the addition of a jboss-web.xml file telling it to do so:

<jboss-web> 
<class-loading java2ClassLoadingCompliance="true"> 
<loader-repository> 

I'm also using the Spring framework if that is of any use.

Here's the the other CXF files I am using:

<groupId>org.apache.cxf</groupId>
<artifactId>cxf-java2ws-plugin</artifactId>
<version>${cxf.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-simple</artifactId>
<version>${cxf.version}</version>
</dependency>

</dependencies>
 
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>

<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>

</dependency>

<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>${cxf.version}</version>
</dependency>


Thanks again for your help.

John
 
com.comp.wu:loader=MyService.war 
</loader-repository> 
</class-loading> 
</jboss-web>
<version>${cxf.version}</version>
</dependency> 

<dependency> 
<groupId>org.apache.ws.security</groupId> 
<artifactId>wss4j</artifactId> 
<version>1.5.11</version> 
</dependency>
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/597620#597620]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110404/fae449b6/attachment-0001.html 


More information about the jboss-user mailing list