Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 8916 invoked from network); 20 Aug 2005 22:45:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Aug 2005 22:45:28 -0000 Received: (qmail 17485 invoked by uid 500); 20 Aug 2005 22:45:22 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 17449 invoked by uid 500); 20 Aug 2005 22:45:21 -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 17436 invoked by uid 99); 20 Aug 2005 22:45:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2005 15:45:21 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 37B3A13 for ; Sun, 21 Aug 2005 00:45:20 +0200 (CEST) Message-ID: <765538141.1124577920226.JavaMail.jira@ajax.apache.org> Date: Sun, 21 Aug 2005 00:45:20 +0200 (CEST) From: "David Jencks (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-589) Standalone war does not have a default context In-Reply-To: <2134176747.1108874268790.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-589?page=all ] David Jencks updated GERONIMO-589: ---------------------------------- Assign To: Jeff Genender (was: David Jencks) Patch applied with modifications, and defaultContextPriorityClassloader added to tomcat builder as well. I'm not sure if the tomcat builder produces a context root for a standalone web-app with a plan without a context root element. Jeff, can you look into this and fix it if you think it's appropriate? Sending trunk/modules/assembly/src/plan/jetty-deployer-config.xml Sending trunk/modules/assembly/src/plan/jetty-runtime-deployer-config.xml Sending trunk/modules/assembly/src/plan/tomcat-deployer-config.xml Sending trunk/modules/assembly/src/plan/tomcat-runtime-deployer-config.xml Sending trunk/modules/jetty-builder/src/java/org/apache/geronimo/jetty/deployment/JettyModuleBuilder.java Sending trunk/modules/jetty-builder/src/test/org/apache/geronimo/jetty/deployment/JettyModuleBuilderTest.java Sending trunk/modules/jetty-builder/src/test/org/apache/geronimo/jetty/deployment/PlanParsingTest.java Sending trunk/modules/tomcat-builder/src/java/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilder.java Sending trunk/modules/tomcat-builder/src/test/org/apache/geronimo/tomcat/deployment/PlanParsingTest.java Sending trunk/modules/tomcat-builder/src/test/org/apache/geronimo/tomcat/deployment/TomcatModuleBuilderTest.java Sending trunk/modules/web-builder/src/schema/geronimo-web.xsd Transmitting file data ........... Committed revision 234133. > Standalone war does not have a default context > ---------------------------------------------- > > Key: GERONIMO-589 > URL: http://issues.apache.org/jira/browse/GERONIMO-589 > Project: Geronimo > Type: Bug > Components: web > Versions: 1.0-M3 > Reporter: Dain Sundstrom > Assignee: Jeff Genender > Fix For: 1.0-M5 > Attachments: patch.tar.gz > > If I have a standalone war with the following deployment plan: > > configId="foo" > parentId="org/apache/geronimo/Server"> > false > > The module will deploy, but the following exception is thrown on startup: > java.lang.IllegalArgumentException: Illegal context spec:null > at org.mortbay.http.HttpContext.canonicalContextPathSpec(HttpContext.java:241) > at org.mortbay.http.HttpContext.setContextPath(HttpContext.java:263) > at org.mortbay.http.HttpContext$$FastClassByCGLIB$$c359e803.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanAttribute.setValue(GBeanAttribute.java:387) > at org.apache.geronimo.gbean.runtime.GBeanAttribute.inject(GBeanAttribute.java:318) > at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:830) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:331) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133) > at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:494) > at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:348) > This can be fixed by adding a context-root element to the deployment plan. Either the context-root element should be required, or preferably set the default context to the configuration id which is the default in the case where you have no deployment plan. Also the context-priority-classloader element should be optional. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira