geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Hong Fang (JIRA)" <>
Subject [jira] [Commented] (GERONIMO-6126) deploy of the Spring petclinic.war sample app fails
Date Wed, 07 Sep 2011 08:37:11 GMT


Han Hong Fang commented on GERONIMO-6126:

Instead of comment out <servlet-mapping> section, I think it is better to uncomment
the <servlet> section. Just verified, and it will work on geronimo server. 



The question now is that it seems tomcat and GlassFish accept the servlet-mapping to specify
"default" as servlet-name but doesn't have the default servlet definition in web.xml. Shall
Geronimo accept this as well instead of throwing out exception? I had a quick search in servlet
3.0 spec, but didn't find any requirement on this.

> deploy of the Spring petclinic.war sample app fails
> ---------------------------------------------------
>                 Key: GERONIMO-6126
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 3.0
>            Reporter: Kevan Miller
>             Fix For: 3.0
> Deploying the petclinic.war app on Geroimo 3.0 fails as follows:
> {code}
> $ ./deploy deploy ~/spring/spring-samples/petclinic/trunk/target/petclinic.war 
> Using GERONIMO_HOME:   /Users/kevan/geronimo/server/trunk/assemblies/geronimo-tomcat7-javaee6/target/geronimo-tomcat7-javaee6-3.0-SNAPSHOT
> Using GERONIMO_TMPDIR: var/temp
> Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
> 2011-08-25 11:37:05,880 ERROR [DeployTool] Error: 
> org.apache.geronimo.common.DeploymentException: Unable to deploy petclinic.war: Problems
encountered parsing web.xml: [
> No servlet matching servlet mappings for default]
> 	at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(
> 	at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(
> 	at org.apache.geronimo.deployment.cli.CommandDistribute.execute(
> 	at org.apache.geronimo.deployment.cli.DeployTool.execute(
> 	at org.apache.geronimo.system.main.MainBridge.execute(
> 	at org.apache.geronimo.main.Bootstrapper.execute(
> 	at org.apache.geronimo.cli.AbstractCLI.executeMain(
> 	at org.apache.geronimo.cli.deployer.DeployerCLI.main(
> {code}

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message