geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application using inPlace method
Date Wed, 06 Jul 2011 01:52:16 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060234#comment-13060234
] 

Shawn Jiang commented on GERONIMO-5977:
---------------------------------------

Ths problem is that,  this ear is using ext-module way to install the connector module. org.tranql.connector.derby.EmbeddedXAMCF
is part of tranql-connector-derby-embed-xa-1.6.rar.  And this rar is not an OSGi bundle.


That's why the app can't find the class even you add <import-package>org.tranql.connector.derby</import-package>
  to the geronimo-application.xml.


One solution is to change the ear to include the rar as internal connector module so that
it could be part of the ear  bundle classpath.    And then the class could be found.



> Can not load adapter class in classloader when deploy ear application using inPlace method
> ------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5977
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5977
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0
>         Environment: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101209_70480
(JIT enabled, AOT enabled)
>            Reporter: Tina Li
>            Assignee: Shawn Jiang
>            Priority: Minor
>         Attachments: inPlaceBank.ear.zip
>
>
> 1.Use the build 2011.05.19-14:51:13.744+0800-3.0-SNAPSHOT of geronimo server
> 2.Start the server using command: startup.bat or geronimo run under <geronimo_home>/bin
> 3.Get inPlaceBank.ear.zip and decompress it into <appHome>
> 3.Under <geronimo_home>/bin,use inPlace method to deploy this EAR package ,excute
the command:
> deploy --user system --password manager deploy --inPlace <appHome>\inPlaceBank.ear
> 4.Then error message displayed in cmd console:
> 2011-05-25 16:01:20,437 ERROR [DeployTool] Error:
> org.apache.geronimo.common.DeploymentException: Unable to deploy inPlaceBank.ear
> : Can not load adapter class in classloader testSample.BankSampleEAR-DEPLOYMENT_
> 1.0.0 [374]
>         org.tranql.connector.derby.EmbeddedXAMCF
>         at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDe
> ploy.java:43)
>         at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(Co
> mmandDistribute.java:148)
>         at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandD
> istribute.java:124)
>         at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java
> :167)
>         at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64
> )
>         at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
>         at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
>         at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32
> )

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message