trouble with RAR with ResourceAdapter
lafr Dec 4, 2012 5:26 PMI have a rar file in charge for some month on JBoss AS7 Alpha1-SNAPSHOT, using ironjacamer 1.0.13.Final now.
After some trouble with the migration from 4.2x it worked fine for a long time. Code was not changed.
Now I encounter problems again.
Validation is still successful:
ksh validator.sh $JBOSS_HOME/standalone/deployments/filesystem.rar
Validation sucessful
standalone.xml contains:
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> | |
<resource-adapters> | |
<resource-adapter> | |
<archive>filesystem.rar</archive> | |
<config-property name="Path">/mbi</config-property> | |
<connection-definitions> | |
<connection-definition jndi-name="java:/Filesystem" class-name="biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory"/> | |
</connection-definitions> | |
</resource-adapter> | |
</resource-adapters> | |
</subsystem> |
Sources are:
FilesystemConnectionFactoryImpl.java
FilesystemConnectionImpl.java
FilesystemConnectionManager.java
FilesystemManagedConnection.java
FilesystemManagedConnectionFactory.java
FilesystemManagedConnectionMetaData.java
FilesystemResourceAdapter.java
ci/FilesystemConnectionFactory.java
ci/FilesystemConnection.java
From server.log:
22:25:20,347 INFO [org.jboss.as.server.deployment.scanner#startScanner] JBAS015012: Started FileSystemDeploymentService for directory /mbi/tools/jboss/7.2/standalone/deployments
22:25:20,356 INFO [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "filesystem.rar"
22:25:48,109 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#<init>]
22:25:48,111 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#<init>]
22:25:48,112 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#setLogWriter] java.io.PrintWriter@1ee88dd
22:25:48,112 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#setLogWriter]
22:25:48,113 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#createConnectionFactory]
22:25:48,114 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#createConnectionFactory] biz.mbisoftware.fn.jca.filesystem.FilesystemConnectionFactoryImpl@15b9f9a
22:25:48,115 INFO [org.jboss.as.connector.deployment#bindConnectionFactory] JBAS010406: Registered connection factory java:/Filesystem
22:25:48,119 INFO [org.jboss.as.connector.deployers.RaXmlDeployer#createObjectsAndInjectValue] IJ020002: Deployed: file:/mbi/tools/jboss/7.2/standalone/tmp/vfs/tempf60d0c19e890fd72/filesystem.rar-dafe9e7274262254/contents/
22:25:53,058 INFO [org.jboss.as.connector.deployment#transition] JBAS010401: Bound JCA ConnectionFactory [java:/Filesystem]
...
22:30:03,300 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#hashCode]
22:30:03,304 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#hashCode] 17
22:30:03,306 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemConnectionImpl#<init>] biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory@11
22:30:03,307 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemConnectionImpl#<init>]
22:30:03,309 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemConnectionImpl#getRepositoryPath]
22:30:03,311 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#getResourceAdapter]
22:30:03,312 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#getResourceAdapter] null
22:30:03,314 ERROR [biz.mbisoftware.fn.jca.filesystem.FilesystemConnectionImpl#getRepositoryPath] this.mcf.getResourceAdapter() == null
22:30:03,315 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#getResourceAdapter]
22:30:03,317 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#getResourceAdapter] null
No instance of FilesystemResourceAdapter taking the "Path" property is created and set for the ManagedConnectionFactory object during deployment.