Discussion:
[jboss-user] [IronJacamar] - trouble with RAR with ResourceAdapter
Frank Langelage
2012-12-04 22:26:18 UTC
Permalink
Frank Langelage [https://community.jboss.org/people/lafr] created the discussion

"trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/779991#779991

--------------------------------------------------------------
I 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
Frank Langelage
2012-12-05 08:10:48 UTC
Permalink
Frank Langelage [https://community.jboss.org/people/lafr] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/780051#780051

--------------------------------------------------------------
Switched back to ironjacamar 1.0.12.Final in pom.xml and made a new build of JBoss AS7.
Tata: problem disappeared.

sb2000.[maj2e_langfr]/mbi/mbi2e_all. egrep -i "(DEBUG|filesys)" `jbosslogfile` | pg
09:03:45,471 INFO  [org.jboss.as.server.deployment#start] JBAS015876: Starting deployment of "filesystem.rar"
09:03:45,599 INFO  [org.jboss.as.server.deployment.scanner#startScanner] JBAS015012: Started FileSystemDeploymentService for directory /mbi/tools/jboss/7.2/standalone/deployments
*09:03:51,846 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#setPath] /mbi*
*09:03:51,848 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#setPath]*
*09:03:52,052 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#setPath] /mbi*
*09:03:52,071 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#setPath]*
09:03:52,074 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#<init>]
09:03:52,075 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#<init>]
09:03:52,076 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#setLogWriter] ***@de1cb6
09:03:52,077 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#setLogWriter]
09:03:52,078 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#hashCode]
09:03:52,079 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#hashCode]
*09:03:52,079 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#setResourceAdapter] ***@a11663*
*09:03:52,080 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#setResourceAdapter]*
09:03:52,119 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#createConnectionFactory]
09:03:52,120 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemManagedConnectionFactory#createConnectionFactory] ***@161c602
09:03:52,121 INFO  [org.jboss.as.connector.deployment#bindConnectionFactory] JBAS010406: Registered connection factory java:/Filesystem
*09:03:52,129 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#start]*
*09:03:52,130 DEBUG [biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter#start]*
09:03:52,303 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer#createObjectsAndInjectValue] IJ020002: Deployed: file:/mbi/tools/jboss/7.2/standalone/tmp/vfs/temp533fa173e0480750/filesystem.rar-e40ac13931b7ec47/contents/
09:03:52,367 INFO  [org.jboss.as.connector.deployment#transition] JBAS010401: Bound JCA ConnectionFactory [java:/Filesystem]
09:05:13,004 INFO  [org.jboss.as.server#handleResult] JBAS018559: Deployed "filesystem.rar"

Seems something has been broken from 1.0.12 to 1.0.13.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780051#780051]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Jesper Pedersen
2012-12-05 13:18:23 UTC
Permalink
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/780118#780118

--------------------------------------------------------------
Are you running the latest snapshot of AS ?  Also .13 is more strict with rar deployments than .21 - but this looks like an issue in AS that is fixed...
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780118#780118]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Frank Langelage
2012-12-05 15:07:02 UTC
Permalink
Frank Langelage [https://community.jboss.org/people/lafr] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/780148#780148

--------------------------------------------------------------
It's build from sources pulled from git as of yesterday evening.
And with this current sources I replaced 1.0.13.Final by 1.0.12.Final in pom.xml and did a new build.
So it seems to be not a problem in AS but in this specific ironjacamar version.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780148#780148]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Jesper Pedersen
2012-12-05 15:14:50 UTC
Permalink
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/780150#780150

--------------------------------------------------------------
Please, attach TRACE log for "org.jboss.jca" and "org.jboss.as.connector". And if possible the .rar itself - if not possible the report from the RAR info tool (IronJacamar 1.1.0.Beta3)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780150#780150]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Frank Langelage
2012-12-05 22:00:10 UTC
Permalink
Frank Langelage [https://community.jboss.org/people/lafr] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/780247#780247

--------------------------------------------------------------
OK, here you are.
The servere.log files using Ironjacamar 1.0.12 and 1.0.13 including TRACE logging.
Also attached the rar file as I deployed it and the sources for this, although they are not open source, ;)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780247#780247]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Jesper Pedersen
2012-12-13 16:08:48 UTC
Permalink
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/783317#783317

--------------------------------------------------------------
Just tried it on master, I see the ResourceAdapter being activated.

Looking at your log it look like the @Connector bug we have fixed some time ago. You could try using IronJacamar 1.0.14-SNAPSHOT with master which will explode if the resourceadapter-class isn't defined. Or you could add a ra.xml file with just that element (as a work-around).

filesystem.rar sounds like http://xadisk.java.net/ http://xadisk.java.net/ - but I didn't look at your source ;)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/783317#783317]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Frank Langelage
2012-12-14 12:59:13 UTC
Permalink
Frank Langelage [https://community.jboss.org/people/lafr] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/783471#783471

--------------------------------------------------------------
Replacing IronJacamar 1.0.13.Final by 1.0.14-SNAPSHOT in the JBossAS7 build solves the problem.
And thanks for the hint to xadisk, was not aware of this. It seems worth looking a bit closer on it as a potential replacement for our adapater.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/783471#783471]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Frank Langelage
2013-01-02 15:46:06 UTC
Permalink
Frank Langelage [https://community.jboss.org/people/lafr] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/787083#787083

--------------------------------------------------------------
Mysteriously the problem reappeared suddenly.
Adding META-INF/ra.xml with this content
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee"
      xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/connector_1_6.xsd http://java.sun.com/xml/ns/javaee/connector_1_6.xsd"
      version="1.6">
    <display-name>Filesystem</display-name>
    <vendor-name>20-20 Technologies GmbH</vendor-name>
    <eis-type>Filesystem</eis-type>
    <resourceadapter-version>3.5</resourceadapter-version>
    <resourceadapter>
        <resourceadapter-class>biz.mbisoftware.fn.jca.filesystem.FilesystemResourceAdapter</resourceadapter-class>
    </resourceadapter>
</connector>
the problem can be worked around.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787083#787083]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Jesper Pedersen
2013-01-02 15:55:16 UTC
Permalink
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: trouble with RAR with ResourceAdapter"

To view the discussion, visit: https://community.jboss.org/message/787088#787088

--------------------------------------------------------------
If you have a test case for https://issues.jboss.org/browse/JBJCA-925 https://issues.jboss.org/browse/JBJCA-925 feel free to submit that
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787088#787088]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Loading...