1 Reply Latest reply on Dec 22, 2003 2:34 PM by Adrian Brock

    Resource adaptor with DLL exception

    Paul Austin Newbie

      I have developed a JCA Resource adaptor for connection to a server that uses JNI with native DLL libraries.

      When I deploy the resource adaptor in JBOSS 3.2.3, JDK 1.4, Win2k I get an FileNotFoundException for the DLL saying that the file is locked. Below is the top part of the stack trace.

      Is JBOSS not closing the file once it has created it? or is it possible that the JAR file loads the DLL and locks it before JBOSS has finished deploying it?

      org.jboss.deployment.DeploymentException: Could not deploy sub deployment jsg83.dll of deployment file:/C:/Documents and Settings/paustin/Desktop/Stuff/jboss-3.2.3/jboss-3.2.3/server/default/deploy/sdeRa.rar; - nested throwable: (java.io.FileNotFoundException: C:\Documents and Settings\paustin\Desktop\Stuff\jboss-3.2.3\jboss-3.2.3\server\default\tmp\native\jsg83.dll (The process cannot access the file because it is being used by another process))
       at org.jboss.deployment.SubDeployerSupport.deployUrl(SubDeployerSupport.java:423)
       at org.jboss.deployment.SubDeployerSupport.addDeployableJar(SubDeployerSupport.java:356)
       at org.jboss.deployment.SubDeployerSupport.processNestedDeployments(SubDeployerSupport.java:246)
       at org.jboss.deployment.SubDeployerSupport.init(SubDeployerSupport.java:143)
       at org.jboss.resource.RARDeployer.init(RARDeployer.java:115)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)