impraveen / gnizr

Automatically exported from code.google.com/p/gnizr
Other
0 stars 0 forks source link

Multiple Schema violations in gnizr-2.4.0-M4's web.xml #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In gnizr-2.4.0-M4 web.xml can't be validated against the used schemas,
causing Geronimo (and maybe other Application Servers) to deny deployment.

Solution:
1. As of Servlet 2.4, which includes JSP2.0,
<taglib></taglib> has to be declared within

<jsp-config>
</jsp-config>

"The jsp-configType is used to provide global configuration
information for the JSP files in a web application. It has
two subelements, taglib and jsp-property-group."
from http://java.sun.com/xml/ns/j2ee/jsp_2_0.xsd (which is included by
web-app2.4).

2. Remove
<display-name>DWR Servlet</display-name>

This tag is no allowed within a Servlet as you can see in
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd (servletType)

3. Maybe this is part of another Bug:
Neither Geronimo, nor i could find the dwr library and corresponding servlet.

After using the build-in dwr from Geronimo and changing the servlet-class
to org.directwebremoting.servlet.DwrServlet (from
http://getahead.org/dwr/server/servlet) i was finally able to deploy gnizr
on Geronimo.

Original issue reported on code.google.com by ttf.in...@googlemail.com on 7 Jun 2008 at 5:18