On Jun 14, 2008, at 11:38 PM, Pam Holzner wrote:


Hi,

I am trying to use cxf to generate a service from a wsdl. I started with my own wsdl but ran into this message: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/ xml/bind/api/ErrorListener ...


That class should be found in the jaxb-impl-2.1.6.jar that we ship in the lib directory. Double check to make sure that jar is there.

Also, what version of Java/JDK are you using? JDK 1.5 should work the best. If you're using java 6, make sure it's update 4 or later.


Dan



Thinking that perhaps my environment was not setup right. I fell back to trying to follow the instructions in the wsdl-first sample.

CXF_HOME is set to c:\java\apache_cxf-2.1

I'm using this batch script:
echo %CXF_HOME%set classpath=%classpath%;%CXF_HOME%\lib\cxf- manifest.jar;.\build\classesmkdir build\classes%CXF_HOME%\bin \wsdl2java -d build\classes -compile .\wsdl\hello_world.wsdl

I'm getting the same ErrorListener not found error.

When I search for ErrorListener I find references in the jars that came with cxf but not a definition. It looks like ErrorListener is defined in jaxb-impl.jar in the jaxws-2.1.3 distribution. I tried adding that jar but I got the same result. I think I am chasing my tail. Surely the sample works and I am just doing something stupid.

Any advice?
_________________________________________________________________
Now you can invite friends from Facebook and other groups to join you on Windows Liveā„¢ Messenger. Add now.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to