Can you try again with cvs version? Yesterday a problem with not finding
.zips in the classpath element was fixed.  If you don't want to build jboss
yourself, try renaming the zip to a jar and changing the classpath
reference.

Also, there's an example in ch 3 of the manual.  There are many Oracle
drivers apparently -- if you have a different one working, I'd like the
config for the manual.

(especially if someone gets the xa driver working)

Thanks
david jencks

On 2001.11.27 21:32:10 -0500 [EMAIL PROTECTED] wrote:
> I am relatively new to JBoss, and am trying to set up and use the 3.0
> alpha with an Oracle database.  I receive a NullPointerException in the
> ConnectionFactoryLoader when trying to deploy my Oracle JDBC mbean:
> 
> java.lang.NullPointerException
>       at
> 
>org.jboss.resource.ConnectionFactoryLoader.loadConnectionFactory(ConnectionFactoryLoader.java:685)
>       at
> 
>org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:406)
>       at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
>       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
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
>       at $Proxy0.start(Unknown Source)
>       at org.jboss.system.ServiceController.start(ServiceController.java:479)
>       at org.jboss.system.ServiceController.start(ServiceController.java:507)
>       at
> 
>org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
>       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 org.jboss.resource.RARDeployer.deploy(RARDeployer.java:203)
>       at
> org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
>       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 org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
>       at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
>       at java.lang.Thread.run(Unknown Source)
> 
> I assume I am doing something stupid; I just don't know what it is. 
> Following the example of the Hypersonic service file in the
> distribution, I created a similar simplified Oracle version:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> =====================================================================
> -->
> <!--                                                                     
> 
> -->
> <!--  Oracle JDBC Service
> Configuration                                   -->
> <!--                                                                     
> 
> -->
> !--
> =====================================================================
> -->
> 
> <server>
> 
>   <classpath archives="
>        classes12.zip"/>
> 
>   <!--
> ==================================================================== -->
>   <!-- JDBC - Initialize the
> databases                                      -->
>   <!-- to
> ConnectionFactoryLoader                                           -->
>   <!--
> ==================================================================== -->
> 
>   <mbean code="org.jboss.resource.ConnectionFactoryLoader" 
>        name="JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS">
>     <attribute
> 
>name="ManagedConnectionFactoryProperties">ConnectionURL=jdbc:oracle:thin:@myserver.tumbleweed.com:1521:SID
>   DriverClass=oracle.jdbc.driver.OracleDriver
>   UserName=username
>   Password=password</attribute>
>     <attribute name="JndiName">DefaultDS</attribute>
>     <attribute
> name="TransactionManagerName">java:/TransactionManager</attribute>
> 
>     <mbean-ref
> name="ResourceAdapterName">JCA:service=RARDeployment,name=Minerva JDBC
> LocalTransaction ResourceAdapter</mbean-ref>
>     <mbean-ref
> 
>name="ConnectionManagerFactoryLoaderName">JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>
>     <attribute name="PrincipalMappingClass">
>       org.jboss.resource.security.ManyToOnePrincipalMapping
>    </attribute>
>     <attribute
> name="PrincipalMappingProperties">UserName=username</attribute>
>   </mbean>
> 
> </server>
> 
> Perhaps this is missing something crucial?
> 
> The (hopefully) relevant subset of the server.log is here:
> 
> [2001-11-27 18:07:00,296,AutoDeployer,INFO] Auto deploy of
> file:/E:/JBoss/jboss-3.0.0alpha/deploy/oracle-jdbc-service.xml
> [2001-11-27 18:07:00,296,ServiceDeployer,DEBUG] deploying document
> file:/E:/JBoss/jboss-3.0.0alpha/deploy/oracle-jdbc-service.xml
> [2001-11-27 18:07:00,296,ServiceDeployer,DEBUG] jars from deployment: []
> [2001-11-27 18:07:00,296,ServiceDeployer,DEBUG] xml's from deployment:
> 
>[file:/E:/JBoss/jboss-3.0.0alpha/tmp/deploy/ServiceDeployer/deploy.49/oracle-jdbc-service.xml]
> [2001-11-27 18:07:00,312,ServiceDeployer,DEBUG] found classpath
> <classpath archives="   classes12.zip" />
> [2001-11-27 18:07:00,312,ServiceDeployer,DEBUG] setting up classpath
> <classpath archives="   classes12.zip" />
> [2001-11-27 18:07:00,312,ServiceDeployer,DEBUG] codebase is 
> [2001-11-27 18:07:00,312,ServiceDeployer,DEBUG] archives are
> classes12.zip
> [2001-11-27 18:07:00,312,ServiceDeployer,DEBUG] deploying document
> file:/E:/JBoss/jboss-3.0.0alpha//lib/ext/classes12.zip
> [2001-11-27 18:07:00,437,ServiceDeployer,DEBUG] jars from deployment: []
> [2001-11-27 18:07:00,437,ServiceDeployer,DEBUG] xml's from deployment:
> []
> [2001-11-27 18:07:00,437,Default,INFO] Libraries adding URLClassLoader
> 1968998461 key URL
> file:/E:/JBoss/jboss-3.0.0alpha//lib/ext/classes12.zip
> [2001-11-27 18:07:00,437,ServiceDeployer,DEBUG] deployed classes for
> file:/E:/JBoss/jboss-3.0.0alpha//lib/ext/classes12.zip
> [2001-11-27 18:07:00,437,ServiceDeployer,DEBUG] about to copy 0 local
> directories
> [2001-11-27 18:07:00,437,ServiceDeployer,DEBUG] addMBeans: url
> file:/E:/JBoss/jboss-3.0.0alpha/deploy/oracle-jdbc-service.xml
> [2001-11-27 18:07:00,453,ServiceDeployer,DEBUG] deploying with
> ServiceController mbean <mbean
> code="org.jboss.resource.ConnectionFactoryLoader"
> name="JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS">
>     <attribute
> 
>name="ManagedConnectionFactoryProperties">ConnectionURL=jdbc:oracle:thin:@myserver.tumbleweed.com:1521:SID
>   DriverClass=oracle.jdbc.driver.OracleDriver
>   UserName=username
>   Password=password</attribute>
>     <attribute name="JndiName">DefaultDS</attribute>
>     <attribute
> name="TransactionManagerName">java:/TransactionManager</attribute>
> 
>     <mbean-ref
> name="ResourceAdapterName">JCA:service=RARDeployment,name=Minerva JDBC
> LocalTransaction ResourceAdapter</mbean-ref>
>     <mbean-ref
> 
>name="ConnectionManagerFactoryLoaderName">JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>
>     <attribute name="PrincipalMappingClass">
>       org.jboss.resource.security.ManyToOnePrincipalMapping
>    </attribute>
>     <attribute
> name="PrincipalMappingProperties">UserName=username</attribute>
>   </mbean>
> [2001-11-27 18:07:00,453,AutoDeployer,DEBUG] Received notification of
> mbean ZClassLoaders:id=355443262's deployment.
> [2001-11-27 18:07:00,453,ServiceCreator,INFO] About to create the
> beanJBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,515,AutoDeployer,DEBUG] Received notification of
> mbean JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS's
> deployment.
> [2001-11-27 18:07:00,515,ServiceCreator,INFO] Created the
> beanJBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,515,Configurator,DEBUG]
> ManagedConnectionFactoryProperties set to
> ConnectionURL=jdbc:oracle:thin:@myserver.tumbleweed.com:1521:SID
>   DriverClass=oracle.jdbc.driver.OracleDriver
>   UserName=username
>   Password=password in
> JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,515,Configurator,DEBUG] JndiName set to DefaultDS
> in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,515,Configurator,DEBUG] TransactionManagerName set
> to java:/TransactionManager in
> JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,515,Configurator,DEBUG] PrincipalMappingClass set
> to org.jboss.resource.security.ManyToOnePrincipalMapping in
> JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,515,Configurator,DEBUG] PrincipalMappingProperties
> set to UserName=username in
> JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,515,Configurator,DEBUG] found 2 mbean-ref elements
> [2001-11-27 18:07:00,515,Configurator,DEBUG] considering
> ResourceAdapterName with object name
> JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction
> ResourceAdapter
> [2001-11-27 18:07:00,515,Configurator,DEBUG] ResourceAdapterName set to
> JCA:service=RARDeployment,name=Minerva JDBC LocalTransaction
> ResourceAdapter in
> JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,531,Configurator,DEBUG] considering
> ConnectionManagerFactoryLoaderName with object name
> JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
> [2001-11-27 18:07:00,531,Configurator,DEBUG]
> ConnectionManagerFactoryLoaderName set to
> JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
> in JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:00,531,ServiceController,DEBUG] waiting to start
> JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS until
> dependencies are resolved
> [2001-11-27 18:07:00,531,AutoDeployer,INFO] Started
> [2001-11-27 18:07:00,531,Default,INFO] JBoss 3.0.0alpha(200111202304)
> [RABBIT-HOLE] Started in 0m:5s:63ms
> 
> ...
> 
> [2001-11-27 18:07:03,640,ServiceController,DEBUG] missing mbeans now
> present, finishing deployment of
> JBOSS-SYSTEM:service=ConnectionFactoryLoader,name=DefaultDS
> [2001-11-27 18:07:03,640,ConnectionFactoryLoader,INFO] Starting
> [2001-11-27 18:07:03,687,DefaultDS,WARN] Not setting config property
> 'TransactionIsolation'
> [2001-11-27 18:07:03,687,DefaultDS,DEBUG] set property ConnectionURL to
> value jdbc:oracle:thin:@myserver.tumbleweed.com:1521:SID
> [2001-11-27 18:07:03,687,DefaultDS,DEBUG] set property Password to value
> password
> [2001-11-27 18:07:03,687,DefaultDS,DEBUG] set property DriverClass to
> value oracle.jdbc.driver.OracleDriver
> [2001-11-27 18:07:03,687,DefaultDS,WARN] Not setting config property
> 'AutoCommit'
> [2001-11-27 18:07:03,687,DefaultDS,DEBUG] set property UserName to value
> username
> [2001-11-27 18:07:03,703,DefaultDS,INFO] PrincipalMapping properties set
> to: {UserName=username}
> [2001-11-27 18:07:03,718,DefaultDS,ERROR] Stopped
> java.lang.NullPointerException
>       at
> 
>org.jboss.resource.ConnectionFactoryLoader.loadConnectionFactory(ConnectionFactoryLoader.java:685)
>       at
> 
>org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:406)
>       at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
>       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
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:775)
>       at $Proxy0.start(Unknown Source)
>       at org.jboss.system.ServiceController.start(ServiceController.java:479)
>       at org.jboss.system.ServiceController.start(ServiceController.java:507)
>       at
> 
>org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:273)
>       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 org.jboss.resource.RARDeployer.deploy(RARDeployer.java:203)
>       at
> org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
>       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 org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
>       at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
>       at java.lang.Thread.run(Unknown Source)
> 
> 
> I have tried:
> + removing one or both of the mbean-ref's:  I get different errors
> + searching on the mail lists and the forums for similar problems
> 
> Any suggestions would be appreciated.
> 
> -- Randy
> _________________________________________________________________  
> Randy Shoup                                     (650)216-2038  
> Tumbleweed Communications Corporation           [EMAIL PROTECTED]
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to