On Feb 13, 2013, at 5:58 AM, Lucky Sutanto <[email protected]> wrote:

> Dear all,
> 
> I'm a newbie in Java web service development and I'm decided to use Apache 
> CXF framework to start learning about it.
> 
> Things that I have done so far:
> 1. Create dynamic web project
> 2. Import a simple WSDL sample
> 3. Generate Java class from that WSDL using CXF context menu in Eclipse
> 4. The Java code generated smoothly
> 5. But then when I try to run it on server/publish it on Tomcat server (I've 
> setup Tomcat server instance in the Eclipse) I got error with following 
> stacktrace in the Tomcat console:
> 
> ...
> Caused by: java.lang.IllegalArgumentException: Cannot create URL for this 
> address soap.udp://239.255.255.250:3702
>       at 
> com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:236)
>       at 
> org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl.startup(WSDiscoveryServiceImpl.java:191)
>       at 
> org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl.serverStarted(WSDiscoveryServiceImpl.java:116)
>       at 
> org.apache.cxf.ws.discovery.listeners.WSDiscoveryServerListener.startServer(WSDiscoveryServerListener.java:72)
>       at 
> org.apache.cxf.bus.managers.ServerLifeCycleManagerImpl.startServer(ServerLifeCycleManagerImpl.java:61)
>       at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:146)
>       at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:360)
>       ... 31 more
> ...
> 
> The configuration in my workstation:
> - Apache CXF version: 2.7.1
> - JAX-WS version 2.2.7

Can I ask why you have both CXF and the RI on the classpath at the same time?  
That looks like it's part of the issue.  The WS-Discovery stuff is picking up 
the RI instead of CXF.

Dan



> - Running on Windows 7 64-Bit and Java version 1.7.0_02 64-Bit version
> - Web server: Apache Tomcat 7.0.35
> - IDE: Eclipse Indigo
> - The code is enclosed in this email
> 
> 
> I really appreciate if you guys can help me out finding the culprit of this 
> problem. 
> 
> Thank you,
> 
> Lucky Sutanto
> <WSDL2JavaTest.zip>

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to