Robert, sorry I use this way, but I have a similar problem with Netbeans 6.5 and Axis2... I can develop my Axis2 web service without problem, and deploy it on a Tomcat 6.0.18. Problems arise when I want to consume it, because the IDE always takes me to an error very similar to that of Tian Chi said on Nabble website. mine looks like this:
Web Service Client can bot be created by JAXWS:wsimport utility. Reason: Could not initialize class com.sun.xml.bind.DatatypeConverterImpl There might be a problem during java artifacts creation: for example a name conflict in generated classes. To detect the problem see also the error messages in output window. You may be able to fix the problem in WSDL Customization dialog (Edit Web Service Attributes action) or by manual editing of the local wsdl or schema files, using the JAXB customization Can you help me? seems there's a problem with JAX-WS versions, but I'm not sure of it... Thanks in advance Jorge Olmedo. :-))) Robert Wierschke-2 wrote: > > Hi, > > If you are using NetBean, would you be so kind to tell me how I can >> upgrade JAX-WS for NetBean? >> > > yes I used NetBeans 6.5. What you need to do is upgarde > Metro<https://metro.dev.java.net/>(which includes JAX-WS) : > > > 1) Download <https://metro.dev.java.net/1.4/> and install metro to your > JDK > as described here ( > https://metro.dev.java.net/guide/Using_JAX_WS_2_1_with_JavaSE6.html) > > configure NetBeans > > 2) Within the NetBeans build.properties file (eg > C:\Users\robert\.netbeans\6.5\build.properties for Vista) set the property > 'libs.jaxws21.classpath' to point to the Metro classes. It should look > something like: > > libs.jaxws21.classpath=C:\\Program > Files\\Java\\metro\\lib\\webservices-rt.jar;C:\\Program > Files\\Java\\metro\\lib\\webservices-tools.jar > > Make sure not to include any *api.jar here. If you do wsimport wont work. > > > 3) Configure a library in NetBeans for Metro using the Library Manager > (Tools > Libraries). The library must contain webservices-rt.jar and > webservices-tools.jar (so I'm not sure about the latter but it doesn't > cause > any trouble for me). Use this library for your client project. > > That's it. Hope this helps. > > robert > > -- View this message in context: http://www.nabble.com/Help%21-Why-does-my-WSDL-for-axis2-keeps-getting-parsing-error-in-NetBean-IDE-6.5--tp20865160p21548899.html Sent from the Axis - User mailing list archive at Nabble.com.
