Error in portlet:getException/ tag?

Hi all,
In wlportal4.0, I followed the docs to create the myportal example. I got the
following Null Pointer Exception:
java.lang.NullPointerException:
at com.bea.portal.appflow.servlets.jsp.taglib.GetExceptionTag.doStartTag
(GetExceptionTag.java:70)
at jsp_servlet._portlets._portlet3.__welcome._jspService(__welcome.java:
114)
It seems that the tag <portlet:getException/> is throwing a Null Pointer Exception.
Has any body experienced this, and what did you do to fix it?
Regards,
Darren

Hi Darren,
Sorry for the frustration this caused. The GetExceptionTag was not designed to work
outside of webflow. Here is the code:
WebflowResponse webflowResponse =
portalSession.getContentForPortlet(getPageIdentifier(request),
getPortletIdentifier(request));
Exception exception = webflowResponse.exception();
You got your NullPointerException because webflowResponse was null. Check this out at
http://edocs.bea.com/wlp/docs40/portal/jspref.htm#1023890 :
"The <portlet:getException> tag is used to retrieve the exception or message thrown by
a webflow processor."
I'll make an enhancement request to engineering so that future versions of this tag
will throw a more meaningful error message. It is easy to miss a single line in the
docs and it would be nice if the exception allowed you to self-diagnose the problem.
Darren wrote:
After some research, I managed to work out that I did not specify a webflow for
the portlet within the ECC. (I think the example did not explain this).
However, I don't think that a Null Pointer exception should be thrown by a tag-lib!
Seems like poor BEA coding to me!
"darren" <[email protected]> wrote:
Hi all,
In wlportal4.0, I followed the docs to create the myportal example. I
got the
following Null Pointer Exception:
java.lang.NullPointerException:
at com.bea.portal.appflow.servlets.jsp.taglib.GetExceptionTag.doStartTag
(GetExceptionTag.java:70)
at jsp_servlet._portlets._portlet3.__welcome._jspService(__welcome.java:
114)
It seems that the tag <portlet:getException/> is throwing a Null Pointer
Exception.
Has any body experienced this, and what did you do to fix it?
Regards,
Darren
Ture Hoefner
BEA Systems, Inc.
4001 Discovery Drive
Suite 340
Boulder, CO 80303
www.bea.com
[att1.html]

