geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken T." <ktectr...@gmail.com>
Subject Re: Difficulty deploying Grails war file to Geronimo
Date Sun, 27 Sep 2009 15:21:03 GMT
On Sun, 27 Sep 2009 09:42:02 +0000, Fredrik Jonson wrote:

> Ken T. wrote:
> 
>>  I'm trying to deploy a working (but very simple) grails application
>>  war to Geronimo, but with no luck.
> 
> Did you include the grails-web-x.y.z.jar dependency in WEB-INF/lib in
> the war?

Yes it is there. 

>  
> Could you give us more information about the layout of your war and the
> web.xml configuration?

Sure.  The war is the standard produced by grails.  So there isn't 
anything strange there.  And it deploys to tomcat without problems.  The 
web.xml file is generated.  I ran it through xmlindent and I've included 
it after my sig.  It is quite big.  


-- 
Ken T. <ktectropy@gmail.com>



<web-app xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://
java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' version='2.4' xmlns='http://
java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-
instance'>
    <display-name>/TimeTracker-production-0.1</display-name>
    <context-param>
        <param-name>contextConfigLocation</param-name><param-value>/WEB-
INF/applicationContext.xml</param-value>
    </context-param>
    <context-param>
        <param-name>webAppRootKey</param-name><param-value>TimeTracker-
production-0.1</param-value>
    </context-param>
    <filter>
        <filter-name>sitemesh</filter-name><filter-
class>org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter</filter-
class>
    </filter>
    <filter>
        <filter-name>charEncodingFilter</filter-name><filter-
class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        <init-param>
            <param-name>targetBeanName</param-name><param-
value>characterEncodingFilter</param-value>
        </init-param>
        <init-param>
            <param-name>targetFilterLifecycle</param-name><param-
value>true</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>urlMapping</filter-name><filter-
class>org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter</
filter-class>
    </filter>
    <filter>
        <filter-name>grailsWebRequest</filter-name><filter-
class>org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter</
filter-class>
    </filter>
    <filter-mapping>
        <filter-name>charEncodingFilter</filter-name><url-pattern>/*</url-
pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>grailsWebRequest</filter-name><url-pattern>/*</url-
pattern><dispatcher>FORWARD</dispatcher><dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
        <filter-name>sitemesh</filter-name><url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>urlMapping</filter-name><url-pattern>/*</url-
pattern><dispatcher>FORWARD</dispatcher><dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <listener>
        <listener-
class>org.codehaus.groovy.grails.web.util.Log4jConfigListener</listener-
class>
    </listener>
    <listener>
        <listener-
class>org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener</
listener-class>
    </listener>
    <servlet>
        <servlet-name>grails</servlet-name><servlet-
class>org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet</
servlet-class><load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>gsp</servlet-name><servlet-
class>org.codehaus.groovy.grails.web.pages.GroovyPagesServlet</servlet-
class>
    </servlet>
    <servlet>
        <servlet-name>grails-errorhandler</servlet-name><servlet-
class>org.codehaus.groovy.grails.web.servlet.ErrorHandlingServlet</
servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>gsp</servlet-name><url-pattern>*.gsp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>grails-errorhandler</servlet-name><url-pattern>/
grails-errorhandler</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>grails</servlet-name><url-pattern>*.dispatch</url-
pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file><welcome-file>index.jsp</
welcome-file><welcome-file>index.gsp</welcome-file>
    </welcome-file-list>
    <error-page>
        <error-code>500</error-code><location>/grails-errorhandler</
location>
    </error-page>
    <jsp-config>
        <taglib>
            <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-
uri><taglib-location>/WEB-INF/tld/c.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-
uri><taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>http://www.springframework.org/tags</taglib-
uri><taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>http://grails.codehaus.org/tags</taglib-
uri><taglib-location>/WEB-INF/tld/grails.tld</taglib-location>
        </taglib>
    </jsp-config>
</web-app>


Mime
View raw message