Greetings.
I am trying to configure a DataSource (as attached). But when JBoss (Head revision
3.0Beta2) starts, I get the following StackTrace. What is puzzling me is
the fact that the userName is obviously set, but when the Object is created, it does
not have a UserName.
And despite the fact that the service is claimed to have started, eventually, it is
not present when I try to access it. I am having trouble verifying if it is
in the JNDI tree anywhere, as there is currently only an empty webpage at
http://localhost:8082
Assistance on this would be greatly appreciated.
Regards,
Steve
15:41:14,624 INFO [jdbc/pool/hrnexus] PrincipalMapping properties set to:
{password=hrnexus, userName=hrnexus}
15:41:17,136 ERROR [jdbc/pool/hrnexus] Unable to create ManagedConnection:
javax.resource.ResourceException: Unable to create DB connection for url:
jdbc:oracle:thin:@192.168.2.11:1521:ORCL, user: null, exception:
java.sql.SQLException: invalid arguments in call
at
org.jboss.resource.adapter.jdbc.local.JDBCManagedConnectionFactory.createManagedConnection(JDBCManagedConnectionFactory.java:405)
at
org.jboss.resource.connectionmanager.ManagedConnectionPoolFactory.createObject(ManagedConnectionPoolFactory.java:97)
at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1013)
at org.jboss.pool.ObjectPool.initialize(ObjectPool.java:730)
at
org.jboss.resource.connectionmanager.PoolManager.createPool(PoolManager.java:43)
at
org.jboss.resource.connectionmanager.PoolManager.access$000(PoolManager.java:15)
at
org.jboss.resource.connectionmanager.PoolManager$FactoryRecord.<init>(PoolManager.java:150)
at
org.jboss.resource.connectionmanager.PoolManager.addPerFactoryPool(PoolManager.java:106)
at
org.jboss.resource.connectionmanager.BaseConnectionManager.createPerFactoryPool(BaseConnectionManager.java:147)
at
org.jboss.resource.connectionmanager.jboss.MinervaSharedLocalCMFactory.addManagedConnectionFactory(MinervaSharedLocalCMFactory.java:128)
at
org.jboss.resource.ConnectionFactoryLoader.loadConnectionFactory(ConnectionFactoryLoader.java:736)
at
org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:433)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
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:779)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:343)
at org.jboss.system.ServiceController.start(ServiceController.java:360)
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.util.jmx.MBeanProxy.invoke(MBeanProxy.java:78)
at $Proxy2.start(Unknown Source)
at org.jboss.resource.RARDeployer.start(RARDeployer.java:213)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:649)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:526)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:506)
at org.jboss.deployment.MainDeployer.scan(MainDeployer.java:327)
at org.jboss.deployment.MainDeployer.startService(MainDeployer.java:254)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
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:779)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:343)
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.server.ServerImpl.doStart(ServerImpl.java:331)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:211)
at org.jboss.Main.boot(Main.java:127)
at org.jboss.Main$1.run(Main.java:335)
at java.lang.Thread.run(Thread.java:484)
15:41:17,415 INFO [jdbc/pool/hrnexus] Bound connection factory for resource adapter
'jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction
ResourceAdapter' to JNDI name 'java:/jdbc/pool/hrnexus'
15:41:18,585 INFO [jdbc/pool/hrnexus] Started
--
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: oracle-service.xml,v 1.2 2002/01/14 00:16:51 d_jencks Exp $ -->
<!-- =====================================================================-->
<!-- oracleds-service.xml -->
<!-- JBoss v3.0alpha (november 23, 2001) ORACLE thin driver Configuration -->
<!-- tested against ORACLE v8.x -->
<!-- ==================================================================== -->
<!-- -->
<!-- please put jdbc driver (in this case classes12.zip) in jboss_home/lib/ext -->
<!-- please put this file (oracleds-service.xml) under jboss_home/deploy -->
<!-- Contributed by Christian Biasuzzi [EMAIL PROTECTED]>
<!-- ===================================================================== -->
<server>
<!-- <classpath archives="../lib/ext/oracle20.jar"/>-->
<classpath archives="../../../lib/ext/oracle20.jar"/>
<mbean code="org.jboss.resource.ConnectionFactoryLoader"
name="jboss.jca:service=ConnectionFactoryLoader,name=HRXOracleDS">
<attribute name="ManagedConnectionFactoryProperties">
ConnectionURL=jdbc:oracle:thin:@192.168.2.11:1521:ORCL
DriverClass=oracle.jdbc.driver.OracleDriver
</attribute>
<attribute name="JndiName">jdbc/pool/hrnexus</attribute>
<attribute name="TransactionManagerName">java:/TransactionManager</attribute>
<depends optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter</depends>
<depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</depends>
<attribute name="ConnectionManagerProperties">#
#Wed Aug 15 16:17:29 EDT 2001
BlockingTimeoutMillis=50000
IdleTimeoutMinutes=20
MaxSize=500
CleanupIntervalMinutes=10
MinSize=1
MaxIdleTimeoutPercent=1.0
</attribute>
<attribute name="PrincipalMappingClass">
org.jboss.resource.security.ManyToOnePrincipalMapping
</attribute>
<attribute name="PrincipalMappingProperties">userName=hrnexus
password=hrnexus</attribute>
</mbean>
</server>