JSP with Custom tags error during verify.

Hi, i am new to JSP and Custom tag Library. The tools that i am using to deploy is "Sun Deploy Tool 8.2" with Sun Application Server. When i try to verify my JSP page i get this error message
tests.web.AllJSPsMustBeCompilable . I guess there is nothing wrong for my code, will it be path problem, because
i already check that i had included all the path that i need. Any idea what might cause this problem? Thank You.
Assertion:All the JSPs that are bundled inside a web application must be compilable using a J2EE compliant JSP compiler that does not have any proprietary or optional features in it.
For [ /tag/tag.war ]
Error: Some JSPs bundled inside [ tag ] could not be compiled. See details below.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /currentTime.jsp
Here are my class file :
Custom lib java Class timetag.java
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.text.SimpleDateFormat;
public class timetag extends TagSupport{
     public int doEndTag() throws JspException
          SimpleDateFormat sdf;
          sdf = new SimpleDateFormat("HH:mm:ss");
          String time = sdf.format(new java.util.Date());
          try {
               pageContext.getOut().print(time);
          }catch(Exception ex)
               throw new JspException(ex.toString());
          return EVAL_PAGE;
Tag file *.tld : examplesTag.tld
<?xml version="1.0" encoding="ISO-8859-1" ?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>ExamplesTags</short-name>
<description>A set of example tag handlers.</description>
<tag>
<name>time</name>
<tag-class>timetag</tag-class>
</tag>
</taglib>
JSP File : currentTime.jsp
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="examples" uri="/WEB-INF/examplesTags.tld" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<examples:time /> //If i remove this it will be fine.
</body>
</html>

I am sorry for the double post because the format mess up..Please ignore this POST..Apologies again..Thanks

Similar Messages

  • Error while running JSP with custom tag

    I am trying to run a jsp with a tag and I am getting the following error when I run the jsp:
    "Unable to open taglibrary /WEB-INF/jsp/mytaglib.tld : Parse Error in the tag library descriptor: External parameter entity "%(DOCTYPE);" has characters after markup."
    I have no idea what this is, can anyone help me here?
    tx
    -AB

    Its difficult to tell without looking at your TLD file i.e. mytaglib.tld
    However, a guess is that you may be refering to an invalid or otherwise corrupted DTD from your TLD.
    Check that out.
    The official DTD for TLDs in JSP 1.1 is http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
    and the official DTD for TLDs in JSP 1.2 is http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd

  • Anyone one with 1,000+ JSPs with custom tags?

              We're having some interesting memory problems with Sun JVMs, I'd like to hear how
              your app is working out (misery loves company).
              Mike
              

    What are you seeing?
              What WL version, what JVM, what OS/ver?
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Mike Reiche" <[email protected]> wrote in message
              news:3a80feac$[email protected]..
              >
              > We're having some interesting memory problems with Sun JVMs, I'd like to
              hear how
              > your app is working out (misery loves company).
              >
              > Mike
              

  • "problem with shortcut/fatal error during installation" on other user accts

    I-tunes installed and works with no problem in original user, but when another user account attempts to open Itunes, program attempts to install/configure again, then results in a "problem with shortcut / fatal error during installation" message. Setting the other users to administrators doesn't help, nor does un-installing/re-installing, etc. I am at least the 4th person with this problem (see Burthomp earlier today,Jan. 17 and Richard 1018 on Dec. 29). This problem started with Itunes 7.5, and is still a problem on Itunes 7.6. I have a standard Dell setup, Model E510. There must be a lot of people with this problem. Apple, are you working on this? Anyone else have a suggestion?

