cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven D. Majewski" <sd...@virginia.edu>
Subject Re: Help with Cocoon 2.2.x
Date Tue, 17 Jul 2007 21:18:51 GMT

On Jul 17, 2007, at 2:46 PM, Steven D. Majewski wrote:

> Caused by: org.gjt.xpp.XmlPullParserException: <![DOCTYPE  
> declarations not supported at line 33 and column 3 seen "...CDATA  
> #REQUIRED\n               class CDATA #REQUIRED\n>\n]"... (parser  
> state UNKNONW_EVENT (-1))


I tried cutting the DOCTYPE out of cocoon.roles and replacing it in  
the jar.
It got a bit farther this time -- I got this error page from http:// 
localhost:8888/ :

------
Internal Server Error

Message: <![DOCTYPE declarations not supported at line 30 and column  
3 seen "...<!ELEMENT forbidden-children (#PCDATA)>\n]"... (parser  
state UNKNONW_EVENT (-1))

Description:  
org.apache.avalon.framework.configuration.ConfigurationException:  
Could not load TreeBuilder configuration from resource://org/apache/ 
cocoon/components/treeprocessor/sitemap-language.xml

Sender: org.apache.cocoon.servlet.RequestProcessor

Source: Cocoon Servlet

Request URI

cause

org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations not  
supported at line 30 and column 3 seen "...<!ELEMENT forbidden- 
children (#PCDATA)>\n]"... (parser state UNKNONW_EVENT (-1))

request-uri

/

full exception chain stacktrace

org.apache.avalon.framework.configuration.ConfigurationException:  
Could not load TreeBuilder configuration from resource://org/apache/ 
cocoon/components/treeprocessor/sitemap-language.xml
	at  
org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage.build 
(SitemapLanguage.java:384)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at  
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invo 
ke(PoolableProxyHandler.java:72)
	at $Proxy4.build(Unknown Source)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcretePr 
ocessor(TreeProcessor.java:417)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcretePr 
ocessor(TreeProcessor.java:342)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process 
(TreeProcessor.java:250)
	at org.apache.cocoon.servlet.RequestProcessor.process 
(RequestProcessor.java:357)
	at org.apache.cocoon.servlet.RequestProcessor.service 
(RequestProcessor.java:171)
	at org.apache.cocoon.servlet.SitemapServlet.service 
(SitemapServlet.java:41)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 
459)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter 
(ServletHandler.java:1054)
	at org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter 
(MultipartFilter.java:119)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter 
(ServletHandler.java:1045)
	at org.mortbay.jetty.servlet.ServletHandler.handle 
(ServletHandler.java:358)
	at org.mortbay.jetty.servlet.SessionHandler.handle 
(SessionHandler.java:231)
	at org.mortbay.jetty.handler.ContextHandler.handle 
(ContextHandler.java:629)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 
453)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle 
(ContextHandlerCollection.java:149)
	at org.mortbay.jetty.handler.HandlerCollection.handle 
(HandlerCollection.java:123)
	at org.mortbay.jetty.handler.HandlerWrapper.handle 
(HandlerWrapper.java:141)
	at org.mortbay.jetty.Server.handle(Server.java:303)
	at org.mortbay.jetty.HttpConnection.handleRequest 
(HttpConnection.java:452)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete 
(HttpConnection.java:721)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:509)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
	at org.mortbay.io.nio.SelectChannelEndPoint.run 
(SelectChannelEndPoint.java:320)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run 
(BoundedThreadPool.java:475)
Caused by: org.gjt.xpp.XmlPullParserException: <![DOCTYPE  
declarations not supported at line 30 and column 3 seen "...<!ELEMENT  
forbidden-children (#PCDATA)>\n]"... (parser state UNKNONW_EVENT (-1))
	at org.apache.cocoon.core.xml.impl.JaxpSAXParser.fatalError 
(JaxpSAXParser.java:275)
	at org.gjt.xpp.sax2.Driver.parse(Driver.java:307)
	at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse 
(JaxpSAXParser.java:196)
	at org.apache.cocoon.core.xml.avalon.DefaultSAXParser.parse 
(DefaultSAXParser.java:47)
	at org.apache.excalibur.xmlizer.DefaultXMLizer.toSAX 
(DefaultXMLizer.java:127)
	at org.apache.cocoon.components.source.util.SourceUtil.toSAX 
(SourceUtil.java:180)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage.build 
(SitemapLanguage.java:378)
	... 32 more

stacktrace

org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations not  
supported at line 30 and column 3 seen "...<!ELEMENT forbidden- 
children (#PCDATA)>\n]"... (parser state UNKNONW_EVENT (-1))
	at org.gjt.xpp.impl.pullparser.PullParser.next(PullParser.java:742)
	at org.gjt.xpp.sax2.Driver.parse(Driver.java:294)
	at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse 
(JaxpSAXParser.java:196)
	at org.apache.cocoon.core.xml.avalon.DefaultSAXParser.parse 
(DefaultSAXParser.java:47)
	at org.apache.excalibur.xmlizer.DefaultXMLizer.toSAX 
(DefaultXMLizer.java:127)
	at org.apache.cocoon.components.source.util.SourceUtil.toSAX 
(SourceUtil.java:180)
	at  
org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage.build 
(SitemapLanguage.java:378)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at  
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invo 
ke(PoolableProxyHandler.java:72)
	at $Proxy4.build(Unknown Source)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcretePr 
ocessor(TreeProcessor.java:417)
	at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcretePr 
ocessor(TreeProcessor.java:342)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process 
(TreeProcessor.java:250)
	at org.apache.cocoon.servlet.RequestProcessor.process 
(RequestProcessor.java:357)
	at org.apache.cocoon.servlet.RequestProcessor.service 
(RequestProcessor.java:171)
	at org.apache.cocoon.servlet.SitemapServlet.service 
(SitemapServlet.java:41)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 
459)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter 
(ServletHandler.java:1054)
	at org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter 
(MultipartFilter.java:119)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter 
(ServletHandler.java:1045)
	at org.mortbay.jetty.servlet.ServletHandler.handle 
(ServletHandler.java:358)
	at org.mortbay.jetty.servlet.SessionHandler.handle 
(SessionHandler.java:231)
	at org.mortbay.jetty.handler.ContextHandler.handle 
(ContextHandler.java:629)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 
453)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle 
(ContextHandlerCollection.java:149)
	at org.mortbay.jetty.handler.HandlerCollection.handle 
(HandlerCollection.java:123)
	at org.mortbay.jetty.handler.HandlerWrapper.handle 
(HandlerWrapper.java:141)
	at org.mortbay.jetty.Server.handle(Server.java:303)
	at org.mortbay.jetty.HttpConnection.handleRequest 
(HttpConnection.java:452)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete 
(HttpConnection.java:721)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:509)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
	at org.mortbay.io.nio.SelectChannelEndPoint.run 
(SelectChannelEndPoint.java:320)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run 
(BoundedThreadPool.java:475)

Apache Cocoon 2.2.0-RC2-SNAPSHOT

------

I found this thread on cocoon-dev:  http://www.mail-archive.com/ 
dev@cocoon.apache.org/msg52300.html

so I tried deleting the DOCTYPE from both cocoon.roles and sitemap- 
language.xml and rebuilding with maven
but I now get a java.lang.NullPointerException ( and a few others are  
also logged on jetty startup. )


mvn --version
Maven version: 2.0.7
Java version: 1.5.0_07
OS name: "mac os x" version: "10.4.10" arch: "ppc"


-- Steve Majewski






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message