Caused By Error Starting Wsimport
Contents |
Bug
Wsimport Ant Task
Status: Resolved Priority: Minor Resolution: Cannot Reproduce Affects Version/s: JAXWS 2.1 EA3 Fix Version/s: 2.2.6 Component/s: wsimport Labels: None Environment: Operating System: All Platform: All Issuezilla Id: 470 Description This is caused by ClassCastException. See the stack trace: command line: wsimport -d C:\nbprojects6b1\northbound3\build\generated\wsimport\binaries -extension -keep -s C:\nbprojects6b1\northbound3\build\generated\wsimport\client -catalog C:\nbprojects6b1\northbound3\catalog.xml -verbose C:\nbprojects6b1\northbound3/src/conf/xml-resources/web-service- references/BroadworksActivationService/wsdl/localhost_8050/ByosBroadworksOCI14sp1Glassfish/BroadworksActivationService.w sdl -p managed.bwoci.client -wsdllocation http://localhost:8050/ByosBroadworksOCI14sp1Glassfish/BroadworksActivationService?wsdl C:\nbprojects6b1\northbound3\nbproject\jaxws-build.xml:77: Error starting wsimport: at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:641) at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) 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.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about https://java.net/jira/browse/JAX_WS-470 hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. http://stackoverflow.com/questions/15429989/ant-wsimport-task-failing Join them; it only takes a minute: Sign up Ant wsimport task failing up vote 4 down vote favorite I have a simple ant script to build my classes from a sdl. Unfortunately wsimport fails immediately. I suspect it has something to do with classpaths.
Summary: Error generating WSDL Status: VERIFIED FIXED Product: serverplugins Classification: Unclassified Component: GlassFish Version: 7.3 Hardware: All All Priority: P1 with http://www.ibm.com/support/docview.wss?uid=swg21639356 3 votes (vote) TargetMilestone: 7.3 Assigned To: Jaroslav Tulach QA Contact: issues@serverplugins URL: Whiteboard: Keywords: REGRESSION Duplicates: 224958 (view as bug list) caused by Depends on: Blocks: Show dependency tree /graph Reported: 2012-12-20 21:58 UTC by blake1024 Modified: 2013-04-15 10:38 UTC (History) CC List: 11 users (show) digitalbugsy jskrivanek jtulach jungi kganfield markiewb mmirilovic phejl pjiricka sj-nb TomasKraus See Also: Issue Type: DEFECT Exception Report : caused by error Attachments Patched boot.jar (458.25 KB, application/java-archive) 2013-01-23 15:34 UTC, Petr Jiricka Details View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description blake1024 2012-12-20 21:58:42 UTC I am using NetBeans 7.3 Beta 2 I am attempting to build an application I build every day on NetBeans 7.1. I get the following error when it tries to build the WSDLs: Generating wsdl for AqDevImportOps /Users/blake/NetBeansProjects-7.3/Backend/build.xml:165: The following error occurred while executing this line: /Users/blake/NetBeansProjects-7.3/Backend/wsdlgenant.xml:14: java.lang.SecurityException: Dangerous reflection access to sun.misc.ClassLoaderUtil by class com.sun.istack.tools.ProtectedTask detected! at org.netbeans.TopSecurityManager.checkMemberAccess(TopSecurityManager.java:428) at java.lang.Class.checkMemberAccess(Class.java:2157) at java.lang.Class.getDeclaredMethod(Class.java:1934) at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:138) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor197.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:392) at org.apache.tools.ant.Target.performTasks(Target.java:413) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckEx
started with JRE 6 fails with a wsimport error when using WebSphere Developer Tools for Eclipse WDT; RAD; RN9.0; wsimport; developer tools for Eclipse Technote (troubleshooting) Problem(Abstract) In a WebSphere Developer Tools for Eclipse workbench started with JRE 6, a Liberty JAX-WS 2.2 web service client cannot be generated for a service with a method that implements a throwable exception (java.lang.Exception). Symptom The web service client is not generated. The following message is displayed: "Errors occurred during wsimport." In the stack trace, the following error message is logged: Caused by: java.lang.NoSuchMethodException: javax.xml.bind.annotation.XmlElementRef.required() Cause The required method, javax.xml.bind.annotation.XmlElementRef.required(), that is needed by the Liberty runtime to generate the web service client is not included in the JRE. Environment This problem could also occur if Rational Application Developer is installed into an existing Eclipse IDE that is configured to use JRE 6. Resolving the problem Generate the web service client by using JAX-WS 2.1, or change the JRE that is used to launch the workbench to Java 7. This solution also applies to Rational Application Developer that is installed on an existing Eclipse IDE. Use the Eclipse IDE with the JVM (Java 7) that is provided by Rational Application Developer. Document information More support for: Rational Application Developer for WebSphere Software Developer Toolkit for Eclipse Software version: 9.0 Operating system(s): Linux, Windows Reference #: 1639356 Modified date: 2013-06-17 Site availability Site assistance Contact and feedback Need support? Submit feedback to IBM Support 1-800-IBM-7378 (USA) Directory of worldwide contacts Contact Privacy Terms of use Accessibility