    I ran into the same problem, but I think I have the solution. First, the problem isn't with iTunes, its an access problem with Windows XP. I tried to run the iTunes program from the Program Files, and I received an "Access Denied" error.
    If you try to open the Program Files in My Computer\Local Disk(C:) and receive an "Access Denied" Error, that is why you are receiving a "shortcut problem/Fatal Error during installation".
    Here is how I corrected it:
    1) Shut down the computer and restart it in "safe mode". I had to look up how to do this, but I pressed F8 when it was restarting and I highlighted the "safe mode" and started the machine. The icons will be large, but ignore it.
    2) Open a user that has administrative access -- I used the one user that has access to itunes.
    3) Go to My Computer\Local Disk (C:) and right click on the "Program Files" folder. Select "properties" at the bottom.
    4) Go to the Security Tab
    5) At the top you should see one or two users that have access to the Programs File. One will be the user that itunes works on. Click Add, then click Advanced, then click Find Now.
    6) At the bottom should appear a list of users. Select a user on which itunes doesn't work. Click Ok, then click OK again.
    7) Give that user full access to the Program File by putting a check mark in the Full Access box.
    8) Repeat for the remaining users.
    9) Restart computer in normal mode.
    10) Go into a user that had problems and click the itunes icon, and it should run.
    It worked for me, I hope it works for you.

  • Jsf 1s phase of life cycle how knows ths components of the jsp with jsf tag

    i wish to know how faces servlet knows the jsp s view components while creaTI NG component tree at first request to input jsp which may have jsf tags.in the first phase faces servlet doesnot know input jsp with jsf tags what componnets it has. it is actually atthe response send or forward time which is the final phase when the tag ge executed and output is sent to client.i did understandin jsf life cycle in 1 st phase component tree is created at first request in 1 st phase .

    Hi,
    though a FacesContext holds the values used by a request, it doesn't mean it lives for as long as the request. The best explanation I found is from the JavaDocs
    release
    public abstract void release()
    +Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown.+
    The implementation must call setCurrentInstance(javax.faces.context.FacesContext) passing null to remove the association between this thread and this dead FacesContext instance.
    Throws:
    java.lang.IllegalStateException - if this method is called after this instance has been released
    Frank

  • Custom Tag Error with Weblogic SP9

              Hi
              I seem to be having a problem with a custom tag that I wrote. When I run the JSP
              on WLS (without a service pack), the generated java code uses the weblogic.utils.StringUtils
              class to interprete jsp expressions that are passed into the custom tag's attribute
              (on the JSP). The method called on this StringUtils class is valueOf(). This method
              in essence makes sure that the result of the expression is not null and then subsequently
              calls a toString() on the value. Note that if the value is null it simply returns
              an empty string.
              The problem is that when we go to service pack 9, this method is not called (StringUtils.valueOf()).
              Now the problem arises if first of all the result of the expression statement
              in the custom tag definintion (on the JSP) is null. Secondly, it will also error
              out when the setter method is called within the custom tag, if the object returned
              from the expression does not match the one that is expected by the tag... in our
              case a String.
              Here's a sample usage of the tag:
              <wescombop:selectTag
              selectName="buildingNumber"
              selectedItem="<%= buildingJB.getBuildingNumber()%>"
              trimSelectedItem="true"
              selectTagDataName="buildingNumberDataAttribute" />
              Note: buildingJB.getBuildingNumber() returns BigDecimal
              Here's a snipett of the line generated java:
              * Without the service pack
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(weblogic.utils.StringUtils.valueOf(buildingJB.getBuildingNumber()));
              *With Service Pack 9
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(buildingJB.getBuildingNumber());
              Note: The setSelectedItem() method expects a String object as a parameter, so
              the code with service pack 9 will result in a compilation error, since buildingJB.getBuildingNumber()
              returns a BigDecimal.
              Let me know if you need more explanation.
              Has anyone experience this problem before... Any help would be deeply appreciated.
              Thanks all.
              Niran
              

              Modify the <cewolf:param> tag.
              <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time"> <cewolf:data>
              <cewolf:producer id="report"> <cewolf:param name="type" value="all" > </cewolf:param>
              </cewolf:producer> </cewolf:data> </cewolf:chart>
              "Balakrishnan" <[email protected]> wrote:
              >
              >We are using cewolf charting library in weblogic 7.0. The charting library
              >is implemented
              >as custom jsp tag library module.
              >
              >However, when the use the tag for displaying the chart, weblogic is producing
              >this compiler error.
              >
              >/reports/reportsView.jsp(108): no corresponding open tag for tag extension
              >close:
              >//[ null; Line: 108]
              >
              >Here's the corresponding source of the jsp file:
              >
              > <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time">
              > <cewolf:data>
              > <cewolf:producer id="report">
              > <cewolf:param name="type" value="all" /> (<-- Error occurs
              >here.
              >Line no: 108)
              > </cewolf:producer>
              > </cewolf:data>
              > </cewolf:chart>
              >
              >I've also checked the corresponding tld file and it is in place.
              >
              >The same code without any modifications is working fine in tomcat. Can
              >you please
              >let me know what needs to be corrected to make this work?
              

  • JSPs using Custom Tag with Boolean attribute cannot compile

    Hi,
    In Oracle9iAS(9.0.3), a jsp using a tag extension, which has a Boolean attribute, caused the following compile error, although the jsp is valid in other web containers.
    ERROR:
    /opt/oracle/j2ee/home/application-deployments/simple/simple/persistence/_pages/_test.java:56: Method toBoolean(java.lang.Boolean) not found in class _test.
    __jsp_taghandler_1.setExists( OracleJspRuntime.toBooleanObject( toBoolean( b)));
    JSP:
    <%@ page language="java" %>
    <%@ page errorPage="error.jsp" %>
    <%@ taglib prefix="jnpr" uri="/WEB-INF/testtag.tld" %>
    <%
    Boolean b = Boolean.valueOf("true");
    %>
    <jnpr:TestTag exists="<%= b%>"/>
    The boolean value is <%= b %>
    Tag Handler:
    package defaultpak;
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.jsp.*;
    public class TestTag extends TagSupport{
    private Boolean exists = null;
    private java.lang.Boolean getExists() {
    return exists;
    public void setExists(java.lang.Boolean newExists) {
    exists = newExists;
    public int doStartTag() throws JspException {
    return super.doStartTag();
    Is this a known problem? Is there a way to get around this?
    Thanks in advance.
    Fred

    This is a known issue with 903, fixed in coming 904.
    In 903 the workaround is to use primitive type "boolean" instead of Object type "java.lang.Boolean" in user's getter and setter code for the taglib.
    -Prasad

  • Build-time errors with custom tags in wkshop sp3

    We have custom tags which create tag variables declared in the .tld file as follows:
    <tag>
    <name>contentsIterator</name>
    <tag-class>org.cap.documentaccess.taglibs.ContentsIteratorTag</tag-class>     <tei-class>org.cap.documentaccess.taglibs.ContentsIteratorTEI</tei-class>
    <body-content>JSP</body-content>
    <display-name>Contents Iterator</display-name>
    <description>
    </description>
    <variable>          <name-from-attribute>id</name-from-attribute>          <variable-class>org.cap.documentaccess.Content</variable-class>
    <declare>true</declare>
    <scope>NESTED</scope>
    </variable>
    <attribute>
    <name>id</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <description>
    </description>
    </attribute>
    The calling jsp contains the following:
    <cap:contentsIterator id="content">
    The app built fine in wkshop(sp2) but in sp3 we get the following:
    A name-from-attribute variable cannot reference a tag attribute that is request time or is not required.
    Has the sp3 compiler become less forgiving or was this an oversight in sp2?

    if u are using weblogic workshop for ur application import c.tld into WEB-INF
    and just import standard.jar, jstl.jar to WEB-INF/lib.
    if u are using other than weblogic work shop like tomcat
    1.just copy c.tld to WEB-INF.
    2.create a 'lib' directoty inside WEB-INF copy standard.jar,jstl.jar files to that lib directory.
    i think it should work.

  • Exception Handling with Custom Tags/Exceptions

    Hello all --
              I'm looking for some guidance in handling Custom errors in my app. I can't
              seem to find the message string of my custom exception when trying to call
              my JSP Error page. I'm consistently getting:
              javax.servlet.jsp.JspTagException: runtime failure in custom tag
              'CalendarHandler' .
              I am using custom JSP tag libraries to process logic on my EJBs. When I
              reach an error in business logic I raise a custom exception and propogate
              this back up to doStartTag:
              public int doStartTag() throws JspException {
              CalendarProcessor cp = new CalendarProcessor();
              try {
              String eventAction = getEventID();
              // pageContext contains information for the JSP;
              // Initialize the page with the current context and session
              cp.init(pageContext.getServletContext(), pageContext.getSession());
              HttpServletRequest req = (HttpServletRequest)pageContext.getRequest();
              cp.processRequest(req, eventAction );
              } catch (CalendarException ce) {
              throw new JspException(ce.getMessage());
              return SKIP_BODY;
              Then, in my JSP, I am enclosing the TagHandler in a try...catch block; I
              can't catch CalendarException because it is Throwable and conflicts with
              JspException.
              <% try { %>
              <gtc:CalendarHandler eventID="updatecal"/>
              <% } catch (Exception e) {
              throw e instanceof JspException ? (JspException) e : new
              JspTagException(e.getMessage());
              %>
              many thanks in advance!
              s.
              

    I could not tell what the problem was that you were describing. Could you
              clarify?
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Shari" <[email protected]> wrote in message
              news:[email protected]...
              > Hello all --
              >
              > I'm looking for some guidance in handling Custom errors in my app. I can't
              > seem to find the message string of my custom exception when trying to call
              > my JSP Error page. I'm consistently getting:
              > javax.servlet.jsp.JspTagException: runtime failure in custom tag
              > 'CalendarHandler' .
              >
              > I am using custom JSP tag libraries to process logic on my EJBs. When I
              > reach an error in business logic I raise a custom exception and propogate
              > this back up to doStartTag:
              >
              > public int doStartTag() throws JspException {
              >
              > CalendarProcessor cp = new CalendarProcessor();
              >
              > try {
              >
              > String eventAction = getEventID();
              >
              > // pageContext contains information for the JSP;
              >
              > // Initialize the page with the current context and session
              >
              > cp.init(pageContext.getServletContext(), pageContext.getSession());
              >
              > HttpServletRequest req = (HttpServletRequest)pageContext.getRequest();
              >
              > cp.processRequest(req, eventAction );
              >
              > } catch (CalendarException ce) {
              >
              > throw new JspException(ce.getMessage());
              >
              > }
              >
              > return SKIP_BODY;
              >
              > }
              >
              > Then, in my JSP, I am enclosing the TagHandler in a try...catch block; I
              > can't catch CalendarException because it is Throwable and conflicts with
              > JspException.
              >
              > <% try { %>
              >
              > <gtc:CalendarHandler eventID="updatecal"/>
              >
              > <% } catch (Exception e) {
              >
              > throw e instanceof JspException ? (JspException) e : new
              > JspTagException(e.getMessage());
              >
              > }
              >
              > %>
              >
              > many thanks in advance!
              >
              > s.
              >
              >
              >
              >
              >
              >
              >
              

  • Problem with custom tag

    I have written a custom tag that I am having problems with. It works on some machines, but not on others. I have a page that uses many 'standard' tags. I have correctly set the URI etc, because all of my other tags work. However, on some machines, my custom tag gives me an error:
    attribute does not support request time values
    I'm assuming that I have the correct versions of standard.jar etc because all of the regular jstl 1.1 tags work. It is just my custom tag that throws an error.
    here is the .tld for my tag:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.1.2</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>My custom tag</short-name>
         <uri>http://my.custom/tags</uri>
         <tag>
              <name>breadcrumb</name>
              <tag-class>tag.BreadcrumbTag</tag-class>
              <body-content>JSP</body-content>
              <attribute>
                   <name>breadcrumbs</name>
                   <required>true</required>
                   <rtexprvalue>false</rtexprvalue>
                   <description>Pass in the list of Breadcrumbs containing the actual information
    about what tags need to be rendered on the page.</description>
              </attribute>
         </tag>
    </taglib>
    Any thoughts/help greatly appreciated...

    I encountered the same problem in our environment. I did the same thing as
              James. Simply re-initialize all variables in the do end tag.
              Also, with the nested tags you use you may also need to implement cloneable
              in the inner tag if the outer tag keeps references to all the inner tag
              instances.
              For instance if the outer tag kept a vector of references to the inner tag,
              then you would need to use clone() on the inner tag before adding it to the
              vector.
              "James Lynn" <[email protected]> wrote in message
              news:3af05d29$[email protected]..
              > > But
              > > with WL 6.0, the cell tag handler reuse the same instance each time the
              > cell tag
              > > is called and the member field is not reset
              >
              > I had the same problem. As a work around, I reinitialize everything in my
              > doEndTag() method and it works.
              >
              >
              > --
              > James Lynn - Lead Software Architect
              > Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
              >
              >
              

  • Problem with custom tag attribute types

    Hi,
    I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
    In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
    My tag looks like this:
    <tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
    I always get the message that the attribute ce is empty.
    Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
    Thanks a lot!
    Regards Patrick

    In JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
    <attribute>
       <name>attr1</name>
       <required>true|false|yes|no</required>
       <rtexprvalue>true|false|yes|no</rtexprvalue>
       <type>fully-qualified_type</type>
    </attribute> Notice the XML element <type>fully-qualified_type</type>
    Not sure if you can do this in JSP 1.1

  • Creating drop down menus in JSP using custom tags

    Hi, i am working on a JSP which has custom tags for displaying menubar and menus, now i want to have these menus converted into drop down menus, and the submenus displayed onmouseover event. I am getting solutions with pure html page calling javascript functions.But i dont need this, i want the work done by my TagHandler class which sends the output to output stream, which in turn is transformed in to actual HTML by a XSLT embedded in my JSP.
    Please help as i am new to custom tags, and desperately in need of help.
    If possible give some sample code or useful links.
    I will be highly grateful.
    Thankx in advance

    that's fine, but the tag has to, ultimately, generate the HTML/Javascript stuff like you've already seen.

  • JSP in custom tag attributes...

    Sirs,
              A very nice feature from a development perspective, would be the ability
              to use JSP code within custom tags. Say I have a page on which I wish
              to give all the information on a widget. Say further that I have
              implemented a tag that writes out all the info of a widget as HTML
              table. I would like to write something like this:
              <mytaglib:widgetTag widgetID="<%=request.getParameter("widget_id")%>"
              />
              As far as I know, in the current implementation of custom taglibs this
              does not seem to be possible. Instead you end up writing something like
              this:
              <mytaglib:widgetTag>
              <mytaglib:getWidget><%=request.getParameter("widget_id")%>"</mytaglib:getWidget>
              <mytaglib:displayWidget />
              </mytaglib:widgetTag>
              Which is much more like a scripting language than a heirarchical XML .
              Now, I could always just use the request object within the tag helper
              classes, but this gives up flexibility and can introduce security
              issues, and it also makes the tags much more difficult to work with...
              In short, we should push for JSP evaluation of tag attributes. Weblogic
              could leap ahead of other app servers in this area (making up for the
              custom tag performance issues, to be solve in sp6) and Sun would, once
              again, follow Weblogic's lead and rewrite the standard to include this
              functionality.
              Regards,
              Carson Gross
              

    Carson,
              Perhaps the problem is that you are treating custom tags like one would
              construct an imperative language. I have never had to put Java or use beans
              or %= or even parameters to tags into a JSP because of custom tags.
              The real problem is writing/packaging/maintaining all those tags; sure could
              use a tool that did just that ;-)
              Peace,
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Carson Gross" <[email protected]> wrote in message
              news:[email protected]...
              > Sirs,
              >
              > A very nice feature from a development perspective, would be the ability
              > to use JSP code within custom tags. Say I have a page on which I wish
              > to give all the information on a widget. Say further that I have
              > implemented a tag that writes out all the info of a widget as HTML
              > table. I would like to write something like this:
              >
              > <mytaglib:widgetTag widgetID="<%=request.getParameter("widget_id")%>"
              > />
              >
              > As far as I know, in the current implementation of custom taglibs this
              > does not seem to be possible. Instead you end up writing something like
              > this:
              >
              > <mytaglib:widgetTag>
              >
              >
              <mytaglib:getWidget><%=request.getParameter("widget_id")%>"</mytaglib:getWid
              get>
              >
              > <mytaglib:displayWidget />
              > </mytaglib:widgetTag>
              >
              > Which is much more like a scripting language than a heirarchical XML .
              > Now, I could always just use the request object within the tag helper
              > classes, but this gives up flexibility and can introduce security
              > issues, and it also makes the tags much more difficult to work with...
              >
              > In short, we should push for JSP evaluation of tag attributes. Weblogic
              > could leap ahead of other app servers in this area (making up for the
              > custom tag performance issues, to be solve in sp6) and Sun would, once
              > again, follow Weblogic's lead and rewrite the standard to include this
              > functionality.
              >
              > Regards,
              > Carson Gross
              >
              

  • Custom tag error

    I'm tring to create a new JSF custom tag. my custom tag inherits from another custom tag called tab.
    the tld look like this :
    <taglib>
    <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
    <short-name>actab</short-name>
    <uri>http://jsftutorials.com/</uri>
    <tag>
    <name>actab</name>
    <tag-class>com.ca.accesscontrol.tabs.monolithic.ACTabTag</tag-class>
    <body-content>JSP</body-content>
    <attribute>
              <name>include</name>
         </attribute>
    <attribute>
         <name>name</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
         <description>Tab name to be displayed on this tab.</description>
         </attribute>
    <attribute>
              <name>id</name>
         </attribute>     
    </tag>
    </taglib>
    I'm tring to use the custom tag in the jsp, when I specify the attrbute name I get the following error:
    monolithic.jsp(14,13) Attribute name invalid according to the specified TLD
    when I remove the name attribute from the jsp I get the following error :
    monolithic.jsp(13,10) According to the TLD attribute name is mandatory for tag actab.
    does anyone have an idea about what the problem is ?

    a bit more info required I think.
    Is there more to that exception than you posted - coming from your code?
    Maybe you can put try/catch code in your Tag source file to catch and print any exceptions that occur.
    Beans property conversion would indicate that it has translating one type to another.
    What attributes does this tag take. Should width be an integer - and 96% causes it an error?
    Lets see the tld file, and maybe some basic source?

  • Problems with custom tags (Tomcat 4.1)

    I have been trying to set up an existing web application to use a custom tag library. I have these tag-related files:
    /photodb/WEB-INF/photodb.tld
    /photodb/WEB-INF/classes/PhotoListTag.class
    /photodb/photolist.jsp
    This is how i have the photoList tag configured in photodb.tld
    <tag>
    <name>photoList</name>
    <tag-class>PhotoListTag</tag-class>
    <body-content>JSP</body-content>
    <attribute>
    <name>startIndex</name>
    </attribute>
    </tag>
    When i try to view photolist.jsp, i get this error:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
    symbol : class PhotoListTag
    location: class org.apache.jsp.photolist_jsp
    PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
    symbol : class PhotoListTag
    location: class org.apache.jsp.photolist_jsp
    PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
    symbol : class PhotoListTag
    location: class org.apache.jsp.photolist_jsp
    PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
    ^
    3 errors
    I have tried many ideas, such as packaging the tag handler class, and putting the class file in other loctions, but nothing has helped.
    I know that Tomcat is recognizing PhotoListTag at some point (when it parses the TLD file, but not when compiling the JSP, I think), because if i change the <tag-class> to an invalid class, i get an "Unable to load class photoList" (which is a confusing error message btw, as photoList is not a class, but a tag name).
    Does anyone know how to fix this problem? I've been going in circles for hours, and i'm thinking this problem has a simple solution.

    Thank you for your quick replies. Unfortunately, they do not solve my problem. If I put PhotoListTag in the com.yourdomain package (and move it to classes/com/yourdomain), the error changes to reflect the different package (e.g. package com.yourdomain does not exist). Also, deleting the class files and restarting Tomcat did not cause any changes.
    Although my knowledge of how Tomcat works is limited, it seems to me that something like this is happening:
    When a request for /photodb/photolist.jsp is recieved, tomcat processes that file, processes the tld file, and checks for that any classes called using a tag--in this case <photodb:photoList>--exist. If the class is invalid, the error message "Unable to load class photoList" is given.
    Otherwise, it translates the jsp into java, and attempts to compile it. This is where the problem occurs. It seems that the jasper compiler does not know where to look for the PhotoListTag class. Is there a way that this can be changed, or is could the problem be caused by something else?

Maybe you are looking for

  • Windows 7 Pro Client loses connectivity to internal Win2k8 web server

    1. affected workstation are Optiplex 380 running Win 7 pro sp1 with broadcom NICs. 2. Internal users use a internal webserver for customer invoicing application. Users lose connectivity to this internal web server, all other networking works, network

  • Early '08 iMac with a GeForce 8800 GS graphics card.

    I have an early '08 iMac with a GeForce 8800 GS graphics card. Can I update my card with a newer, better updated one? Would like to play Battlefield 3 and others. If so, can I replace it myself or should Apple do it after I buy it from OWC.

  • Acrobat keep asking for user password

    Hi, I'm on Mac OS X SL 10.6.7. Every time I open Adobe Acrobat Pro 9, Mac OS X ask for my User Password. So, I enter my password and the Acrobat open with no problem. The same happens when opening a PDF file, it ask for my OS X user password in order

  • Atg.service.email.EmailException: javax.mail.MessagingException:

    All, while sending email via web production application getting the following exception and it is intermittent as well, any quick pointers in cause/fix, please.. ERROR [nucleusNamespace.atg.dynamo.service.EmailFormHandler] Failed to send meail messag

  • Infocube Attribute, How is the efects in reports?

    Hi Friends, I have a doubt about include a navigational attribute in an infocube.. - If I include this in a report, could I filter by this char? - IAbout reports: an IC characteristic, will have the same behaivour than a IC attribute ? Thanks!