Custom Tag Library - error in IWS

My environment: Solaris 2.7, IWS4.1 SP3.
I currently try to run the Custom Tag Library example from IWS itself in
server_root/plugins/samples/servlets/taglibs. I follow the instructions to
config the IWS but fail to run the example. I turn on JSP debugging and
find the following error messages:
[12/Oct/2000:13:03:10] info (28609): Service(): uri=/jsps/test-tags.jsp
cgiScriptName=/jsps/test-tags.jsp token=null cached=false
[12/Oct/2000:13:03:10] info (28609): Internal Info: loading servlet
/jsps/test-tags.jsp
[12/Oct/2000:13:03:10] info (28609): JSP: This is a jsp 1.x file
[12/Oct/2000:13:03:10] info (28609): JSP: Before JSP1x compiler.compile,
servletName = /jsps/test-tags.jsp servletPath =
/u01/devin/docs/jsps/test-tags.jsp & dir = ../ClassCache
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Package name is:
jsps.jsps
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Class name is:
test0002dtags_jsp
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Java file name is:
/opt/netscape/server4/https-devin/config/../ClassCache/_jsps/_jsps/_test_000
2dtags_jsp.java
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Class file name is:
/opt/netscape/server4/https-devin/config/../ClassCache/_jsps/_jsps/_test_000
2dtags_jsp.class
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace:
Handling Directive: page {language=java}
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Accepted
org.apache.jasper.compiler.Parser$Directive at /jsps/test-tags.jsp(0,0)
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace:
Handling Directive: taglib {uri=/jsps/test-tags.jar, prefix=tt}
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Copying
/jsps/test-tags.jar into
/opt/netscape/server4/https-devin/config/../ClassCache//jsps/test-tags.jar
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Adding jar
/opt/netscape/server4/https-devin/config/../ClassCache//jsps/test-tags.jar
to my classpath
[12/Oct/2000:13:03:10] info (28609): Aborting JVM
[12/Oct/2000:13:03:10] info (28609): Exiting JVM due to: jvm_abort () and
jvm.exitOnAbort > 0
[12/Oct/2000:13:03:10] info (28609): JVM exit statistics:
AttachedThreads/Max=1/1, ActiveThreads/Max=1/1
[12/Oct/2000:13:03:11] info (28716): Initializing MMapSession Manager to
hold a maximum of (1000) sessions, each of which can store a maximum of
(100) values and no value size bigger than (1024) bytes, with a timeout
value of (1800) seconds
IWS keeps aborting JVM and one can see from the log that it abort jvm when
trying to :
[12/Oct/2000:13:03:10] info (28609): JSP1x Jasper Trace: Adding jar
/opt/netscape/server4/https-devin/config/../ClassCache//jsps/test-tags.jar
to my classpath
[12/Oct/2000:13:03:10] info (28609): Aborting JVM
I have tried another much simple Custome Tag Library example that only contain a simple tag that do output to page, but still getting the same error.

I had the same issue with WAS 6.1.0.2. I do not have a solution, but a workaround. I hope the workaround I have works for you too.
In my case, I have the TLD files deployed in a jar. So, the JSP 2.0 container is supposed to read those TLD files from the jar file. Since that was not happening, I extracted the TLD file from the jar file and placed it under my web project's WEB-INF folder.
I restarted my server and after that it worked.
Look at the IBM site to see if they have come up with a patch for WAS 6.0.
Hope this helps.
-Javier

