cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Muja <mario.m...@delaval.com>
Subject Re: Tomcat-4.0 and Cocoon-2.0B2
Date Fri, 21 Sep 2001 07:08:10 GMT
<html>
<head>
</head>
<body>
Hi Antony,<br>
look in web-inf/web.xml and search for &lt;param-name&gt;load-class&lt;/param-name&gt;.
The text entry org.hsqldb.jdbcDriver must exist in the &lt;param-value&gt;
element. This loads the HSQLDB driver. Then look in cocoon.xconf and search
for &lt;datasources&gt;. The name &lt;jdbc name="personnel"&gt; must match
the connection name appearing in the ESQL connection elements in the example
stylesheets. Further more, the &lt;dburl&gt; should look like the following:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dburl&gt;jdbc:hsqldb:&lt;path-to-cocoon&gt;\cocoon\WEB-INF\db\cocoondb&lt;/dburl&gt;<br>
<br>
I am not a Cocoon nor a Java expert but this configuration works on my PC.<br>
<br>
Regards, Mario<br>
<br>
<br>
<br>
Antony Stace wrote:<br>
<blockquote type="cite" cite="mid:3BAAE2B8.EBA05F8B@claire.co.jp">
  <pre wrap="">I have installed Tomcat-4.0 and Cocoon-2.0B2.  I have compiled and run<br>the
example webapp which comes with the Cocoon distribution.  All the<br>examples on this
page  which have SQL access in them seem to fail, all<br>the other examples I run fine.
 Is this happening to anyone else? Or is<br>it a problem with how I have installed it.
 Here is part of the error <br>log which I think is relevant to this problem. <br><br>[snip]<br>/webapps/cocoon/stylesheets/dynamic-page2html.xsl'<br>DEBUG
  10010   [cocoon  ] (HttpProcessor[8080][3]): Using stylesheet:<br>'<a class="moz-txt-link-freetext"
href="file:/va">file:/va</a><br>r/tomcat/webapps/cocoon/stylesheets/dynamic-page2html.xsl'
in<br>org.apache.cocoon.<br><a class="moz-txt-link-abbreviated" href="mailto:transformation.TraxTransformer@4b1fda">transformation.TraxTransformer@4b1fda</a>,
last modified: 1001053991000<br>DEBUG   10010   [cocoon  ] (HttpProcessor[8080][3]):
MRUMemoryStore<br>getting obje<br>ct from 
memory. Key:<br><a class="moz-txt-link-freetext" href="file:/var/tomcat/webapps/cocoon/stylesheets/dynamic-page2ht">file:/var/tomcat/webapps/cocoon/stylesheets/dynamic-page2ht</a><br>ml.xsl<br>DEBUG
  10010   [cocoon  ] (HttpProcessor[8080][3]): Reusing Templates<br>in org.ap<br><a
class="moz-txt-link-abbreviated" href="mailto:ache.cocoon.transformation.TraxTransformer@4b1fda">ache.cocoon.transformation.TraxTransformer@4b1fda</a>
for<br><a class="moz-txt-link-freetext" href="file:/var/tomcat/webapps/c">file:/var/tomcat/webapps/c</a><br>ocoon/stylesheets/dynamic-page2html.xsl<br>ERROR
  10010   [cocoon  ] (HttpProcessor[8080][3]): Could not return<br>Connection<br>java.lang.IllegalStateException:
You cannot get a Poolable before the<br>pool is in<br>itialized<br>    
   at<br>org.apache.avalon.excalibur.pool.DefaultPool.get(DefaultPool.java:107<br>)<br>
       at<br>org.apache.avalon.excalibur.datasource.JdbcConnectionPool.get(JdbcCon<br>nectionPool.java:70)<br>
       at<br>o
rg.apache.avalon.excalibur.datasource.JdbcDataSource.getConnection(J<br>dbcDataSource.java:112)<br>[snip]<br><br><br><br>Cheers<br><br>Tony<br><br>giacomo
wrote:<br></pre>
  <blockquote type="cite">
    <pre wrap="">On Wed, 19 Sep 2001, Morrison, John wrote:<br><br></pre>
    <blockquote type="cite">
      <pre wrap="">It works - you've just got to watch out for xml parsers and substitute<br>xerces/xalan
where required.<br></pre>
      </blockquote>
      <pre wrap="">I have the latest CVS version running WITHOUT any modification<br>concerning
jars. Just followed the BUILDING.txt doc and preparing a<br>build.properties file with
all the jars needed to build TC4.<br></pre>
      </blockquote>
      <pre wrap=""><!----><br>---------------------------------------------------------------------<br>Please
check that your question has not already been answered in the<br>FAQ before posting.
<a class="moz-txt-link-rfc2396E" href="http://xml.apache.org/cocoon/faqs.html">&lt;http://xml.apache.org/cocoon/faqs.html&gt;</a><br><br>To
unsubscribe, e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-unsubscribe@xml.apache.org">&lt;cocoon-users-unsubscribe@xml.apache.org&gt;</a><br>For
additional commands, e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-help@xml.apache.org">&lt;cocoon-users-help@xml.apache.org&gt;</a><br><br><br></pre>
      </blockquote>
      <br>
      </body>
      </html>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message