facebook

[Closed] MyEclipse shows taglib error in web.xml

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240074 Reply

    korzh
    Member

    Hello,

    I have create a WebProject in MyEclipse and it has the following web.xml file in /WebRoot/WEB-INF folder:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" 
        xmlns="http://java.sun.com/xml/ns/j2ee" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
        http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <display-name>Korzh.com devtools web app.</display-name>
      <description>Korzh.com devtools web application.</description>  
      
      <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    
      <taglib> 
        <taglib-uri>devpc</taglib-uri>
        <taglib-location>/WEB-INF/tlds/devpc.tld</taglib-location>
      </taglib>
    
    </web-app>
    

    Everythings seems should is defined well but MyEclipse shows an error on <taglib> row saying the following:

    “Invalid content was found starting with element ‘taglib’. One of {then long list of possible tags follows} is expected.”

    Would somebody be so kind to tell me the reason of this error?

    Thanks in advance. Sergiy Korzh.

    #240085 Reply

    Riyad Kalla
    Member

    Sergiy,
    The format of web.xml changed between J2EE 1.3 and J2EE 1.4 spec, your taglib entries nwo need to be wrapped in jsp-config tags.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [Closed] MyEclipse shows taglib error in web.xml

You must be logged in to post in the forum log in