Taglib

The system cannot find the file specified in open taglibrary
taglib : d:\tomcat\webapps\tomapp\WEB-INF\taglib.tld
this is my web.xml says:
<web-app>
<display-name> Tag Lib </display-name>
<taglib>
<taglib-uri>taglib</taglib-uri>
<taglib-location>/taglib.tld</taglib-location>
</taglib>
</web-app>

Hi rokar,
I had replyed long back this type of question, any how look at this information
/jakarta-tomcat-3.2.1/webapps/your_context/
somewhere inside the war file of your application
war file must be put inside /jakarta-tomcat-3.2.1/webapps/
An example of tree of a web application (in a .war archive) can be:
war-file
|
|----META-INF
| |---MANIFEST.MF
|
|---WEB-INF
| |---web.xml
| |---jsp
| | |---taglib (.tld)
| |---classes
| |---(.class/.properties)
|---jsp
| |---(.jsp/.html/.shtml)
|
|---images
| |---(.gif/.png/.jpeg)
|
|---binaries
|---(.zip/.tar/...)
check examples in jakarta-tomcat-3.2.1/webapps/
Please look at this url:
http://forum.java.sun.com/thread.jsp?forum=45&thread=148934
Regards,
Tirumalarao
Developer Technical Support,
Sun Microsystems.

