Thanks, I tried that but am still getting the same error. Tamino comes with a sample tamino-service.xml file for use with JBoss 3.0. However, I understand the way of defining resource adapters has been changed in JBoss 3.2.1 (superseeded by -ds.xml files for RAR deployment?).
I tried the supplied tamino-service.xml file
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================================== -->
<!-- New ConnectionManager setup for Tamino -->
<!-- ==================================================================== -->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
MyTaminoLocalTxConnector
<config-property name="TaminoURL" type="java.lang.String">http://localhost/tamino/mydb</config-property>
<config-property name="UserName" type="java.lang.String">ejb</config-property>
<config-property name="Password" type="java.lang.String">xxx</config-property>
<!--Below here are advanced properties -->
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Tamino Resource Adapter for local transactions
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
0
50
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
this fails on start-up in 3.2.1, and I can't for the life of me figure out what is going on.
The errors I get on startup are:
22:15:31,609 INFO [ServiceConfigurator] Problem configuring service jboss.jca:service=LocalTxDS,name=MyTaminoLocalTxConnector
org.jboss.deployment.DeploymentException: No Attribute found with name: JndiName
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:176)
at org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:437)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:350)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:176)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
:
:
22:15:31,629 INFO [ServiceConfigurator] Problem configuring service jboss.jca:service=LocalTxCM,name=MyTaminoLocalTxConnector
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute: name=ManagedConnectionFactoryName value=jboss.jca:service=LocalTxDS,name=MyTaminoLocalTxConnector on mbean jboss.jca:service=LocalTxCM,name=MyTaminoLocalTxConnector; - nested throwable: (javax.management.AttributeNotFoundException: Writable attribute 'ManagedConnectionFactoryName' not found)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:472)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:357)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:176)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
:
:
+ nested throwable:
javax.management.AttributeNotFoundException: Writable attribute 'ManagedConnectionFactoryName' not found
at org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(ReflectedMBeanDispatcher.java:190)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:503)
at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:468)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:357)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:176)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:225)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
:
:
If somebody has encountered something similar I would be grateful if they could share their experiences. Should I be using a tamino-ds.xml file or a tamino-service.xml file? From what I can see I should be using a -ds.xml file as that invokes the RARDeployer rather than the SARDeployer? Or could it be that the RAR supplied by Tamino is only compatible with JBoss 3.0 and not 3.2.1 (I don't think this sounds very likely though)? Are there any guidelines for "translating" configurations of -service.xml files to -ds.xml files?
Thanks