cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "flavio\.easy\@iol\.it" <flavio.e...@iol.it>
Subject Re: tutorial
Date Fri, 12 Sep 2003 17:18:00 GMT
Hi John,

thank you, but i think i have modified cocoon.xconf quite a hundred times  with always the
same result.

these are the parameters of my cocoon.xconf located in C:\jakarta-tomcat-4.1.24\webapps\cocoon\WEB-INF.

  <!-- Datasources: -->
  <datasources>
     <jdbc logger="core.datasources.personnel" name="personnel">
     <pool-controller max="10" min="5" />      
     <auto-commit>false</auto-commit>
  <!--   <driver>com.mysql.jdbc.Driver</driver> -->
     <dburl>jdbc:mysql://localhost/cocoon</dburl>
     <user></user>
     <password></password>
    </jdbc>
  </datasources>

in C:\jakarta-tomcat-4.1.24\webapps\cocoon\WEB-INF\lib i put mysql-connector-java-3.0.6-stable-bin.jar
and i think it is correctly loaded because in C:\jakarta-tomcat-4.1.24\webapps\cocoon\WEB-INF\logs\access.log
i can see 
DEBUG   (2003-09-12) 18:50.34:413   [access] (Unknown-URI) Unknown-thread/CocoonServlet: Trying
to load class: com.mysql.jdbc.Driver
and at the next line there are no exception registered.

there is another strange thing that happens every time i run the tutorial, and is in the tomcat
console : 
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: java.lang.NullPointerException

        at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3231)
        at java.lang.Thread.run(Thread.java:536)

i don't know if this is related to my problem ...

during the installation i have copied in C:\jakarta-tomcat-4.1.24\common\endorsed the files
:
xalan-2.3.1.jar, xercesImpl-2.0.0.jar, xml-apis.jar from \cocoon directory\web-inf\lib
, renaming the old ones in xercesImpl_jar.old and xmlParserAPIs_jar.old.

thank you

Flavio

> > i try to run the tutorial and every time i get an exception :
> >
> > Original exception :
> > org.apache.avalon.excalibur.datasource.NoValidConnectionException:
> > No valid JdbcConnection class available at
> >
> org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
> > (JdbcConnectionFactory.java:164) at
> > org.apache.avalon.excalibur.pool.ResourceLimitingPool......
> 
> Have you got the jars containing the jdbc drivers for MySql in the
> <cocoon-dir>/WEB-INF/libs directory?
> 
> > to work around the problem i have modified the .xsp file putting
> > there inside the jdbc tags (driver, url ...) just before the
> > connection in the esql tags ; in this it runs ... so i think
> 
> The url, password etc go in <cocoon-dir>/WEB-INF/cocoon.xconf, eg for
> sqlserver:
> <datasources>
>     <!-- other jdbc datasources  -->
>     <jdbc logger="core.datasources.personnel" name="personnel">
>         <pool-controller min="5" max="10" oradb="true"/>
>         <pool-controller max="10" min="5"/>
>         <auto-commit>false</auto-commit>
>         <dburl>jdbc:microsoft:sqlserver://<server-name>:1433</dburl>
>         <user>sacopy</user>
>         <password>password</password>
>     </jdbc>
> </datasources>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message