You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Manuel González Castro <ii...@ucv.udc.es> on 2002/11/04 14:36:45 UTC

Can't solve SAXParseException: The string "--" is not permitted within comments

Hi,

I'm trying to connect Tomcat-4.1.12 with Apache 2.0.43 (mod_jk), my JDK is
1.3.1_02 (latest stable version on my platform SGI IRIX 6.5). Everything is
installed and configured (it's been really hard on IRIX), I think I'm very
close to the end, but I still have a problem:

When I start Tomcat, catalina.out shows this error:

[ERROR] Digester - -Parse Fatal Error at line 93 column 9: The string "--"
is not permitted within comments. <org.xml.sax.SAXParseException: The string
"--" is not permitted within comments.>
Catalina.start: org.xml.sax.SAXException: Stopping after fatal error: The
string "--" is not permitted within comments.
org.xml.sax.SAXException: Stopping after fatal error: The string "--" is not
permitted within comments.
 at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1245,
Compiled Code)
 at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
ntScanner.java:570, Compiled Code)
 at
org.apache.xerces.framework.XMLDocumentScanner.scanComment(XMLDocumentScanne
r.java:1894, Compiled Code)
 at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1121, Compiled Code)
 at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381, Compiled Code)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098,
Compiled Code)
 at org.apache.commons.digester.Digester.parse(Digester.java:1495, Compiled
Code)

I've read in the mail archives that this bug can be solved using a different
version of Xerces. I've replaced
"jakarta-tomcat-4.1.12/common/endorsed/xercesImpl.jar" with:

xercesImpl.jar (included with Tomcat 4.1.14)
xercesImpl.jar (Xerces 2.0.0)
xercesImpl.jar (Xerces 2.2.0)
xerces.jar (included with Tomcat 4.0.6 = Xerces 1.4.4)

