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 105734 - java.lang.ClassCastException when trying to refresh client
Summary: java.lang.ClassCastException when trying to refresh client
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-05 14:26 UTC by bonej010
Modified: 2008-12-01 13:57 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 bonej010 2007-06-05 14:26:02 UTC
Netbeans gives me this error when I try to refresh my client:

init:
deps-module-jar:
init:
deps-jar:
compile:
jar:
deps-ear-jar:
deps-jar:
wsimport-init:
wsimport-client-check-MITCommunicationInterfaceService:
wsimport-client-MITCommunicationInterfaceService:
error: java.lang.ClassCastException:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration

java.lang.ClassCastException:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration

        at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)

        at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)

        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)

        at org.apache.xerces.jaxp.SAXParserImpl.<init>(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:194)

        at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:529)

        at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)

        at com.sun.tools.ws.ant.WsImport.execute(WsImport.java:419)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

        at org.apache.tools.ant.Task.perform(Task.java:364)

        at org.apache.tools.ant.Target.execute(Target.java:341)

        at org.apache.tools.ant.Target.performTasks(Target.java:369)

        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)

        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)

        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)

Command invoked: wsimport "C:\Program Files\Java\jdk1.6.0\jre\bin\java.exe" -d
"C:\Documents and Settings\Joseph\My
Documents\IRRIIS\Development\Publisher\build\generated\wsimport\binaries"
-extension -keep -s "C:\Documents and Settings\Joseph\My
Documents\IRRIIS\Development\Publisher\build\generated\wsimport\client" -catalog
"C:\Documents and Settings\Joseph\My
Documents\IRRIIS\Development\Publisher\catalog.xml" "C:\Documents and
Settings\Joseph\My
Documents\IRRIIS\Development\Publisher/src/conf/xml-resources/web-service-references/MITCommunicationInterfaceService/wsdl/localhost_8080/Subscriber/MITCommunicationInterfaceService.wsdl"
-p irriis.ws.publisher.wservice -wsdllocation
http://localhost:8080/Subscriber/MITCommunicationInterfaceService?wsdl
C:\Documents and Settings\Joseph\My
Documents\IRRIIS\Development\Publisher\nbproject\build-impl.xml:299: wsimport failed
BUILD FAILED (total time: 0 seconds)

Any help please?

Thanks
Joseph
Comment 1 bonej010 2007-06-05 14:27:07 UTC
BTW, restarting Sun Application Server and Netbeans fixes the problem
temporarily. When you try to refresh it the first time it works, then it fails
again.

J
Comment 2 Milan Kuchtiak 2008-12-01 13:57:36 UTC
This is a wsimport problem, please report this to JAX-WS team. (https://jax-ws.dev.java.net).

This looks like some parser configuration problem at the reporter's machine.
Please, try, if it's still reproducible with JAX-WS 2.1 (used in Netbeans 6.5)