Hi,
I'm trying to deploy a war generated using Apache Muse. Apache Muse relies
on Axis2. The generated .war bundles all the Axis2 jars, xml parsers, StaX
apis etc. that the application would use. However, when invoking the web
app, I get the following error:
description: The server encountered an internal error () that prevented it
from fulfilling this request.</p>
exception javax.servlet.ServletException: PWC1244: Servlet execution threw
an exception
root cause
java.lang.NoSuchMethodError:
javax.xml.stream.XMLOutputFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLOutputFactory;
Reading around, I _think_ this is because the Java EE 5 RI uses the StaX 1.0
API, which has a different (buggy) signature for this method.
I would like to have my deployed web application use the locally bundled,
i.e. in WEB-INF/lib/, parsers and other implementation classes. How would I
do this?
Notes:
I thought I could do this by setting <delegate="false"/> in sun-web.xml, but
that didn't work out...
Thanks,
Allen
--
View this message in context: http://www.nabble.com/Stax-API-Conflict-tf4643284.html#a13262801
Sent from the java.net - glassfish users mailing list archive at Nabble.com.