You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Gustavo N. Fernandes (JIRA)" <ji...@apache.org> on 2007/06/23 19:00:25 UTC

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

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
            Priority: Blocker


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.


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

Posted by "Grzegorz Kossakowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

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

> 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: Grzegorz Kossakowski
>            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.


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

Posted by "Vadim Gritsenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517730 ] 

Vadim Gritsenko commented on COCOON-2079:
-----------------------------------------

The culprit is the impotent pull-parser-2.jar which registers itself as general sax parser factory (see pull-parser-2.jar:/META-INF/services/) and then fails miserably trying to parse cocoon.roles with DOCTYPE declaration.

Beside yanking this jar out (not sure what requires this parser? what depends on it?), which I have not tried, other option to make Cocoon start is to override service declaration:

cd .../core/cocoon-webapp/target/cocoon-webapp/WEB-INF/classes
unzip .../core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/xercesImpl-2.8.1.jar META-INF/services/javax.xml.parsers.SAXParserFactory

Ok, anybody got a clue what should next step be? :)

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


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

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517721 ] 

Jörg Heinicke commented on COCOON-2079:
---------------------------------------

When you reopened the issue I had a look at the file. I guessed a commit might have had it broken again. But cocoon.roles is valid. Also the fact that it happens only with allblocks is rather strange. What happens with this file? Is there still something like xpatch involved merging all roles files

OT: I'm on a new machine and haven't set up more than Eclipse up to now. I still miss the runtime environment. And it's now Mac OS X and no longer Windows, so it will probably take more time to get this done since I need to figure out how to do all the things.

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


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

Posted by "Grzegorz Kossakowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grzegorz Kossakowski updated COCOON-2079:
-----------------------------------------

    Attachment: dependencies.html

Just for record:
There is a nice plug-in (project-info-reports) in Maven printing dependency tree. I've run:

  export MAVEN_OPTS="-Xmx256m"; mvn project-info-reports:dependencies -P allblocks

and after a while I could see all our dependencies in core/cocoon-webapp/target/site/dependencies.html

I attach such report so anyone can have a look. Thanks to this plug-in we can quickly see that the only place where pull-parser is referenced is cocoon-scratchpad what Jeroen has already pointed out.

> 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: dependencies.html, 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.


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

Posted by "Jeroen Reijn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517939 ] 

Jeroen Reijn commented on COCOON-2079:
--------------------------------------

I've been digging a bit deeper and I found out that the dependency is fetched by the scratchpad-impl block.
When I start commenting out dependencies I notice that it fetches the pull parser when fetching commons-jelly. The commons-jelly dependency is used by the JellyGenerator. Do we really need to include scratchpad in the allblocks profile? I guess scratchpad is more for development purposes right?

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


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

Posted by "Vadim Gritsenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vadim Gritsenko closed COCOON-2079.
-----------------------------------

    Resolution: Fixed

> 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: dependencies.html, 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.


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

Posted by "Vadim Gritsenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517729 ] 

Vadim Gritsenko commented on COCOON-2079:
-----------------------------------------

I found these three jars in the .../core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib:
  xml-apis-1.3.02.jar
  xmlParserAPIs-2.0.2.jar
  xmlParserAPIs-2.6.2.jar

I wonder if that relates to this parsing error. Also, from reading error text, I don't think it means that cocoon.roles is invalid. Rather, I understand it as if parser does not support DOCTYPE declarations at all:

org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations not supported at line 33 and column 3

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


Trunk Status, Re: Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Ok with lots of help from Grzegorz, trunk now can be built *if you skip tests*. 
There is still issue of three copies of XML APIs in WEB-INF/lib:

   xml-apis-1.3.02.jar
   xmlParserAPIs-2.0.2.jar
   xmlParserAPIs-2.6.2.jar

And exceptions from deli:

   java.lang.NullPointerException
     at com.hp.hpl.deli.Workspace.getResource(Workspace.java:436)
     at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:117)

But it starts and sorta works.


Vadim

