You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Tina Li (JIRA)" <ji...@apache.org> on 2011/05/25 10:19:48 UTC

[jira] [Created] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application

Can not load adapter class in classloader when deploy ear application
---------------------------------------------------------------------

                 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
            Priority: Minor


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

[jira] [Updated] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application using inPlace method

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang updated GERONIMO-5977:
----------------------------------

    Attachment: inPlaceBank.ear.working.zip

This is a modified working ear that include the rar within the ear.

> 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.working.zip, 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

        

[jira] [Closed] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application using inPlace method

Posted by "Tina Li (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tina Li closed GERONIMO-5977.
-----------------------------

    Resolution: Fixed

Problem be solved.

> 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.working.zip, 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

        

[jira] [Updated] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application using inPlace method

Posted by "Tina Li (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tina Li updated GERONIMO-5977:
------------------------------

    Summary: Can not load adapter class in classloader when deploy ear application using inPlace method  (was: Can not load adapter class in classloader when deploy ear application)

> 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
>            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

[jira] [Assigned] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application using inPlace method

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang reassigned GERONIMO-5977:
-------------------------------------

    Assignee: Shawn Jiang

> 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

        

[jira] [Commented] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application using inPlace method

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056283#comment-13056283 ] 

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

I noticed the jar and war are exploded in the ear directory.

I'm not sure we support this in 3.0.   Could you please package jar and war sub-folder and then try it again ?

> 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
>            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

        

[jira] [Commented] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application using inPlace method

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (GERONIMO-5977) Can not load adapter class in classloader when deploy ear application

Posted by "Tina Li (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tina Li updated GERONIMO-5977:
------------------------------

    Attachment: inPlaceBank.ear.zip

The related ear application

> Can not load adapter class in classloader when deploy ear application
> ---------------------------------------------------------------------
>
>                 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
>            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