Similar Messages

  • Error Displaying Portlet Preview created from Content Server templates

    I created portlet from content server announcement portlet template.Whet put on the page this portlet shows the following error message:
    Error Displaying Portlet Preview.Error Getting Content from Portlet.
    Same error with portlet created from the news template.

    If the link exists in TOA01, why is the dosumnet not visible ? When i use the Function Module ARCHIVOBJECT_DISPLAY, i get the error -
    Error when opening document with HTML control:DP_ERROR_GENERAL
    Can someone please let me know what are we doing wrong ??

  • Error while parsing the Tag Library Descriptor

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

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

  • Pls/portal shows: Error: The portlet could not be contacted  after SSL enab

    The OCS /pls/portal page shows: Error: The portlet could not be contacted, I believe this happened after SSL enabling the system. Anyone out there seen this errof before?

    FYI
    This happens if you remove port 80 as a listening port webcache/em, etc. Oracle claims it needs port 80 for internal communication. For whatever reason the /pls/portal providers are registered in non-SSL. Not sure if Oracle will provide a fix or ?

  • Class format error: Invalid constant pool tag found

    I am simply attempting to create an instance of an object and I get Class format error: Invalid constant pool tag found. Does anyone know what this means and how to fix it?
    Thanks.

    If you're compiling with J2SDK 1.4 or higher, you need to use "-target 1.1" on the javac command line.
    Also make sure you're not using any float constants such as 1.0 in your code.

  • Error processing CFX custom tag "CFX_iMSMail".

    Hi
    I am testing a CF application and this is the error I get.,
    when I am trying to 'register for a certain event'.
    Error processing CFX custom tag "CFX_iMSMail".
    'The CFX custom tag "CFX_iMSMail" was not found in the custom
    tag database. Please be sure to add custom tags to the database
    before using them. If you have added your tag to the database then
    you should check the spelling of the tag within your template to
    insure that it matches the database entry.'
    Text
    The following are the lines of code in one of my cf pages
    that seem to be responsible for causing the error.
    486 : spooldir="#application.mailPath#/Out/"
    487 : priority="0"
    488 : smtpfrom="#listPart.contactEmail#"
    489 : header_from="#Trim(listPart.contactName)#
    <#Trim(listPart.contactEmail)#>"
    Is there any fix for the CFX custom tag problem or is there
    anything I am missing. I am using CF 7.0 on Windows XP
    thanks in advance

    You must register CFX custom tags in the CF Administrator.
    Until you do, they will not be found by the server. That's what the
    error message is trying to tell you.

  • AIA Error Notification Format : HTML Tags

    Hi All,
    I am trying to customize the AIA Error notifications in AIAEHNotification.xml file to include the html tags such as &lt;font color="blue"&gt; etc. to change the look of the error message. But the same is not getting reflected in the error emails I receive.
    I'm sure the file AIAEHNotification.xml is getting updated as I can see my updated content every time but not html formatted in any case.
    Does default AIA Error handler support HTML tags inside the email body message or it just uses &lt;pre&gt; by default before sending the notification?
    AIA 3.0
    SOA Suite 11.1.1.3
    Regards,
    Neeraj sehgal

    Neeraj,
    html tags are not supported in the AIA EH notification framework as of now and I am not aware of any plans to support this in any of the next releases.
    Gerhard

  • Spelling error in Attributes select tag - manatory="1"

    Anyone got a work around for this?
    Using Product > Attributes dropdown and selecting it as a Required field, the output contains a spelling error in the Select tag.
    It outputs as 'manatory', when it should be 'mandatory', therefore it does't check it it's required.
    <div class="catProdAttributeItem">
    <select class="input-medium" manatory="1">
    <option value="">-- Please select --</option>
    <option value="14238264">1 </option>
    <option value="14238265">2 </option>
    <option value="14238266">3 </option>
    </select>
    </div>
    I've notified BC, but it could take some time for them to fix their code, busy as they are

    Error was ours in JS. Apologies.

  • Error using Datalist Custom tag HELP!

    Where can I obtain information for the following error: (IDE is JDeveloper): I have been researching this for 3 weeks without success.
    ERROR: Attribute "source" of tag "DataList" cannot be set with a constant, an expression must be specified.
    CODE WITH PROBLEM
    <!--- *** BEGIN DB CONNECTION --->
    <sql:openConnection driver="com.microsoft.jdbc.sqlserver.SQLServerDriver" url="jdbc:microsoft:sqlserver://SPLSERVER:1433" user="MY_WEB_USERS" password="PASSWORD" id="conn"/>
    <sql:setQuery id="conn" query="select * from schemes order by name" res="colorSchemes"/>
    </sql:setQuery>
    <sql:ifError id="conn">
    <table align="center" width="60%" border="0">
    <tr> <td>
    <br><br> A Connection to the DataBase could not be made!
    </td>
    </tr>
    <tr> <td>
    <br><br> Error Generated: <sql:getError id="conn" />
    </td>
    </tr>
    </table>
    </sql:ifError>
    <sql:ifFound res="colorSchemes">
    <% String Found="OK"; %>
    </sql:ifFound res="colorSchemes">
    <!--- *** END DB CONNECTION --->
    <!--- *** BEGIN TABLE LISTING --->
    <list:DataList source="<%=\"colorSchemes\"%>" type="com.cj.datalist.dbtag">
    <!--- *** DATALIST HEADER SECTION --->
    <list:headerTemplate>
    <TABLE CLASS="TableDouble" border="0" align="center"width="50%">
         <TR>
              <TD BACKGROUND="STYLES/<%= session.getAttribute("MyBkg") %>" ALIGN="center" colspan="5">
         <FONT ALIGN="center" CLASS="<%= session.getAttribute("MyFon") %>16">
    <sql:getCount res="colorSchemes"/>  Available Color Schemes!</FONT>
    </TD>
    </TR>
    <TR>
                   <TD ALIGN="center" WIDTH="25%"     STYLE="border-bottom:solid;border-bottom-width : thin;"
    BACKGROUND="STYLES/<%= session.getAttribute("MyBkg") %>">
         <FONT CLASS="<%= session.getAttribute("MyFon") %>12">Scheme Name</FONT>
                   </TD>
                   <TD ALIGN="center" WIDTH="8%" STYLE="border-bottom:solid;border-bottom-width : thin;"
    BACKGROUND="STYLES/<%= session.getAttribute("MyBkg") %>">
         <FONT CLASS="<%= session.getAttribute("MyFon") %>12">Dark</FONT>
                   </TD>
                   <TD ALIGN="center" WIDTH="8%"     STYLE="border-bottom:solid;border-bottom-width : thin;"
    BACKGROUND="STYLES/<%= session.getAttribute("MyBkg") %>">
         <FONT CLASS="<%= session.getAttribute("MyFon") %>12">Light</FONT>
                   </TD>
                   <TD ALIGN="center" WIDTH="8%" colspan="2"     STYLE="border-bottom:solid;border-bottom-width : thin;"
    BACKGROUND="STYLES/<%= session.getAttribute("MyBkg") %>">
         <FONT CLASS="<%= session.getAttribute("MyFon") %>12">Select </FONT>
                   </TD>
    </TR>
    <FORM ACTION="colors.jsp" METHOD="post" NAME="changecolor">
    </list:headerTemplate>
    <!--- *** DATALIST ITEM SECTION --->
    <list:itemTemplate>
    <TR>
                   <TD CLASS="NoEedge" STYLE="border-bottom:solid;border-bottom-width : thin;">
         <FONT CLASS="F10">
                   <%=CURRENT_OBJECT.getColumn(2)%>
                   </FONT>
         </TD>
                   <TD CLASS="LeftEdge" STYLE="border-bottom:solid;border-bottom-width : thin;"
    bgcolor="<%=CURRENT_OBJECT.getColumn(4)%>">
         <FONT class="F10"> </FONT>
    </TD>
                   <TD CLASS="LeftEdge" STYLE="border-bottom:solid;border-bottom-width : thin;"
    bgcolor="<%=CURRENT_OBJECT.getColumn(5)%>">
         <FONT class="F10"> </FONT>
    </TD>
                   <TD CLASS="LeftEdge" STYLE="border-bottom:solid;border-bottom-width : thin;">
         <input TYPE="Button" NAME="DarkButton" VALUE="Dark" ONCLICK="SetBkg('Dark');">
    </TD>
                   <TD CLASS="LeftEdge" STYLE="border-bottom:solid;border-bottom-width : thin;">
         <input TYPE="Button" NAME="Light" VALUE="Light" ONCLICK="SetBkg('Light');">
    </TD>
    <input TYPE="Hidden" NAME="ccsfile" VALUE="<%=CURRENT_OBJECT.getColumn(3)%>">
    <input TYPE="Hidden" NAME="dark_d" VALUE="<%=CURRENT_OBJECT.getColumn(6)%>">
    <input TYPE="Hidden" NAME="dark_l" VALUE="<%=CURRENT_OBJECT.getColumn(7)%>">
    <input TYPE="Hidden" NAME="DarkValue" VALUE="">
    <input TYPE="Hidden" NAME="LightValue" VALUE="">
    <input TYPE="Hidden" NAME="update" VALUE="1">
    </TR>
    </list:itemTemplate>
    </FORM>
    <!--- *** DATALIST FOOTER SECTION --->
    <list:footerTemplate>
    </TABLE>
    </list:footerTemplate>
    </list:DataList>

    I had the same problem. In your .tld change tagclass to tag-class and bodycontent to body-content and that should do the trick. The names slightly changed for JSP spec 1.2.
              

  • Error in JATO textfield tag

    There is an error in the TestFieldTag.java file that generates the HTML in
    correctly. If you give the Textfield a MaxLength is comes out in HTML as
    <jato:textField name="tbTrackingID" size="25" maxLength="256" />
    <input type="text" name="pgAuditSearch.tbTrackingID" value="""
    maxLength="256"" size="25">
    Notice the value has three " marks and the maxLength does as well. This can
    be a problem, eps. with javascript.
    There is a spot in the code where the HTML tag is being generated and it
    writes to a buffer. It has an extra .append with ("\"") that gives this
    error.
    Just FYI in case anyone else has encountered problems like this.
    Eric Hagopian
    Bank of America Direct
    eric.hagopian@b...
    312.974.6411

    Eric--
    Thanks for letting us know. I believe this one got fixed early in our 1.1
    cycle, as it doesn't appear to be a problem now.
    Cheers,
    Todd
    ----- Original Message -----
    From: <eric.hagopian@b...>
    Sent: Friday, February 16, 2001 9:16
    Subject: [iPlanet-JATO] Error in JATO textfield tag
    There is an error in the TestFieldTag.java file that generates the HTML in
    correctly. If you give the Textfield a MaxLength is comes out in HTML as
    <jato:textField name="tbTrackingID" size="25" maxLength="256" />
    <input type="text" name="pgAuditSearch.tbTrackingID" value="""
    maxLength="256"" size="25">
    Notice the value has three " marks and the maxLength does as well. Thiscan
    be a problem, eps. with javascript.
    There is a spot in the code where the HTML tag is being generated and it
    writes to a buffer. It has an extra .append with ("\"") that gives this
    error.
    Just FYI in case anyone else has encountered problems like this.
    Eric Hagopian
    Bank of America Direct
    eric.hagopian@b...
    312.974.6411
    [email protected]

  • Getting error like "The following tags were not closed ..."

    Hi,
    I am getting an error like "The following tags were not closed <Main Report Name>. Error processing resource 'http://abc.cdf.bnm/OA_CGI/FNDWRR.e..."
    Issue is , TAG is breaking with main report name.
    Any suggestions would be appreciated.
    Edited by: user12086550 on May 10, 2010 5:33 AM

    I'm having the same problem, but how did you resolved it??
    my sub query is running good in toad. this is my xml
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="Asset_Loc_Change" description="Change_in_Asset_Location_and_Account" version="1.0">
         <properties>
              <property name="xml_tag_class" value="upper"/>
              <property name="include_parameters" value="true"/>
         </properties>
         <parameters>
              <parameter name="P_START_DATE" dataType="varchar2"></parameter>
              <parameter name="P_END_DATE" dataType="varchar2"></parameter>
              <parameter name="P_BOOK_NAME" dataType="varchar2"></parameter>
         </parameters>
         <lexicals>
         </lexicals>
         <dataQuery>
              <sqlStatement name="LOC_DETAIL">
                   <![CDATA[
    select
    ASSET_NUMBER,DESCRIPTION,ASSET_CATEGORY,trunc(MAX(DATE_CHANGED)) DATE_CHANGED,
    MAX(OLD_ACCOUNT) OLD_ACCOUNT,Max(NEW_ACCOUNT) NEW_ACCOUNT,Max(OLD_LOCATION) OLD_LOCATION,Max(NEW_LOCATION) NEW_LOCATION
    from(
    select distinct
    fad.asset_number,
    fad.ATTRIBUTE_CATEGORY_CODE ASSET_CATEGORY,
    fad.description DESCRIPTION,
    max(fdh.DATE_EFFECTIVE) DATE_CHANGED,
    NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8) OLD_ACCOUNT,
    NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8, NULL) NEW_ACCOUNT,
    NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1) OLD_LOCATION,
    NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1, NULL) NEW_LOCATION
    from
    fa_distribution_history fdh,
    fa_locations fal,
    FA_CATEGORIES CAT,
    fa_additions fad,
    gl_code_combinations gcc,
    fa_books fb
    where
    1=1
    and fdh.DATE_EFFECTIVE between to_char(trunc(:P_START_DATE)) and to_char(trunc(:P_END_DATE))
    and fal.location_id = fdh.location_id
    and fad.asset_id = fdh.asset_id
    and fdh.code_combination_id = gcc.code_combination_id
    and fb.book_type_code = fdh.book_type_code
    and fb.book_type_code = to_char(:P_BOOK_NAME)
    and fb.asset_id = fdh.asset_id
    Group by
    fad.asset_number,
    fad.ATTRIBUTE_CATEGORY_CODE,
    fad.description
    ,NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8),
    NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8, NULL),
    NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1),
    NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1, NULL)
    GROUP BY
    ASSET_NUMBER,ASSET_CATEGORY,DESCRIPTION;
    ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_ASSET_LOC" source="LOC_DETAIL">
                   <element name="ASSET_NUMBER" value="ASSET_NUMBER"/>
                   <element name="DESCRIPTION" value="DESCRIPTION"/>
                   <element name="ASSET_CATEGORY" value="ASSET_CATEGORY"/>
                   <element name="DATE_CHANGED" value="DATE_CHANGED"/>
                   <element name="OLD_ACCOUNT" value="OLD_ACCOUNT"/>
                   <element name="NEW_ACCOUNT" value="NEW_ACCOUNT"/>
                   <element name="OLD_LOCATION" value="OLD_LOCATION"/>
                   <element name="NEW_LOCATION" value="NEW_LOCATION"/>
              </group>
         </dataStructure>
    </dataTemplate>

  • Error in portlets while using Basic Authentication

    We have the Portal on the web.Whenever anyone types the URL for the Portal welcome page he is prompted for a
    username and a password(facilitated by the Apache Server security by adding the relevant tag in the httpd.conf file).The following is the tag added in the httpd.conf file:-
    <Location /servlet>
    AuthName "XXX"
    AuthType Basic
    AuthUserFile "F:/Oracle9iAS/Apache/Apache/bin/users"
    require user kiran
    </Location>
    For a particular user we have added the Exchange portlet on his home page under a tab.Clicking on this particular tab gives the following error when the security is present.
    The following error occurred when attempting to call the
    initSession of the Web Provider: exchangeprovider_XXX
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.UnsatisfiedLinkError: no oraawt in
    java.library.path
    However on removal of the security the same Exchange portlets is displayed without any errors.
    Any help on the above would be welcome.
    Thanks in advance.
    Regds.
    Kiran.

    Please check the OSS note below and install the mentioned patch accordingly:
    [Note 1278687 - Exception in the IDocXMLProcessor (IDOC_ERROR_PARSE_FAILURE)|https://websmp230.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1278687]
    If it persists, check if are there any mapping errors on the Audit Logs for the failed message.

  • Error in portlet JSP

    while trying to run JSP, its giving me following error.Pls hep me the approach i need to follow.
    "Error 500: /helloworld/jsp/edit.jsp(1,0) Unable to load class com.ibm.wps.pe.pc.legacy.tags.InitTag "
    i have already included the following code in JSP.But then also i m getting the same
    <%@ taglib uri='/WEB-INF/tld/portlet.tld' prefix='portletAPI'%>
    <portletAPI:init/>

    Sounds like something's missing from your CLASSPATH.
    Gotta put the JAR with the missing class in your WEB-INF/lib OR the .class file in your WEB-INF/classes.

  • Error in using struts tag library

    Platform information:
    Windows XP
    BEA Weblogic Server 8.1 (Developer)
    Struts 1.1
    I am unable to compile the following JSP in weblogic because it says there is
    an error using the struts-html tag library. (Details about the error are mentioned
    after the JSP)
    My JSP file is:
    ===================================================================
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ page import="com.hipaaccelerator.runtime.HARuntime" %>
    <jsp:useBean id='logonForm' scope='request' class='com.hipaaccelerator.hipaax.form.LogonForm'/>
    <html:html>
    <head>
    <title>Logon</title>
    <link rel='stylesheet' href="<html:rewrite page='/styles/default.css'/>" type='text/css'
    >
    <script language='javascript' src="<html:rewrite page='/scripts/default.js'/>"
    type='text/javascript'></script>
    </head>
    <body>
    <html:form action='/logon.do' >     
         <table border='0' align='center' >
              <tr><td height='10'></td></tr>
              <tr>
    <td align='center'>
    <html:img src='/images/Logo.gif' height='70'
    width='449'/>
    </td>
    </tr>
              <tr><td height='10'></td></tr>
         </table>
         <table align='center' width='100%' >
         <tr><td height='10'></td></tr>
         <tr>
         <td height='20' width='10%'> </td>
         <td height='20' colspan='3' align='center' style="font-size: 18pt; color:
    blue;
    background-color: white; text-align:center">PAC
    </td>
         <td height='20' width='10%'> </td>
         </tr>
         <tr><td height='10'></td></tr>
         <tr>
         <td height='20' width='10%'> </td>
         <td height='20' width='8%'> </td>
         <td height='20' align='center' style="border-style:solid; border-width:2pt;
    font-
    size: 10pt; color: red; background-color: white; text-align:center">
    <%= HARuntime.instance().getConfig().getProperty("logonAnnouncement")
    %>
    </td>
         <td height='20' width='8%'> </td>
         <td height='20' width='10%'> </td>
         </tr>
         <tr><td height='10'></td></tr>
         </table>
         <table border='0' align='center' >               
         <tr>
    <td class='formfieldname' ><b>User Name: </td>
         <td class='formfield'>
         <html:text property='username' maxlength='20' size='20'/>
         </td>
         </tr>
         <tr><td class='formfieldspacer'></td></tr>
         <td class='formfieldname' ><b>Password:</b> </td>
         <td class='formfield'>
         <html:password property="password" size="20" maxlength="20"
    redisplay="false"/>
         </td>
         </tr>
         <tr><td class='formfieldspacer'></td></tr>
         <tr>
    <td colspan='2' align='middle'>
         <html:image src='/images/login.gif' onclick='document.forms[0].submit();
    return false;' />     
         </td>
    </tr>
    </table>
    <br><br>
    </html:form>     
    </body>
    </html:html>
    ===================================================================
    The translation of this page fails with the following error:
    <Dec 16, 2003 5:06:13 PM MST> <Error> <HTTP> <BEA-101045> <[ServletContext(id=4595,name=hipaax,context-path=/hipaax)]
    translation of /logon.jsp failed:
    weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/WEB-INF/struts-html.tld'
    prefix='html': The Tag class 'org.apache.struts.taglib.html.BaseTag' has no setter
    method corresponding to TLD declared attribute 'server', (JSP 1.1 spec, 5.4.1)>
    ===================================================================
    I have struts.jar in /web-inf/lib. I have taglib (uri and location) definitions
    in web.xml.I have all the struts tld files under /web-inf. Is there anything
    else I have to do?
    Any help would be greatly appreciated.
    Thank you.
    Sharmila

    Update: I just looked up the WL version and it's 8.1 sp3
              So, I guess, JSTL 1.1 (which includes jstl fn tags) is not supported by WL.... Someone correct me if I am wrong.
              Thanks,
              pal :)

  • Error in running custom tag

    Hi
    I am new in jsp?s custom tag development and trying to run it's example with jakarta-tomcat-4.1.30. I have hello.jsp
    <%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="first" %>
    <HTML>
    <HEAD> <TITLE>hELLO tAG</TITLE></HEAD>
    <BODY bgcolor="#ffffcc"><B>My first tag prints</B>
    <first:hello/></HTML>
    and mytaglib.tld as
    <?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.2</jspversion>
    <shortname></shortname>
    <uri></uri>
    <info>A simple tag library for the example</info>
    <tag>
    <name>hello</name>
    <tagclass>HelloTag</tagclass>
    <bodycontent>empty</bodycontent>
    <info></info>
    </tag>
    </taglib>
    and HelloTag.java as
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.PageContext;
    import javax.servlet.jsp.tagext.Tag;
    public class HelloTag implements Tag {
         private PageContext pageContext;
         private Tag parent;
         public HelloTag() {
              super();     }
         public void setPageContext(PageContext arg0) {
              this.pageContext = arg0;}
         public void setParent(Tag arg0) {
              this.parent = arg0;}
         public Tag getParent() {
              return parent;}
         public int doStartTag() throws JspException {
              try{
                   pageContext.getOut().print("This is my first Tag");
              }catch(Exception e){throw new JspException("Error);}
              return SKIP_PAGE;     }
         public int doEndTag() throws JspException {
              return SKIP_PAGE;}
         public void release() {     }
    I am getting following error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /hello.jsp(7,0) Unable to load class hello
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219)
         at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:712)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    Can anyone help me in running this example.

    an uri is not an url,
    in your web.xml you should have something like
    <taglib>
    <taglib-uri>http://yourtaglib/taglib</taglib-uri>
    <taglib-location>/WEB-INF/yourtaglibtld</taglib-location>
    </taglib>
    that uri should be same as in the tld.file and same as in the <%@ taglib tag

Maybe you are looking for