Similar Messages

  • 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

  • Problem in using jsp 1.1 custom tag library in websphere

    I am using was 3.5.2. Everything has been installed properly. I am using jdeveloper 3.2 for building the jsp application using custom tag library. But when I run the jsp file in browser, its gives dr. watson on java.exe. I am using websphere 3.5.2 application server.
    Have any body got this type of prob. ...
    pls respond asap.
    Thanks in Advance
    Yogesh

    Let me explain the problem again
    I am using was(websphere) 3.5.2. Everything has been installed properly. I am using jdeveloper 3.2 for building the jsp application using custom tag library.
    Application works fine in JDeveloper 3.2.
    Application works fine even when deployed on JRun 3.0. ( we are evaluating various web servers).
    How when deployed on WAS and I run the jsp file in browser, its gives dr. watson on java.exe. I am using websphere 3.5.2 application server.
    WAS has typical settings as against JRun and Tomcat and may be I have not set the necessary paths.
    Have any body got this type of prob. ...
    pls respond asap.
    Thanks in Advance
    Yogesh
    null

  • Custom tag library called multiple times

    Hi ppl ,
    I have a custom tag library which i use to populate some menu components. When i do call my custom tag library though , it is called multiple times, use case is as follows.
    I have menu tabs and menu bars which thanks to Mr.Brenden is working splendidly as so:-
    <af:menuTabs>
    <af:forEach var="menuTab" items="#{bindings.menu.vwUserMenuTabRenderer.rangeSet}">
    <af:commandMenuItem text="#{menuTab.MenuLabel}"
    shortDesc="#{menuTab.MenuHint}"
    rendered="true"
    immediate="true"
    selected="#{sessionScope.selectedMenuId == menuTab.MenuId }"
    onclick="fnSetSelectedValue('#{menuTab.MenuId}')" >
    </af:commandMenuItem>
    </af:forEach>
    </af:menuTabs>
    <af:menuBar>
    <af:forEach var="menuBar" items="#{bindings.menu.vwUserMenuBarRenderer.rangeSet}">
    <af:commandMenuItem onclick="return clickreturnvalue()"
    onmouseover="dropdownmenu(this, event,#{menuBar.MenuId}, '150px')"
    onmouseout="delayhidemenu()"
    text="#{menuBar.MenuLabel}"
    action="#{menuBar.MenuUri}"
    rendered="#{menuBar.ParentId == sessionScope.selectedMenuId}"
    immediate="true" />
    </af:forEach>
    </af:menuBar>
    </afc:cache>
    now all of this code is within a subview , and just directly below the subview tag , i have the call to my custom tag library:-
    <myCustomTagLib:menuCascade />
    only issue now is that assuming i have in all 7 menu bar components, the doStartTag is called 7 times. the relevant code within my custom tag class is as follows :-
    public int doStartTag() throws JspException {
    return (EVAL_BODY_INCLUDE);
    public int doEndTag() throws JspException {
    try {
    declareVariables();
    return EVAL_PAGE;
    }catch (Exception ioe) {
    throw new JspException(ioe.getMessage());
    and within my declareVariables method i do an out of the jscript ( out.print(jscript.toString()); ) which is a simple string generated based on certain conditions...
    now it seems to be working fine on the front end , but when i view the source of the page, i notice that the declaration is called multiple times, and this happens because the doStartTag method is called multiple times, i haven't even nested the call to the custom tag within the menu components , any clue as to whats going wrong ?
    Cheers
    K

    Hi,
    if you add the following print statement
    System.out.println("rendering "+FacesContext.getCurrentInstance().getViewRoot().getViewId());
    Then the output in my case is
    07/04/24 08:14:04 rendering /BrowsePage.jsp
    07/04/24 08:14:05 rendering /otn_logo_small.gif
    The image comes from the file system, which means it is rendered by the JSF lifecycle. If you reference the image with a URL then the lifecycle doesn't render the image but only refrences it.
    To avoid your prepare render code to be executed multiple times, just check for jsp and jspx file extensions, which will guarantee that your code only executes for JSF pages, not for loaded files.
    The reason why this happens is because the JSF filter is set to /faces , which means all files that are loaded through that path
    Frank

  • Simultaneous Client and Server Form Validation using Custom Tag Library

    I am developing a custom tag library for validator tags
    which are capable of doing client side validation (Javascript)
    and server side (Java). My problem is with the development
    of a regular expression based validator. Because of differences
    in the way Javascript and Java handle regular expressions
    i can not use the same regular expression for both types of
    validation. Is there any way to convert a valid regular
    expression from the java.util.regex format into the Javascript
    format or vice versa? My major problems are with the (or, ||)
    statements and the user of backslashes.

    If you are speaking of RE syntax flavours, they are basically the same(namely perl5 flavour). Any expression that works in JS should work in j.u.regex too.
    Though, their usage is quite different.
    So, there is no need for convertion of expressions.
    But porting the code may be not so trivial.

  • Trying to create custom tag library

    I'm a novice trying to create a simple custom tag library application. As such I need a couple import statements like
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext;
    This statements will not compile. I'm using Java 2 1.4_03 and WSDP 1.3. My CLASSPATH currently holds
    c:\jwsdp\common\lib\servlet-api.jar
    and
    c:\j2sdk\lib\mysql-connector-java-3.0.11-stable-bin.jar.
    I've got JAVA_HOME set to c:\j2sdk and JWSDP_HOME set to c:\jwsdp.
    Thank you very much for any assistance you are able to render.

    Thanks for your reply. I'm using the TextPad editor, which uses CLASSPATH.
    I've figured out the answer. I needed to add
    c:\jwsdp\common\lib\jsp-api.jar
    to my CLASSPATH.
    Again, thanks.

  • Error using custom tag library

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

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

  • Tag Library Error

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

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

  • Custom tag 'process'  error

    << runtime failure in custom tag 'process' >>>
    Trying to create a simple portlet but it keeps giving the following stack
    trace.
    Any clues ?
    TIA
    javax.servlet.ServletException: runtime failure in custom tag 'process'
    at
    jsp._portals._repository.__user_add_portlets._jspService(__user_add_portlets
    .java:871)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestinat
    ion(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:907)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:851)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

    There are a number possible reasons for the error "runtime failure in custom tag
    'process'" for WLCS 3.11 and 3.2. You might check the following:
    1) Make sure that WebLogic Server 5.10 SP6 is installed correctly and that
    weblogic510sp6.jar and weblogic510sp6boot.jar are at the fronts of
    weblogic_classpath and java_classpath, respectively.
    2) Check to see if weblogic-tags-510.jar from WebLogic Server 5.10 SP6 is copied
    to %weblogic_home%\lib\weblogic-tags-510.jar.
    3) The WLPS database is corrupted for reason or another. Rerun the appropriate
    database script at \weblogiccommerce\db\cloudscape\create-all-cloudscape.bat or
    \weblogiccommerce\db\oracle\create-all-oracle.sql.
    Ted
    aamerG wrote:
    << runtime failure in custom tag 'process' >>>
    Trying to create a simple portlet but it keeps giving the following stack
    trace.
    Any clues ?
    TIA
    javax.servlet.ServletException: runtime failure in custom tag 'process'
    at
    jsp._portals._repository.__user_add_portlets._jspService(__user_add_portlets
    .java:871)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestinat
    ion(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :106)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:907)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:851)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

  • Commerce server 3.2 tag library error

    I have installed the following components on Solaris 2.7:-
    - Java1.3
    - WebLogic5.1
    - SP6
    - Commerce Server 3.2
    The commerce server seems to start fine except the following exception
    when the Create User button is clicked from the Admin screen. Any help
    is appreciated.
    Leo
    6th Dimension-
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools> *.jsp:
    init
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools>
    FlowManager: init
    Tue Jan 02 11:14:26 PST 2001:<E> <WebAppServletContext-tools> Servlet
    failed with Exception
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
    'wl': For tag 'repeat', cannot load extra info class
    'weblogicx.jsp.tags.RepeatTagInfo'
    at
    weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
    at
    weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:201)
    at
    weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
    at
    weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
    at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
    at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
    at
    weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:141)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    Tue Jan 02 11:14:26 PST 2001:<I> <ServletContext-General> servletimages:
    init

    To be more specific, I put the jar file in the $WEBLOGIC_HOME/lib directory.
    -Brad.
    "Brad Christiansen" <[email protected]> wrote:
    >
    I was getting the same exception until I put the weblogic-510-tags.jar file (found in the SP6 zip file) in a directory referenced by the WEBLOGIC_CLASSPATH environment variable.
    -Brad.
    Leo Fu <[email protected]> wrote:
    I have installed the following components on Solaris 2.7:-
    - Java1.3
    - WebLogic5.1
    - SP6
    - Commerce Server 3.2
    The commerce server seems to start fine except the following exception
    when the Create User button is clicked from the Admin screen. Any help
    is appreciated.
    Leo
    6th Dimension-
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools> *.jsp:
    init
    Tue Jan 02 11:14:15 PST 2001:<I> <WebAppServletContext-tools>
    FlowManager: init
    Tue Jan 02 11:14:26 PST 2001:<E> <WebAppServletContext-tools> Servlet
    failed with Exception
    weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
    'wl': For tag 'repeat', cannot load extra info class
    'weblogicx.jsp.tags.RepeatTagInfo'
    at
    weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
    at
    weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:201)
    at
    weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
    at
    weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
    at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3739)
    at
    weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
    at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
    at
    weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:141)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:154)
    at
    com.beasys.commerce.foundation.flow.ServletDestinationHandler.handleDestination(ServletDestinationHandler.java:51)
    at
    com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:448)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    Tue Jan 02 11:14:26 PST 2001:<I> <ServletContext-General> servletimages:
    init

  • Custom tag: Compilation error

    I created a simple class for a simple custom tag. Whenever, I tried to compile, I got this error message:
    package javax.servlet.jsp.tagext does not exist
    Here's what I did:
    javac -classpath c:\jakarta-tomcat-5.5.9\common\lib\servlet-api.jar com\app\mytags\errorTag.java
    I'm using J2SE 5.0 SDK and Tomcat 5.5.9. In addition, I also included the servlet-api.jar in classpath.
    Thanks so much,
    Raja

    Here's what I did:
    javac -classpath
    c:\jakarta-tomcat-5.5.9\common\lib\servlet-api.jar
    com\app\mytags\errorTag.javaUnless you have put com/app/mytags/errorTag.java into that jar file, that isn't what you did. If you did, the compiler would complain that it couldn't find errorTag.java. Because you don't have a classpath entry where it might be.

  • Custom tag library problem

    I created a workspace with two projects in it.
    In the first project I realized a tag library with its deployment descriptor.
    In the second project I realized a .war component with a jsp that uses the tag in the library.
    In the .war deployment descriptor I choosed the library deployment descriptor in the Profile Dependencies page.
    When I deploy my .war (alone or in an .ear) file I properly find the library .jar file in it but in this .jar file there isn't any .class file.
    Where are my tag handlers? If I deploy the tag library alone the .class files are there so I can replace the library .jar file created in the .ear and all works properly.
    I tried creating a third project that include the .war in its .ear, but I cannot include my tag library .jar because it's not listed in the Application Assembly page.
    Thank you
    Andrea Mattioli

    I found the bug! Its in greeting.jsp ...
    Instead of
    <tw:greeting />
    I typed....
    <tw.greeting />
    which resulted in the the custom tag not being called! That was the source of my problem.
    Thanks,
    Joe!

  • Jsp/custom tag compiler error (HttpServletResponse)

    I originally posted with on Oracle's site but I am not getting any help.
    Our server is running Oracle 9ias with JServ and Apache.
    I have created a simple jsp that calls a custom tag but I am getting the following error:
    Method addHeader(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpServletResponse.
    response.addHeader("Pragma", "No-cache");
    ^
    Is something not setup correctly or installed where it should be?
    the code for the custom tag is from the O'reilly book "JavaServer Pages." This works with JDeveloper on my computer but not on our server.
    package info.wyoroad.jsp.tags.generic;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    * This class is a custom action for setting response headers
    * that prevent the page from being cached by a browser or
    * proxy server.
    * @author Hans Bergsten, Gefion software <[email protected]>
    * @version 1.0
    public class NoCacheTag extends TagSupport {
    * Sets "no cache" response headers
    public int doEndTag() throws JspException {
    HttpServletResponse response =
    (HttpServletResponse) pageContext.getResponse();
    response.addHeader("Pragma", "No-cache");
    response.addHeader("Cache-Control", "no-cache");
    response.addDateHeader("Expires", 1);
    return EVAL_PAGE;
    }

    The jsp looks like:
    <%@ page language="java" contentType="text/html;charset=WINDOWS-1252"%>
    <%@ taglib uri="/WEB-INF/wylib.tld" prefix="info" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <info:NoCache />
    <TITLE>
    Test tag
    </TITLE>
    </HEAD>
    <BODY>
    <H2>Test the tag NoCache</h2> </P>
    </BODY>
    </HTML>

  • Custom Tag - Strange Error!!!

    Hi All,
    I've a custom tag.. and inside that I simply wrote up one
    select query and following that I put one condition like this,
    <cfif #qryCustomerSelect.cust_category# neq 5>
    //Statements..
    </cfif>
    And I am getting one strange error stating
    "qryCustomerSelec.cust_categoryt" is undefined... I tried dumping
    the query and it worked well..
    What I am doing wrong here?...
    Any help is greatly appreciated...
    Thanks

    take away the octothorps and specify a row number.

  • Problem using custom tag library in portlet's jsp

    Hi,
    I created a custom portlet (a JSR 168 portlet) and I'm using a tag library that I previously developed. Normally it works fine, but sometimes I get a ClassCastException. Once I redeploy the portlet everything works again. This is Oracle Portal 10.1.4.
    Has anybody encountered similar problems?
    Here's the exception:
    taglib exception:
    java.lang.ClassCastException at timecardreminderportlet.html._view._jspService(_view.java:201) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121) at oracle.webdb.wsrp.server.RequestDispatcherImpl.include(Unknown Source) at org.mitre.isis.trs.reminder.portlet.TimecardReminderPortlet.doDispatch(TimecardReminderPortlet.java:108) at javax.portlet.GenericPortlet.render(Unknown Source) at oracle.webdb.wsrp.server.Server.getMarkup(Unknown Source) at oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.invoke_getMarkup(WSRP_v1_Markup_PortType_Tie.java:224) at oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.processingHook(WSRP_v1_Markup_PortType_Tie.java:499) at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:230) at com.sun.xml.rpc.server.http.ea.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:153) at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:69) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.webdb.wsrp.server.ContextFilter.doFilter(Unknown Source) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)

    Hi,
    I created a custom portlet (a JSR 168 portlet) and I'm using a tag library that I previously developed. Normally it works fine, but sometimes I get a ClassCastException. Once I redeploy the portlet everything works again. This is Oracle Portal 10.1.4.
    Has anybody encountered similar problems?
    Here's the exception:
    taglib exception:
    java.lang.ClassCastException at timecardreminderportlet.html._view._jspService(_view.java:201) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121) at oracle.webdb.wsrp.server.RequestDispatcherImpl.include(Unknown Source) at org.mitre.isis.trs.reminder.portlet.TimecardReminderPortlet.doDispatch(TimecardReminderPortlet.java:108) at javax.portlet.GenericPortlet.render(Unknown Source) at oracle.webdb.wsrp.server.Server.getMarkup(Unknown Source) at oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.invoke_getMarkup(WSRP_v1_Markup_PortType_Tie.java:224) at oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.processingHook(WSRP_v1_Markup_PortType_Tie.java:499) at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:230) at com.sun.xml.rpc.server.http.ea.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:153) at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:69) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.webdb.wsrp.server.ContextFilter.doFilter(Unknown Source) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)

Maybe you are looking for

  • How can I save my dvd project as a .mov file?

    I'd like to post an iDVD project on youtube, but first I have to convert it to an .mov file.  How do I go about this?

  • IPhoto not showing videos in Photo Stream

    Does anyone know why I can't see my videos which have transferred from my iPhone to my computer via Photo Stream?

  • Problem connecting iPhone to keyboard

    Hi, I have since a couple of weeks a new iMac. When I want to connect my iPhone with the USB cable to my keyboard, I get the message that there is no bluetooth keyboard and the keyboard shuts down. But I don't have a bluetooth keyboard... This proble

  • For BOM Order

    Hi For BOM we are maintaining the stock in child components. In the header we are maintaining the price and Avaalibilty check as KP We want to ensure all the stock of child components to be picked, once order is punched. (order should punched, only o

  • Compilor shows error (DBMS_OUPUT.PUT_LINE)

    Hi everyone, I have used set serveroutput on; command outside the procedure but the compilor shows error when it reaches across output command. Please anyone can tell me where the problem is DBMS_OUPUT.PUT_LINE(X); DBMS_OUPUT.PUT_LINE('Y=', XY; Cheer