cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Reijn" <j.re...@hippo.nl>
Subject RE: [jira] Assigned: (COCOON-2079) Parser error when launching webapp with jetty
Date Sat, 04 Aug 2007 18:30:18 GMT
 
Hi all,

I've been looking into this issue as well over the last couple of days.

I found something that points to the parser indeed.

See http://jira.codehaus.org/browse/TRAILS-26 . It seems that it could be the jetty plugin
used by one of the additional samples. I've been trying to change the jetty plugin used in
trunk (which seems quite old), but it did not help me out yet. Could it be one of the other
dependencies used in one of the other samples?

Regards,

Jeroen Reijn


-----Original Message-----
From: Grzegorz Kossakowski (JIRA) [mailto:jira@apache.org] 
Sent: Saturday, August 04, 2007 11:15 AM
To: dev@cocoon.apache.org
Subject: [jira] Assigned: (COCOON-2079) Parser error when launching webapp with jetty


     [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Grzegorz Kossakowski reassigned COCOON-2079:
--------------------------------------------

    Assignee: Jörg Heinicke  (was: Grzegorz Kossakowski)

I'm assigning this issue back to Joerg because I cannot reproduce it. I guess that XML parser
doesn't perform validation in my configuration.

Things that my help to track down this problem:
  1. Reading people's reports about this issue I got impression that the error appears only
if profile allblocks is enabled during build. It would be worth to check this.
  2. If first point is true, we would have to find out which block/module exactly causes the
error. I think that the easiest way would be to build whole Cocoon with allblocks profile.
Then comment out everything in allblocks profile in core/cococon-webapp/pom.xml and in core/cocoon-webapp
repeat these two steps:
      a) uncomment one dependency in pom.xml
      b) run mvn clean package jetty:run

This way one could easily find offending part and we could investigate further.

> Parser error when launching webapp with jetty
> ---------------------------------------------
>
>                 Key: COCOON-2079
>                 URL: https://issues.apache.org/jira/browse/COCOON-2079
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Gustavo N. Fernandes
>            Assignee: Jörg Heinicke
>            Priority: Blocker
>             Fix For: 2.2-dev (Current SVN)
>
>         Attachments: dtd_patch.patch
>
>
> Erase local mvn repo on .m2
> svn update
> mvn clean
> mvn -Dmaven.test.skip=true -P allblocks install cd core/cocoon-webapp 
> mvn jetty:run Gives the following error:
> Caused by: 
> org.apache.avalon.framework.configuration.ConfigurationException: 
> Cannot load 
> 'jar:file:/C:/projetos/cocoon/trunk/core/cocoon-webapp/target/cocoon-w
> e 
> bapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.roles'
at jar:file:/C:/projetos/cocoon/trunk/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.xconf:30:61
>         at org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.loadURI(ConfigurationReader.java:508)
>         at org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.handleInclude(ConfigurationReader.java:458)
>         ... 62 more
> 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))
> This happens on windows and linux os, both with java 5 and 6.  
> 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 message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message