I recently update my copy of JBoss to the JBoss Pre2.1 release and noticed
some changes in the Oracle DB configuration. I have reviewed the documents
and made the following additions to my configurations files:
1. jboss.properties:
jboss.xa.xidclass=oracle.jdbc.xa.OracleXid
2. jboss.conf:
<MLET CODE="org.jboss.jdbc.XADataSourceLoader"
ARCHIVE="jboss.jar,classes12.zip" CODEBASE="../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="MyOracleDataSource">
<ARG TYPE="java.lang.String"
VALUE="oracle.jdbc.xa.client.OracleXADataSource">
</MLET>
3. jboss.jcml:
<mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
<attribute
name="Drivers">oracle.jdbc.driver.OracleDriver,org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver</attribute>
</mbean>
and
<mbean name="DefaultDomain:service=XADataSource,name=MyOracleDataSource">
<attribute name="URL">jdbc:oracle:thin:@localhost:1521:instance</attribute>
<attribute name="JDBCUser">in2m</attribute>
<attribute name="Password">in2m</attribute>
</mbean>
But when I try to run JBoss I get a ClassNotFoundException followed by a
"Cannot start XA Connection Pool; there is not TransactionManager in JNDI"
error. It looks like the Oracle JDBC libraries I'm using support JDBC 2.0
Optional package and it is located in the lib/ext directory. Here is the
start of the error:
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Configuration] Could not create MBean
DefaultDomain:service=XADataSource,name=M
yOracleDataSource()
[Configuration] java.lang.ClassNotFoundException:
[Configuration] at
javax.management.loading.MLet.findClass(MLet.java:800
)
[Configuration] at
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
[Configuration] at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.findClass(MBea
nServerImpl.java:2466)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.createMBean(MB
eanServerImpl.java:499)
[Configuration] at
org.jboss.configuration.ConfigurationService.create(C
onfigurationService.java:338)
[Configuration] at
org.jboss.configuration.ConfigurationService.loadConf
iguration(ConfigurationService.java:266)
[Configuration] at java.lang.reflect.Method.invoke(Native Method)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[Configuration] at org.jboss.Main.<init>(Main.java:182)
[Configuration] at org.jboss.Main$1.run(Main.java:94)
[Configuration] at
java.security.AccessController.doPrivileged(Native Me
thod)
[Configuration] at org.jboss.Main.main(Main.java:90)
[Service Control] Initializing 25 MBeans
[MyOracleDataSource] Initializing
[MyOracleDataSource] Initialized
Any suggestions would be greatly appreciated. Thanks for your help.
Brett
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]