users@glassfish.java.net

Re: Not Connecting to Database

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Aug 2007 11:56:43 PDT

The way I see it, if I can answer why the following is null, the problem is solved:

[code]
[#|2007-08-23T13:44:08.725-0500|CONFIG|sun-appserver-pe9.0|oracle.toplink.essentials.file:/C:/glassfish/domains/domain1/applications/j2ee-apps/MYPROJECT/MYEJB_jar/-MYEJBPU.connection|_ThreadID=12;_ThreadName=httpWorkerThread-8080-0;DatabaseLogin(
        platform=>MySQL4Platform
        user name=> "mysql_user"
        connector=>JNDIConnector datasource name=>null
);|connecting|#]
[/code]

Again, this is the Persistence.xml

[code]
<properties>
                        <property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/<databasename>?relaxAutoCommit='true'" />
                        <property name="toplink.jdbc.driver" value="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" />
                        <property name="toplink.jdbc.user" value="my_user"/>
                        <property name="toplink.jdbc.password" value="my_user" />
                        <property name="toplink.target-database" value="MySQL4" />
                        <property name="toplink.target-server" value="SunAS9" />
                        <property name="toplink.logging.level" value="FINEST" />
                        <!--
                                <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
                        -->
                </properties>
[/code]

Thanks for reading my post........

Russ
[Message sent by forum member 'russ_ray' (russ_ray)]

http://forums.java.net/jive/thread.jspa?messageID=232375