Re: Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Vadim Gritsenko wrote:
> Grzegorz Kossakowski wrote:
>> Vadim Gritsenko pisze:
>>> Grzegorz Kossakowski wrote:
>>>> Vadim Gritsenko pisze:
>>>>
>>>> It was missing dependency on cocoon-sitemap-impl, sorry for 
>>>> inconvenience. Fixed in r563852.
>>>
>>> Still does not build, but I don't get why - there is a dependency on
>>> cocoon-expression-language-api, that should be enough, isn't it?
>>
>> Unfortunately not. Template generator uses helper class from 
>> cocoon-expression-language-impl. I fixed this problem and threw out my 
>> crappy, customized build of Maven that did not inform me about this 
>> problems and compiled everything without moaning.
>>
>> Now I tested it with standard Maven 2.0.6 and it works well.
> 
> I got further this time:
> 
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO] 
> ------------------------------------------------------------------------
> 
> 
> How were you able to build it? :)

Skipping tests did not help... Today's probably not the best day to attempt 
building Cocoon...


[INFO] Compiling 3 source files to 
/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-serializers/cocoon-serializers-impl/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-serializers/cocoon-serializers-impl/src/main/java/org/apache/cocoon/components/serializers/XHTMLSerializer.java:[23,26] 
package javax.servlet.http does not exist

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-serializers/cocoon-serializers-impl/src/main/java/org/apache/cocoon/components/serializers/HTMLSerializer.java:[23,26] 
package javax.servlet.http does not exist

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-serializers/cocoon-serializers-impl/src/main/java/org/apache/cocoon/components/serializers/XHTMLSerializer.java:[80,20] 
cannot find symbol
symbol  : class HttpServletRequest
location: class org.apache.cocoon.components.serializers.XHTMLSerializer

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-serializers/cocoon-serializers-impl/src/main/java/org/apache/cocoon/components/serializers/HTMLSerializer.java:[75,20] 
cannot find symbol
symbol  : class HttpServletRequest
location: class org.apache.cocoon.components.serializers.HTMLSerializer

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-serializers/cocoon-serializers-impl/src/main/java/org/apache/cocoon/components/serializers/XMLSerializer.java:[58,20] 
cannot find symbol
symbol  : class HttpServletRequest
location: class org.apache.cocoon.components.serializers.XMLSerializer


Vadim

Re: Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Grzegorz Kossakowski wrote:
> Vadim Gritsenko pisze:
>> Grzegorz Kossakowski wrote:
>>> Vadim Gritsenko pisze:
>>>
>>> It was missing dependency on cocoon-sitemap-impl, sorry for 
>>> inconvenience. Fixed in r563852.
>>
>> Still does not build, but I don't get why - there is a dependency on
>> cocoon-expression-language-api, that should be enough, isn't it?
> 
> Unfortunately not. Template generator uses helper class from 
> cocoon-expression-language-impl. I fixed this problem and threw out my 
> crappy, customized build of Maven that did not inform me about this 
> problems and compiled everything without moaning.
> 
> Now I tested it with standard Maven 2.0.6 and it works well.

I got further this time:

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------


How were you able to build it? :)

Vadim

Re: Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Vadim Gritsenko pisze:
> Grzegorz Kossakowski wrote:
>> Vadim Gritsenko pisze:
>>
>> It was missing dependency on cocoon-sitemap-impl, sorry for 
>> inconvenience. Fixed in r563852.
> 
> Still does not build, but I don't get why - there is a dependency on
> cocoon-expression-language-api, that should be enough, isn't it?

Unfortunately not. Template generator uses helper class from cocoon-expression-language-impl. I fixed this problem and threw out my crappy, 
customized build of Maven that did not inform me about this problems and compiled everything without moaning.

Now I tested it with standard Maven 2.0.6 and it works well.

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

