<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: JBoss 5.1.0, Apache CXF, Spring, and WSS4J issue
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/anotherjbossuser">john h</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/597620#597620">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p> Thanks Alessio for the response. Forgive me I'm relatively new to this.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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 </p><p>from <a class="jive-link-external-small" href="mailto:BaseClassLoader@110769b{VFSClassLoaderPolicy@1daf835{name=vfsfile:/C:/Documents%20and%20Settings/webedj/Desktop/GA/jboss-5.1.0.GA/server/default">BaseClassLoader@110769b{VFSClassLoaderPolicy@1daf835{name=vfsfile:/C:/Documents%20and%20Settings/jj/Desktop/GA/jboss-5.1.0.GA/server/default</a></p><p>/deployers/jbossws.deployer/ <a class="" href="http://community.jboss.org/mailto:domain=ClassLoaderDomain@19c7c21{name=DefaultDomain">domain=ClassLoaderDomain@19c7c21{name=DefaultDomain</a> parentPolicy=BEFORE <a class="jive-link-external-small" href="mailto:parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@1de3f2d">parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@1de3f2d</a>}</p><p>roots=[MemoryContextHandler@14513156[path= context=vfsmemory://ap403g-tsevsv-glz909pu-1-glz910q2-e real=vfsmemory://ap403g-tsevsv-glz909pu-1-glz910q2-e], </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Even though this exception is thrown, the web service still works.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>For the WSS4J stuff I added:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;cxf.version&gt;2.2.12&lt;/cxf.version&gt;</p><p><span style="font-size: 10pt;"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"><p align="left">&lt;dependency&gt; </p><p align="left">&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt; </p><p align="left">&lt;artifactId&gt;<span style="text-decoration: underline;">cxf</span>-<span style="text-decoration: underline;">rt</span>-<span style="text-decoration: underline;">ws</span>-security&lt;/artifactId&gt; </p></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"></span>I'm also using the Spring framework if that is of any use.</p><p><br/>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:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"><p align="left">&lt;jboss-web&gt; </p><p align="left">&lt;class-loading java2ClassLoadingCompliance="true"&gt; </p><p align="left">&lt;loader-repository&gt; </p></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"></span>I'm also using the Spring framework if that is of any use.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here's the the other CXF files I am using:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"><p align="left">&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;</p><p align="left">&lt;artifactId&gt;<span style="text-decoration: underline;">cxf</span>-java2ws-<span style="text-decoration: underline;">plugin</span>&lt;/artifactId&gt;</p><p align="left">&lt;version&gt;${cxf.version}&lt;/version&gt;</p><p align="left">&lt;dependencies&gt;</p><p align="left">&lt;dependency&gt;</p><p align="left">&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;</p><p align="left">&lt;artifactId&gt;<span style="text-decoration: underline;">cxf</span>-<span style="text-decoration: underline;">rt</span>-<span style="text-decoration: underline;">frontend</span>-<span style="text-decoration: underline;">jaxws</span>&lt;/artifactId&gt;</p><p align="left">&lt;version&gt;${cxf.version}&lt;/version&gt;</p><p align="left">&lt;/dependency&gt;</p><p align="left">&lt;dependency&gt;</p><p align="left">&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;</p><p align="left">&lt;artifactId&gt;<span style="text-decoration: underline;">cxf</span>-<span style="text-decoration: underline;">rt</span>-<span style="text-decoration: underline;">frontend</span>-simple&lt;/artifactId&gt;</p><p align="left">&lt;version&gt;${cxf.version}&lt;/version&gt;</p><p align="left">&lt;/dependency&gt;</p></span></p><p>&lt;/dependencies&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10pt;"> </span>&#160;</p><p><span style="font-size: 10pt;"><p align="left">&lt;dependency&gt;</p><p align="left">&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;</p><p align="left">&lt;artifactId&gt;<span style="text-decoration: underline;">cxf</span>-<span style="text-decoration: underline;">rt</span>-<span style="text-decoration: underline;">frontend</span>-<span style="text-decoration: underline;">jaxws</span>&lt;/artifactId&gt;</p><p align="left">&lt;version&gt;${cxf.version}&lt;/version&gt;</p><p align="left">&lt;/dependency&gt;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left">&lt;dependency&gt;</p><p align="left">&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;</p><p align="left">&lt;artifactId&gt;<span style="text-decoration: underline;">cxf</span>-<span style="text-decoration: underline;">rt</span>-transports-<span style="text-decoration: underline;">http</span>&lt;/artifactId&gt;</p><p align="left">&lt;version&gt;${cxf.version}&lt;/version&gt;</p></span></p><p>&lt;/dependency&gt;</p><p><span style="font-size: 10pt;"></span></p><p><span style="font-size: 10pt;"></span><span style="font-size: 10pt;"><p align="left">&lt;dependency&gt;</p><p align="left">&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;</p><p align="left">&lt;artifactId&gt;<span style="text-decoration: underline;">cxf</span>-<span style="text-decoration: underline;">rt</span>-transports-<span style="text-decoration: underline;">http</span>-<span style="text-decoration: underline;">jetty</span>&lt;/artifactId&gt;</p><p align="left">&lt;version&gt;${cxf.version}&lt;/version&gt;</p><p>&lt;/dependency&gt;</p></span></p><p><span style="font-size: 10pt;"></span></p><p><span style="font-size: 10pt;"></span>Thanks again for your help.</p><p><span style="font-size: 10pt;"></span></p><p><span style="font-size: 10pt;"></span>John</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10pt;"> </span>&#160;</p></p><p align="left">com.comp.wu:loader=MyService.war </p><p><p align="left">&lt;/loader-repository&gt; </p><p align="left">&lt;/class-loading&gt; </p></p><p>&lt;/jboss-web&gt;</p></p><p align="left">&lt;version&gt;${cxf.version}&lt;/version&gt;</p><p><p align="left">&lt;/dependency&gt; </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left">&lt;dependency&gt; </p><p align="left">&lt;groupId&gt;org.apache.ws.security&lt;/groupId&gt; </p><p align="left">&lt;artifactId&gt;wss4j&lt;/artifactId&gt; </p><p align="left">&lt;version&gt;1.5.11&lt;/version&gt; </p></p><p>&lt;/dependency&gt; </p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/597620#597620">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>