You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Oliver Alth <OA...@de.ibm.com> on 2003/03/17 18:01:16 UTC

Re: Forrest on OS/390

Hello,

I just tried the debug option and forrest says:

Setup...FATAL_E 2003-03-17 16:56:01.441 [        ] (): Exception caught
org.xml.sax.SAXParseException: Content is not allowed in trailing section.
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
        at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:223)
        at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:192)
        at org.apache.cocoon.Main.main(Main.java:390)


BUILD FAILED
file:///u/uni1/apache-forrest-0.4-bin/forrest.build.xml:557: Java returned:
1


Could this be the cocoon configuration file located in the WEB-INF dir?

Do you know what the SAX Parse Exception means?


Oliver




__________________________________________________________________
IBM Deutschland Entwicklung GmbH, Schönaicher Str. 220, D-71032 Böblingen
eServer Software Management, D4357, Intern: 7103-06, Tel. 902-2790,
Tel.: ++49-(0)7031-16-4280, Fax.: 07031-16-2790
Internet: OALTH@DE.IBM.COM


Re: Forrest on OS/390

Posted by Jeff Turner <je...@apache.org>.
On Mon, Mar 17, 2003 at 06:01:16PM +0100, Oliver Alth wrote:
> Hello,
> 
> I just tried the debug option and forrest says:
> 
> Setup...FATAL_E 2003-03-17 16:56:01.441 [        ] (): Exception caught
> org.xml.sax.SAXParseException: Content is not allowed in trailing section.
>         at
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
>         at
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:223)
>         at
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:192)
>         at org.apache.cocoon.Main.main(Main.java:390)
> 
> 
> BUILD FAILED
> file:///u/uni1/apache-forrest-0.4-bin/forrest.build.xml:557: Java returned:
> 1
> 
> 
> Could this be the cocoon configuration file located in the WEB-INF dir?

Is that the full stack trace?  AFAIK, Main.java doesn't parse anything,
just invokes the Cocoon object.

> Do you know what the SAX Parse Exception means?

Not really.  'content' means "anything the SAX parser didn't expect",
which in your case is likely to be a character in a wrong encoding.

Actually, the problem might be that the XML is saved with NEL linefeeds,
which XML 1.0 doesn't recognize.  Here's part of the introduction for XML
1.1:

  "In addition, XML 1.0 attempts to adapt to the line-end conventions of
  various modern operating systems, but discriminates against the
  conventions used on IBM and IBM-compatible mainframes. As a result, XML
  documents on mainframes are not plain text files according to the local
  conventions. XML 1.0 documents generated on mainframes must either
  violate the local line-end conventions, or employ otherwise unnecessary
  translation phases before parsing and after generation. Allowing
  straightforward interoperability is particularly important when data
  stores are shared between mainframe and non-mainframe systems (as
  opposed to being copied from one to the other). Therefore XML 1.1 adds
  NEL (#x85) to the list of line-end characters. For completeness, the
  Unicode line separator character, #x2028, is also supported."

  -- http://www.w3.org/TR/xml11/

So if this is the issue (a HEX editor should confirm), then using the
latest Xerces parser (http://xml.apache.org/xerces2-j/index.html) might
work.


--Jeff

> Oliver
>