Unable to add Custom JSP 1.2 Tag Library to Project

I am trying to upgrade to a newer version of JDeveloper (10.1.3.0.4) but am having a problem with projects that use custom JSP tag libraries.
After converting the project (.jpr) files to the new version, I double click and go to "JSP Tag Libraries." When I click on "Add" to add a new JSP Tag library, only JSP version 1.1 libraries are shown, I cannot choose any JSP 1.2 tag libraries.
my TLD files are all JSP 1.2, so I am not quite sure why this isn't working in a newer JDeveloper after it has worked fine in the past. If I examine any JSP page that uses my taglibs, I see the following 2 kinds of error:
the line:
<%@ taglib uri="taglib.uri" prefix="mytag" %>
is underlined in red and says "the tag library taglib.uri is referenced, but not installed"
And for any lines that try to use the custom tag:
<mytag:dosomething>
there is a yellow/orange underline that says "no grammar available for namespace taglib.uri, contents of element dosomething cannot be validated"
Note that I can add the taglib JAR file under Tools > Manage Libraries, but I cannot add the JSP tag library to my project. Is there some sort of compatibility issue when transferring project files from an old version of JDeveloper?
Any help would be appreciated

Yes any new project I create I can specify JSP 1.2 or 2.0 with the wizard and it works fine.
But I don't want to re-create my entire project file again just to register my taglibs.
Here's the JSP related section in web.xml:
<!-- TagLibraries -->
<taglib>
<taglib-uri>taglib.uri</taglib-uri>
<taglib-location>/WEB-INF/tlds/mytag.tld</taglib-location>
</taglib>
It's definately something in the project itself... but I am lost as to what it is.
Edit: nvm I fixed it. It was the web.xml. I had to change the line:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
into
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
and it worked. Thanks.
Message was edited by:
user523020

