This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271500 - java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/util/XmlFactory
Summary: java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/util/XmlFactory
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Exceptions Reporter (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-18 18:20 UTC by lijingcensus
Modified: 2017-09-18 18:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lijingcensus 2017-09-18 18:20:02 UTC
In jaxws-impl.xml, I have the following:
<target name="wsimport-init" depends="init">
        <mkdir dir="${build.generated.sources.dir}/jax-ws"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
            <classpath path="${libs.jaxws21.classpath}"/>
        </taskdef>
    </target>
    <target name="wsimport-client-project" depends="wsimport-init">
    <wsimport>

When I build the project, I got java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/util/XmlFactory
	at com.sun.tools.xjc.reader.internalizer.DOMForest.<init>(DOMForest.java:162)
	at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.resetSchema(SchemaCompilerImpl.java:215)
	at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.<init>(SchemaCompilerImpl.java:114)
	at com.sun.tools.xjc.api.XJC.createSchemaCompiler(XJC.java:62)
	at com.sun.tools.ws.wscompile.WsimportOptions.<init>(WsimportOptions.java:152)
	at com.sun.tools.ws.wscompile.WsimportTool.<init>(WsimportTool.java:89)
	at com.sun.tools.ws.wscompile.WsimportTool.<init>(WsimportTool.java:92)
	at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:828)
	at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:103)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	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:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.util.XmlFactory
	at com.sun.istack.tools.ParallelWorldClassLoader.findClass(ParallelWorldClassLoader.java:125)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 24 more
BUILD FAILED (total time: 0 seconds)