----- Original Message -----
Sent: Friday, July 16, 2004 4:59 PM
Subject: Re: need to use xerces parser
implementation instead of crimson
I dont see a "jre/lib/endorsed/" in my installation of
j2sdk1.4.2_04.
However,I have a "jre/lib/ext".
I created a "jre/lib/endorsed" and tried adding xercesImpl.jar
and xml-apis.jar to both ..
restarted tomcat... it still picks up crimson...with the same error as
given.
Well, here is a summary of what I have done .
Install Axis and Tomcat
set JAVA_HOME
tomcat sarts
successfully
copy axis/webapp content to ROOT/axis ( ROOT of
tomcat)
copy xml-apis.jar and xercesImpl.jar to
/ROOT/axis/Web-INF/lib
copy all jars from axis/Web-Inf/lib to
CATALINA_home/commom/lib required activation.jar
add all axis and
xerces jars to system env classpath
at this point "AXIS Happiness page" is up and reports that all required
core libraries exist.
after Roslan's mail I have added xercesImpl.jar and xml-apis.jar to
D:\j2sdk1.4.2_04\jre\lib\ext and D:\j2sdk1.4.2_04\jre\lib\endorsed(
this directory, I had to create myself)
it still goes on with the same error..looks like it still picks up
crimson
Please help.
Best regards,
Brian .
[EMAIL PROTECTED] wrote:
Put
xerces in endorsed dir of JDK 1.4.2_05. It worked for
me.
Roslan
Quoting BRIAN MORAS
<[EMAIL PROTECTED]>:
> Hi
>
> I have got the
axis happiness page up with all required and optional jar
> files.
>
> Please let me know how to override crimson to use
xerces.
>
>
> When I try using one of the examples from
the userguide folder in
> WEB-INF\axis( a simple one the CalcClient
)
> I get the following error :
>
> Exception in thread
"main" AxisFault
> faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>
faultSubcode:
> faultString: org.xml.sax.SAXParseException: Document
root element is
> missing.
> faultActor:
>
faultNode:
> faultDetail:
>
{http://xml.apache.org/axis/}stackTrace:
>
org.xml.sax.SAXParseException:
> Document root element is
missing.
> at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
> at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
>
at
>
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:668)
> at
org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
> at
>
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
>
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
>
tionContextImpl.java:242)
> at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> at
org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
org.apache.axis.client.Call.invokeEngine(Call.java:2583)
> at
org.apache.axis.client.Call.invoke(Call.java:2553)
> at
org.apache.axis.client.Call.invoke(Call.java:2248)
> at
org.apache.axis.client.Call.invoke(Call.java:2171)
> at
org.apache.axis.client.Call.invoke(Call.java:1691)
> at
CalcClient.main(CalcClient.java:98)
>
>
org.xml.sax.SAXParseException: Document root element is missing.
> at
org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
> at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
> at
org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
org.apache.axis.client.Call.invokeEngine(Call.java:2583)
> at
org.apache.axis.client.Call.invoke(Call.java:2553)
> at
org.apache.axis.client.Call.invoke(Call.java:2248)
> at
org.apache.axis.client.Call.invoke(Call.java:2171)
> at
org.apache.axis.client.Call.invoke(Call.java:1691)
> at
CalcClient.main(CalcClient.java:98)
> Caused by:
org.xml.sax.SAXParseException: Document root element is missing.
> at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
> at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
>
at
>
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:668)
> at
org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
> at
>
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
>
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
>
tionContextImpl.java:242)
> at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> ... 7
more
>
>
> I have been trying in vain to use xerces
instead of crimson that comes
> bundled in jdk1.4.2_04.
>
> I have downloaded xerces 2_5_0 and copied the jars to commom/lib of
tomcat
>
> I have read the article about xmlParsers it tells
about choosing xerces
> ...but How do I do that?
> please let me
know if anyone has done this.
>
>
> any help would be
appreciated.
>
> Thanks in advance
>
>
Brian.
>
>
>
>
>
>
---------------------------------
> Do you Yahoo!?
> New and
Improved Yahoo! Mail - 100MB free
storage!
-----------------------------------------------------
This
mail sent through IMP: http://webmail.xybase.com
Do you Yahoo!?
Yahoo!
Mail - 50x more storage than other providers!