Hello there,
I have been trying to get jboss/castor to work together to use Posgresql
as the backend rdbms. I modified the configuration files
like: jboss.conf and jboss.jcml, as instructed in the "Advanced
configuration" tutorial. However, when I tried to start jboss, I would
get error msg as the following in the server.log:
------------------------------------------------------------------------------------------------
[psqlPool] java.lang.IllegalStateException: Cannot start XA Connection
Pool; there is no TransactionManager in JNDI! <----------
[psqlPool] at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:320)
[psqlPool] at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[psqlPool] at java.lang.reflect.Method.invoke(Native Method)
[psqlPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[psqlPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[psqlPool] at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[psqlPool] at java.lang.reflect.Method.invoke(Native Method)
[psqlPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[psqlPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[psqlPool] at org.jboss.Main.<init>(Main.java:151)
[psqlPool] at org.jboss.Main$1.run(Main.java:89)
[psqlPool] at java.security.AccessController.doPrivileged(Native
Method)
[psqlPool] at org.jboss.Main.main(Main.java:85)
[Service Control] Could not start
DefaultDomain:service=XADataSource,name=null <------------------
[Service Control] javax.management.RuntimeMBeanException:
RuntimeException thrown in operation start
[Service Control] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1640)
[Service Control] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Service Control] at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Service Control] at java.lang.reflect.Method.invoke(Native Method)
[Service Control] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Service Control] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Service Control] at org.jboss.Main.<init>(Main.java:151)
[Service Control] at org.jboss.Main$1.run(Main.java:89)
[Service Control] at java.security.AccessController.doPrivileged(Native
Method)
[Service Control] at org.jboss.Main.main(Main.java:85)
------------------------------------------------------------------------------------------
later on in the log file it does say:
----------------------------------------------------------------------
[CastorJDO] Starting
[CastorJDO] Started
...
[psqlPool] Starting
[psqlPool] XA Connection pool psqlPool bound to java:/psqlPool
[Hypersonic] Press [Ctrl]+[C] to abort
[psqlPool] Started
...
----------------------------------------------------------------------
I am working on an intel box with RH linux 7.0, jdk1.3, jboss2.0, and
postgresql 7.02.
Here are the segments I modified in the jboss conf dir:
1) at the end of jboss.conf, I added:
<MLET CODE="org.jboss.jdbc.XADataSourceLoader"
ARCHIVE="jboss.jar,postgresql.jar" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="psqlPool">
<ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>
<MLET CODE = "org.jboss.jdo.castor.CastorJDOImpl"
ARCHIVE="jboss.jar,jboss-castorjdo.jar,xerces.jar,castor-0.8.11.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="file:../conf/database.xml">
<ARG TYPE="java.lang.String" VALUE="jdo/R5jdo">
<ARG TYPE="java.lang.Integer" VALUE="0">
<ARG TYPE="java.lang.Boolean" VALUE="true">
<ARG TYPE="java.lang.Boolean" VALUE="false">
</MLET>
***************************************************
2) in jboss.jcml:
<!-- JDBC -->
<mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
<attribute
name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver</attribute>
</mbean>
<mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=psqlPool">
<attribute name="PoolName">psqlPool</attribute>
<attribute
name="DataSourceClass">org.jboss.minerva.xa.XADataSourceImpl</attribute>
<attribute
name="URL">jdbc:postgresql://209.77.56.111:5432/test_db</attribute>
<attribute name="JDBCUser">postgres</attribute>
<attribute name="Password">foo</attribute>
</mbean>
****************************************************
I would very much appreciate if anyone could offer me some suggestion on
how to get castor to find a txn manager thr jndi.
Best regards,
--Walter
--
Walter M. Yuan
Software Engineer
Oak Grove Systems
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]