[weld-issues] [JBoss JIRA] Updated: (CDITCK-56) mispackaged application caused deployment failure on glassfish v3

Hong Zhang (JIRA) jira-events at lists.jboss.org
Mon Nov 16 20:52:30 EST 2009


     [ https://jira.jboss.org/jira/browse/CDITCK-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hong Zhang updated CDITCK-56:
-----------------------------

    Summary: mispackaged application caused deployment failure on glassfish v3  (was: mispackaged application (SimpleBeanDefinitionTest.ear) caused deployment failure on glassfish v3)


I am making this issue a more general issue for this type of deployment  failure as I discovered a few more similar cases when looking at the test failures from deployment package. 

The glassfish validates the ejb jar (make sure the declared ejb jar contains at least one EJB) during deployment, and will fail deployment if the ejb jar is not valid.  JBoss code probably does not have this validation so application which deploys successfully on JBoss could fail to deploy on glassfish. The mis-packaged applications should be fixed to contain valid ejb jar to be JavaEE compliant.

These are the applications I found in the deployment package that failed to deploy due to the invalid ejb jar (no EJB found in the ejb jar): 
org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.failsDuringBeanDiscovery.DeploymentFailureTest.ear#DeploymentFailureTest.jar
org.jboss.jsr299.tck.tests.deployment.packaging.bundledLibrary.LibraryInEarTest.ear#LibraryInEarTest.jar
org.jboss.jsr299.tck.tests.deployment.packaging.installedLibrary.EarInstalledLibraryTest.ear#EarInstalledLibraryTest.jar


I will make more updates to this issue as I go through other packages.

> mispackaged application caused deployment failure on glassfish v3
> -----------------------------------------------------------------
>
>                 Key: CDITCK-56
>                 URL: https://jira.jboss.org/jira/browse/CDITCK-56
>             Project: CDI TCK
>          Issue Type: CTS Challenge
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>    Affects Versions: 1.0.1.CR1
>         Environment: Ubuntu/X86
>            Reporter: Hong Zhang
>            Priority: Critical
>
> During test run, org.jboss.jsr299.tck.tests.implementation.simple.definition.SimpleBeanDefinitionTest.ear failed to deploy on glassfish v3.
> Looking at the ear packaging, it seems this application was mispackaged which caused the deployment failure: 
> SimpleBeanDefinitionTest.jar is declared as an ejb jar in application.xml. But the ejb-jar.xml inside this jar does not define any EJBs, and none of the packaged classes in this jar contain any ejb component annotations (@Stateless, @Stateful, @MessageDriven, @Singleton).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list