but I always get the same error. I'm sure this is the only xerces library
installed in my system (it's not included in JDK1.3.1).

Which Xerces version shoud I use?
Is there any other workarround to this problem?

Thanks a lot for your help,

Manuel



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't solve SAXParseException: The string "--" is not permitted within comments

Posted by Jacob Kjome <ho...@visi.com>.
Hi Nix,

The best I can do is point you to the following:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13241
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13282

Jake

At 07:06 AM 11/5/2002 +0100, you wrote:
>Jacob Kjome wrote:
>>Yep, known issue.  Try using the previous version of Xerces-2.x.x.  The 
>>newest one doesn't seem to play well with Digester.
>
>>>I've read in the mail archives that this bug can be solved using a different
>>>version of Xerces. I've replaced
>>>"jakarta-tomcat-4.1.12/common/endorsed/xercesImpl.jar" with:
>>>
>>>xercesImpl.jar (included with Tomcat 4.1.14)
>>>xercesImpl.jar (Xerces 2.0.0)
>>>xercesImpl.jar (Xerces 2.2.0)
>>>xerces.jar (included with Tomcat 4.0.6 = Xerces 1.4.4)
>>>
>>>but I always get the same error. I'm sure this is the only xerces library
>>>installed in my system (it's not included in JDK1.3.1).
>
>So, which one to use? 2.1.x? And is that a Xerces issue or Tomcat issue? 
>Which one should be upgraded?
>
>Nix.
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>

Re: Can't solve SAXParseException: The string "--" is not permitted within comments

Posted by Jeanfrancois Arcand <jf...@apache.org>.
Double check that xercesImpl.jar is deleted. For an obscur reason, 
Xerces 2.1.0 has been renamed xerces.jar. If you don't delete 
xercesImpl.jar in common/endorsed, then Xerces 2.2 is still in use.

I'm working with the Xerces guys to fix that problem and YES, I'm going 
to get crazy :-)

-- Jeanfrancois


Manuel González Castro wrote:

>>Try 2.1.0....This is the only version that works properly.
>>
>>-- Jeanfrancois
>>    
>>
>
>I've just tried Xerces 2.1.0 and I get the same error :(
>I'm going crazy with this...
>
>Manuel
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't solve SAXParseException: The string "--" is not permitted within comments

Posted by Manuel González Castro <ii...@ucv.udc.es>.
>Try 2.1.0....This is the only version that works properly.
>
>-- Jeanfrancois

I've just tried Xerces 2.1.0 and I get the same error :(
I'm going crazy with this...

Manuel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't solve SAXParseException: The string "--" is not permitted within comments

Posted by Jeanfrancois Arcand <jf...@apache.org>.
Try 2.1.0....This is the only version that works properly.

-- Jeanfrancois


Manuel González Castro wrote:

>>Yep, known issue.  Try using the previous version of Xerces-2.x.x.  The
>>newest one doesn't seem to play well with Digester.
>>    
>>
>
>That's what I did: I replaced the original xercesImpl.jar (version 2.0.1)
>with the Xerces 2.0.0 xercesImpl.jar, but I get the same error.
>
>This has been discussed before, suggesting the Xerces included with Tomcat
>4.1.14, but it doesn't work for me. As I've said, I've tried:
>
>  
>
>>>xercesImpl.jar (included with Tomcat 4.1.14)
>>>xercesImpl.jar (Xerces 2.0.0)
>>>xercesImpl.jar (Xerces 2.2.0)
>>>xerces.jar (included with Tomcat 4.0.6 = Xerces 1.4.4)
>>>      
>>>
>
>Manuel
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't solve SAXParseException: The string "--" is not permitted within comments

Posted by Manuel González Castro <ii...@ucv.udc.es>.
>Yep, known issue.  Try using the previous version of Xerces-2.x.x.  The
>newest one doesn't seem to play well with Digester.

That's what I did: I replaced the original xercesImpl.jar (version 2.0.1)
with the Xerces 2.0.0 xercesImpl.jar, but I get the same error.

This has been discussed before, suggesting the Xerces included with Tomcat
4.1.14, but it doesn't work for me. As I've said, I've tried:

>>xercesImpl.jar (included with Tomcat 4.1.14)
>>xercesImpl.jar (Xerces 2.0.0)
>>xercesImpl.jar (Xerces 2.2.0)
>>xerces.jar (included with Tomcat 4.0.6 = Xerces 1.4.4)

Manuel



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't solve SAXParseException: The string "--" is not permitted within comments

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
Jacob Kjome wrote:
> 
> Yep, known issue.  Try using the previous version of Xerces-2.x.x.  The 
> newest one doesn't seem to play well with Digester.

>> I've read in the mail archives that this bug can be solved using a 
>> different
>> version of Xerces. I've replaced
>> "jakarta-tomcat-4.1.12/common/endorsed/xercesImpl.jar" with:
>>
>> xercesImpl.jar (included with Tomcat 4.1.14)
>> xercesImpl.jar (Xerces 2.0.0)
>> xercesImpl.jar (Xerces 2.2.0)
>> xerces.jar (included with Tomcat 4.0.6 = Xerces 1.4.4)
>>
>> but I always get the same error. I'm sure this is the only xerces library
>> installed in my system (it's not included in JDK1.3.1).

So, which one to use? 2.1.x? And is that a Xerces issue or Tomcat issue? Which 
one should be upgraded?

Nix.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't solve SAXParseException: The string "--" is not permitted within comments

Posted by Jacob Kjome <ho...@visi.com>.
Yep, known issue.  Try using the previous version of Xerces-2.x.x.  The 
newest one doesn't seem to play well with Digester.

Jake

At 02:36 PM 11/4/2002 +0100, you wrote:
>Hi,
>
>I'm trying to connect Tomcat-4.1.12 with Apache 2.0.43 (mod_jk), my JDK is
>1.3.1_02 (latest stable version on my platform SGI IRIX 6.5). Everything is
>installed and configured (it's been really hard on IRIX), I think I'm very
>close to the end, but I still have a problem:
>
>When I start Tomcat, catalina.out shows this error:
>
>[ERROR] Digester - -Parse Fatal Error at line 93 column 9: The string "--"
>is not permitted within comments. <org.xml.sax.SAXParseException: The string
>"--" is not permitted within comments.>
>Catalina.start: org.xml.sax.SAXException: Stopping after fatal error: The
>string "--" is not permitted within comments.
>org.xml.sax.SAXException: Stopping after fatal error: The string "--" is not
>permitted within comments.
>  at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1245,
>Compiled Code)
>  at
>org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocume
>ntScanner.java:570, Compiled Code)
>  at
>org.apache.xerces.framework.XMLDocumentScanner.scanComment(XMLDocumentScanne
>r.java:1894, Compiled Code)
>  at
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
>LDocumentScanner.java:1121, Compiled Code)
>  at
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
>java:381, Compiled Code)
>  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098,
>Compiled Code)
>  at org.apache.commons.digester.Digester.parse(Digester.java:1495, Compiled
>Code)
>
>I've read in the mail archives that this bug can be solved using a different
>version of Xerces. I've replaced
>"jakarta-tomcat-4.1.12/common/endorsed/xercesImpl.jar" with:
>
>xercesImpl.jar (included with Tomcat 4.1.14)
>xercesImpl.jar (Xerces 2.0.0)
>xercesImpl.jar (Xerces 2.2.0)
>xerces.jar (included with Tomcat 4.0.6 = Xerces 1.4.4)
>
>but I always get the same error. I'm sure this is the only xerces library
>installed in my system (it's not included in JDK1.3.1).
>
>Which Xerces version shoud I use?
>Is there any other workarround to this problem?
>
>Thanks a lot for your help,
>
>Manuel
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>