Is tld file necessary?

Dear dudes,
I was working with JSTL , in which i'm using pre-defined tag libraries which contains many functionalities which is defined in TLD files. For example:
*<%@ taglib uri="WEB-INF/tld/struts-html" prefix="html" %>*Here this means i can use the html tags functionality which is defined in the uri i.e. tld files which defines the class and functionality.
here if i use some X() functionality in html tags, the container goes through the tld files and finds the corresponding method or function.
Why this should be like this?
<%@ taglib uri="WEB-INF\*lib\struts.jar*" prefix="html" %>
Why can't i directly refer the location of resource ( here the jar file) to the container so that these intermediate tld file mapping can be skipped.
Why is the tld file significant?
Any valid reply would be appreciated.
regards.

nammathamizhan wrote:
Dear dudes,
I was working with JSTL , in which i'm using pre-defined tag libraries which contains many functionalities which is defined in TLD files. For example:
*<%@ taglib uri="WEB-INF/tld/struts-html" prefix="html" %>*Here this means i can use the html tags functionality which is defined in the uri i.e. tld files which defines the class and functionality.
here if i use some X() functionality in html tags, the container goes through the tld files and finds the corresponding method or function.
Why this should be like this?
<%@ taglib uri="WEB-INF\*lib\struts.jar*" prefix="html" %>
Why can't i directly refer the location of resource ( here the jar file) to the container so that these intermediate tld file mapping can be skipped.
Why is the tld file significant?
Any valid reply would be appreciated.
regards.If i understand your question clearly, you mean to ask why not declare the <%@ taglib uri....%> in the .jsp file rather than the web.xml file right?
The simple reason for this is that we delcare the .jar files in the lib folder, which we reference in the web.xml file. The container reads the web.xml file first before reading your .jsp files. So if the mapping is not mentioned in the web.xml file you get an error. This is the working of the container, every mapping, filter, custom tag et all should be mentioned in the web.xml file(also called a deployment descriptor file). Read more about the deployment descriptor or web.xml in the docs.

