In a private email, the following was suggested:

> hi,
>  try to delete username&password near the DriverClass attribute
>    and to add  them in the PrincipalMappingProperties
> 
> <attribute name="PrincipalMappingProperties">userName=INSERT HERE
> USERNAME
>     password=INSERT HERE PASSWORD </attribute>
> 
>  remember that in XML everything is case sensitive, so 'userName' (the N
> is in uppercase,
>   'password' isn't)
> 

This worked perfectly.  I *was* missing something crucial.

I had not realized that the 3.0 docs were online already; I would have
verified my setup myself at

http://www.jboss.org/online-manual/HTML/ch03s12.html

if I had known.  Very cool.

Thanks for the help.

David Jencks wrote:
> 
> This is really strange.  The npe comes from a line using the
> ConnectionManagerFactory, which should be there if the
> ConnectionManagerFactoryLoader started ok.  Could you check that the local
> ConnectionManagerFactoryLoader is started OK? Can you get the Hypersonic ds
> working?
> 
> david jencks
> 
> On 2001.11.27 22:55:18 -0500 [EMAIL PROTECTED] wrote:
> > David Jencks wrote:
> > >
> > > 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.
> >
> > Thanks.  I renamed the zip to jar.  I no longer need to explicitly
> > specify 'classes12.zip' on JBOSS_CLASSPATH :-), but the
> > NullPointerException below still occurs.
> >
> > >
> > > 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)
> >
> > I did use the manual to set up a successful config on JBoss-2.4.3 using
> > the same setup I specify below -- same database, thin driver, etc.  I
> > transferred what seemed to make sense from my working 2.4.3 config to
> > the 3.0 alpha, following the example of the Hypersonic service.  I
> > assume that I left something important out when I did this, but nothing
> > seems obvious to me.
> >
> > >
> > > 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?
> > > >


-- 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

Reply via email to