The database driver must go in $JBOSS/server/default/lib/
as specified in the documentation http://doc.nuxeo.org/current/reference/html/administration.html#d1306e3394


[EMAIL PROTECTED] a écrit :

I tried a new configuration with a new JBoss folder.

I modify the C:\Program Files\nuxeo-5.1.2.GA/server/default/deploy/nuxeo.ear/config/default-repository-config.xml file to change the PersistenceManager. Then I started JBoss and it works.



Next, I copied MySQL connector mysql-connector-java-5.1.5-bin.jar in C:\Program Files\nuxeo-5.1.2.GA\server\default\deploy\nuxeo.ear\lib\
and I modified C:\Program Files\nuxeo-5.1.2.GA\server\default\deploy\nuxeo.ear\datasources\nxarchive-records-ds.xml :

<?xml version="1.0" encoding="UTF-8"?>
<datasources>
  <local-tx-datasource>
    <jndi-name>nxarchive-records</jndi-name>
    <connection-url>jdbc:mysql://localhost/basenuxeo</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    <password>mdp</password>
  </local-tx-datasource>
</datasources>

I started again JBoss but I had this error :


11:40:49,226 WARN  [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localhost/basenuxeo)
        at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
        at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:565)


It doesn't find the MySQL driver but I don't know why.






[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]

27/11/2007 10:21

To
[email protected]
cc

Subject
Re: [Ecm] MySQL configuration








I found the problem ... I have the same JNDI name in 2 files.



[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]

27/11/2007 10:08


To
[email protected]
cc

Subject
[Ecm] MySQL configuration










Hello,


I tried to configure MySQL in datasource folder. I had this error :


09:49:15,984 ERROR [MainDeployer] Could not create deployment: file:/C:/Program Files/nuxeo-5.1.2.GA/server/default/deploy/nuxeo.ear/datasources/nxworkflow-jbpm-ds.xml

org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=nxaudit-logs

      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)

      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)

      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)


I follow these instructions : http://doc.nuxeo.org/current/reference/html/administration.html#admin-database-configuration but I didn't change the respository yet.





Is it possible to include the modified files in my project files ? (not in JBoss folder).


Thank you.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm


_______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm


-- 
Julien CARSIQUE, Nuxeo (Paris, France)
Open Source Enterprise Content Management - http://www.nuxeo.org/
Nuxeo EP 5: extensible, Java EE and standards based ECM Platform
http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to