cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Mata <manuel_mata_ru...@yahoo.es>
Subject Re: Cocoon-MySQL
Date Tue, 20 May 2008 14:57:04 GMT
I think you can't have two classes in the <init-param>
This is yours without comments.

<init-param>
  <param-name>load-class</param-name>
  <param-value>
    org.hsqldb.jdbcDriver
    com.mysql.jdbc.Driver
  </param-value>
</init-param>

Try to delete the org.hsqldb.jdbcDriver from the
<init-param> if you are not going to use it, or make
another <init-param> with the mysql driver like this

<init-param>
  <param-name>load-class</param-name>
  <param-value>
    com.mysql.jdbc.Driver
  </param-value>
</init-param>

<init-param>
  <param-name>load-class</param-name>
  <param-value>
    org.hsqldb.jdbcDriver
  </param-value>
</init-param>

Anyway, do you get any exception starting cocoon about
this ?

--- Matthew Monkan <matthew@ieee.org> escribió:

> 
> Still having problems...I tried that dburl and
> verified that mysql is set to
> 3306.
> 
> Maybe something else is wrong...
> This is the <init-param> I added to my web.xml file:
> 
> <init-param>
>       <param-name>load-class</param-name>
>       <param-value>
>         <!-- For parent ComponentManager sample:
>        
> org.apache.cocoon.samples.parentcm.Configurator -->
>         <!-- For IBM WebSphere:
>         com.ibm.servlet.classloader.Handler -->
>         <!-- For Database Driver: -->
>         org.hsqldb.jdbcDriver
>         <!-- For MySQL Driver: -->
>         com.mysql.jdbc.Driver
>       </param-value>
>     </init-param>
> 
> and I put mysql-connector-java-5.1.6-bin.jar into:
> 
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\cocoon\WEB-INF\lib
> 
> 
> - Matt
> 
> 
> Derek Hohls wrote:
> > 
> > Normally, the dburl is of the form:
> > 
> > jdbc:mysql://localhost:3306/abc
> > 
> > Which is the standard port address for MySQL.
> > (Remember to restart Tomcat after making such
> changes)
> > 
> > 
> -- 
> View this message in context:
>
http://www.nabble.com/Cocoon-MySQL-tp17341170p17341992.html
> Sent from the Cocoon - Users mailing list archive at
> Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 
> 



      ______________________________________________ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

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


Mime
View raw message