Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBF1C6689 for ; Wed, 6 Jul 2011 03:02:52 +0000 (UTC) Received: (qmail 18233 invoked by uid 500); 6 Jul 2011 03:02:52 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 18137 invoked by uid 500); 6 Jul 2011 03:02:42 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 18126 invoked by uid 99); 6 Jul 2011 03:02:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 03:02:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 03:02:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6B4C244C9D for ; Wed, 6 Jul 2011 03:02:17 +0000 (UTC) Date: Wed, 6 Jul 2011 03:02:17 +0000 (UTC) From: "Forrest Xia (JIRA)" To: dev@geronimo.apache.org Message-ID: <1551313654.2523.1309921337293.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <921859442.25158.1305768887515.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (GERONIMO-5965) car-maven-plugin cannot generate plugin for DataCDInfo sample, deployment exception like "A container of type STATELESS must be declared in the configuration file for bean: ejb/DataCDInfoJTAImpl" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Forrest Xia closed GERONIMO-5965. --------------------------------- The problem is fixed in the latest build, so close it. > car-maven-plugin cannot generate plugin for DataCDInfo sample, deployment exception like "A container of type STATELESS must be declared in the configuration file for bean: ejb/DataCDInfoJTAImpl" > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: GERONIMO-5965 > URL: https://issues.apache.org/jira/browse/GERONIMO-5965 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: car-maven-plugin, OpenEJB > Affects Versions: 3.0 > Environment: Oracle jdk 1.6.0_23 > ubuntu 10.04 x86 > Reporter: Forrest Xia > Assignee: Shawn Jiang > Fix For: 3.0 > > > 1. Check out samples trunk from https://svn.apache.org/repos/asf/geronimo/samples/trunk > 2. Compile the code from the root with command: mvn clean install -Dtest=false -DfailIfNoTests=false -e > 3. You will get the exception at sample "samples/javaee5/DataCDInfo/DataCDInfo-JTA-jetty/", and the exception is like the following. Seems to me the EJBModule builder has some problem when dealing with annotation deployment info and xml deployment info. > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState for: org.apache.geronimo.samples/sample-datasource/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/sample-datasource/3.0-SNAPSHOT/car State changed from stopped to starting > [org.apache.geronimo.kernel.config.Configuration] : Started configuration org.apache.geronimo.samples/sample-datasource/3.0-SNAPSHOT/car > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState for: org.apache.geronimo.samples/sample-datasource/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/sample-datasource/3.0-SNAPSHOT/car State changed from starting to running > [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded Configuration org.apache.geronimo.samples/sample-datasource/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/sample-datasource/3.0-SNAPSHOT/car > [org.apache.geronimo.system.configuration.DependencyManager] : did not find geronimo-plugin.xml for bundle [183] > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState for: org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car State changed from stopped to starting > [org.apache.geronimo.kernel.config.Configuration] : Started configuration org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState for: org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car State changed from starting to running > [org.apache.geronimo.kernel.config.SimpleConfigurationManager] : Loaded Configuration org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car > [severity=FATAL_ERROR, message=unexpected element (uri:"http://www.openejb.org/System/Configuration", local:"form-validation"). Expected elements are <{http://jboss.org/xml/ns/javax/validation/mapping}constraint-mappings>,<{http://jboss.org/xml/ns/javax/validation/configuration}validation-config>, locator=[node=null, object=null, url=null, line=22,col=18,offset=-1]] > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState for: org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car State changed from running to stopping > [org.apache.geronimo.kernel.config.Configuration] : Stopping configuration org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car > [org.apache.geronimo.gbean.runtime.GBeanInstanceState] : GBeanInstanceState for: org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car?configurationName=org.apache.geronimo.samples/DataCDInfo-JTA-tomcat/3.0-SNAPSHOT/car State changed from stopping to stopped > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] could not package plugin > Embedded error: org.apache.openejb.OpenEJBException: A container of type STATELESS must be declared in the configuration file for bean: ejb/DataCDInfoJTAImpl > [INFO] ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: could not package plugin > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: could not package plugin > at org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:238) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > ... 17 more > Caused by: org.apache.geronimo.common.DeploymentException: org.apache.openejb.OpenEJBException: A container of type STATELESS must be declared in the configuration file for bean: ejb/DataCDInfoJTAImpl > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbInfo(EjbModuleBuilder.java:821) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.doInitContext(EjbModuleBuilder.java:721) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:712) > at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.postInitContext(TomcatModuleBuilder.java:434) > at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.initContext(AbstractWebModuleBuilder.java:424) > at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext(SwitchingModuleBuilder.java:168) > at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:654) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:252) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:872) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245) > at org.apache.geronimo.mavenplugins.car.PackageMojo.invokeDeployer(PackageMojo.java:524) > at org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(PackageMojo.java:340) > at org.apache.geronimo.mavenplugins.car.PackageMojo.execute(PackageMojo.java:235) > ... 19 more > Caused by: org.apache.openejb.OpenEJBException: A container of type STATELESS must be declared in the configuration file for bean: ejb/DataCDInfoJTAImpl > at org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:817) > at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:768) > at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:144) > at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:235) > at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:661) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.configureApplication(EjbModuleBuilder.java:879) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbInfo(EjbModuleBuilder.java:806) > ... 37 more -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira