<!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="https://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: Using apache cxf.xml with a jax-ws client
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/daniel.cote.qc.ca">Daniel Cote</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/802620#802620">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Alessio,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I did the test, using the following configuration:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em><jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1"></em></p><p><em>    <deployment></em></p><p><em>        <dependencies></em></p><p><em>            <module name="com.oracle" export="true" /></em></p><p><em>            <module name="com.logibec.parameters" export="true" /> <!-- parameters --></em></p><p><em><!-- </em></p><p><em>            <module name="org.apache.cxf.impl" export="true"></em></p><p><em>             <imports></em></p><p><em>                <include path="META-INF"/></em></p><p><em>                <include path="META-INF/cxf"/></em></p><p><em>              </imports> </em></p><p><em>              <exports></em></p><p><em>                <include path="META-INF"/></em></p><p><em>                <include path="META-INF/cxf"/></em></p><p><em>              </exports> </em></p><p><em>            </module>          </em></p><p><em>            <module name="org.apache.cxf" export="true"></em></p><p><em>              <imports></em></p><p><em>                <include path="META-INF"/></em></p><p><em>                <include path="META-INF/cxf"/></em></p><p><em>              </imports> </em></p><p><em>              <exports></em></p><p><em>                <include path="META-INF"/></em></p><p><em>                <include path="META-INF/cxf"/></em></p><p><em>              </exports> </em></p><p><em>            </module>            </em></p><p><em>            <module name="org.springframework.spring" export="true"></em></p><p><em>              <imports></em></p><p><em>                <include path="META-INF"/></em></p><p><em>              </imports> </em></p><p><em>              <exports></em></p><p><em>                <include path="META-INF"/></em></p><p><em>               </exports> </em></p><p><em>            </module>            </em></p><p><em>  -->     </em></p><p>  </p><p><em><strong>              <module name="org.jboss.ws.cxf.jbossws-cxf-client" export="true"></strong></em></p><p><em><strong>              <imports></strong></em></p><p><em><strong>                <include path="META-INF"/></strong></em></p><p><em><strong>              </imports> </strong></em></p><p><em><strong>              <exports></strong></em></p><p><em><strong>                <include path="META-INF"/></strong></em></p><p><em><strong>               </exports> </strong></em></p><p><em><strong>            </module>            </strong></em></p><p>                </p><p><em>        </dependencies></em></p><p><em>    </deployment></em></p><p><em></jboss-deployment-structure></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The problem, with this configuration, is that it makes MANDATORY to have an META-INF/cxf/cxf.xml (which I did not managed to setup).</p><p>Here the trace file:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>06:54:28,996 INFO (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusApplicationContext.prepareRefresh Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5cf70001: startup date [Thu Mar 14 06:54:28 EDT 2013]; root of context hierarchy</em></p><p><em>06:54:29,043 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.TunedDocumentLoader.<clinit> FastInfoset not found on classpath. Disabling context load optimizations.</em></p><p><em>06:54:29,043 INFO (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources Loaded configuration file cxf.xml.</em></p><p><em>06:54:29,058 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources Creating application context with resources: [class path resource [META-INF/cxf/cxf.xml], class path resource [cxf.xml]]</em></p><p><em>06:54:29,058 INFO (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]</em></p><p><em>06:54:29,058 WARN (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext Initial attempt to create application context was unsuccessful.: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf.xml] cannot be opened because it does not exist</em></p><p><em> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)</em></p><p><em> at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.internalLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:154)</em></p><p><em> at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.access$000(ControlledValidationXmlBeanDefinitionReader.java:66)</em></p><p><em>...</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In my understanding, this resource should be made optionnal.</p><p>Anyway, thanks again.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Ciao</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/802620#802620">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://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>