File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes problem creating a URI for a tld in the web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "problem creating a URI for a tld in the web.xml" Watch "problem creating a URI for a tld in the web.xml" New topic

problem creating a URI for a tld in the web.xml

Rama Krishna
Ranch Hand

Joined: Oct 16, 2007
Posts: 110
I am unable to add a .tld files' URI in the web.xml file so that I can start using it in a .jsp file.

I get the following error:
<!-- SeverityDescriptionResourceIn FolderLocationCreation TimeId
2cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'.
One of '{"":description,
is expected.

when using the web.xml in a workshop/weblogic environment. I was also wondering how to create these entries automatically in web.xml?

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"





Any suggestion or help in this regards will be appreciated!

Can we create entries into web.xml automatically or create a .tld file in weblogic/workshop??
Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
If you take a look at the servlet specification, you will see that the taglib element is a sub-element of jsp-config in 2.4 spec.

There's a link to the specification in the ServletsFaq

16. jsp-config Element
Thejsp-config is used to provide global configuration information for the JSP
files in a web application. It has two sub-elements,taglib andjsp-property-
group. Thetaglib element can be used to provide information on a tag library
that is used by a JSP page within the Web application. See JavaServer Pages
specification version 2.0 for detail.

[ November 11, 2007: Message edited by: Carol Enderlin ]
I agree. Here's the link:
subject: problem creating a URI for a tld in the web.xml
It's not a secret anymore!