Contact Us

Home > Error Starting > Error Starting Wsgen

Error Starting Wsgen

Despite that, I had a runtime error, but this time from Tomcat, a whole different environment. [sourcecode language="java" light="true"] GRAVE: WSSERVLET11: failed to parse runtime descriptor: java.lang.LinkageError: JAXB 2.0 API is People Assignee: kohsuke Reporter: jungicz Votes: 0 Vote for this issue Watchers: 0 Start watching this issue Dates Created: 11/Apr/07 7:34 AM Updated: 06/Jun/07 5:04 PM Resolved: 06/Jun/07 5:04 PM Agile I would expect that JDK's JAXP classes are loaded but I see that there are some class clast exception coming from xerces library made availble to the classpath. Browse other questions tagged java netbeans wsimport or ask your own question. this contact form

Resolving the problem Fix the issue based on the exception shown when the ANT task is run with the -debug parameter Related information Creating a MTDS project for RuleApps in V7.1 Sponsored by United States English English IBM® Site map IBM IBM Support Check here to start a new keyword search. windows->preferences->tasks shows that wsgen is there Thanks in advance. Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration at org.apache.xerces.parsers.SAXParser.(Unknown Source) at org.apache.xerces.parsers.SAXParser.(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at com.sun.org.apache.xml.internal.resolver.readers.SAXCatalogReader.readCatalog(SAXCatalogReader.java:238) at com.sun.org.apache.xml.internal.resolver.Catalog.parseCatalog(Catalog.java:680) at com.sun.xml.ws.util.xml.XmlUtil.createEntityResolver(XmlUtil.java:222) Reducing the priority to this contact form

this problem is related to the following location: at java.lang.StackTraceElement at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace() at java.lang.Throwable at java.lang.Exception at java.sql.SQLException at private java.sql.SQLException it.kines.ws.jaxws.SQLExceptionBean.nextException at it.kines.ws.jaxws.SQLExceptionBean at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:148) package com.mkyong.endpoint; import javax.xml.ws.Endpoint; import com.mkyong.ws.ServerInfo; //Endpoint publisher public class WsPublisher{ public static void main(String[] args) { Endpoint.publish("http://localhost:8888/ws/server", new ServerInfo()); System.out.println("Service is published!"); } } Download Source Code Download It - this problem is related to the following location: at java.lang.StackTraceElement at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace() at java.lang.Throwable at java.lang.Exception at java.sql.SQLException at private java.sql.SQLException it.kines.ws.jaxws.SQLExceptionBean.nextException at it.kines.ws.jaxws.SQLExceptionBean at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438) at This wsgen tool is available in $JDK/bin folder.Use cases2 common use cases for wsgen tool :Generates JAX-WS portable artifacts (Java files) for web service deployment.Generates WSDL and xsd files, for testing

Generates JAX-WS portable artifacts (Java files)To generate all the JAX-WS portable artifacts for above web service implementation class (ServerInfo.java), use following command :Command : wsgen usage D:\>wsgen -verbose -keep -cp . To be fixed in the JAXB RI. Copyright © 2008-2016 Mkyong.com, all rights reserved. I will go to ide from now on .

John de Michele Rancher Posts: 600 posted 7 years ago Sonia: What I meant was, does Ant know where to find the wsgen executable file? sonia pandit Ranch Hand Posts: 137 posted 7 years ago I set the path to point to the ant libraries. This may cause the problems. https://java.net/jira/browse/JAX_WS-470 With ant you cant use jvmarg to pass endorsed directory, they have been already loaded by ant.

This affects other environments where the client class can only see the JAXB API and not the implementation. The problems were not over! Comment 3 Milan Kuchtiak 2009-04-01 15:57:08 UTC WSGEN really fails with a strange message. I don't know why.  I hope some good soul will tell me why..

This affects other environments where the client class can only see the JAXB API and not the implementation. http://www.ibm.com/support/docview.wss?uid=swg21589438 but only to get this error: [sourcecode language="java" light="true"] wsgen-KinesService: Exception in thread "main" javax.xml.ws.WebServiceException: Unable to create JAXBContext at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:158) at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:87) at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:262) at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:218) at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Did Sputnik 1 have attitude authority? Once I do that, I can once again perform one "Clean and Build" before I'm stuck again.

To be fixed in the JAXB RI. weblink Thanks. Show kohsuke added a comment - 06/Jun/07 5:04 PM jaxb-ri-2.1 #412 integration brought this fix in. You are dealing with endorsed mechanism problem it is not a bug in jaxws.

Thank you in advance! John. For some reason, I can only successfully perform a "Clean and Build" once after starting NetBeans. http://vgadownload.com/error-starting/error-starting-wsgen-eclipse.html To be fixed in the JAXB RI.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I dont see there is anything that JAX-WS RI can do about it. xendorsed is not well tested and experimental option and since there are other work arounds available, I will reduce the priority to p4.

It works only if I set both options - fork and xendorsed - in the ant task on JDK6.

That way I can reduce the lookup to just once. After starting tomcat, this time I had a class not found problem, despite that class is included in the war file. [sourcecode language="java" light="true"] 26-ott-2008 23.17.03 com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized GRAVE: WSSERVLET11: failed Given the error you're getting, it looks like it can't. None from these options is documented anywhere.

Is it Sun's JDK? Hide Permalink kohsuke added a comment - 11/Apr/07 3:04 PM Note to myself: have Injector remember if it's injectable for not. To correct this error, I have to close NetBeans and restart. his comment is here If I use what used to work earlier: then it fails again with hint to add xendorsed attribute.