users@glassfish.java.net

RE: web.xml error-Invalid content was found starting with element 'taglib'

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Wed, 11 Mar 2009 05:01:55 +0000

 

Here is the full xml-

 

<?xml version="1.0" encoding="UTF-8"?>
<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>DiscountOfDaysev</servlet-name>
        <servlet-class>servlet.DiscountOfDaysev</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>testservl</servlet-name>
        <servlet-class>servlet.testservl</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>AllItemsser</servlet-name>
        <servlet-class>servlet.AllItemsser</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>BargainCorneritems</servlet-name>
        <servlet-class>servlet.BargainCorneritems</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>Childrensdeptser</servlet-name>
        <servlet-class>servlet.Childrensdeptser</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>Collectpointordser</servlet-name>
        <servlet-class>Collectpointordser</servlet-class>
    </servlet>
    <servlet><servlet-name>CollectPointordser</servlet-name><servlet-class>servlet.CollectPointordser</servlet-class></servlet>
    <servlet>
        <servlet-name>Selfserveordser</servlet-name>
        <servlet-class>servlet.Selfserveordser</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>printorderser</servlet-name>
        <servlet-class>servlet.printorderser</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>vieworderser</servlet-name>
        <servlet-class>servlet.vieworderser</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>Collporderviewprt</servlet-name>
        <servlet-class>servlet.Collporderviewprt</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>Controllerserv</servlet-name>
        <servlet-class>servlet.Controllerserv</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>DiscountOfDaysev</servlet-name>
        <url-pattern>/DiscountOfDaysev</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>testservl</servlet-name>
        <url-pattern>/testservl</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>AllItemsser</servlet-name>
        <url-pattern>/AllItemsser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>BargainCorneritems</servlet-name>
        <url-pattern>/BargainCorneritems</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Childrensdeptser</servlet-name>
        <url-pattern>/Childrensdeptser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Collectpointordser</servlet-name>
        <url-pattern>/Collectpointordser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>CollectPointordser</servlet-name>
        <url-pattern>/CollectPointordser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Selfserveordser</servlet-name>
        <url-pattern>/Selfserveordser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>printorderser</servlet-name>
        <url-pattern>/printorderser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>vieworderser</servlet-name>
        <url-pattern>/vieworderser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Collporderviewprt</servlet-name>
        <url-pattern>/Collporderviewprt</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Controllerserv</servlet-name>
        <url-pattern>/Controllerserv</url-pattern>
    </servlet-mapping>
    <taglib>
        <taglib-uri>http://displaytag.sf.net</taglib-uri>
        <taglib-location>/WEB-INF/displaytag-el.tld</taglib-location>
    </taglib>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
 <welcome-file>
            index.jsp
        </welcome-file>
    </welcome-file-list>
    <jsp-config/></web-app>


 

 

Thanks

 

eve
 


From: gorgeous65_at_msn.com
To: users_at_glassfish.dev.java.net
Date: Wed, 11 Mar 2009 04:59:44 +0000
Subject: web.xml error-Invalid content was found starting with element 'taglib'



Hello everyone,
 
I use to be able to run my web application with netbeans 6.1 but I'm now having problems
using netbeans 6.5.
 
I am using displaytag. I added the content:
 
        <%@taglib prefix="display" uri="http://displaytag.sf.net"%>
 
to my webpage, then
 
<taglib>
        <taglib-uri>http://displaytag.sf.net</taglib-uri>
        <taglib-location>/WEB-INF/displaytag-el.tld</taglib-location>
    </taglib>
 
To my web.xml.
 
I deploy it or valided it and I get the following error:
 
 
ML validation started.
Checking file:/C:/jee/STOCKINFOR2/STOCKINFOR2-war/web/WEB-INF/web.xml...
Referenced entity at "nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/XMLSchema.dtd".
Referenced entity at "nbres:/org/netbeans/modules/j2ee/ddloaders/catalog/resources/datatypes.dtd".
cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":distributable, "http://java.sun.com/xml/ns/javaee":context-param, "http://java.sun.com/xml/ns/javaee":filter, "http://java.sun.com/xml/ns/javaee":filter-mapping, "http://java.sun.com/xml/ns/javaee":listener, "http://java.sun.com/xml/ns/javaee":servlet, "http://java.sun.com/xml/ns/javaee":servlet-mapping, "http://java.sun.com/xml/ns/javaee":session-config, "http://java.sun.com/xml/ns/javaee":mime-mapping, "http://java.sun.com/xml/ns/javaee":welcome-file-list, "http://java.sun.com/xml/ns/javaee":error-page, "http://java.sun.com/xml/ns/javaee":jsp-config, "http://java.sun.com/xml/ns/javaee":security-constraint, "http://java.sun.com/xml/ns/javaee":login-config, "http://java.sun.com/xml/ns/javaee":security-role, "http://java.sun.com/xml/ns/javaee":env-entry, "http://java.sun.com/xml/ns/javaee":ejb-ref, "http://java.sun.com/xml/ns/javaee":ejb-local-ref, "http://java.sun.com/xml/ns/javaee":service-ref, "http://java.sun.com/xml/ns/javaee":resource-ref, "http://java.sun.com/xml/ns/javaee":resource-env-ref, "http://java.sun.com/xml/ns/javaee":message-destination-ref, "http://java.sun.com/xml/ns/javaee":persistence-context-ref, "http://java.sun.com/xml/ns/javaee":persistence-unit-ref, "http://java.sun.com/xml/ns/javaee":post-construct, "http://java.sun.com/xml/ns/javaee":pre-destroy, "http://java.sun.com/xml/ns/javaee":message-destination, "http://java.sun.com/xml/ns/javaee":locale-encoding-mapping-list}' is expected. [96]
XML validation finished.
 
 
 
Please help.
 
Thanks.
 
eve

 



Share your photos with Windows Live Photos - Free Try it Now!
_________________________________________________________________

Hotmail, Messenger, Photos and more - all with the new Windows Live. Get started!
http://www.download.live.com/