Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AXIS and Crimson in Websphere

843833Mar 20 2008
Hi everyone

When I tried to run this code
Service service = new Service();
, i hit the following exception:
{noformat}{color:#ff0000}org.apache.axis.ConfigurationException: java.lang.IllegalStateException: can't declare any more prefixes in this context{color}{noformat}{noformat}{color:#ff0000}at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524){color}{noformat}{noformat}{color:#ff0000}at org.apache.crimson.parser.Parser2.parse(Parser2.java:305){color}{noformat}{noformat}{color:#ff0000}at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433){color}{noformat}{noformat}{color:#ff0000}at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.AxisEngine.init(AxisEngine.java:187){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.AxisEngine.<init>(AxisEngine.java:172){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.client.AxisClient.<init>(AxisClient.java:88){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.client.Service.getAxisClient(Service.java:143){color}{noformat}{noformat}{color:#ff0000}at org.apache.axis.client.Service.<init>(Service.java:152){color}{noformat}{color:#ff0000}at com.s1.adapter.affinrib.util.ARBSOAPHTTPConnection.sendRequestAndRcvResponseInStr(ARBSOAPHTTPConnection.java:49){color}

I'm running this in a Websphere server. I have axis.jar, crimson.jar, jaxp.jar, soap.jar in the lib directory. In one of my troubleshooting steps, I tried to removed crimson.jar and this problem does not happen anymore.
Can anyone pls help to educate me what is happening around here? Is there a clash of crimson.jar and axis.jar?
I'm doing enhancement to a existing project, and I dont know what impact i would run into if I removed crimson.jar. Is there any workaround besides removing crimson.jar?

Many thanks in advance.
Regards
Cheong


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2008
Added on Mar 20 2008
0 comments
475 views