You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jörg Heinicke (JIRA)" <ji...@apache.org> on 2007/06/23 19:36:26 UTC

[jira] Closed: (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 ]

Jörg Heinicke closed COCOON-2079.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2-dev (Current SVN)

Funny: This file has been invalid since more than two years ... :)

Thanks, Gustavo.

> 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-we
> 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.


Re: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Joerg Heinicke <jo...@gmx.de>.
On 23.06.2007 20:06, Grzegorz Kossakowski wrote:

>>> I hope it's not serious enough to stop our release?
>>
>> What do you mean? I hope the fix makes it into the release?
> 
> Not into RC1 because it's already prepared for release and waits for votes:
> http://article.gmane.org/gmane.text.xml.cocoon.devel/73707
> 
> Reformulating the question: is the fix important enough to stop RC1?

No, it should not block RC, but a possible final release. Since it's 
fixed this does not apply anymore.

Joerg

Re: RES: RES: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Gustavo N. Fernandes pisze:
>> Gustavo N. Fernandes pisze:
>> http://www.nabble.com/forum/Search.jtp?query=%22DOCTYPE+declarations+NOT+s
>> up
>> Yes, that must be the reason but AFAIR nothing has been changed in Cocoon
>> related to validation. I suspect it's a change in JDK, what
>> version do you use?
>>
> 
> The error occurred both on 1.5 (linux) and 1.6 (windows). One important
> change in jdk 1.6 was a shipment of its own pull parser. 
> 
> Perhaps a new version of the pull parser used came thru maven and that
> version is a bit stricter. Just a though.

I tried to test it on Windows XP with Java 1.6 without success. I think we should give this topic a rest. If it causes problem for a lot of 
people we can always release RC2 where its already thanks to you.

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

RES: RES: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by "Gustavo N. Fernandes" <gu...@gmail.com>.
> 
> Gustavo N. Fernandes pisze:
> > It may not have occurred the past two years, but in this month it has
> > occurred 3 times:
> >
> >
> http://www.nabble.com/forum/Search.jtp?query=%22DOCTYPE+declarations+NOT+s
> up
> > ported%22&local=y&forum=113&daterange=0&startdate=&enddate=
> >
> > Perhaps the runtime validation was off and is now active?
> 
> Yes, that must be the reason but AFAIR nothing has been changed in Cocoon
> related to validation. I suspect it's a change in JDK, what
> version do you use?
> 

The error occurred both on 1.5 (linux) and 1.6 (windows). One important
change in jdk 1.6 was a shipment of its own pull parser. 

Perhaps a new version of the pull parser used came thru maven and that
version is a bit stricter. Just a though.


[]s
Gustavo
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.6/863 - Release Date: 23/6/2007
11:08
 


Re: RES: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Gustavo N. Fernandes pisze:
> It may not have occurred the past two years, but in this month it has
> occurred 3 times:
> 
> http://www.nabble.com/forum/Search.jtp?query=%22DOCTYPE+declarations+NOT+sup
> ported%22&local=y&forum=113&daterange=0&startdate=&enddate=
> 
> Perhaps the runtime validation was off and is now active?

Yes, that must be the reason but AFAIR nothing has been changed in Cocoon related to validation. I suspect it's a change in JDK, what 
version do you use?

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

RES: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by "Gustavo N. Fernandes" <gu...@gmail.com>.
> 
> Reformulating the question: is the fix important enough to stop RC1? As
> people have used trunk for two years not suffering from this problem
> I don't think it's show-stopper but I would like to make sure.
> 
> --


It may not have occurred the past two years, but in this month it has
occurred 3 times:

http://www.nabble.com/forum/Search.jtp?query=%22DOCTYPE+declarations+NOT+sup
ported%22&local=y&forum=113&daterange=0&startdate=&enddate=

Perhaps the runtime validation was off and is now active?


[]s
Gustavo


 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.6/863 - Release Date: 23/6/2007
11:08
 


Re: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Joerg Heinicke pisze:
> On 23.06.2007 19:40, Grzegorz Kossakowski wrote:
> 
>>
>> I tried my best to reproduce the problem and failed. If it was broken 
>> since more than two years why no one noticed it before?
> 
> My validating XML editor (jEdit + XML plugins) complained exactly about 
> those problems Gustavo's patch fixed. There are some roles declarations 
> in it without @shorthand and @model was added to some of them. No idea 
> why it was never noticed. Is nobody using a validating editor? That one 
> gets the error and another one not at runtime is just some (default) 
> configuration option I guess.

I use editor with validation enabled but have never opened this particular file. I was wondering why most of us did not experienced the 
problem during runtime. If it is up to us I would like to have validation enabled everywhere configuration files are read. To simply avoid 
such problems.

>> I hope it's not serious enough to stop our release?
> 
> What do you mean? I hope the fix makes it into the release?

Not into RC1 because it's already prepared for release and waits for votes:
http://article.gmane.org/gmane.text.xml.cocoon.devel/73707

Reformulating the question: is the fix important enough to stop RC1? As people have used trunk for two years not suffering from this problem 
I don't think it's show-stopper but I would like to make sure.

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

Re: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Joerg Heinicke <jo...@gmx.de>.
On 23.06.2007 19:40, Grzegorz Kossakowski wrote:

>> Jörg Heinicke closed COCOON-2079.
>> ---------------------------------
>>
>>        Resolution: Fixed
>>     Fix Version/s: 2.2-dev (Current SVN)
>>
>> Funny: This file has been invalid since more than two years ... :)
> 
> I tried my best to reproduce the problem and failed. If it was broken 
> since more than two years why no one noticed it before?

My validating XML editor (jEdit + XML plugins) complained exactly about 
those problems Gustavo's patch fixed. There are some roles declarations 
in it without @shorthand and @model was added to some of them. No idea 
why it was never noticed. Is nobody using a validating editor? That one 
gets the error and another one not at runtime is just some (default) 
configuration option I guess.

> I hope it's not serious enough to stop our release?

What do you mean? I hope the fix makes it into the release?

Joerg

Re: [jira] Closed: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Jörg Heinicke (JIRA) pisze:
>      [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Jörg Heinicke closed COCOON-2079.
> ---------------------------------
> 
>        Resolution: Fixed
>     Fix Version/s: 2.2-dev (Current SVN)
> 
> Funny: This file has been invalid since more than two years ... :)

I tried my best to reproduce the problem and failed. If it was broken since more than two years why no one noticed it before?

Anyway, it's nice to be fixed. I hope it's not serious enough to stop our release?

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/