Tag Library Descriptor

I am trying to use the dbtags from Jakarta using Tomcat and MySQL. When I try to call my ASP I keeping getting an error that says:
Unable to open taglibrary /WEB-INF/mytaglib.tld : Parse Error in the tag library descriptor: External entity not found: "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd".
Here is what my ASP looks like:
package tags;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class HelloTag implements Tag {
private PageContext pageContext;
private Tag parent;
public HelloTag() {
super();
public int doStartTag() throws JspException {
try {
pageContext.getOut().print(
"This is my first tag!");
} catch (IOException ioe) {
throw new JspException("Error:IOException while writing to client" + ioe.getMessage());
return SKIP_BODY;
public int doEndTag() throws JspException {
return SKIP_PAGE;
public void release() {
public void setPageContext(PageContext
pageContext) {
this.pageContext = pageContext;
public void setParent(Tag parent) {
this.parent = parent;
public Tag getParent() {
return parent;

Here is what my jsp looks like:
<%@ taglib uri="/WEB-INF/mytaglib.tld"
prefix="first" %>
<HTML>
<HEAD>
<TITLE>Hello Tag</TITLE>
</HEAD>
<BODY bgcolor="#ffffcc">
<B>My first tag prints</B>:
<first:hello/>
</BODY>
</HTML>

Similar Messages

  • The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.

    I recently moved from coldfusion 8 to coldfusion 9 but all the pages with cfgrid: is throwing the following error. Any suggestion would be of great help
    coldfusion.jsp.JRunTagLibraryInfo$NoSuchAttributeException: The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
    at coldfusion.jsp.JRunTagLibraryInfo.getPropertyType(JRunTagLibraryInfo.java:627)
    at coldfusion.jsp.JRunTagLibraryInfo.buildTagInfo(JRunTagLibraryInfo.java:585)
    at coldfusion.jsp.JRunTagLibraryInfo.getTag(JRunTagLibraryInfo.java:267)
    at coldfusion.compiler.NeoTranslationContext.findTagName(NeoTranslationContext.java:346)
    at coldfusion.compiler.NeoTranslationContext.isKnownTag(NeoTranslationContext.java:222)
    at coldfusion.compiler.CFMLParserBase.isKnownTagName(CFMLParserBase.java:589)
    at coldfusion.compiler.cfml40TokenManager.TokenLexicalActions(cfml40TokenManager.java:6704)
    at coldfusion.compiler.cfml40TokenManager.getNextToken(cfml40TokenManager.java:6586)
    at coldfusion.compiler.cfml40.getToken(cfml40.java:11879)
    at coldfusion.compiler.CFMLParserBase.isTrivialAngleBracket(CFMLParserBase.java:707)
    at coldfusion.compiler.cfml40.jj_3_1(cfml40.java:9392)
    at coldfusion.compiler.cfml40.jj_3_2(cfml40.java:9460)
    at coldfusion.compiler.cfml40.jj_3R_67(cfml40.java:9500)
    at coldfusion.compiler.cfml40.jj_3_86(cfml40.java:8147)
    at coldfusion.compiler.cfml40.jj_3R_92(cfml40.java:8584)
    at coldfusion.compiler.cfml40.jj_3_85(cfml40.java:8641)
    at coldfusion.compiler.cfml40.jj_2_85(cfml40.java:7619)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4215)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:311)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.cfelse(cfml40.java:442)
    at coldfusion.compiler.cfml40.cfelseif(cfml40.java:374)
    at coldfusion.compiler.cfml40.cfif(cfml40.java:314)
    at coldfusion.compiler.cfml40.cfml(cfml40.java:4224)
    at coldfusion.compiler.cfml40.start(cfml40.java:4664)
    at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:667)
    at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:648)
    at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:401)
    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:343)
    at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:144)
    at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:418 )
    at coldfusion.util.LruCache.get(LruCache.java:180)
    at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java :362)
    at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
    at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)
    at coldfusion.util.SoftCache.get(SoftCache.java:81)
    at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:591)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
    at coldfusion.CfmServlet.service(CfmServlet.java:201)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    Thanks Vishu,
    We are running Coldfusion 9 and attach is the sample code and error message.:
    The tag handler gridcolumn does not have a setter for the attribute autoExpand specified in the Tag Library Descriptor.
    The CFML compiler was processing:
      A cfgrid tag beginning on line 39, column 18.
    The error occurred in E:/Websites/DreData/sobrietytesting/main/Sobrietytesting/Admin/view_users.cfm: line 54
    52 :                     hrefkey="member_id"
    53 :                     bind="cfc:tabledisplay.browseAccessAcountRequests(,,,)"
    54 :                     >
    55 :                    

  • Error while parsing the Tag Library Descriptor

    Hi,
    We are installing LC ES2 on Suse64 / weblogic platform. When the adobe-conmtentservices application is starting, we see a lot od error like this:
    <Mar 24, 2010 10:56:53 AM CET> <Warning> <HTTP> <BEA-101196> <[/contentspace]: Error while parsing the Tag Library Descriptor at "/opt/oracle/product/WLS1031/user_projects/domains/LC9/servers/LC9_MS/tmp/_WL_user/adobe- contentservices/4xxkue/war/WEB-INF/contentservices.tld".
    com.ctc.wstx.exc.WstxIOException: Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
            at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
            at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
            at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:134)
            at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)
            at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)
            Truncated. see log file for complete stacktrace
    java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
            at weblogic.net.http.HttpClient.openServer(HttpClient.java:314)
            at weblogic.net.http.HttpClient.openServer(HttpClient.java:404)
            at weblogic.net.http.HttpClient.New(HttpClient.java:240)
            at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:172)
            at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:356)
            Truncated. see log file for complete stacktrace
    The application tries to download something from java.sun.com site but the server can not access internet. The process is repeated for each TLD file !
    After a very time (more than 45 minutes!), the server finally starts and all adobe application are active
    So, how to correct this behaviror ? is there a patch?
    cb.

    Hi,
    Did you get solution for this because I am also facing same issue. Please do reply ASAP... it is very uegent.
    Regards,
    Srujan

  • 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.

  • JSPDynPage : Cannot find the tag library descriptor for tagLib

    Hi,
    I'm working JSPDynPage and i have error in IDE at design time.
    i just created one JSPDynPage component. and an error is shown at the uri="tagLib"
    <%@ taglib uri="tagLib" prefix="hbj" %>
    The problem is that the word 'tagLib' is marked and has the hoovering text "Cannot find the tag library descriptor for tagLib". Why is this? Do I have to do add some dc dependency ? Or is there another cause for this problem?
    I am working with CE 7.2 .
    portalapp.xml
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="GCPPURLJSP">
          <component-config>
            <property name="ClassName" value="com.cts.gc.GCPPURLJSP"/>
            <property name="SecurityZone" value="com.cts.gc/low_safety"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    Best regards
    Pavan

    Hi Pavan,
    For using htmlb, you can use another tag library. Use the below code in your jsp
    <%@ taglib uri = "prt:taglib:tlhtmlb" prefix="hbj" %>
    And in portalapp.xml, replace the <property> of <component-profile> with the below line.
    <property name="tlhtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld">
    Also, you may need to add the import statement for htmlb, if not done earlier -
    <%@ page import = "com.sapportals.htmlb.*" %>

  • Cannot find the tag library descriptor

    I trying to do the Java EE 5 Tutorial. It is called 'hello1' (chapter 2) and it's supposed to run a 'hello duke' program. However it is in Netbeans and I am trying to use ECLIPSE.
    I've tried to paste it into Eclipse but I get the following error message:
    Cannot find the tag library descriptor for http://java.sun.com/jsp/jstl/core
    when trying to include the following taglib:
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    Any ideas? I'm sure it's a very basic fix but I am new to Eclipse and web development.
    thanks in advance.

    Refer to the [link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/804bedee-377e-2e10-0f83-d5b33c743dbc?QuickLink=index&overridelayout=true] for creating layouts.
    Check whether sharing reference and other details in portalapp.xml are correct.
    Regards,
    Mahesh

  • Cannot find the tag library descriptor Error

    Hi
    In SAP Netweaver Developer Studio 7.3 SP 03, i am facing the following problems:
    - When compiling JSP portal applications i am having problems using SAP tag library's or classes. Do i need to configure the class path for a specific path in the server?
    Error: Can not find the tag library descriptor for "LayoutTagLibrary"
    Portalapp.xml
    <property name="LayoutTagLibrary" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
    JSP
    <%@ taglib uri="LayoutTagLibrary" prefix="lyt" %>
    Regards
    Eben Joyson

    Refer to the [link|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/804bedee-377e-2e10-0f83-d5b33c743dbc?QuickLink=index&overridelayout=true] for creating layouts.
    Check whether sharing reference and other details in portalapp.xml are correct.
    Regards,
    Mahesh

  • Eclipse vs. (WebCenter) Portlet Tag Library Descriptor

    Hi there,
    one more question: What's the best way to teach Eclipse WTP about the portlet tag library (http://java.sun.com/portlet_2_0) mandated by JSR 286 and bundled with WebCenter itself? So far, it complains that it 'Can not find the tag library descriptor for "http://java.sun.com/portlet_2_0"')....
    For example, where can I find the actual physical TLD file that describes the WebCenter-specific implementation of this library? Or should I use the equivalent TLD coming from another portlet container (e.g. Apache Pluto), instead (while working within Eclipse, at least)?
    Thanks in advance,
    Chris

    I'm not sure that this IDE warning really matters. Things should work fine, when you deploy your portlets into the portal container. But have you tired:
    Oracle/Middleware/jdeveloper/webcenter/modules/oracle.portlet.server_11.1.1/oracle-portlet-tags.jar
    You'll find a portlet TLD within that jar.
    - Micah

  • Error in tag library descriptor in iplanet 6.1 service park 4

    Hi Guys,
    Im getting this exception from my jsp deployed to SunOne Web Server 6.1 (or Iplanet 6.1 as others know) service pack 4
    org.apache.jasper.JasperException: WEB4083: No such tag bundle in the tag library imported with prefix i18n
    I already toggle between actions below:
    1. By referring to specific tld from WEB-INF/ in the JSP
    <%@taglib prefix="i18n" uri="/WEB-INF/tlds/taglibs-i18n.tld"%>
    note: the needed library file is already in WEB-INF/lib/
    2. Invoking this line (this is only available for Servlet 2.3 and 2.4 specifications)
    <%@taglib prefix="i18n" uri="http://jakarta.apache.org/taglibs/i18n-1.0"%>
    note: the needed library file is already in WEB-INF/lib/
    3. Invoking this line (if not Servlet 2.3 and 2.4 specifications)
    <%@taglib prefix="i18n" uri="http://jakarta.apache.org/taglibs/i18n-1.0"%>
    added lines below in web.xml:
    BEGIN
    <taglib>
         <taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri>
         <taglib-location>/WEB-INF/taglibs-i18n.tld</taglib-location>
    </taglib>
    END
    note: the needed library file is already in WEB-INF/lib/
    4. By referring directly to the specific jar file from WEB-INF/lib/ in the JSP
    <%@ taglib prefix="i18n" uri="/WEB-INF/lib/taglibs-i18n.jar"%>
    Please help.
    Thanks,
    Eson.

    Use this :
    <taglib>
    <taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri>
    <taglib-location>/WEB-INF/i18n.tld</taglib-location>
    </taglib>
    in your web.xml file

  • Tag Library Error

    I am using Jdeveloper and BEA Weblogic 8.1 application server environment.
    I have custom tag and tld file for the tag. When I try to compile it , I am getting this error which just points to the begininng of the jsp file which uses the tag.
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    I've tried searching online and found that it may be caused by the the wrong jar reference in classpath. I've tried adding whole bunch of different versions of servlet.jar to my classpath in the project properties but I am still getting the same error.
    Please advice
    Mikhail

    I've tried putting weblogic.jar into the web-inf/lib folder and also added library reference in the project properties but that did not fixed it.
    I still receive this error in all jsp files where I have a tag:
    Error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    Here's the content of my simple tld file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <!-- a tag library descriptor -->
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.1</jsp-version>
    <short-name>Bima Tags</short-name>
    <description>Application tag library for the BIMA Application</description>
    <tag>
    <name>navbar</name>
    <tag-class>com.arrownacp.bima.tags.NavBarTag</tag-class>
    <body-content>empty</body-content>
    <description>Display the Navigation Bar</description>
    <attribute>
    <name>pageName</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String</type>
    </attribute>
    </tag>
    </taglib>
    This is how I refer to it in my jsp file:
    <%@ taglib uri="WEB-INF/BimaTags.tld" prefix="es" %>
    and in the page body:
    <es:navbar pageName="addUser" />
    Need an urgent help, thanks
    Mikhail

  • Tag Library Compile Warning

    Why does the weblogic jsp compiler wine about this standard tag library
              descriptor DTD?
              <?xml version="1.0" encoding="ISO-8859-1" ?>
              <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
              1.1//EN"
              "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              Have yet to see a TLD that does not use precisely this string and yet
              weblogic whines constantly about it.
              

    I figured it out. Under the Configuration/TagLibraries,
    create a CrossTagAttr folder and stick a .vtm file in it. In the
    .vtm file, use the <crosstag_attributes> tag and its
    children. See Configuration/TagLibraries/CrossTagAttr/Spry/Spry.vtm
    for an example.

  • JSP Tag library

    I keep getting this error when I try to transform an xml file into html.
    org.apache.jasper.JasperException: Unable to open taglibrary http://jakarta.apache.org/taglibs/xsl-1.0 : null
    Here is the jsp file
    <%@taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0"
    prefix="xsltlib" %>
    <html>
    <head>
    <title>Book Inventory</title>
    </head>
    <body bgcolor="white">
    <center>
    Welcome 
    <font color="red">
    On Sale Today ...
    </font>
    <p></p>
    <xsltlib:apply xml="cdcatalog.xml" xsl="cdcatalog.xsl"/>
    </center>
    </body>
    </html>

    I think first od all you have to download the Tag Libraray from this location
    http://jakarta.apache.org/builds/jakarta-taglibs/nightly/projects/xsl/
    and then configer you web application like
    Follow these steps to configure your web application with this tag library:
    * Copy the tag library descriptor file (xsl/xsl.tld) to the /WEB-INF subdirectory of your web application.
    * Copy the tag library JAR file (xsl/xsl.jar) to the /WEB-INF/lib subdirectory of your web application.
    * Copy the support libs xerces.jar and xalan.jar to the /WEB-INF/lib directory of your web application.
    * Add a <taglib> element to your web application deployment descriptor in /WEB-INF/web.xml like this:
    <taglib>
    <taglib-uri>http://jakarta.apache.org/taglibs/xsl-1.0</taglib-uri>
    <taglib-location>/WEB-INF/xsl.tld</taglib-location>
    </taglib>
    To use the tags from this library in your JSP pages, add the following directive at the top of each page:
    <%@ taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="x" %>

  • Connection Pooling and JSP Custom Tag Library - is code (inside) the best way/correc?

    Hi, can anyone advise as to whether my tag library code (based
    on Apache Jakarta Project) will actually achieve connection
    pooling functionality across my entire JSP based application? I
    am slightly concerned that my OracleConnectionCacheImpl object
    may exist multiple times, hence rendering my conection pooling
    attempt useless.
    package com.solved.tag.dbtags.connection;
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspTagException;
    import javax.sql.DataSource;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import oracle.jdbc.pool.OracleConnectionCacheImpl;
    * <p>JSP tag connection, used to get a
    * java.sql.Connection object.</p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>connection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.ConnectionTag&lt;/t
    agclass>
    * &lt;bodycontent>JSP&lt;/bodycontent>
    &lt;teiclass>com.solved.tag.dbtags.connection.ConnectionTEI&lt;/t
    eiclass>
    * &lt;info>Opens a connection based on a jndiName.&lt;/info>
    * &lt;attribute>
    * &lt;name>id&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    public class ConnectionTag extends TagSupport {
    static private OracleConnectionCacheImpl cache = null;
    public int doStartTag() throws JspTagException {
    try {
    Connection conn = null;
    if (cache == null) {
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup
    ("jdbc/pool/OracleCache");
    cache = (OracleConnectionCacheImpl)ds;
    catch (NamingException ne) {
    throw new JspTagException(ne.toString());
    conn = cache.getConnection();
    pageContext.setAttribute(getId(),conn);
    catch (SQLException e) {
    throw new JspTagException(e.toString());
    return EVAL_BODY_INCLUDE;
    package com.solved.tag.dbtags.connection;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.servlet.jsp.tagext.TagSupport;
    * <p>JSP tag closeconnection, used to close the
    * specified java.sql.Connection.<p>
    * <p>JSP Tag Lib Descriptor
    * <pre>
    * &lt;name>closeConnection&lt;/name>
    &lt;tagclass>com.solved.tag.dbtags.connection.CloseConnectionTag&
    lt;/tagclass>
    * &lt;bodycontent>empty&lt;/bodycontent>
    * &lt;info>Close the specified connection. The "conn"
    attribute is the name of a
    * connection object in the page context.&lt;/info>
    * &lt;attribute>
    * &lt;name>conn&lt;/name>
    * &lt;required>true&lt;/required>
    * &lt;rtexprvalue>false&lt;/rtexprvalue>
    * &lt;/attribute>
    * </pre>
    * @author Matt Shannon
    * @see ConnectionTag
    public class CloseConnectionTag extends TagSupport {
    private String _connId = null;
    * The "conn" attribute is the name of a
    * page context object containing a
    * java.sql.Connection.
    * @param connectionId
    * attribute name of the java.sql.Connection to
    close.
    * @see ConnectionTag
    public void setConn(String connectionId) {
    _connId = connectionId;
    public int doStartTag() {
    try {
    Connection conn = (Connection)pageContext.getAttribute
    (_connId);
    conn.close();
    } catch (SQLException e) {
    // failing to close a connection is not fatal
    e.printStackTrace();
    return EVAL_BODY_INCLUDE;
    public void release() {
    _connId = null;
    package com.solved.tag.dbtags.connection;
    import javax.servlet.jsp.tagext.TagData;
    import javax.servlet.jsp.tagext.TagExtraInfo;
    import javax.servlet.jsp.tagext.VariableInfo;
    * TagExtraInfo for the connection tag. This
    * TagExtraInfo specifies that the ConnectionTag
    * assigns a java.sql.Connection object to the
    * "id" attribute at the end tag.
    * @author Matt Shannon
    * @see ConnectionTag
    public class ConnectionTEI extends TagExtraInfo {
    public final VariableInfo[] getVariableInfo(TagData data)
    return new VariableInfo[]
    new VariableInfo(
    data.getAttributeString("id"),
    "java.sql.Connection",
    true,
    VariableInfo.AT_END
    data-sources.xml:
    <?xml version="1.0"?>
    <!DOCTYPE data-sources PUBLIC "Orion data-
    sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
    class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    name="jdbc/pool/OracleCache"
    location="jdbc/pool/OracleCache"
    url="jdbc:oracle:thin:@oracle1:1521:pdev"
    >
    <property name="maxLimit" value="15" />
    <property name="cacheScheme" value="2" />
    <property name="user" value="console" />
    <property name="password" value="console" />
    <description>
    This DataSource is using an Oracle-native DataSource Class so as
    to allow Oracle Specific extensions.
    A getConnection() call on this DataSource will return
    oracle.jdbc.driver.OracleConnection.
    The connection returned is a logical connection.
    The caching scheme in place is Fixed Wait. Refer below to
    possible values.
    Dynamic 1
    Fixed Wait 2
    Fixed Return Null 3
    </description>
    </data-source>
    </data-sources>
    many thanks,
    Matt.

    Hi. Show me your pool definition.
    Joe
    Ramamurthy wrote:
    I am using the jsp custom tag library from BEA called sqltags.tld which came with Weblogic 5.1. Currently I am using Weblogic6.1 sp2 on Solaris.
    I have created a Connection Pool for Sybase database using the driver com.sybase.jdbc.SybDriver.
    When I created jsp page to connect to the connection pool using sqltags custom tag library, I am getting the error
    "javax.servlet.jsp.JspException: Failed to write body content
    at weblogic.taglib.sql.ConnectionTag.doAfterBody(ConnectionTag.java:43)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:1014)"
    After this message, whenever I try to access the same jsp page I am getting the message
    "javax.servlet.jsp.JspException: Failed to load JDBC driver: weblogic.jdbc.pool.D
    river
    at weblogic.taglib.sql.ConnectionTag.doStartTag(ConnectionTag.java:34)
    at jsp_servlet.__hubwcdata._jspService(__sampletest.java:205)".
    Can you please help me the reason why this problem is happening and how to fix this ?
    This problem doexn't happen consistently. This occurs once in a while.
    I tried to increase Login delay Seconds parameter in the Connection Pool to 15 sec. It didn't help me much.
    Thanks for your help !!!
    Ram

  • How to include javascript resources in  Facelet tag library

    I've been trying out Duncans watermark behavior tag (https://blogs.oracle.com/groundside/entry/placeholder_watermarks_with_adf_11). Indeed a great article and the example work perfectly when the tag library is included within the project and when the javascript resource (common.js) file is added to the document using af:resource tag.
    I would like to create a deployable tag library, including a setWatermarkBehavior tag, for reuse in various apps. I'm able to create and deploy the tag library as a ADF library and include it for use in an application. But on runtime, the pages are not able to find the "addWatermarkBehavior" method, which I hoped automatically got loaded from the javascript file defined in the tag library jar. In the tag library file, I've added a "adf-js-features.xml" in META-INF. This file and the .js file is included in the ADF library jar. "adf-js-features.xml" looks like this:
    <adf-js-features xmlns="http://xmlns.oracle.com/adf/faces/feature">
    <features xmlns="http://xmlns.oracle.com/adf/faces/feature">
    <feature>
    <feature-name>adfExtTaglib</feature-name>
    <feature-class>com/cgi/adf/ext/taglib/js/adfExtTaglib.js</feature-class>
    </feature>
    </features>
    </adf-js-features>
    I'm not sure, what value should be used for "feature-name" - I've tried many different "meaningful" names. I presume, that the ADF framework, should automatically discover all "adf-js-features" files and automatically load js-file on pages, which are using tags from the particular tag library. But apparently I'm missing something. In the facelets page used for testing, I have these few components.
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:adfext="http://xmlns.cgi.com/adf/ext">
    <af:document title="testAdfExtTaglib" id="d1">
    <!-- af:resource type="javascript" source="/resources/js/common.js" / -->
    <af:form id="f1">
    <af:inputText label="Label 1" id="it1">
    <adfext:setWatermarkBehavior value="CHR-Nr"/>
    </af:inputText>
    </af:form>
    </af:document>
    </f:view>
    Doing some debugging, I can confirm that the "getScript" method of the setWatermarkBehavior class is called. I can also find the javascript produced by the "getScript" method in the DOM. But I cannot find anywhere in the DOM, where the javascript file from the tag library is loaded.
    Please, help me out?
    Edited by: wmjaboj on 2012-09-23 23:58

    The Javascript source URI has the value "RES_NOT_FOUND".
    If I try to access it using ".../faces/javax.faces.resource/javascript.js?ln=js" I get a blank page (contains a Html and Body only).
    If I try to access it using ".../faces/resources/js/javascript.js" I can download the javascript file from the taglib.
    If I manually copy the javascript.js file from the taglib into the enclosing project and save it in "resource/js", then the javascript source URI is resolved correctly to ".../faces/javax.faces.resource/javascript.js?ln=js" and I can downloaded it, but then it is the local copy and not the one from the taglib jar.
    Do I need some specific configuration in web.xml or other deployment descriptors, to be able to use "javax.faces.resource"?
    The only configurations whoch smells like "javax.faces.resource" is this context param: javax.faces.FACELETS_RESOURCE_RESOLVER=oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver
    In web.xml various "resource" servlets is defined (I'm not sure whether I need them, JDeveloper has created them automatically):
    a) resources = org.apache.myfaces.trinidad.webapp.ResourceServlet, maps to: /adf/*, /afr/*, /bi/*
    b) adflibResources = oracle.adf.library.webapp.ResourceServlet, maps to: /adflib/*
    I appreciate your help.

  • Error using custom tag library

    Hi All,
              I am getting the following error:
              On the browzer page when I invoke the foo.jsp page containing a tag
              library.
              Parsing of JSP File '/jsp/foo.jsp' failed:
              /jsp/foo.jsp(7): Could not parse deployment descriptor:
              org.xml.sax.SAXParseException: Could not parse taglib, starting at
              line 5
              probably occurred due to an error in /jsp/foo.jsp line 7:
              <%@ taglib uri="example-taglib.tld" prefix="eg" %>
              Wed Mar 27 13:17:49 PST 2002
              The configutation is as follows
              Foo.jsp in documentRoot/jsp
              tld file in documentRoot/WEB-INF
              class files in documentRoot/WEB-INF/classes/examples.
              The server is spitting out the following code:
              weblogic.servlet.jsp.JspException: (line 7): Could not parse
              deployment descript
              or: org.xml.sax.SAXParseException: Could not parse taglib, starting at
              line 5
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at java.lang.RuntimeException.<init>(RuntimeException.java:47)
              at weblogic.servlet.jsp.JspException.<init>(JspException.java:9)
              Can anyone help me with this ?
              Thanks for your help!!
              SundayFunday!
              

    Could anyone please let me know what is going on here?
              SundayFunday!
              [email protected] (SundayFunday) wrote in message news:<[email protected]>...
              > Can anyone help me with this?!!
              >
              > Thanks!
              >
              > Sundayfunday.
              >
              > [email protected] (SundayFunday) wrote in message news:<[email protected]>...
              > > Hi All,
              > >
              > > I am getting the following error:
              > >
              > > On the browzer page when I invoke the foo.jsp page containing a tag
              > > library.
              > >
              > > Parsing of JSP File '/jsp/foo.jsp' failed:
              > > --------------------------------------------------------------------------------
              > > /jsp/foo.jsp(7): Could not parse deployment descriptor:
              > > org.xml.sax.SAXParseException: Could not parse taglib, starting at
              > > line 5
              > > probably occurred due to an error in /jsp/foo.jsp line 7:
              > > <%@ taglib uri="example-taglib.tld" prefix="eg" %>
              > > --------------------------------------------------------------------------------
              > > Wed Mar 27 13:17:49 PST 2002
              > >
              > >
              > >
              > > The configutation is as follows
              > >
              > > Foo.jsp in documentRoot/jsp
              > >
              > > tld file in documentRoot/WEB-INF
              > > class files in documentRoot/WEB-INF/classes/examples.
              > >
              > >
              > >
              > > The server is spitting out the following code:
              > >
              > > weblogic.servlet.jsp.JspException: (line 7): Could not parse
              > > deployment descript
              > > or: org.xml.sax.SAXParseException: Could not parse taglib, starting at
              > > line 5
              > > at java.lang.Throwable.fillInStackTrace(Native Method)
              > > at java.lang.Throwable.fillInStackTrace(Compiled Code)
              > > at java.lang.Throwable.<init>(Compiled Code)
              > > at java.lang.Exception.<init>(Compiled Code)
              > > at java.lang.RuntimeException.<init>(RuntimeException.java:47)
              > > at weblogic.servlet.jsp.JspException.<init>(JspException.java:9)
              > >
              > >
              > > Can anyone help me with this ?
              > >
              > > Thanks for your help!!
              > >
              > > SundayFunday!
              

Maybe you are looking for

  • Data Source Missing in Publication

    HI experts, I've got a business objects publication which uses 1 crystal report as the source data and 1 crystal report as the dynamic recipients. When run seperately both these crystal reports work fine but when I try to schedule the publication I k

  • Keynote to Quicktime to iDVD

    Hi, I hope someone will be able to help - (and forgive me for being long, but I want to give all the relevant info). I have made a 700+ slideshow with images from iPhoto and occasional chapter headings, and simple dissolve transitions between most sl

  • E3000 - "Create Share" in Storage/Disk doesn't work properly

    Hi everyone, this is my first post here. I have an issue with my E3000 and for some reason I can't find anybody with a similar issue. I used to have everything setup properly, Upnp (streaming from PS3), FTP server, Public drive. Everything was workin

  • 3G SIM Usage in Ideatab S2110A

    I bought a new Lenovo tablet. please guide me how to use 3g SIM in this tablet. The 3G slot on the left side of the tablet is very loose for the sim. In which direction should the SIM be inserted and how to do the internet settings for it. Thanks a l

  • Icas controller blocking bus

    My friend has a G4 iBook. recently he is just getting this message: icas controller blocking bus. Anyone know what has happened here?? It will not start up at all. Thanks