-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>     <attribute name="URL">jdbc:mysql:/localhost/test</attribute>

try jdbc:mysql://localhost/test instead.

if this doesn't do the trick, the root pwd could also be wrong.

hth, jan

- --
Jan Heise / Tel. +49-163-4803237 / [EMAIL PROTECTED] 

- -----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Pavel
Kolesnikov
Gesendet: Donnerstag, 14. Februar 2002 16:59
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] jboss 2.4.4 and mysql: Unknown Source


Hallo,

I've tried to configure Jboss 2.4.4 to use MySQL database.

Unfortunatelly I found only JBoss 3.0 configuration on Jboss site, so
I tried some directions found on the web with Google.

So I've changed JdbcProvider mbean in jboss.jcml to:

  <mbean code="org.jboss.jdbc.JdbcProvider" 
        name="DefaultDomain:service=JdbcProvider">
    <attribute
name="Drivers">org.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver</attribut
e>
  </mbean>

... and added following mbean:

<mbean code="org.jboss.jdbc.XADataSourceLoader" 
name="DefaultDomain:service=XADataSource,name=mySQLDS">
    <attribute name="PoolName">mySQLDS</attribute>
    <attribute 
name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
</attribute>
    <attribute name="Properties"></attribute>
    <attribute name="URL">jdbc:mysql:/localhost/test</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="JDBCUser">root</attribute>
    <attribute name="MaxSize">10</attribute>
    <attribute name="Password">***</attribute>
</mbean>

standardjaws.xml starts with following few lines:
<?xml version="1.0" encoding="UTF-8"?>
<jaws>
    <datasource>java:/mySQLDS</datasource>
    <type-mapping>mySQL</type-mapping>
    <debug>false</debug>

When I'm starting JBoss, I'm getting following message in its
logfile:
[16:44:19,979,mySQLDS] Starting
[16:44:20,253,mySQLDS] XA Connection pool mySQLDS bound to
java:/mySQLDS
[16:44:20,719,mySQLDS] Stopped
java.lang.NullPointerException
        at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source)
        at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java
:412)
        at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:162
8)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:152
3)
        at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Confi
gurationService.java:967)
        at $Proxy0.start(Unknown Source)
        ...

Could anyone of more experienced JBoss users tell me what could be
wrong?
Sorry if this problem seems to be too stupid, I'm real JBoss newbie.

Thanks a lot

Pavel



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPGvvdp/YNqVvLvLkEQK0SACfUN+BiG1CItscaJtOEwbCsCp7NW8AmwWN
+BwGFhCXlpvhN9wuwuPgopoZ
=y5jJ
-----END PGP SIGNATURE-----


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to