Re: Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Grzegorz Kossakowski wrote:
> Vadim Gritsenko pisze:
>> Grzegorz Kossakowski (JIRA) wrote:
>>> Grzegorz Kossakowski commented on COCOON-2079: 
>>> ----------------------------------------------
>>>
>>> The most simple solution was to exclude pull-parser from scratchpad's
>>> dependencies and it was exactly what I have done in r563174.
>>>
>>> Could someone check if trunk works now? Vadim?
>>
>> Sorry... Does not work:
>>
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>>
>> /Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/components/expression/jxpath/JXPathExpression.java:[27,37] 
>> package org.apache.cocoon.util.jxpath does not exist
> 
> It was missing dependency on cocoon-sitemap-impl, sorry for 
> inconvenience. Fixed in r563852.

Still does not build, but I don't get why - there is a dependency on
cocoon-expression-language-api, that should be enough, isn't it?


[INFO] Compiling 79 source files to
/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/expression/JXTExpression.java:[22,54] 

package org.apache.cocoon.components.expression.jxpath does not exist

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/instruction/Import.java:[24,37] 

cannot find symbol
symbol  : class ObjectModelImpl
location: package org.apache.cocoon.objectmodel

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java:[33,46] 

cannot find symbol
symbol  : class FlowObjectModelHelper
location: package org.apache.cocoon.template.environment

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/expression/JXTExpression.java:[145,62] 

cannot find symbol
symbol  : variable JXPathExpression
location: class org.apache.cocoon.template.expression.JXTExpression

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java:[146,8] 

cannot find symbol
symbol  : variable FlowObjectModelHelper
location: class org.apache.cocoon.template.JXTemplateGenerator


Vadim

Re: Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Grzegorz Kossakowski wrote:
> Vadim Gritsenko pisze:
>> Grzegorz Kossakowski (JIRA) wrote:
>>> Grzegorz Kossakowski commented on COCOON-2079: 
>>> ----------------------------------------------
>>>
>>> The most simple solution was to exclude pull-parser from scratchpad's
>>> dependencies and it was exactly what I have done in r563174.
>>>
>>> Could someone check if trunk works now? Vadim?
>>
>> Sorry... Does not work:
>>
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>>
>> /Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/components/expression/jxpath/JXPathExpression.java:[27,37] 
>> package org.apache.cocoon.util.jxpath does not exist
> 
> It was missing dependency on cocoon-sitemap-impl, sorry for 
> inconvenience. Fixed in r563852.

Still does not build, but I don't get why - there is a dependency on 
cocoon-expression-language-api, that should be enough, isn't it?


[INFO] Compiling 79 source files to 
/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/expression/JXTExpression.java:[22,54] 
package org.apache.cocoon.components.expression.jxpath does not exist

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/instruction/Import.java:[24,37] 
cannot find symbol
symbol  : class ObjectModelImpl
location: package org.apache.cocoon.objectmodel

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java:[33,46] 
cannot find symbol
symbol  : class FlowObjectModelHelper
location: package org.apache.cocoon.template.environment

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/expression/JXTExpression.java:[145,62] 
cannot find symbol
symbol  : variable JXPathExpression
location: class org.apache.cocoon.template.expression.JXTExpression

/Users/vgritsenko/Projects/Apache/cocoon/blocks/cocoon-template/cocoon-template-impl/src/main/java/org/apache/cocoon/template/JXTemplateGenerator.java:[146,8] 
cannot find symbol
symbol  : variable FlowObjectModelHelper
location: class org.apache.cocoon.template.JXTemplateGenerator


Vadim

Re: Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Vadim Gritsenko pisze:
> Grzegorz Kossakowski (JIRA) wrote:
>> Grzegorz Kossakowski commented on COCOON-2079: 
>> ----------------------------------------------
>>
>> The most simple solution was to exclude pull-parser from scratchpad's
>> dependencies and it was exactly what I have done in r563174.
>>
>> Could someone check if trunk works now? Vadim?
> 
> Sorry... Does not work:
> 
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> 
> /Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/components/expression/jxpath/JXPathExpression.java:[27,37] 
> package org.apache.cocoon.util.jxpath does not exist

It was missing dependency on cocoon-sitemap-impl, sorry for inconvenience. Fixed in r563852.

