Gustavo,

This error was reported before, see
http://article.gmane.org/gmane.text.xml.cocoon.devel/73632 . It happens
because cocoon.xconf includes other xml files and the xml parser barfs when
it encounters a doctype.

I had the same problem running with Java 6, but not with Java 5. The exact
cause probably has to do with different (default versions of) xml parsers in
the different jdks, but I haven't had time to look at it. For now the
work-around seems to delete the doctype definition

<![DOCTYPE ... ]>

from both cocoon.roles and sitemap-language.xml (and possibly other
configuration files)

Rogier

On 6/23/07, Gustavo N. Fernandes <[EMAIL PROTECTED]> wrote:

Forgot to mention the error:

--------------------------------------------------------------------------
Caused by:
org.apache.avalon.framework.configuration.ConfigurationException:
Cannot load 'jar:file[...]/cocoon-core-2.2.0-RC2
SNAPSHOT.jar!/org/apache/cocoon/cocoon.roles
[...]
Caused by: org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations not
supported at line 32 and column 3 seen "...TA #REQUIRED\r\n
class CDATA #REQUIRED\r\n>\r\n]"... (parser state UNKNONW_EVENT (-1))
--------------------------------------------------------------------------


The following patch allows to runs the webapp:


Index: core/cocoon-core/src/main/resources/org/apache/cocoon/cocoon.roles
===================================================================
--- core/cocoon-core/src/main/resources/org/apache/cocoon/cocoon.roles
(revision 549992)
+++ core/cocoon-core/src/main/resources/org/apache/cocoon/cocoon.roles
(working copy)
@@ -23,7 +23,8 @@
<!ATTLIST role-list cocoon-version CDATA #IMPLIED>
<!ATTLIST role name CDATA #REQUIRED
-               shorthand CDATA #REQUIRED
+               shorthand CDATA #IMPLIED
+               model CDATA #IMPLIED
                default-class CDATA #IMPLIED>
<!ATTLIST hint shorthand CDATA #REQUIRED



> It seems core/cocoon-
> core/src/main/resources/org/apache/cocoon/cocoon.roles is not valid
> according to the DTD that is declared in the header.
> This gives an error when trying to run cocoon webapp:
>

[]s
Gustavo

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.9.4/860 - Release Date: 21/6/2007
17:53



Reply via email to