Can anybody help me out with this ?????
deejboss Dec 9, 2004 2:24 PMHi,
I'm using jboss4 and trying to deploy rar inside an ear. Resource adapter works fine if I deploy an rar in my /server/default/deploy directory with an notxfs-ds.xml (which is also placed in /server/default/deploy directory).
------------------------------------------------
The directory stucture
storageservice.ear
-----/meta-inf/application.xml
-----/meta-inf/jboss-app.xml
-----/storageservice.rar
----------/storageservice.jar (is packaged in storageservice.rar and has all the resource adapter files)
----------/meta-inf/ra.xml
------------------------------------------------
notxfs-ds.xml
<connection-factories>
<no-tx-connection-factory>
<jndi-name>netapp_conn_factory</jndi-name>
<rar-name>storageservice.rar</rar-name>
<connection-definition>com.ameriquest.eir.storage.device.netapp.NetAppConnectionFactory</connection-definition>
</no-tx-connection-factory>
------------------------------------------------
jboss-app.xml
<jboss-app>
storageservice.rar
</jboss-app>
</connection-factories>
------------------------------------------------
application.xml
<application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>storageservice.rar</display-name>
------------------------------------------------
ra.xml
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
version="1.5">
File xml resource adapter
<display-name>storageservice.rar</display-name>
<vendor-name>JBoss, Inc</vendor-name>
<eis-type>JBoss Example</eis-type>
<resourceadapter-version>4.0</resourceadapter-version>
COPYRIGHT AND PERMISSION NOTICE
Copyright (c) 2004 JBoss, Inc
This is released under the terms of the LGPL.
See gnu.org for details.
<license-required>true</license-required>
<resourceadapter-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppResourceAdapter</resourceadapter-class>
<config-property>
<config-property-name>FileSystemRootDir</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>C:\test1</config-property-value>
</config-property>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppMangedConnectionFactory</managedconnectionfactory-class>
<connectionfactory-interface>com.ameriquest.eir.storage.device.netapp.NetAppConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>com.ameriquest.eir.storage.device.netapp.NetAppConnection</connection-interface>
<connection-impl-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppConnectionImpl</connection-impl-class>
</connection-definition>
<transaction-support>NoTransaction</transaction-support>
<authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>true</reauthentication-support>
</outbound-resourceadapter>
------------------------------------------------
This is the error I get
20:40:21,447 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss.jca:service=NoTxCM,name=netapp_conn_factory
state: CONFIGURED
I Depend On: jboss.jca:service=ManagedConnectionPool,name=netapp_conn_factory
jboss.jca:service=CachedConnectionManager
Depends On Me: jboss.jca:service=ConnectionFactoryBinding,name=netapp_conn_fac
tory
ObjectName: jboss.jca:service=ManagedConnectionPool,name=netapp_conn_factory
state: CONFIGURED
I Depend On: jboss.jca:service=ManagedConnectionFactory,name=netapp_conn_facto
ry
Depends On Me: jboss.jca:service=NoTxCM,name=netapp_conn_factory
ObjectName: jboss.jca:service=ManagedConnectionFactory,name=netapp_conn_factory
state: CONFIGURED
I Depend On: jboss.jca:service=RARDeployment,name='storageservice.rar'
Depends On Me: jboss.jca:service=ManagedConnectionPool,name=netapp_conn_factor
y
ObjectName: jboss.jca:service=ConnectionFactoryBinding,name=netapp_conn_factory
state: CONFIGURED
I Depend On: jboss.jca:service=NoTxCM,name=netapp_conn_factory
Depends On Me:
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.jca:service=RARDeployment,name='storageservice.rar'
state: NOTYETINSTALLED
I Depend On:
Depends On Me: jboss.jca:service=ManagedConnectionFactory,name=netapp_conn_fac
tory
------------------------------------------------
I did try including
<rar-name>storageservice.ear#storageservice.rar</rar-name>
but it does not work
Please suggest what has to be done ?