You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rolf Schumacher <ro...@august.de> on 2005/10/09 14:23:05 UTC

bricks on tomcat

Has attendee of cocoongt successfully started Bertrands "bricks" example 
in an environment with tomcat (mine is 5.5.7)?

It works fine with Jetty. But with Tomcat
I do not have a derby database connection. The test failed with

Database 'bricks-cms' not found.

org.apache.avalon.framework.CascadingRuntimeException: 
"file:/opt/tomcat/webapps/bricks/bricks-cms/admin/document-editor/flow/document-editor.js", 
line 60: uncaught JavaScript exception: at form_editDocument 
(file:/opt/tomcat/webapps/bricks/bricks-cms/admin/document-editor/flow/document-editor.js, 
Line 60): org.apache.ojb.broker.PersistenceBrokerException: Can't lookup 
a connection


Any suggestion? Must be easy but I do not know were to start cause there 
are so many technologies involved.

How would you debug next? I tried the build.xml and the db-connect.js. 
Got stuck in both.


Rolf

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


Re: bricks on tomcat

Posted by Rolf Schumacher <ma...@august.de>.
Could be usefull to someone:

In order to make bricks work with tomcat 5.5 I've done the following 
changes

    * offending class:
      /opt/tomcat/webapps/bricks/WEB-INF/lib/servletapi-from-tomcat-4.1.31.jar
      -- not loaded
          o delete
            build/cocoon/webapp/WEB-INF/lib/servletapi-from-tomcat-4.1.31.jar

    * changed ./build/cocoon/webapp/WEB-INF/classes/log4j.properties
          o relative ./build/bricks-cms.log to absolute
            /var/log/bricks-cms.log
    * database cannot be found without
          o a link from the ./build/cocoon/webapp directory to
            ${derby.home} (that is ./derby-database)

So far, my questions are solved for now and I really do appreciate 
Bertrands work for me giving us that bricks example.

Rolf

Rolf Schumacher wrote:

> Has any attendee of cocoongt successfully started Bertrands "bricks" 
> example in an environment with tomcat (mine is 5.5.7)?
>
> It works fine with Jetty. But with Tomcat
> I do not have a derby database connection. The test failed with
>
> Database 'bricks-cms' not found.
>
> org.apache.avalon.framework.CascadingRuntimeException: 
> "file:/opt/tomcat/webapps/bricks/bricks-cms/admin/document-editor/flow/document-editor.js", 
> line 60: uncaught JavaScript exception: at form_editDocument 
> (file:/opt/tomcat/webapps/bricks/bricks-cms/admin/document-editor/flow/document-editor.js, 
> Line 60): org.apache.ojb.broker.PersistenceBrokerException: Can't 
> lookup a connection
>
>
> Any suggestion? Must be easy but I do not know were to start cause 
> there are so many technologies involved.
>
> How would you debug next? I tried the build.xml and the db-connect.js. 
> Got stuck in both.
>
>
> Rolf
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


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