Similar Messages

  • Want to add a jsp inside pager tag library

    Hi,
    I want to add pagination in my web center application, for This I am using pager tag lib
    But I am not able to add jsp page inside *<pg:index >* tag
    I tried it with different ways: e.g.
    A. <jsp:include page="/WEB-INF/jsp/altavista.jsp" flush="true"/>
    b> <f:subview id="subview1">
    <jsp:include page="inc.jsp" />
    </f:subview>
    When I add JSP  inside <pg:index > tag and run my jsp i am getting noting in my UI and also not seeing any error in console.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:pe="http://xmlns.oracle.com/adf/pageeditor"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:tr="http://myfaces.apache.org/trinidad"
    xmlns:pg="http://jsptags.com/tags/navigation/pager"
    xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:pageTemplate viewId="/oracle/webcenter/portalapp/pagetemplates/nowTemplate.jspx"
    id="pt1">
    <f:facet name="content">
    <af:group id="g1">
    <af:panelGroupLayout id="pgl1">
    <div class="line topMargin20">
    <div class="unit size1of4">
    <div class="mod mod-sectionTitle">
    <span>Search Results</span>
    </div>
    </div>
    <!-- /unit -->
    <div class="unit size3of4 lastUnit"></div>
    <!-- /unit -->
    </div>
    <!-- /line -->
    <div>
    <pg:pager items="${backingBeanScope.searchClient.searchResults.totalResults}"
    maxPageItems="${backingBeanScope.searchClient.searchResults.maxPageItems}"
    maxIndexPages="${backingBeanScope.searchClient.searchResults.maxIndexPages}"
    isOffset="${backingBeanScope.searchClient.searchResults.isOffset}"
    export="offset,currentPageNumber=pageNumber"
    scope="request">
    <pg:param name="maxPageItems"/>
    <pg:param name="maxIndexPages"/>
    <input type="hidden" name="pager.offset" value="${backingBeanScope.searchClient.searchResults.isOffset}"></input>
    *<pg:index >*
    *</pg:index>*
    <c:forEach items="${backingBeanScope.searchClient.searchResults.results}"
    var="result">
    </c:forEach>
    </pg:pager>
    </div>
    </af:panelGroupLayout>
    </af:group>
    </f:facet>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_oracle_webcenter_portalapp_pages_untitled1-->
    </jsp:root>

    PeterBreis0807 wrote:
    Are you having trouble with tabs in a list?
    You haven't said so.
    In lists you have to use option tab, otherwise it just changes the list level.
    Peter
    I guess what you were hoping but you missed the point.
    Yvan KOENIG (VALLAURIS, France) vendredi 20 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Ever since my last update I have been unable to add songs from my i tunes library onto my i phone.  The "add to" button does not appear for me when I connect my i phone.  Can anyone shed some light on this for me?

    Ever since my last update I have been unable to add songs from my i tunes library onto my i phone.  The "add to" button does not appear for me when I connect my i phone.  Can anyone shed some light on this for me?

    Thanks for that 'sberman' - because my iPhone is backed-up to my work computer (only at this stage) I have had to call our IT Department in Adleaide. (4 times this morning). The last guy managed to get the phone into 'DFU Mode' - no more recovery mode screen - (kind of 'asleep' perhaps) from my understanding of same. I am awaiting a call again from IT so they can get my computer to actually recognise my iPhone on the C Drive. This also happened to  one of my colleagues in Newman (WA). She got so frustrated with the whole process that she bought another phone the next time she was in 'civilisation.' She hasn't had any problems since. (Cross fingers).
    Thanks again, Sandra2474.

  • Unable to add custom SOAP header to consumer webservice in CRM( without using PI)

    Hello Experts,
    We have a requirement to consume webservice proxy in CRM without involving PI. We have WSDL file which has many services as depicted in the first screenshot.After checking old posts, I could add custom SOAP header by using if_wsprotocol_ws_header and there is no xml parsing error for ws_header.Have used if_ixml_stream_factory to check xml parsing error for header.
    '<soapenv:Header>'
    '<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">'
    '<wsse:UsernameToken wsu:Id="UsernameToken-2">'
                '<wsse:Username>user id</wsse:Username>'
                '<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">paswd</wsse:Password>'
                '<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MT0B9XFzsZJXXKmVKOsj/Q==</wsse:Nonce>'
                '<wsu:Created>2015-03-30T06:29:17.407Z</wsu:Created>'
    '</wsse:UsernameToken>'
    '</wsse:Security>'
    '</soapenv:Header>' INTO l_string.
    But when my ABAP program as a whole gets executed where consumer proxy is called, then it still throws XML parsing error - undeclared namespace prefix. As mentioned, there is no parsing error for header and WSDL file as a whole in SOAP UI tool works fine,by manually adding SOAP header.
    Have configured SOAMANAGER with logical port.Or any wrong setting in SOAMANAGER can cause this issue? When I tested webservice ping, it gave me attached error but I read in a SAP note that such error can be ignored.
    I want to know if some more setting/coding is required if we manually add custom header to a payload? Is PI really required to implement this requirement? Payload mapping has to be done to add custom header and if that can be taken care by ABAP coding and how?
    Can you please help?
    BR,
    Nisha Verma

    Hello Experts,
    I have not found the solution yet.
    Can anyone provide some insight??
    BR,
    Nisha Verma

  • I am unable to add home videos to my itunes library

    Ever since I updated Itunes to the latest version I have been unable to add home videos that have been converted to the proper format into my Itunes library so that I may sync it with my mobile device. Can you tell me why? What needs to be done so that I am able to so again?

    does it say your nano has no more capacity left?  Your itunes should have a bar at the bottom of the screen to let you know how much space is taken up.

  • How to add Weblogic 10.3 Thin-Client library to project?

    Dear All,
    Can anyone help me how to include Weblogic 10.3 Thin-Client library to project. I am wondering for the location of Weblogic 10.3 Thin-Client library, but unable to locate it.
    Thanks in advance.
    Best Regards
    Bilal

    Its done...
    Go to project properties -> libraries -> Add library -> Weblogic 10.3 Thin-Client.

  • Add custom JSP

    hi experts !
    i have added custom menu in OIM. now i want to add some functionality to it. i have tried following but it is not working, please helpout if possible :-
    1. Created a JSP page as follows
    +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>+
    +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">+
    +<html>+
    +<head>+
              +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">+
              +<title>the first jsp page through menu</title>+
    +     </head>+
    +<body>+
    +<h1>Welcome</h1>+
    +</body>+
    +</html>+
    2. placed this JSP in a folder named custom in [OIM DIR]\xellerate\OIMApplications\WLXellerateFull.ear\xlWebApp.war
    3. Added Following to struts-config.xml
    +<action path="/mergeOrgs" name="logonForm" validate="false"+
                   type="net.custom.struts.helloworld.action.LoginAction">
                   +<forward name="success" path="/custom/MergeOrgs.jsp" />+
              +</action>+
    4. created a jar with LoginAction class and placed in [OIM DIR]\xellerate\OIMApplications\WLXellerateFull.ear\xlWebApp.war\WEB_INF\lib folder
    5. run patch-weblogic.cmd
    but i get the message "This page is not currently implemented" when i click on the lik.
    the entries in xl Default. properties+
    Organizations.Merge=mergeOrgs.do?Display
    menuItem.Organizations.Merge.link=mergeOrgs.do?
    xlWebAdmin_en_US.properties+
    menuItem.Organizations.Merge=Merge Org
    mergeOrgs.button.display=Merge Organizations
    Edited by: ZIA on Feb 25, 2010 2:50 AM
    Edited by: ZIA on Feb 25, 2010 2:51 AM
    Edited by: ZIA on Feb 25, 2010 2:52 AM

    You have to create one JSP which u have to put in pages folder.
    Which will have one KEY.
    Now make entry of your actual JSP with this KEY in tiles-def.xml
    Put your actual JSP in tiles folder.
    In ur struts-config.xml make entry of your JSP which is pages folder.
    You can see just example of any JSP in pages folder.

  • Unable to add custom tab in ME21N using BADI ME_GUI_PO_CUST

    Dear All,
    I need one extra tab in Item Details of ME21N.
    This extra tab should have two fields of my own.
    I have put the coding in the SUBSCRIBE method of the implementation of the BADI ME_GUI_PO_POST as follows:
    data: ls_subscriber like line of re_subscribers.
    we want to add a customer subscreen on the item detail tab
      check im_application = 'PO'.
      check im_element     = 'ITEM'.
    each line in re_subscribers generates a subscreen. We add one subscreen in this example
      clear re_subscribers[].
    the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = 'Event Details'.
    the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    the program where the dynpro can be found
      ls_subscriber-program = 'SAPLMEPOBADIEX'.
    each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'ZSM_PO_STRUC'.
    a label can be defined
      ls_subscriber-label = 'Event ID'.
    the position within the tabstrib can be defined
      ls_subscriber-position = 5.
    the height of the screen can be defined here. Currently we suport two screen sizes:
    value <= 7 a sevel line subscreen
    value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      append ls_subscriber to re_subscribers.
    I put breakpoints in the implementation of the method, and it is going into it, yet the extra tab is not getting displayed on the screen.
    Please give your suggestions on this.
    Regards,
    Prosenjit.

    Hi Prosengit,
    I am not aure about u r BADI,
    BUt last week i have custom tab in the PO header data using this enahncement 'MM06E005'.
    IN thi senhancement u have thrre screen exits.In this enhancement
    SAPMM06E        0111 CUSTSCR1 SAPLXM06        0111 Subscreen: PO item
    u can add subscreen and u can add u r own fields here .
    and u can write u r code in 'EXIT_SAPMM06E_006'.
    if u want to change the title of the program.
    Go to program SAPLXM06 then go to text element give text symbol no as '111' and u can change the title of u r tab.
    I hope this solves u r problem.

  • I am unable to add video files to my itunes library

    I have been trying to add videos to my itunes library for a few hours now, i have the correct format MPEG-4's as stated on here as the correct format, but when i go to add them nothing comes up and im wondering why ?

    HI.Andrew.  Thanks for the reply.  I think there has been misunderstanding and I am sorry about it.  I am not streaming from my computer using Twonky.  I have videos on my networked EZ drive in a media shared folder called movies.  I also have photos in other folders as well which have no problem streaming.   A majority of these videos (nearly 99%) are in the latest .m2TS or MPEG-4 format (from  my video camera) and about 8 of them are in the MPEG-1 format.  I used to be able to use my networked SOny Blu-Ray player to stream these videos (any format) to my TV  and watch them, till this february when i updated my firmware.  It does not need my laptop to be on for that (hence not media integrationissues).  After my firmware update, the only video that plays are the eight MPEG-1 format videos.  Very strange.  I have no problem streaming photos or music from the EZ drive.  I think I might have confused you with the Twonky thing, because on the EZ drive's manager window on the browser, after selecting "Media server" settings, I used to see a twonky server against my laptop PC in the table of connected devices (for media integration), which I now understand was because of media integration of the laptop.  So please ignore that.  I now get the message "no playable file found" when I try to stream videos from the EZ drive through my Blu-Ray player.  I do see the Lenovo-EMC2 icon on my Blu-ray players video channels, clicking on it does show me folders, but it cannot find any playable file, while earlier it used to play those same files.  I dont understand what happened.  I am hoping you can throw some light on this issue. 

  • Unable to add aspx file to document library using REST and JSOM in SharePoint Hosted App

    Hi,
    I am unable to add an aspx file to document library.  I was actually trying to create a WIKI page and upload to Pages library but that wasn't working so I tried simple document library.  It keeps failing with Access Denied error.  I have checked
    the blocked types and aspx is not included.  I can upload it directly from the browser so that shouldn't be the case.  I have read that it can be achieved with CSOM but I need this to work with a SharePoint Hosted App.  Here is my JSOM:
    factory = new SP.ProxyWebRequestExecutorFactory(appweburl);
        context.set_webRequestExecutorFactory(factory);
        appContextSite = new SP.AppContextSite(context, hostweburl);
        oWeb = appContextSite.get_web();
        oList = oWeb.get_lists().getByTitle('Documents');
        fileCreateInfo = new SP.FileCreationInformation();
        fileCreateInfo.set_url("mywiki.aspx");
        fileCreateInfo.set_content(new SP.Base64EncodedByteArray());
        fileContent = "<%@ Page Inherits=\"Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c\" %> <%@ Reference VirtualPath=\"~TemplatePageUrl\"
    %> <%@ Reference VirtualPath=\"~masterurl/custom.master\" %>";
        for (var i = 0; i < fileContent.length; i++) {
            fileCreateInfo.get_content().append(fileContent.charCodeAt(i));
        newFile = oList.get_rootFolder().get_files().add(fileCreateInfo);
        context.load(newFile);
        context.executeQueryAsync(function () {
            alert('yo');
        }, function (sender, args) {
            alert(args.get_message() + '\n' + args.get_stackTrace());
    If I change the file extension to "txt", it works.  Same with REST implementation, it works with "txt" but fails with "aspx".  Maybe what I am trying to do will not work using JSOM or REST.  Any suggestions?  Your
    help is always appreciated.
    Regards,
    kashif

    Your code works fine in both my on-premises and SharePoint Online. I have given the app full control, so I suspect this is a permissions issue. I would check your permissions on your appmanifest. Must be something to do with publishing permissions. Try
    giving full control and work the permissions down.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Unable to add document to SP 2010 library

    In a SP 2010 library I'm unable to add a document to a specific library. When I try adding the document SP says that the file is checked out for editing by someone.  However, the file doesn't exist in the library and the require check-out option isn't
    turned on for that library either.  A file with the same name might have existed in that library at one time but it's currently not there.

    Thanks for your comments. Will recommend them to the product team.

  • Unable to add videos to library

    Hi ,
    I am unable to add any videos to the itunes library after updating my itunes to the latest version.

    They are Mp4 videos which i had converted using a convertor. I was able to add them to the library before updating my itunes but unable to do so now...

  • Avoid tag library declarations when using Tiles

    Hello,
    Im developing a small app using Struts+Tiles, I see that in every "Tile" (header.jsp, navbar.jsp, footer.jsp) if I want to use some struts tags like <bean:write... I have to put the tag library declarations like:
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>at the begining of every jsp, because the tag library declarations included at the begining of the "mainLayout" that encapsulates the page regions or "tiles", is ignored.
    How to solve this ?

    Refer
    http://www.oracle.com/technology/pub/articles/vohra_tiles.html

  • Add organization lookup to custom JSP

    Hi Experts !
    i am trying to add organization lookup link in my custom JSP pages i have added to OIM. the code of my page is given below. when i click on the link for "View Lookup Details", the pop up screen has following message displayed :-
    INCORRECT_FIELD_LIST
    list of fields is incorrect
    the code of the page is given below :
    <%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/tld/xellerate-tags.tld" prefix="tctags" %>
    <%@ page import="com.thortech.xl.webclient.util.FormField" %>
    <%@ page import="com.thortech.xl.webclient.actions.tcLookupFieldForm" %>
    <%@ page import="com.thortech.xl.webclient.actions.tcActionForm" %>
    <%@ page import="com.thortech.xl.webclient.util.tcMessageResourcesUtil" %>
    <html:html>
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/style.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/calstyle_all.css">
    <body >
    <html:form name="appointmentForm" action="/appointment" method="post">
    Create Designation
    <table border="0" align="center" class="A11" >
         <tr>
    <td align="left" class="grbx" valign="top">
    ID
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="id" />
    </td>
    </tr>
              <tr>
    <td align="left" class="grbx" valign="top">
    Name
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="desigName" />
    </td>
    </tr>
    <tr>
    <td align="left" class="grbx" valign="top">
    Description
    </td>
    <td height="6px"/>
    <td align="left" class="Input.textStyle" valign="top" >
    <html:text property="desigDescription"/>
    </td>
    </tr>
         <tr>
              <td align="left" class="grbx" valign="top">
                   Organization
              </td>
              <td width="35px">
              </td>     
              <td class="ControlLabel">
                   <tctags:lookupfield name="appointmentForm"
    property="desigOrg"
    windowheight="500"
    windowwidth="500"
                   lookupAPI="-2"
    methodName="findOrganizationsFiltered"
    className="Thor.API.Operations.tcOrganizationOperationsIntf"
    columnNames="Organizations.Organization Name, Organizations.Status"
                   selectionColumn="Organizations.Organization Name"
    columnLabelKey="request.requestDetail.organization"
    htmlFormName="appointmentForm"
    styleClass="Fields"
    iconsrc="images/lookup.gif"
    tabindex="6"
    maxlength="50"
    fixedFilter="Organizations.Status:Active" />
              </td>
         </tr>
              <tr height="100px">
              <td height="50px"/>
              </tr>
              <tr>
    <td height="50px"/>
    <td height="50px"/>
    <td align="right" class="grbx" valign="top" >
    <html:submit property="appt_saveCreate">Save</html:submit>
    <html:button property="clear" value="Clear" onclick="clearForm()" />
    <html:cancel property="appt_cancelCreate">Cancel</html:cancel>
    </td>
    </tr>
    </table>
    </html:form>
    </body>
    </html:html>
    Any mistake i am making? (must be otherwise it would have been working :-) )
    Best Regards

    oookay got it going :-) . Was just a matter empty space in
    columnNames="*Organizations.Organization Name, Organizations.Status*"
    advice to myself....read logs carefully :-D

  • 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

Maybe you are looking for