You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Colin Paul Adams <co...@colina.demon.co.uk> on 2001/06/30 22:50:16 UTC

First-timer - can't get cocoon 2 to work

Hello,

I have just installed apache 1.3, tomcat 3.2.2 and cocoon 2 on a linux
redhat 7.1 system with a SUN 1.3 JDK.

I've followed carefully (I believe ) the installation instruction, but
when I point my browser at http://localhost:8080/cocoon, I get the
following response:

<html><head><title>Internal servlet error</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>Cocoon 2 - Internal servlet error</h1><HR size="1" noshade><p><b>type</b> internal-servlet-error</p><p><b>message</b> <u>Internal servlet error</u></p><p><b>description</b> <u>Cocoon was not initialized.</u></p><p><b>sender</b> org.apache.cocoon.servlet.CocoonServlet</p><p><b>source</b> Cocoon servlet</p><p><b>request-uri</b><pre>/cocoon</pre></p><p><b>embedded exception</b><pre>Property: http://xml.org/sax/properties/lexical-handler</pre></p><p><b>embedded exception stacktrace</b><pre>Property: http://xml.org/sax/properties/lexical-handler
	at org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
	at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
	at org.apache.cocoon.Cocoon.configure(Cocoon.java:213)
	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:157)
	at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:600)
	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:151)
	at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
	at org.apache.tomcat.core.Handler.init(Handler.java:215)
	at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
	at org.apache.tomcat.core.Handler.service(Handler.java:254)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
</pre></p><p><b>exception</b><pre>org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations</pre></p><p><b>stacktrace</b><pre>org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations
	at org.apache.cocoon.Cocoon.configure(Cocoon.java:217)
	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:157)
	at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:600)
	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:151)
	at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
	at org.apache.tomcat.core.Handler.init(Handler.java:215)
	at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
	at org.apache.tomcat.core.Handler.service(Handler.java:254)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
</pre></p><HR size="1" noshade></body></html>

any clues/help would be most gratefully received.
-- 
Colin Paul Adams
Preston Lancashire

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: First-timer - can't get cocoon 2 to work

Posted by Colin Paul Adams <co...@colina.demon.co.uk>.
>>>>> "Liam" == Liam MacQuarrie Morley <lm...@WPI.EDU> writes:

    Liam> Colin, my first guess would be that you are using the same
    Liam> XML parser that came with Tomcat. This isn't compatible with

No - I read the FAQ, and the install instructions (but the latter seem
inadequate - it appears to me that it is necessary to tailor the
sitemap.xmap first).

Anyway, I tried removing crimson.jar from jre/lib/ext - that appears
to make a difference (but it is not acceptable to me). Now cocoon just
hangs in the init method (at least, involikng that method is the last
thing in the tomcat log).

I thought at first that it might just be taking a long time to compile
- so I tried following the advice in the FAQ for pre-compiling cocoon
- however, I came up against two problems:

1) I don't know whereabouts in the sitemap to place the <parameter name="auto-reload">
   tag for supressing reloads.

2) When I try specifying -Dcompile.xsp=yes, the build process hangs
   after a while, following a series of DEBUG messages, the last of
   which is:

DEBUG   99397   [cocoon  ] (main): ComponentFactory creating new instance of org.apache.avalon.excalibur.datasource.JdbcDataSource.

I guess I have to tailor the sitemap to specify a valid JDBC data
source?? How?

Anyway, I reckon if the build process can't compile xsp, then neither
can the cocoon runtime init method, so maybe these are related problems.
-- 
Colin Paul Adams
Preston Lancashire

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: First-timer - can't get cocoon 2 to work

Posted by Liam MacQuarrie Morley <lm...@WPI.EDU>.
Colin, my first guess would be that you are using the same XML parser that
came with Tomcat. This isn't compatible with Cocoon. If you read the FAQ
that is part of the INSTALL file that comes with Cocoon, you should
notice a part towards the bottom mentioning "Xerces"; this is what you
want. In your Cocoon/lib folder, you should have a "xerces_1_4_0" jar
file; the INSTALL file should tell you what to do with it. Best of luck
to you- please let me know how it goes. If that doesn't fix everything,
don't despair... I'm still trying to get things set up (although I've only
been trying for about a day or so).

Liam Morley


On 30 Jun 2001, Colin Paul Adams wrote:

> Hello,
>
> I have just installed apache 1.3, tomcat 3.2.2 and cocoon 2 on a linux
> redhat 7.1 system with a SUN 1.3 JDK.
>
> I've followed carefully (I believe ) the installation instruction, but
> when I point my browser at http://localhost:8080/cocoon, I get the
> following response:
>
> <html><head><title>Internal servlet error</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>Cocoon 2 - Internal servlet error</h1><HR size="1" noshade><p><b>type</b> internal-servlet-error</p><p><b>message</b> <u>Internal servlet error</u></p><p><b>description</b> <u>Cocoon was not initialized.</u></p><p><b>sender</b> org.apache.cocoon.servlet.CocoonServlet</p><p><b>source</b> Cocoon servlet</p><p><b>request-uri</b><pre>/cocoon</pre></p><p><b>embedded exception</b><pre>Property: http://xml.org/sax/properties/lexical-handler</pre></p><p><b>embedded exception stacktrace</b><pre>Property: http://xml.org/sax/properties/lexical-handler
> 	at org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
> 	at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
> 	at org.apache.cocoon.Cocoon.configure(Cocoon.java:213)
> 	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:157)
> 	at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:600)
> 	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:151)
> 	at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> 	at org.apache.tomcat.core.Handler.init(Handler.java:215)
> 	at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> 	at org.apache.tomcat.core.Handler.service(Handler.java:254)
> 	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> 	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> 	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> 	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
> 	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> 	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> 	at java.lang.Thread.run(Thread.java:484)
> </pre></p><p><b>exception</b><pre>org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations</pre></p><p><b>stacktrace</b><pre>org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations
> 	at org.apache.cocoon.Cocoon.configure(Cocoon.java:217)
> 	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:157)
> 	at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:600)
> 	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:151)
> 	at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> 	at org.apache.tomcat.core.Handler.init(Handler.java:215)
> 	at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> 	at org.apache.tomcat.core.Handler.service(Handler.java:254)
> 	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> 	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> 	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> 	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
> 	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> 	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> 	at java.lang.Thread.run(Thread.java:484)
> </pre></p><HR size="1" noshade></body></html>
>
> any clues/help would be most gratefully received.
> --
> Colin Paul Adams
> Preston Lancashire
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>