Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Java Errors and Error Handling (Developer Tool APIs)
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Aug 8, 2012 7:37 AM by
CM Web services gives class cast exception oracle xml parser v2 DTD
Jul 26, 2012 4:13 AM
When using CM webservices getting the class cast exception.
oracle.xml.parser.v2.DTD cannot be cast to org.w3c.dom.Element
The following code throws the error.
CompanyService service = new CompanyService(wsdlURL);
The same code when called from jdev or executed directly by creating a jar file it works fine.
I am calling this from Oracle EBS java concurrent request.
Verified that when executed as jar the java version used is 1.6.0_07. The same is the version when executed from concurrent request.
got the version using System.getProperty("java.version")
This content has been marked as final.
Show 1 reply
Re: CM Web services gives class cast exception oracle xml parser v2 DTD
Aug 8, 2012 7:37 AM
in response to
Problem got solved by forcing java to use xercesImpl-2.9.1.jar(can be googled and downloaded)
In Oracle concurrent programs this can be done by using the following option