You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Ian MacMillan <ia...@corenetworks.com> on 2001/02/05 14:30:20 UTC

using Apache and Tomcat: white space issue

I have been running the usual set-up (jdk 1.3, Tomcat 3.2.1, xerces-j 1.2.3,
and soap 2.0) with no problems.  We have added apache (v. 1.3.17) to the mix
to handle additional security but when we ran the stockquote to test
everything we got the following complaint about white space:

org.xml.sax.SAXParseException: White space is required between the public
identifier and the system identifier.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056)
        at
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.
java:651)
        at
org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanner.java:
1198)
        at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
:1104)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2192)
        at
org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner
.java:86)
        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:776)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)
        at org.apache.soap.rpc.Call.invoke(Call.java:157)
        at samples.stockquote.GetQuote.main(GetQuote.java:103)
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.<P>
Client sent malformed Host header<P>
<HR>
<ADDRESS>Apache/1.3.17 Server at *snip :)* </ADDRESS>
</BODY></HTML>]
        at org.apache.soap.rpc.Call.invoke(Call.java:167)
        at samples.stockquote.GetQuote.main(GetQuote.java:103)

I probably should have been paying attention to the mails that went by about
apache-tomcat, but didn't bother since, at the time, I was just using tomcat
and everything was happy.  So if I'm asking something that has been address
already, forgive me.  I recalled from my reading about white space being a
problem during sax parsing, so what should I look at changing or modifying.

Thanks in advance,

Ian MacMillan
Application Developer/Programmer
Core Networks Inc. 
T: 1 902 481 5750, ext. 2160
F: 1 902 481 5799
Ian.Macmillan@corenetworks.com
www.CoreNetworks.com

Re: using Apache and Tomcat: white space issue

Posted by William Brogden <wb...@bga.com>.

Ian MacMillan wrote:
> 
> I have been running the usual set-up (jdk 1.3, Tomcat 3.2.1, xerces-j 1.2.3,
> and soap 2.0) with no problems.  We have added apache (v. 1.3.17) to the mix
> to handle additional security but when we ran the stockquote to test
> everything we got the following complaint about white space:
> 
> org.xml.sax.SAXParseException: White space is required between the public
> identifier and the system identifier.
>         at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056)

The whitespace complaint is due to the fact that instead of 
getting XML - the body of the message is plain HTML due
to a badly formed request

 Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
> msg=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>400 Bad Request</TITLE>
> </HEAD><BODY>
> <H1>Bad Request</H1>
> Your browser sent a request that this server could not understand.<P>
> Client sent malformed Host header<P>
> <HR>
> <ADDRESS>Apache/1.3.17 Server at *snip :)* </ADDRESS>
> </BODY></HTML>]
>         at org.apache.soap.rpc.Call.invoke(Call.java:167)
>         at samples.stockquote.GetQuote.main(GetQuote.java:103)

WBB

Re: using Apache and Tomcat: white space issue

Posted by William Brogden <wb...@bga.com>.

Ian MacMillan wrote:
> 
> I have been running the usual set-up (jdk 1.3, Tomcat 3.2.1, xerces-j 1.2.3,
> and soap 2.0) with no problems.  We have added apache (v. 1.3.17) to the mix
> to handle additional security but when we ran the stockquote to test
> everything we got the following complaint about white space:
> 
> org.xml.sax.SAXParseException: White space is required between the public
> identifier and the system identifier.
>         at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056)

The whitespace complaint is due to the fact that instead of 
getting XML - the body of the message is plain HTML due
to a badly formed request

 Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
> msg=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>400 Bad Request</TITLE>
> </HEAD><BODY>
> <H1>Bad Request</H1>
> Your browser sent a request that this server could not understand.<P>
> Client sent malformed Host header<P>
> <HR>
> <ADDRESS>Apache/1.3.17 Server at *snip :)* </ADDRESS>
> </BODY></HTML>]
>         at org.apache.soap.rpc.Call.invoke(Call.java:167)
>         at samples.stockquote.GetQuote.main(GetQuote.java:103)

WBB