The question remains: Why Continuum does not inform us about such situations? Why e-mail are not sent?

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

Trunk Broken, Re: [jira] Commented: (COCOON-2079) Parser error when launching webapp with jetty

Posted by Vadim Gritsenko <va...@reverycodes.com>.
Grzegorz Kossakowski (JIRA) wrote:
> Grzegorz Kossakowski commented on COCOON-2079: 
> ----------------------------------------------
> 
> The most simple solution was to exclude pull-parser from scratchpad's
> dependencies and it was exactly what I have done in r563174.
> 
> Could someone check if trunk works now? Vadim?

Sorry... Does not work:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/components/expression/jxpath/JXPathExpression.java:[27,37] 
package org.apache.cocoon.util.jxpath does not exist

/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/objectmodel/provider/CocoonEntryObjectModelProvider.java:[26,36] 
package org.apache.cocoon.processing does not exist

/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/objectmodel/provider/CocoonEntryObjectModelProvider.java:[37,12] 
cannot find symbol
symbol  : class ProcessInfoProvider
location: class 
org.apache.cocoon.objectmodel.provider.CocoonEntryObjectModelProvider

/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/objectmodel/provider/CocoonEntryObjectModelProvider.java:[47,11] 
cannot find symbol
symbol  : class ProcessInfoProvider
location: class 
org.apache.cocoon.objectmodel.provider.CocoonEntryObjectModelProvider

/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/objectmodel/provider/CocoonEntryObjectModelProvider.java:[51,39] 
cannot find symbol
symbol  : class ProcessInfoProvider
location: class 
org.apache.cocoon.objectmodel.provider.CocoonEntryObjectModelProvider

/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-expression-language/cocoon-expression-language-impl/src/main/java/org/apache/cocoon/components/expression/jxpath/JXPathExpression.java:[140,53] 
cannot find symbol
symbol  : class NamespacesTablePointer
location: class org.apache.cocoon.components.expression.jxpath.JXPathExpression


Vadim

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

Posted by "Grzegorz Kossakowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517970 ] 

Grzegorz Kossakowski commented on COCOON-2079:
----------------------------------------------

The most simple solution was to exclude pull-parser from scratchpad's dependencies and it was exactly what I have done in r563174.

Could someone check if trunk works now? Vadim?

> 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: dependencies.html, 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.


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

Posted by "Grzegorz Kossakowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grzegorz Kossakowski reopened COCOON-2079:
------------------------------------------


The issues seems to be fixed only partly, several users have reported that if Cocoon built with allblocks profile enabled mvn jetty:run fails for the same reasons. Reports from users:
http://article.gmane.org/gmane.text.xml.cocoon.user/61881
http://article.gmane.org/gmane.text.xml.cocoon.user/61695
http://article.gmane.org/gmane.text.xml.cocoon.user/61883

I think we really need to fix this ASAP.

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


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

Posted by "Gustavo N. Fernandes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gustavo N. Fernandes updated COCOON-2079:
-----------------------------------------

    Attachment: dtd_patch.patch

Fixes cocoon.roles to make it valid

> 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
>            Priority: Blocker
>         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.


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

Posted by "Jeroen Reijn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517724 ] 

Jeroen Reijn commented on COCOON-2079:
--------------------------------------

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?

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


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

Posted by "Vadim Gritsenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518491 ] 

Vadim Gritsenko commented on COCOON-2079:
-----------------------------------------

With Grzegorz help, Cocoon trunk now *almost* builds, and webapp starts up - even if with errors, it does. So this particular bug can be closed now.

> 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: dependencies.html, 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/

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

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Grzegorz Kossakowski (JIRA)" <ji...@apache.org>.
     [ 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-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.


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

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörg Heinicke reassigned COCOON-2079:
-------------------------------------

    Assignee: Jörg Heinicke

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


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

Posted by "Jörg Heinicke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COCOON-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517731 ] 

Jörg Heinicke commented on COCOON-2079:
---------------------------------------

Thanks Vadim.

Isn't it possible with Maven to track down where a dependency is coming from?

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