-
1. WSDLPublisher not configured, unable to publish contract!
asoldano Jan 12, 2011 6:16 AM (in response to bapats)Can you please share the contents of web.xml / jbossws-cxf.xml and the full stacktrace?
That message regarding the WSDLPublisher is likely to indicate that part of the jbossws-cxf integration is not being run.
-
2. WSDLPublisher not configured, unable to publish contract!
bapats Jan 12, 2011 6:18 PM (in response to asoldano)Actually I figured out the problem. I had the following imports in my jbossws-cxf.xml.
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-*.xml" />
Once I removed those, it works. So looks like these imports are not needed when using jbossws-cxf, but are needed when using cxf by itself.
Thanks
-
3. WSDLPublisher not configured, unable to publish contract!
asoldano Jan 13, 2011 4:29 AM (in response to bapats)Thanks for sharing the result of the analysis, this might help the community in the future.
Yes, there's no need to import that extension stuff in jbossws-cxf, as it's all been automatically loaded by the stack. To be honest, in some cases I think that might even be redundant when using plain Apache CXF, anyway, that's a different topic ;-)
-
4. Re: WSDLPublisher not configured, unable to publish contract!
dlaprade Nov 1, 2011 7:29 AM (in response to asoldano)I am having this same issue in JBossWS-CXF-3.1.2 and I do not have the import statements listed in my WEB-INF/jbossws-cxf.xml file.
My jbossws-cxf.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
<jaxws:endpoint id="HelloWorldService" implementor="com.example.HelloWorldServer" address="/Hello-World/HelloWorldService" >
<jaxws:properties>
<entry key="ws-security.callback-handler" value="com.example.KeystorePasswordCallback"/>
<entry key="ws-security.signature.properties" value="user.properties"/>
<entry key="ws-security.encryption.properties" value="user.properties"/>
<entry key="ws-security.signature.username" value="bob"/>
<entry key="ws-security.encryption.username" value="bob"/>
</jaxws:properties>
</jaxws:endpoint>
</beans>
Any ideas?