Similar Messages

  • Taglib: class not found in jar-file

    I've got the following problem:
    I whant to deploy a taglib to tomcat 5.0.25.
    If I point to the jsp which uses the taglib I got the following error:
    org.apache.jasper.JasperException: Unable to read TLD "META-INF/taglib.tld" from JAR file "file:/C:/Programme/Apache Software Foundation/Tomcat 5.0/webapps/taglibtest/WEB-INF/lib/gsa_prod3_db_taglib.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: ch.gsa.prodass3.taglib.TagAddAttributeTEI
    If I copy the taglib.tld out of the jar-file into WEB-INF and do the mapping in web.xml, I get this error:
    org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: ch.gsa.prodass3.taglib.TagAddAttributeTEI
    root cause
    java.lang.ClassNotFoundException: ch.gsa.prodass3.taglib.TagAddAttributeTEI
    It seems like none of the files in the jar-file could be loaded.
    Has anybody an idea?
    Help would be very appreceated!
    Greetings, Jonas

    1 - double check the class is in the jar file, in that path, and is spelt correctly
    2 - restart Tomcat
    3 - check the contents of the tld file - particularly the extra-info tag and class name for it.

  • Taglib directive does not exist error

    hi frieds ,
    i got an error when running jsf application.I used tomcat 5.0.
    My applicatoin tree is
    newjsf
    /java resources
    /mypackage
    /PersonBean.java (java bean)
    /mypackage.messages.properties (properties file)
    /WebConten
    /pages
    /inputname.jsp
    /greeting.jsp
    /WEB-INF
    /faces-config.xml
    /web.xml
    The above is project tree in eclipse.i added necessary jar files in lib and added jsf support.
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:loadBundle basename="mypackage.bundle.messages" var="msg"/>
    inputname.jsp file
    ====================
    <html>
    <head>
    <title>enter your name page</title>
    </head>
    <body>
    <f:view> //got error here
    <h1>
    <h:outputText value="#{msg.inputname_header}"/> //got error
    </h1>
    <h:form id="helloForm">
    <h:outputText value="#{msg.prompt}"/> //error
    <h:inputText value="#{personBean.personName}" /> //got error
    <h:commandButton action="greeting" value="#{msg.button_text}" />
    </h:form>
    </f:view>
    </body>
    </html>
    greeting.jsp
    ======================
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:loadBundle basename="mypackage.bundle.messages" var="msg"/>
    <html>
    <head>
    <title>greeting page</title>
    </head>
    <body>
    <f:view> //got error
         <h3>
         <h:outputText value="#{msg.greeting_text}" />,
         <h:outputText value="#{personBean.personName}" />
    <h:outputText value="#{msg.sign}" />
         </h3>
    </f:view>
    </body>     
    </html>
    Error is TLD is not found.
    This is my faces-config.xml
    ========================
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
    <navigation-rule>
    <from-view-id>/pages/inputname.jsp</from-view-id>
    <navigation-case>
    <from-outcome>greeting</from-outcome>
    <to-view-id>/pages/greeting.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>personBean</managed-bean-name>
    <managed-bean-class>mypackage.PersonBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    </faces-config>
    This is my web.xml
    ====================
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
         <!-- Faces Servlet -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup> 1 </load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    im using tomcat 5.0. I added all jar files...plz help me...

    Did you "Enable AppXRay" on the project?
    In order to work with Workshop the project needs to be marked as web application.
    If your project is already in workspace, then right click and select "Enable AppXRay" FYI: Workshop identifies web resources inside web-root of an application. A web-root of an application is the folder containing WEB-INF directory.
    Ex:
    - C:\MyProject\WEB-INF\web.xml - in this case MyProject itself will be web-root
    - C:\MyProject\site\WEB-INF\web.xml - in this case site can be web-root
    Once the project is enabled with AppXRay, you open JSP/XML files in Workshop Editor (with Design/Source, Design & Source tabs).
    NOTE: Switch to Workshop perspective (Window > Open Perspective > other > Workshop)to see the default views. The jsp/xml files from AppXplorer view are by default opened in Workshop Editor.
    As I mentioned earlier the following settings should be checked for live "AppXRay" synchronization:
    - Window > Preferences > General > Workspace – make sure “Build automatically” is checked
    - Project > Properties > Builders – make sure “Workshop AppXRay Builder” is present and should be checked

  • Convert HTML ASCII codes with JSTL and Apache Taglibs?

    I am building a web application using JSTL and some of the Apache Taglibs, so these are the taglibs I have at my disposal currently. What I am looking for is the ability to handle the &#039; that appears in submitted search strings which contain the ' character. SQL seems to be able to handle other special characters (such as &, [, ", etc) but I can't get it to get along with the &#039;.  I have tried using a <string:replace replace="&#039;" with="\&#039;"> to escape the &#039;, but this doesn't seem to work either.  Any suggestions?  Let me know if you need more information to be able to fully understand the situation.
    --Ioeth                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    By the way, the search string that a user enters is getting Tokenized using " " as the token and then fed directly into multiple SQL LIKE comparisons based on how many tokens were found.

  • JDeveloper 10.1.3.2 pdk-struts taglib doesn't work

    Hi all,
    I just installed new jDev version (10.1.3.2) and I migrated all projects and setting from 10.1.3.1, but I still got a little/big problem with PDK-Struts taglib.
    In the previous jDev version portlet add-in wasn't include and to use pdk-struts integrate in the IDE I managed it as a JSP TagLib and everythings works fine.
    In new version the taglib in native and ready (it doesn't required to be registered!) to use but when I'm building the project I found and exception
    Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag
    mind!!!
    - the same project in version 10.1.3.1 has no problem to build
    - I checked and seleted all the libraries required
    Anyone knows why the new jDev version doesn't work??
    please someone helpMe!!!!
    Regards
    spig@

    Yea, I had those "is not a registered namespace in TLD" errors too, but regarding Struts HTML... I had to go to the Project properties and add the library.. (It went missing during conversion)
    Its frustrating and I know how you feel. Try this, try that and still doesnt work. My advice is to remove taglibs. Close Jdev. Open Jdev add them again. It have to work. Also it might help to delete class directories. Also be aware that some libraries are kept in "\WEB-INF\lib" and during conversion they remained (those libraries were from old Jdev you have to replace them with new version)
    So, all in all keep tryng, it have to work :)
    Good luck...

  • Error in using taglib uri in jsp

    When i write the following code in my jsp to use the tags, i got the error -
    JSP Parsing Error:The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application     
    And when i used the tld (html_basic.tld & jsf_core.tld), it gave me the error
    JSP Parsing Error:Failed to load or instantiate TagLibraryValidator class: com.sun.faces.taglib.html_basic.HtmlBasicValidator

    you can use
    <taglib>
    <taglib-uri>/WEB-INF/html-basic.tld</taglib-uri>
    <taglib-location>
    /WEB-INF/html-basic.tld
    </taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/jsf-core.tld</taglib-uri>
    <taglib-location>
    /WEB-INF/jsf-core.tld
    </taglib-location>
    </taglib>
    in your web.xml

  • Jdev 10.1.3.0.4 jsp 2.0 taglib support

    hi,
    i am trying to use ZK jsp tag library(zkoss.org) for a project. ZK taglib needs jsp2.0 support. i have create a web project with jsp2.0 and servlet2.4.
    then i install taglib to the project and put required libraries under web-inf/lib.
    here is a simple jsp: (just imports taglib)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://www.zkoss.org/dsp/web/core" prefix="zkjsp-functions"%>
    <%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="zuljsp"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Hello ZK World</title>
    </head>
    <body></body>
    </html>
    when i rebuild the project i get:
    Error(4): Invalid body-content value in TLD: SCRİPTLESS.
    Error(5): Invalid body-content value in TLD: SCRİPTLESS.
    Error(5): "http://www.zkoss.org/jsp/zul" is not a registered TLD namespace
    am i missing something?
    does jdeveloper 10g really supports jsp2.0 taglibs?
    regards, Engin.

    hi,
    jsp tag library definitions exist both at global jsp tag libs and project tag libs.
    my pc regional setting are turkish. i have changed then to english. then the error changed to:
    Error(4): Invalid body-content value in TLD: NONE.
    Error(5): Invalid body-content value in TLD: NONE.
    i guess the taglib file contains none value while its schema definition does not allow this? could it be the reason for last error? i found some none values at tld file.
    regards, engin.

  • Org.xml.sax.SAXParseException: Document root element "taglib", must match D

    hi
    using tomcat 4
    and jdf1.5
    i am getting bellow error
    org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYPE root "null".

    Check your web.xml once again.

  • Working with taglibs in jdev 10.1.3.4 (to be used for facelets)

    Short question:
    How do I get the jdeveloper to accept this declaration: <em>&lt;%@taglib uri="http://java.sun.com/jsf/facelets" prefix="ui"%&gt;</em> and its elements, such as <em>&lt;ui:include&gt;</em> ?
    Full story:
    I've been trying to get facelets to work in a project I'm working on. A part of this project, which I have no control over, is automatic javascript insertion via xslt, which makes it impossible for me to use xml style documents. (due to '&lt;'&gt;' being used for comparison, rather than tag opening/closing. Having said that, here's my problem:
    I want to use jsf / facelets to create a template page, that will be used in about 30 other pages. If I was able to use an xml-style jsp docuement, I could add an xmlns:ui, and faces support would work. However, since the above is true, I have to define the taglib in jsp style, to be able to use facelets. This would look something like:
    <blockquote>
    <em>&lt;%@taglib uri="http://java.sun.com/jsf/facelets" prefix="ui"%&gt;</em>
    </blockquote>
    Upon doing this, jdeveloper tells me that
    <blockquote>
    <em>Error(7): "http://java.sun.com/jsf/facelets" is not a registered TLD namespace</em>
    </blockquote>
    and for any uses thereof:
    <blockquote>
    <em>Error(33): ui:include is not a registered tag in that namespace.</em>
    </blockquote>
    After I add the jsf-facelets.jar library (tried versions 1.0.1.14, 1.1.11, 1.1.14), nothing changes.
    I understand that Jdeveloper wants to validate the taglibs I define, but there is no tld in the jsf distribution and there also should be no need for this (in xml-style syntax, it works fine without validation).
    If there's any way I can skip this validation or make jdeveloper believe the library is valid, I'm done. However, I have not been able to find such a function.
    Some guy from exadel has uploaded a tld for facelets to the facelets project (it's under contrib, here ). This tld has been referenced in most threads that deal with the problem (jsf in jdeveloper). The tld can't however provide a structural solution, since it's not complete. The &lt;tag-class&gt; and &lt;tei-class&gt; tags within the tld are empty. Reason enough for jdeveloper to halt on it.
    Adding the library to jdeveloper would be done thus: go to tools, go to 'manage libraries', go to 'tag libraries' click 'user' and select 'new'. Browse your way trough your filesystem and locate the tld file. Add a reference to the jsf-facelets and a reference to the el-api and el-impl jars and click ok. Then go to project properties and under tag lib libraries, add this library.
    Jdeveloper responds to this with the following error:
    <blockquote>
    <em>Error(33): Unable to instantiate tag: ui:include (class: null) Make sure that the tag class is available and that the tag library containing the class is not excluded from this application.</em>
    </blockquote>
    Right. To be able to instantiate the tag, jdeveloper seems to not only need the description of the tag, but also the connection to the real thing. I've been exploring the jsf-facelets jar and came to the conclusion that the tags in the tld correspond to the classes in the 'com.sun.facelets.tag.ui.' package, so for ui:include, that would be 'com.sun.facelets.tag.ui.IncludeHandler'.This class, described here here, seems indeed to have the same attributes as our ui:include tag. Tag tei-tag (tag extra information), is, afaik, not mandatory, so I'll leave it empty. Rebuild in developer gave me lots of errors when I did it the first time (which I solved by filling in the other tag-classes), but when recreating it for this topic, I had no problems of that sort. The error I'm stuck with is:
    <blockquote>
    <em>Error(33): src is not a property of com.sun.facelets.tag.ui.IncludeHandler</em>
    </blockquote>
    I'm baffled by this statement. The tld says this property exists, the ui:include documentation agrees with me and the file I'm linking to has a src TagAttribute (for which I'm having trouble finding the setter, but it worked in the xml-style version). Using this tld Jdeveloper grants content assistance, which suggests to me that I should use the src tag. It is mandatory.
    I tried to fill in the &lt;tei-class&gt;'es, but the facelets jar contains no class (that extends from) tagExtraInfo, as far as I could see. Using the one from jsf (facelets are, in a manner, jsf tags, being just a viewHandler for jsf), didn't change anything.
    At this point, I'm stumped. I hope there is either
    - a way to disable the tld resolution feature
    - a way to make a change in the tld I have now and make jdeveloper parse this tld
    - a way to create some dummy tld that jdeveloper will accept
    <blockquote>
    <em>Error(33): src is not a property of com.sun.facelets.tag.ui.IncludeHandler</em>
    </blockquote>
    How can I get rid of this error? Thanks for any suggestions!
    edit: fixed some typos and messed-up links on 04-Nov-2008 04:35
    Edited by: user2103934 on 04-Nov-2008 06:07

    Opon further expirimentation, I've discovered that the facelets view handler can not handle the <%@ taglib > declaration, returning me an
    com.sun.facelets.FaceletException: Error Parsing /mapviewer.jsp: Error Traced[line: 3] <Line 3, Column 2>: XML-20201: (Fatal Error) Expected name intead of %.
    With the facelets handler off, the non-xml facelet declaration is handled fine, but is no help.
    Which means I'm bound to use the xml style for facelets, which means I'm going to have to catch the inserted javascript in some manner.
    In any case, the original question in this topic is not the problem anymore, so I closed it here and awarded 5 points for a helpful answer.
    Edited by: rjonkman on 05-Nov-2008 07:17

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • In xml file taglib tag can't read in myEclipse

    My source code of web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <!-- Action servlet configuration -->
      <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
          <param-name>debug</param-name>
          <param-value>3</param-value>
        </init-param>
        <init-param>
          <param-name>detail</param-name>
          <param-value>3</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <!-- Action servlet mapping -->
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
      <!--  Welcome file list -->
        <welcome-file-list>
        <welcome-file>indexMini.jsp</welcome-file>
      </welcome-file-list>
      <!-- Struts tag library descriptor -->
      <taglib>
           <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
           <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
       </taglib>
        <taglib>
           <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
           <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
       </taglib>
    <taglib>
           <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
           <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
       </taglib>  
    </web-app>Here under the <!-- Struts tag library descriptor -->
    the first tag
    <taglib> can't read myEclipse.
    Can you please help me?

    Hello,
    I have tried my best cleaning up the wiring, but it's still pretty messy. I attach the complete program.
    My problem (still not solved) is that since EA needs to be measured at very high rate, I want to write it as binary data. But I cannot make it show me the correct data afterwards, with a different program, that doesn't matter.
    I would also like to know how to convert this saved data to MatLab... any suggestions? (should I post this in a new thread?)
    Regards,
    Usuario
    Attachments:
    program_00.vi ‏297 KB

  • Error using IO taglib in BEA 8.1

              Hello,
              I am integrating a web application into BEA 8.1 and everything seems to be getting
              worked out except for 1 thing. In one of my JSP pages I use the Jakarta io taglib
              to send a SOAP message. When I try to run this JSP page I get the following error:
              WARNING: ERROR: Caughtjava.io.FileNotFoundException: Response: '500: Internal
              Se
              rver Error' for url: 'http://[the ip]:8080/axis/services/vkb-resourcemgmt'
              java.io.FileNotFoundException: Response: '500: Internal Server Error' for url:
              http://[the ip]:8080/axis/services/vkb-resourcemgmt'
              at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.
              java:394)
              at org.apache.taglibs.io.URLTag.getURLInputStream(URLTag.java:274)
              at org.apache.taglibs.io.URLTag.getURLReader(URLTag.java:259)
              at org.apache.taglibs.io.URLTag.readURL(URLTag.java:327)
              at org.apache.taglibs.io.URLTag.doEndTag(URLTag.java:181)
              at jsp_servlet._jsp.__registerproduct._jspService(registerProduct.jsp:31
              The problem is not with the URL being a bad one but there is some internal conflict
              between BEA and the taglib itself. I don't have problems when my web application
              runs outside of BEA (just in Tomcat).
              Thoughts??
              Thanks - Peter
              6)
              

              "Peter Len" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hello,
              >
              > I am integrating a web application into BEA 8.1 and everything seems to be
              getting
              > worked out except for 1 thing. In one of my JSP pages I use the Jakarta
              io taglib
              > to send a SOAP message. When I try to run this JSP page I get the
              following error:
              >
              > WARNING: ERROR: Caughtjava.io.FileNotFoundException: Response: '500:
              Internal
              > Se
              > rver Error' for url: 'http://[the ip]:8080/axis/services/vkb-resourcemgmt'
              > java.io.FileNotFoundException: Response: '500: Internal Server Error' for
              url:
              > '
              > http://[the ip]:8080/axis/services/vkb-resourcemgmt'
              > at
              weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.
              > java:394)
              > at org.apache.taglibs.io.URLTag.getURLInputStream(URLTag.java:274)
              > at org.apache.taglibs.io.URLTag.getURLReader(URLTag.java:259)
              > at org.apache.taglibs.io.URLTag.readURL(URLTag.java:327)
              > at org.apache.taglibs.io.URLTag.doEndTag(URLTag.java:181)
              > at
              jsp_servlet._jsp.__registerproduct._jspService(registerProduct.jsp:31
              > ...................................................
              >
              > The problem is not with the URL being a bad one but there is some internal
              conflict
              > between BEA and the taglib itself. I don't have problems when my web
              application
              > runs outside of BEA (just in Tomcat).
              >
              > Thoughts??
              >
              > Thanks - Peter
              > 6)
              Looks like the URL is returning a 500 Internal Server Error which implies an
              exception on the server side. Does the other URL also reside on WebLogic? If
              so you might want to look at the server log and see if there is something
              going on
              

  • Jsp taglib problems in J2ee server  of j2sdkee1.3

    Fresh from solving the problems with usebean in jsp, I again got a problem with the custom tags of JSP
    I am using Jdk1.3 and j2sdkee1.3, windows98
    The class file is stored in a package called my in the c:\j2sdkee1.3\lib\classes\my folder
    and the tld and jsp file stored in c:\j2sdkee1.3\public_html folder
    when I access the atm.jsp page, I got this error message
    A Servlet Exception Has Occurred
    org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
    Here is the ATMJsp.tld code
    <?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">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>ATMJsp</shortname>
         <info>a tag library for the atm details</info>
         <tag>
              <name>ATM</name>
              <tagclass>my.atmtag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Outputs of the ATM Counter</info>
         </tag>
    </taglib>
    I try:
    When I put the <bodycontent> tags below the <info> tags, I got the error message that the tag doesn't allow "bodycontent" here
    I don't know what caused the problem ... is there some mistake in the above code?
    Include other file to make it more clear---* atm.jsp and atmtag.java
    atm.jsp
    <%@ page import="my.atmtag" %>
    <%@ taglib uri="ATMJsp.tld" prefix="atmjsp" %>
    <%@ page errorPage="errorpage.jsp" %>
    <!DocType HTML Public "-//W3C//DTD// HTML 4.0 Translational//EN">
    <html>
    <head></head>
    <body>
    <h3 align=center>ATM counters that need cash</h3>
    <table><tr>
    <td></td>
    <td><atmjsp:ATM></td>
    </tr>
    </body>
    </html>
    atmtag.java
    package my;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import java.util.*;
    //tag handler
    public class atmtag extends TagSupport
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public atmtag() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public int doStartTag() throws JspTagException
              return EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspTagException
              try
                   JspWriter out=pageContext.getOut();
                   connect=DriverManager.getConnection("jdbc:odbc:EarnestBank","","");
                   String strquery="select cCounter_id, cAddress, mCashBalance from Counter where mCashBalance<=10000";
                   state=connect.createStatement();
                   ResultSet result=state.executeQuery(strquery);
                   String sid=null;
                   String saddress=null;
                   String sbalance=null;
                   Vector v=new Vector();
                   while(result.next())
                        sid=result.getString(1);
                        saddress=result.getString(2);
                        sbalance=result.getString(3);
                        v.add(sid);
                        v.add(saddress);
                        v.add(sbalance);
                   for (int i=0; i<v.size();i++)
                        String str=(String)v.elementAt(i);
                        pageContext.getOut().write(str);
              catch(Exception ex)
              return EVAL_PAGE;
    Pls help me to get through this hurdle
    Thanks

    1) To handle <bodycontent> you should inherit from BodyTagSupport
    class
    2) You should use your bean like: <td><atmjsp:ATM/></td>
    with closing slash - it's bodyless tag - this mistake
    causes JSP compiler to report error
    Enjoy!
    Paul

  • Runtime exceptions in custom taglib

    I am getting errors of the type:
              javax.servlet.ServletException: runtime failure in custom tag
              The problem is the error is happening in a taglib, but Weblogic is hiding the
              original stack trace, and substituting it's own, which is useless in this case. Is
              there any way to get the original stack trace?
              -Jeff
              

    With custom tags, each interface method needs to be entirely in a try..catch
              to support debugging. WL hides the exact exception information. For
              example:
              public int doEndTag() throws JspException
              try
              catch (Throwable e)
              throw e instanceof JspException ? (JspException) e : new
              JspTagException(e.getMessage());
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Brian Homrich" <[email protected]> wrote in message
              news:[email protected]...
              > I'm getting the same type of error in the situation where an error has
              occured
              > in a page, my client uses "Back" on the browser, then tries another page
              > (which uses a custom taglib).
              >
              > If I stop, then restart WL, all is ok. The page where the runtime
              failure
              > occured is ok now.
              >
              > Have you made any progress getting a stack trace, and have you found
              anything
              > interesting?
              >
              > Does anyone know why a failure on one page would cause the custom tags
              > on another to fail like this? (Both pages use the same tag, but aren't
              calls
              > to a tag done independently?)
              >
              > Brian
              >
              > Jeff Nowakowski wrote:
              >
              > > I am getting errors of the type:
              > >
              > > javax.servlet.ServletException: runtime failure in custom tag
              > >
              > > The problem is the error is happening in a taglib, but Weblogic is
              hiding the
              > > original stack trace, and substituting it's own, which is useless in
              this case. Is
              > > there any way to get the original stack trace?
              > >
              > > -Jeff
              >
              

  • Error in parsing the taglib tag in the JSP page

    Hi
    We are trying to deploy and run a Web Application in CE 7.1 SP01. We are successful in deploying and running servlet based web pages, but when it comes to JSP's the taglibs are not parsed and we get the following error message
    Runtime error in processing of the JSP file E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\main.jsp.
    The error is: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [webwork]. Possible reason - validation failed. Check if your TLD is valid against its scheme.02004C4F4F5000190000004E000013400191D308B45
    Processing HTTP request to servlet [jsp] finished with error.
    The error is: java.io.FileNotFoundException: E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\webwork (The system cannot find the file specified)02004C4F4F50001900000051000013400191D308B45AF1AB
    We followed the below weblog to correct the TLD's in JAVA EE 5 @ SAP but it did not work for us.
    /people/community.user/blog/2006/10/13/porting-the-java-blueprint-solutions-catalogue-applications-to-sap-netweaver-application-server-java-ee-5-edition
    Any immediate help will be rewarded with full points
    Thanks in advance
    Lakshmi
    Edited by: lakshmi N Munnungi on May 5, 2008 11:36 PM
    Edited by: lakshmi N Munnungi on May 5, 2008 11:39 PM

    Hi Lakshmi,
    I have also the same problem. If you have found the solution please post it thanks,
    Thanks,
    Tariq

  • Taglib repeating in jsp page in TOMCAT. (Can this be Tag pool issue? )

    Hi,
    We have an application and it is running fine on one servlet container "ServletExec". We are migrating our application to Tomcat and some weird things happenned.
    In one of my JSP pages say page " A ", I have included another small JSP say " B "which just created a table with one row and various columns.
    Now the columns are created in a taglib. And I am using that taglib inside that page " B".
    Now this is working fine in ServletExec.
    But in tomcat when I refersh page A or come to this page dfrom some other page, there are multiple instance of tables from page B are rendered.
    SO every time I refresh a new entry added to already existing table.
    Can any one please help?
    I looked in some documents and found that this may be because of some Tag pooling in Tomcat newer versions. Is that right?
    If yes how can I remove this tag pooling in my taglib java class?
    Any help is highly appreciated.
    Thanks

    Hi
    try disabling the tag pooling and check the page.
    To disable the tag pooling in Tomcat
    make enablePooling = false for the jsp servlet declaration in
    $TOMCAT_HOME/conf/web.xml
    Regards

Maybe you are looking for

  • HT1449 When moving your iTunes Media folder to an external drive should the itl file be moved during the organise library process too?

    I have moved all of the iTunes data to the drive, but can't seem to find the .itl folder when trying to make external drive the location for my music for a new computer. Can anyone please assist on letting me know where the .itl file would have been

  • How can I upgrade my Mac G5's boot drive?

    Hi, I have a PowerMac G5 running 10.5.8... and just bought a new internal 1TB SATA I would like use as my new boot drive. What's the most simple method to do so? I have a copy of Data Rescue 3 that has a "clone" feature -- which I tried. It worked, b

  • How to find where the screen field is stored in table

    Hi all, How to find where the screen field  is stored in the table . for some transactions if i press F1 on the field and after checking for the technical help. I can only find the struture for the screen field, but whereas i need table name for it.

  • Loads but UI won't open

    What might cause DW CS4 to load into processes... yet not "open" the program? It worked fine for the first few opens since I installed Win 7 but all of a sudden stopped opening. Yet its showing running in processes. Have reinstalled several times. Th

  • E-Mail while in PhotoShop?

    Just got Adobe PhotoShop, and cannot figure out how to send a picture via an e mail in my Outlook 2007?