geronimo-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/GERONIMO-6126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098767#comment-13098767
] 

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. 

	<servlet-mapping>
		<servlet-name>default</servlet-name>
		<url-pattern>/static/*</url-pattern>
	</servlet-mapping>

	<servlet>
		<servlet-name>default</servlet-name>
		<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
		<init-param>
			<param-name>debug</param-name>
			<param-value>0</param-value>
		</init-param>
		<init-param>
			<param-name>listings</param-name>
			<param-value>false</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

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: https://issues.apache.org/jira/browse/GERONIMO-6126
>             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(CommandDeploy.java:43)
> 	at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:148)
> 	at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:124)
> 	at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:171)
> 	at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64)
> 	at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
> 	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> 	at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message