In jboss.conf, you put the mbean code for your DB at the top, above the
mbean for the logger. That is bad, because then your Mbean is initialized
before the Logger, and thus the null pointer exception from the Logger ...
Somebody should probably document that in jboss.conf :)
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 7: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(ServiceMBeanSup
> port.java:161)
> at
>
> com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBea
> nServerImpl.java:2245)
>
> at
>
> com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServer
> Impl.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]
>
---------------------------------------------------------------------
This message (including any attachments) contains confidential, proprietary
or privileged information intended for a specific purpose and individual(s),
and is protected by law. If you receive this message in error, please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender. Any unauthorized disclosure,
copying or distribution of any part of this message, or the taking of any
unauthorized action based on it, is strictly prohibited.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]