Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 17570 invoked from network); 13 Sep 2010 04:19:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 04:19:57 -0000 Received: (qmail 56439 invoked by uid 500); 13 Sep 2010 04:19:57 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 56288 invoked by uid 500); 13 Sep 2010 04:19:55 -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 56273 invoked by uid 99); 13 Sep 2010 04:19:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 04:19:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 04:19:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8D4JX02022008 for ; Mon, 13 Sep 2010 04:19:33 GMT Message-ID: <17998337.146081284351573185.JavaMail.jira@thor> Date: Mon, 13 Sep 2010 00:19:33 -0400 (EDT) From: "viola.lu (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Issue Comment Edited: (GERONIMO-5346) infer jndi type from injection target; check type consistency In-Reply-To: <33305013.29161274773763325.JavaMail.jira@thor> 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-5346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908603#action_12908603 ] viola.lu edited comment on GERONIMO-5346 at 9/13/10 12:18 AM: -------------------------------------------------------------- I updated @Resource to @Resource(name="welcomeMessage"), it's deployed successfully, but failed to start the deployed helloworld, errors: 2010-09-13 12:16:19,296 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.test/helloworld/1.0/car?J2EEApplication=null,j2eeType=WebModule,name=org.apache.test/helloworld/1.0/car" java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:394) at org.apache.catalina.deploy.NamingResources.addEnvironment(NamingResources.java:233) at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1169) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1288) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:875) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:313) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4632) at org.apache.geronimo.tomcat.GeronimoStandardContext.access$101(GeronimoStandardContext.java:99) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:711) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53) at org.apache.geronimo.tomcat.GeronimoStandardContext.startInternal(GeronimoStandardContext.java:459) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:777) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:755) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:558) at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:334) at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:610) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546) at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110) at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145) at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:546) at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110) at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145) at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:224) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:698) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:677) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) at java.lang.Thread.run(Thread.java:619) 2010-09-13 12:16:19,328 INFO [KernelContextGBean] unbound gbean org.apache.test/helloworld/1.0/car?J2EEApplication=null,WebModule=org.apache.test/helloworld/1.0/car,j2eeType=ValidatorFactory,name=ValidatorFactory at name org.apache.test/helloworld/ValidatorFactory/ValidatorFactory 2010-09-13 12:16:19,375 ERROR [DeploymentPortlet] The application was not successfully started. start of org.apache.test/helloworld/1.0/car failed org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.test/helloworld/1.0/car failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:714) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:677) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:224) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:698) ... 3 more Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.test/helloworld/1.0/car failed to start due to the following reasons: The service J2EEApplication=null,j2eeType=WebModule,name=org.apache.test/helloworld/1.0/car did not start for an unknown reason at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:488) ... 5 more was (Author: viola.lu): I updated @Resource to @Resource(name="welcomeMessage"), it's deployed successfully, but failed to start the deployed helloworld, > infer jndi type from injection target; check type consistency > ------------------------------------------------------------- > > Key: GERONIMO-5346 > URL: https://issues.apache.org/jira/browse/GERONIMO-5346 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: deployment, naming > Affects Versions: 3.0 > Reporter: David Jencks > Assignee: David Jencks > Fix For: 3.0 > > Attachments: helloworld.zip > > > Not sure if this was required in ee5, but ee6 requires that if a naming entry type is missing, it be determined from the injection target type, and that all these be consistent. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.