-
1. Re: jndi newbie question
adrian.brock Mar 27, 2002 6:48 AM (in response to hleblanc)You haven't mentioned your version?
For jboss2.4 look for jboss.jcml, running with
tomcat embedded this is in conf/catalina/
For jboss3.0 the configuration is hot-deployed in the
deploy directory.
Regards,
Adrian -
2. Re: jndi newbie question
hleblanc Apr 1, 2002 5:29 PM (in response to hleblanc)It's jboss 2.4, running Oracle 8.17 on Redhat 7.1.
I've tried using the web-based mbean interface, which looks pretty straightforward. I set it up like so:
MBean Name: DefaultDomain:service=XADataSource,name=TestDB
MBean Java Class: org.jboss.jdbc.XADataSourceLoader
DataSourceClass: org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
jdbc user: DEKWEB
password: <<the password>>
PoolName: TestDB
url: jdbc:oracle:thin:@localhost:1521:TestDB
All the rest are set to whatever they defaulted to (except transaction isolation, which choked unless I blanked it out).
But when I start the mbean, I get this error in the server log:
java.lang.NullPointerException
at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source)
at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)
at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.java:240)
at com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRequestHandler.java:325)
at com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlRequestHandler.java:152)
at com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler.java:79)
at com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
at java.lang.Thread.run(Thread.java:484)
Any idea what's going on here? The Oracle SID is TestDB, but jboss doesn't seem to be finding it.