Hi,

I am trying to integreat MySQL as datasource with JBoss. I did go through
the procedure explained in the documentation. 
I am getting the following error.

[mySQL] Starting
[mySQL] Stopped
[mySQL] java.lang.IllegalStateException: Cannot start XA Connection Pool;
there
is no TransactionManager in JNDI!
[mySQL]         at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLo
ader.java:320)
[mySQL]         at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
java:93)
[mySQL]         at java.lang.reflect.Method.invoke(Native Method)
[mySQL]         at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[mySQL]         at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[mySQL]         at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[mySQL]         at java.lang.reflect.Method.invoke(Native Method)
[mySQL]         at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[mySQL]         at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[mySQL]         at org.jboss.Main.<init>(Main.java:190)
[mySQL]         at org.jboss.Main$1.run(Main.java:94)
[mySQL]         at java.security.AccessController.doPrivileged(Native
Method)
[mySQL]         at org.jboss.Main.main(Main.java:90)

Obvisously the errors says that there is no JNDI name for the transcation
manager for the MySQL connection Pool. Where would you specify it. 
I added the following to jboss.jcml as connection pool parameters.

        <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=mySQL">
        <attribute name="PoolName">mySQL</attribute>
        <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>
                <attribute name="Properties"></attribute>
                <attribute
name="URL">jdbc:mysql://localhost/gandeev</attribute>
                <attribute name="GCMinIdleTime">1200000</attribute>
                <attribute name="JDBCUser">suresh</attribute>
                <attribute name="MaxSize">10</attribute>
                <attribute name="Password">suresh</attribute>
                <attribute name="GCEnabled">false</attribute>
                <attribute name="InvalidateOnError">false</attribute>
                <attribute name="TimestampUsed">false</attribute>
                <attribute name="Blocking">true</attribute>
                <attribute name="GCInterval">120000</attribute>
                <attribute name="IdleTimeout">1800000</attribute>
                <attribute name="IdleTimeoutEnabled">false</attribute>
                <attribute name="LoggingEnabled">false</attribute>
                <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
                <attribute name="MinSize">0</attribute>
                </mbean> 
              
I am guessing that name=mySQL in the first line (hilighted above) would be
the name of the JNDI name. Is this right.
Inpsite of me giving the name, I get the following error where it says
name=null. Where is that picked up from. After trying to
understand whats going on, I copied the contents give for InstandDB
connection pool in the jboss.jcml. I still get the following
error. 


[Service Control] Could not start
DefaultDomain:service=XADataSource,name=null
[Service Control] java.lang.IllegalStateException: Cannot start XA
Connection Po
ol; there is no TransactionManager in JNDI!
[Service Control]       at
org.jboss.jdbc.XADataSourceLoader.startService(XAData
SourceLoader.java:320)
[Service Control]       at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
Support.java:93)
[Service Control]       at java.lang.reflect.Method.invoke(Native Method)
[Service Control]       at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[Service Control]       at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[Service Control]       at
org.jboss.util.ServiceControl.start(ServiceControl.ja
va:97)
[Service Control]       at java.lang.reflect.Method.invoke(Native Method)
[Service Control]       at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[Service Control]       at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[Service Control]       at org.jboss.Main.<init>(Main.java:190)
[Service Control]       at org.jboss.Main$1.run(Main.java:94)
[Service Control]       at
java.security.AccessController.doPrivileged(Native Me


Finally,
I am trying to integreate Jboss and Castor JDO to talk to MySQL and
OpenLDAP. Has anyone tried this. 

Any help is greatly appreciated.
Thanks

Suresh


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

Reply via email to