Robert,
The sample you have used oracle.jdbc.xa.client.OracleXADataStore, is this the case, or is the example wrong ?
I don't know the solution, just providing another set of eyes, did you mean
<ARG TYPE="java.lang.String" VALUE="org.jboss.minerva.xa.XADataSourceImpl">
Hope this helps
Regards
Scott Warren
Lead Internet Technologies Developer
-----------------------------------------------------------------------------
Phone: +61 3 5222 6240
mailto: [EMAIL PROTECTED]
web: www.advancedresource.com.au
-----------------------------------------------------------------------------
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 27 February 2001 12:33 PM
To: [EMAIL PROTECTED]
Subject: [jBoss-User] Bean Managed Persistance Using Oracle
I am new to EJB and JBoss and am having trouble getting a sample from
"Enterprise JavaBeans" by Richard Monson-Haefel, Chapter 6, page 179 using
bean-managed persistance. I am trying to use an existing database that I am not
having any problem accessing using servlets. I have been trying to just start
the JBoss server with the suggested parameters and am having problems. I saw in
the mailing list archive that there was a problem of this sort sent in last
October and was wondering if any progress was made on it.
From the instructions that I found in the JBoss documentation, I have done the
following:
I retrieved the Oracle drivers ( Oracle8i 8.1.7 JDBC Drivers for use with JDK
1.2.x for NT, classes12.zip ).
I then put the classes12.zip into C:\JBoss20\lib\ext\.
I modified C:\JBoss20\conf\default\jboss.conf to include the following ( If I
use oracle.jdbc.xa.client.OracleXADataStore, I get a NullPointerException ):
<MLET CODE="org.jboss.jdbc.XADataSourceLoader"
ARCHIVE="jboss.jar,classes12.zip" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="titanDB">
<ARG TYPE="java.lang.String"
VALUE="oracle.jdbc.xa.client.OracleXADataSource">
</MLET>
I modified C:\JBoss20\conf\default\jboss.jcml to include the following:
<mbean name="DefaultDomain:service=XADataSource,name=titanDB">
<attribute name="URL">jdbc:oracle:thin:@myhost:myport:mysid</attribute>
<attribute name="JDBCUser">myuser</attribute>
<attribute name="Password">mypass</attribute>
</mbean>
When I started the JBoss server with the following command file:
cd %JBOSS_HOME%\bin
java -jar run.jar
I got the following error:
java.lang.NullPointerException
at org.jboss.logging.Log.log(Log.java:95)
at org.jboss.logging.Log.log(Log.java:100)
at
org.jboss.util.ServiceMBeanSupport.init(ServiceMBeanSupport.java:62)
at
org.jboss.util.ServiceMBeanSupport.preRegister(ServiceMBeanSupport.java:161)
at
com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2245)
at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:765)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
at org.jboss.Main.<init>(Main.java:119)
at org.jboss.Main$1.run(Main.java:87)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:83)
Any help would be appreciated.
Bob
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
