jboss + castor
chaby1 May 16, 2003 8:31 AMItry to use castor with JBoss 3.0.4
I define a jboss-service.xml in
jboss-3.0.7/server/default/deploy
I declare my connexion :
<!-- DB Test -->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!-- ========== Set the JndiName ======================= -->
tjCnxPool
<config-property name="ConnectionURL" type="java.lang.String">jdbc:JdbcProgress:T:localhost:3006:test</config-property>
<config-property name="DriverClass" type="java.lang.String">com.progress.sql.jdbc.JdbcProgressDriver</config-property>
<config-property name="UserName" type="java.lang.String">test</config-property>
<config-property name="Password" type="java.lang.String"></config-property>
<!--Below here are advanced properties -->
<!--hack-->
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
<!--real attributes-->
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
0
4
5000
15
<!--criteria indicates if Subject (from security domain) or app supplied
parameters (such as from getConnection(user, pw)) are used to distinguish
connections in the pool. Choices are
ByContainerAndApplication (use both),
ByContainer (use Subject),
ByApplication (use app supplied params only),
ByNothing (all connections are equivalent, usually if adapter supports
reauthentication)-->
ByContainer
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager
java:/TransactionManager
<!--make the rar deploy! hack till better deployment-->
jboss.jca:service=RARDeployer
and I declare the mapping for castor:
<!-- DB : Definition mapping for Castor -->
../bin/castordb.xml
dbCnx1
0
false
false
false
true
I put my mapping : castordb.xml in jboss-3.0.7/server/default/bin
And when i start Jboss i have the folowwing error :(
14:18:00,406 INFO [JBossManagedConnectionPool] Starting
14:18:00,468 INFO [JBossManagedConnectionPool] Started
14:18:00,468 INFO [JBossManagedConnectionPool] Starting
14:18:00,468 INFO [JBossManagedConnectionPool] Started
14:18:00,468 INFO [JBossManagedConnectionPool] Starting
14:18:00,531 INFO [JBossManagedConnectionPool] Started
14:18:00,531 INFO [JBossManagedConnectionPool] Starting
14:18:00,531 INFO [JBossManagedConnectionPool] Started
14:18:00,593 INFO [JBossManagedConnectionPool] Starting
14:18:00,593 INFO [JBossManagedConnectionPool] Started
14:18:00,593 INFO [JBossManagedConnectionPool] Starting
14:18:00,640 INFO [JBossManagedConnectionPool] Started
14:18:00,640 INFO [CastorJDOImpl] Starting
14:18:00,656 ERROR [CastorJDOImpl] CastorJDOImpl.startService(): Unable to find ../bin/castordb.xml file.
java.io.FileNotFoundException: CastorJDOImpl.startService(): Unable to resolve Configuration attribute to URL = ../bin/castordb.xml
at org.jboss.jdo.castor.CastorJDOImpl.startService(CastorJDOImpl.java:129)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
at $Proxy4.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:413)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:232)
...
Any Ideas
Regards
Olivier