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