users@glassfish.java.net

Re: Verification of Web Application Fails

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 Nov 2007 10:32:13 PST

Your web.xml didn't declare which version. Assuming its' servelet 2.5 JavaEE 5:

<servlet-name> should come before <url-pattern>. For non-top-level elements in web.xml, orders do matter. That probably have caused the error you were seeing.

<taglib> is no longer a top-level element. Move it to <jsp-config>. I modified your web.xml and validated it:

<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
    <servlet-name>SwitchBoard</servlet-name>
    <servlet-class>net.storta.web.SwitchBoard</servlet-class>
</servlet>

<servlet>
    <servlet-name>LOGIN</servlet-name>
    <servlet-class>net.storta.web.LOGIN</servlet-class>
</servlet>

<servlet>
    <servlet-name>CheckSession</servlet-name>
    <servlet-class>net.storta.web.CheckSession</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>SwitchBoard</servlet-name>
    <url-pattern>/private/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
    <servlet-name>LOGIN</servlet-name>
    <url-pattern>/LOGIN/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
    <servlet-name>CheckSession</servlet-name>
    <url-pattern>/CheckSession/*</url-pattern>
</servlet-mapping>

<jsp-config>
    <taglib>
        <taglib-uri>/WEB-INF/lib/rssutils.tld</taglib-uri>
        <taglib-location>/WEB-INF/lib/rssutils.tld</taglib-location>
    </taglib>
</jsp-config>

</web-app>

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=243923