Similar Messages

  • How to install the struts-el jar and tld file

    How can i install/configure the struts-el jar and struts-logic-el.tld. When I tried with the related sites, i couldn't get any jar files for struts-el tag.
    I got only 404 status error.
    From where and how to get the jar file and tld file for the struts-el tag .Please refer me

    The jar file is part of the download of struts.
    its in the /contrib/lib directory
    You should need struts, jstl plus the struts-el jar files.
    The tld files should not be necessary - just use the standard URIs for them.
    eg http://struts.apache.org/tags-logic-el

  • Error in tld file

    Hi,
    I'm getting the below mentioned error in my tld file
    cvc-complex-type.2.4.b: The content of element 'tag' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":tei-class, "http://java.sun.com/
    xml/ns/javaee":body-content}' is expected.
    tld file :
    <taglib 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-jsptaglibrary_2_1.xsd"
    version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>privilager</short-name>
         <uri>http://tags/privilager</uri>
         <tag>
         <name>check</name>
         <tag-class>com.boss.jstl.Privilager</tag-class>
         </tag>
    </taglib>
    Kindly help me to solve this issue.
    Thanks in advance

    Hi,
    I'm getting the below mentioned error in my tld file
    cvc-complex-type.2.4.b: The content of element 'tag' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":tei-class, "http://java.sun.com/
    xml/ns/javaee":body-content}' is expected.
    tld file :
    <taglib 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-jsptaglibrary_2_1.xsd"
    version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>privilager</short-name>
         <uri>http://tags/privilager</uri>
         <tag>
         <name>check</name>
         <tag-class>com.boss.jstl.Privilager</tag-class>
         </tag>
    </taglib>
    Kindly help me to solve this issue.
    Thanks in advance

  • How to use tld files in iPlanet

    Hai Friends,
    I don't know basic stuff of iPlanet. plz help me. I have developed one application in tomcat. Now i need to move that application from tomcat to iPlanet 6.0(Solaris). When i deployed it in iPlanet i am geting following exceptions plz guide me
    [02/May/2006:17:40:18] failure (26802): Internal error: servlet service function had thrown ServletException (uri=/ACM/jsp/bottom_pa
    ge1.jsp): org.apache.jasper.compiler.ParseException: /user3/acm/iplanet/servers/ACM/jsp/bottom_page1.jsp(2,0) Page directive: Invali
    d attribute, pageEncoding, stack: org.apache.jasper.compiler.ParseException: /user3/acm/iplanet/servers/ACM/jsp/bottom_page1.jsp(2,0
    ) Page directive: Invalid attribute, pageEncoding
    at org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:237)
    at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:194)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:193)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:167)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
    at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065)
    at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)
    , root cause:
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element tag-class in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element body-content in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element tag-class in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element body-content in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] info (26802): JSP11 Log:Warning: Unknown element variable in tag
    [02/May/2006:17:40:18] failure (26802): Internal error: servlet service function had thrown ServletException (uri=/ACM/jsp/header.js
    p): org.apache.jasper.compiler.CompileException: /user3/acm/iplanet/servers/ACM/jsp/header.jsp(101,0) Unable to load class null, sta
    ck: org.apache.jasper.compiler.CompileException: /user3/acm/iplanet/servers/ACM/jsp/header.jsp(101,0) Unable to load class null
    at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:128)
    at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:753)
    at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:132)
    at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:903)
    at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:188)
    at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:193)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:167)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
    at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065)
    at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)
    , root cause:
    (END)

    Thank u Very much.
    And small doubt again. I am writing one custom tag in my application for that we need one tld file. In tomcat i wrote like this
    <tag>
    <name>Menu</name>
    <tag-class>com.citigroup.acm.taglib.MenuTag</tag-class>
    <body-content>JSP</body-content>
    <variable><name-given>parentId</name-given></variable>
    </tag>
    but in iPlanet i modified(insted of tag-class i used tagclass) like the following, b'coz i got some exceptions
    <tag>
    <name>Menu</name>
    <tagclass>com.citigroup.acm.taglib.MenuTag</tagclass>
    <body-content>JSP</body-content>
    <variable><name-given>parentId</name-given></variable>
    </tag>
    Now i am getting error at <variable> how to handle that plz help me

  • Getting tld file in servlet.

    hi all,
    now we cannot declare alias for tag lib tld in web.xml.so server will take tld from jar file which is there lib.
    i want access these tld file in servlet. can any body tell how to get it.
    thanks in advance...

    You could also use jsp, which provides you with JAVA functionality, however, omitting the printing. Here's an example:
    <%@ page contentType="text/html; charset=ISO-8859-5" %>
    <%
         String name = request.getParameter("name");
    %>
    <html>
    <header>
    </header>
    <body>
    <p><%=name %></p>
    </body>
    </html>

  • How to configure tld file?

    I am building a JSF application and created a new custom component with a new tag. I suspect the runtime isn't finding/loading my TLD file. I've tried putting the TLD file in the WEB-INF directory and with the source/class files; I get the same error. How can I figure out if my tld is loaded? what else can I try to get it to be recognzied properly?
    The error is:
    Attribute id invalid for tag TestTag according to TLDMy TLD file does specify id:
              <attribute>
                   <name>id</name>
                   <required>false</required>
                   <rtexprvalue>false</rtexprvalue>
                   <description>
                        The component identifier for this component. This value
                        must be unique within the closest parent component that
                        is a naming container.
                   </description>
              </attribute>

    If I flat out delete the tld file, and restart my IDE and the web server, I get the exact same symptoms. My custom tag/component works perfectly with a value attribute but no id attribute. As soon as I add the id attribute, I get the error.
    I can also put the tld file back, but delete the XML contents and type in garbage; this way, if something was trying to read that file it would error. I get no error, which tells me that nothing is reading that file. If I remove the id attribute, it works perfectly.
    My import statement:
    <%@ taglib uri="http://sample.com/taglibs/" prefix="xyz"%>My tag reference:
    <td><xyz:rater value="#{sample.value}" /></td>Java: 1.5.0_06
    Server: Apache Tomcat 5.5.12
    JSF: Sun RI 1.1_01
    IDE: Eclipse 3.1.1 + WTP 1.0RC5
    Yes, in my web searches, I saw many places recommending adding a taglib section to web.xml, but it wouldn't validate and seemed to be obsolete.

  • How to store the tld file somewhere else...

    Is it possible to not be forced to always copy the tld file for a tag library into the WEB-INF directory but to pick up the file from a jar/linked resource/project instead.
    The JSTL seems to be able to do it. Though it may be being referenced by some web.xml file that I can't find. The JSTL stores it's template file in the META-INF directory of its jar and then id's the tag file via the uri tag in the template.
    Would doing something similar work for ones own tags?
    I must apologise if this topic has already been dealt with but I did search the forum and on google before posting.

    The JSTL seems to be able to do it. Though it may be
    being referenced by some web.xml file that I can't
    find.
    The JSTL stores it's template file in the
    META-INF directory of its jar and then id's the tag
    file via the uri tag in the template.
    Would doing something similar work for ones own
    tags?
    Yes. Please take a look at post #11 in this thread http://forum.java.sun.com/thread.jspa?threadID=664068, specifically #3 that deals with packaging tag library classes.
    Please note there needn't any references in any web.xml, all you have to is jar your tag classes, have the tlds in META-INF directory. The container picks up the tld definition either from web.xml or from the META-INF of a jar found in WEB-INF/lib (Please see the jsp 2.0 spec section 7.3. The spec itself can be downloaded from http://www.jcp.org/en/jsr/detail?id=152)
    All thats then required to access the tags is the have the jar in the classpath and a taglib directive in jsps.
    You can take a look at this IBM article http://www-128.ibm.com/developerworks/library/j-jsp09023.html?ca=dnt-435 (though it says you require a web.xml entry)
    cheers,
    ram.

  • Error in parsing taglib 'customtag' tag in web.xml or .tld file of the tagl

    Hi
    While execution Portal application, I am getting error," Error in parsing taglib 'customtag' tag in web.xml or .tld file of the taglib library."
    Complete stack is
    >>#1.5 #005056AE006400690000002000000A440004BA8F3ECB004A#1331024303056#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#M1005000#6994##99593FD6676911E1807500000041A352#99593fd6676911e1807500000041a352-0#99593fd6676911e1807500000041a352#SAPEngine_Application_Thread[impl:3]_31##0#0#Error##Java###02:28_06/03/12_0020_4301650
    [EXCEPTION]
    #1#com.sapportals.portal.prt.servlets_jsp.server.jsp.ParseException: Error in parsing taglib 'customtag' tag in web.xml or .tld file of the taglib library.
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspTaglibDirective.verifyAttributes(JspTaglibDirective.java:189)
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspDirective.parse0(JspDirective.java:162)
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspDirective.parse(JspDirective.java:117)
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.ElementCollection.parse(ElementCollection.java:86)
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.ParserImpl.parse(ParserImpl.java:595)
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2170)
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
    at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
    at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
    at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
    at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
    at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
    at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
    at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.doPreview(AbstractPortalComponent.java:240)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:168)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:434)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Regards
    Pratyush

    Hi,
    See the following guide and make sure to carefully follow all instructions.
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40599e45-8cf9-2910-cbaa-d4cd8e15ff34?QuickLink=index&overridelayout=true&14770392545262]
    Regards,
    Alex

  • Error in parsing taglib taglib tag in web.xml or .tld file of the taglib

    Hi All,
    I have added ResourceBundle.tld file in following path : /PORTAL-INF/taglib/tld/
    I have added portalapp.xml file following entry  :
    <property name="/PORTAL-INF/taglib/tld/ResourceBundle.tld" value="/PORTAL-INF/taglib/tld/ResourceBundle.tld"/>
    I have added jsp file following entry :
    <%@ taglib uri="/PORTAL-INF/taglib/tld/ResourceBundle.tld" prefix="bundle" %>
    I am getting the following the error: Error in parsing taglib taglib tag in web.xml or .tld file of the taglib library
    can you tell me where i am giving the wrong.
    Regards
    Siva

    hi rabih,
    in jsp..
    <%@ taglib uri="tagLib" prefix="bundle" %>
    in portalapp.xml
    <component-profile>
      <property name="tagLib" value="/PORTAL-INF/taglib/tld/ResourceBundle.tld"/>
    </component-profile>
    it may help u..
    regards,
    Chinnadurai.R

  • Expression and .tld file

    Hello everyone,
    i created custom component and i am using it in my application, where in main.jsp i have :
    <taglib1:RasterTag value="#{row.RasterB}"/>
    taglib1 is a .tld file, where i have tag RasterTag with attribute value. In main.jsp i set value ="#{row.Raster}". row.Raster refer to a row from column Raster in database.
    in .tld file i have:
    <tag>
    <description></description>
    <display-name>RasterTag</display-name>
    <name>RasterTag</name>
    <tag-class>component.RasterTag1;/tag-class>
    <body-content>empty</body-content>
    <attribute>
    <name>value</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <deferred-value>
    <type>java.lang.String;/type>
    </deferred-value>
    </attribute>
    when i set value = "somestring" everything works ok, but when i specified expression value ="#{row.Raster}" nothing is returned because my component didnt get value of expression.
    does anyone know, how should i specified value in .tld file, to accept and get strings from expression?
    Thank you
    Katka

    should be using the format "prefix : function name". Notice the use of the colon instead of the period.
    ${mine:diceRoll()}

  • Problems using Myfaces1.1 - can't find tld files

    I have used Nitrox 2.1 with Myfaces 1.0 - everything was fine, but now we're changing to Myfaces1.1. All I do is changing the old myfaces.jar with the newer myfaces-all.jar (ver 1.1.1). The problem is that Nitrox IDE doesn't seem to recognize the tlds in this jar-file.
    When I run the jsf everything is as expected, it reads the jar, but in the editor the page is full of warnings saying "The tag library uri "http://java.sun.com/jsf/html cannot be mapped to an existing tld file". The same is for http://java.sun.com/jsf/core and http://myfaces.apache.org/extensions. It doesn't understand any of the JSF-tags (or myfaces). This also mean that the intellisense doesn''t work - not very easy to work this way. Of course I have included the jar in the classpath - it obviously reads the jar since it works when running.
    Is this a known problem? What may possibly be wrong?

    Nope, this is not an issue and it should work fine with myfaces-all.jar file. Please try the following steps and update whether this fixed the issue:
    NOTE: Assume myfaces-all.jar file is listed at Project > Properties > Java Build Path > Libraries tab
    - Open any page that is complaining about the tag library
    - in the source editor put the cursor within <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    - from the Smart Editor click on the button next to URI - Do you see the entry TLDs from /WEB-INF/lib/myfaces-all.jar file?
    If not, then try these steps:
    - Project > Close Project
    - Project > Open Project
    - and then Project > Clean... - this will also rebuild the project
    - At the end of this, all warnings related to tag library should be removed

  • How to make reference to ENTITY in tld file ?

    Hello,
    I have a tld file in which in put the definition of my own components.
    I'd like to create ENTITY in XML and make reference to those entities in this tld, in order to make the tld smaller.
    <!DOCTYPE taglib
      PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
      "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd" [
    <!ENTITY display_value_only_attributes  SYSTEM "entities/display_value_only_attributes.xml">
    ]>
    &display_value_only_attributes;But when I make this, I got the following exception:
    2007-02-05 11:46:57,881 ERROR [org.apache.catalina.startup.TldConfig] Exception processing TLD META-INF/cwsoft.tld in JAR at resource path C:\jboss-4.0.1sp1\server\default\tmp\deploy\tmp28432cwsoft-technicalframework-web-1.2.2-exp.war\WEB-INF\lib\cwsoft-cweb-1.2.2.jar in context /cwsoft/technicalframework
    java.io.FileNotFoundException: C:\jboss-4.0.1sp1\bin\entities\display_value_only_attributes.xml
         at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:80)
         at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:89)
         at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
         at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1647)
         at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:514)
         at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:472)
         at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:307)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4282)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
         at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
         at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:289)
         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:92)
         at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:374)
         at org.jboss.web.WebModule.startModule(WebModule.java:62)
         at org.jboss.web.WebModule.startService(WebModule.java:40)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:418)
         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy24.start(Unknown Source)
         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:360)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
         at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy8.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:418)
         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
         at $Proxy5.deploy(Unknown Source)
         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
         at org.jboss.Main.boot(Main.java:195)
         at org.jboss.Main$1.run(Main.java:463)
         at java.lang.Thread.run(Thread.java:534)Could someone indicates me how to make it work?
    Thanks in advance.
    bgOnline

    No, indeed !
    But I forgot to specify that this file is placed in my jar that is included is my war.
    So, I'd like to make reference to this file, and not to put it somewhere in my AS.
    Thanks for your reply...

  • Tag Library Descriptor (TLD) file

    In a Tag Library Descriptor (TLD) file, what does the tag
    <rtexprvalue>false</rtexprvalue> mean when
    applied to a tag's attribute?

    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSPTags5.html#66591
    If the value is false, then a literal value must be supplied for the tag value, expressions or dynamic values cannot be used.

  • JspParseException:  TLD file under JAR's META-INF not found

    I have succesully deployed an external generated WAR file using the Developer Studio 'Deploy View'.  However, I get an exception at runtime:
    com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [http://www.some.url/some/location].
    This URI is defined in a TLD file which is embeded in the META-INF of a JAR which is located in WEB-INF/lib of the WAR file.
    This same exact WAR file deploys fine in Tomcat.
    Could this be a bug in the J2EE Preview?  Any workarounds here?
    Enrique

    Hello everybody
    I,ve the same problem when I try to deploy a jsf application that uses Esri tags.
    The war work fine In a Tomcat but when I deploy the application in the WAS 5 I get the error Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [http://www.esri.com/adf/web].
    I think there aren't problems with the TLD because the proyect runs fine in other environment. It seems like the WAS wasn't able to connect with the URI.
    Do you know any solution ?
    Thank in advance.
    Fernando

  • How to use external .tld files with uix

    Hey,
    I have a set of custom .tld files and that i was to use in my UIX pages. I got them to work correctly if I am using jsp files but for some reason it doesn't recognize the tags when they are in uix pages
    I far as I can tell, UIX actually requires xml schema definition of the tags and the just the .tld file is not sufficient.
    My question is, is this the correct conclusion?
    if so is there a easy way to either convert my tld file or create this xml schema file so that my tags will be visible to uix.
    or am I totally off the mark here...

    there is one utility in j2se jar and check the option also
    put that jar file in lib folder of yr application folder
    [email protected]

Maybe you are looking for

  • PayPal button not visible in Firefox, but IS visible in Internet Explorer. WHY??

    Hi! I was trying to make an online purchase & the yellow PayPal selection button wasn't visible. I called the company to make sure they accepted PayPal, (they do), & they opened their browser & made a test purchase so they could tell me where the Pay

  • Object Invalidation in Oracle 11g R2

    Hi All, I found a distinct behaviour in oracle 11gR2 which is not even available in previous releases . Let me explain with an example. --creating a small table create table TEMPSAMPLE (COL1 VARCHAR2(10),COL2 VARCHAR2(10),COL3 VARCHAR2(15),COL4 VARCH

  • Itunes wont launch...help.

    I've installed and uninstalled itunes a million times, but it still wont open when i click on the desktop icon...will someone that knows about this issue please help?

  • Can't download photoshop 2014 update

    I'm using Photoshop CC on an iMac running OSX 10.9.3 with a 3.5 Ghz processor and 16Gb of Ram. I'm trying to download and install the most recent update for Photoshop 2014. I've tired many times and the system says the download has failed. When I cli

  • How can I get Oracle E-Business Suite 11i for personal study purpose?

    Hi, How & where can I get Oracle E-Business Suite 11i for personal study purpose? Also, is it FREE or one needs to buy it? Is an evaluation version available on Oracle site? Please send your response to at : [email protected] or reply on this thread