Error in jsp file

I am facing some issue with the jsp using strut 2.1.8.1
My Jsp code is
<%@ page language="java"  pageEncoding="ISO-8859-1"%>  
<%@ taglib prefix="html" uri="/struts-tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">  
<title>Onstar Forumz</title>  
</head>  
<body bgcolor="#FFFFFF" text="#000000">  
<%@ include file="/header.jsp" %>  
<html:form action="UserverifyAction" name="userForm" type="com.onstar.user.in.form.UserForm">  
<html:text property="username" style="position:absolute;left:720px;top:271px;width:112px;font-family:Arial;font-size:16px;z-index:15" name="username" value="" ></html:text>  
<html:password property="password" style="position:absolute;left:720px;top:302px;width:112px;font-family:Arial;font-size:16px;z-index:16" name="password" value="" ></html:password>  
<div id="wb_Username" style="position:absolute;left:631px;top:276px;width:82px;height:16px;z-index:17;" align="left">  
<font style="font-size:13px" color="#FFFFFF" face="Arial"><b>User name :</b></font></div>  
<div id="wb_Password" style="position:absolute;left:631px;top:307px;width:82px;height:16px;z-index:18;" align="left">  
<font style="font-size:13px" color="#FFFFFF" face="Arial"><b>Password   : </b></font></div>  
<div id="wb_signin" style="position:absolute;left:843px;top:304px;width:101px;height:23px;z-index:19;" align="left">  
<input type="image" src="images/gold_sign.gif" id="signin" alt="" align="top" border="0" style="width:101px;height:23px;"></div>  
</html:form>  
<%@ include file="/footer.jsp" %>  
</body>  
</html>Error Message:
org.apache.jasper.JasperException: /index.jsp(15,0) Attribute property invalid for tag text according to TLD index.jsp is the name of the jsp file.
I have placed the struts2-core-2.1.8.1.jar in lib folder as well as well I have configured the buildpath with the jar file(struts2-core-2.1.8.1.jar)
Please help me...Thanks in Advance{                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

I think we have a case here of trying to use the Struts1.2 tag libraries in Struts2.0
The tag libraries are quite different :-)
I believe the <s:textfield> tag is probably what was intended here?
Or install struts 1.2 instead of struts2 :-)

Similar Messages

  • I have an error in jsp file

    hi group,,
    i have an page directive error in JSP file.That is given in Weblogic8.1-->Devoloping EJBs documentation.The error is in import page .The directory structure is as follows
    1)BandsExampleApp-->BandsExampleEJB-->Examples-- >examples-->ejb20-->relationships-->bands
    2)BandsExampleApp-->webapp-->AddBand.jsp
    The code is follows
    <%@ page import='exaples.ejb20.relationships.bands.*'%>
    what should i do to avoid the problem..plz tell the solution..
    sunil
    BandsExampleApp-->BandsExampleApp

    JSP expects the IANA character set name. According to the IANA site the proper name is: UTF-8. Please try that instead of the UNICODE-1-1-UTF-8.
    Note: OJSP uses sun.io.CharacterEncoding.aliasName() to convert from IANA to JDK character set names. I looked at the source code for this and it does contain a mapping for UTF-8 but not UNICODE-1-1-UTF-8. The error you are getting indicates a mapping doesn't exist when we make this call.

  • Error 404, JSP file not found

    Hello all
    I am using tomcat on solaris. I have copied my war file under the webapps folder. When I start the tomcat services, it shows the messages for adding the context path for that war file, it also creates a folder for it under webapps but fails to show me any of the jsp pages. I can view all the html and gif files, but none of the jsps (gives the error - 404). If I rename my war file, and then start tomcat services, it works well. I don't want to rename my war file. Pls help!!
    For further details - I have checked my server.xml file, and it is correct. There was an old version of the same folder under webapps, which I got rid off, but seems that somewhere it is still caching it.
    In my server.xml file, if I do
    <Context path="/first"
    docBase="webapps/first"
    crossContext="false"
    debug="0"
    reloadable="true" >
    </Context>
    IT FAILS !! but if I just change the <Context path="/first1" , it works and does not give any error for jsp page. There isn't any contect path named "first" in my server.xml file.
    Thanks in advance.
    Regards
    Anusha

    Actually, I don't know how to create a subdirectory under webapps directory. When I tried to add a subdirectory calle myapp (.../webapps/myapp), I got "The requested URL /application/ was not found on this server" error message. Do I need to modify server.xml or web.xml in conf directory?
    Thanks in advance!
    tacomaZ

  • "LayoutTagLibrary" tag error in JSP file .

    Dear All,
    I am trying to implement Custom Framework Page in SAP NW Portal 7.3 with the help of the [DOCUMENT|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001bfa1a-958e-2e10-c2be-d914f673e21e?QuickLink=index&overridelayout=true]
    I am getting an error in the FrameworkPageLayout.jsp file,   Can not find the tag library descriptor for "LayoutTagLibrary
    I added the SharingReference - com.sap.portal.pagebuilder Under Application tag
    and LayoutTagLibrary - /SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld Under Component Profile tag.
    But still, I am getting this error. How to resolve this?
    Regards
    Eben Joyson.

    Hi Detlev,
    I modified my jsp page. but still I get the same error. Can not find the tag library descriptor for "prt:taglib:LayoutTagLibrary"
    Should I need to add any jar file under the lib folder of the project? Help me to solve this issue. Only in NWDS 7.3 i am facing this issue. with NWDS 7.0, its working.
    My JSP Code :
    <%@ taglib uri="prt:taglib:LayoutTagLibrary" prefix="lyt"%>
    <lyt:template eliminatemessagebar="true">
         <lyt:container id="container" wrappingMethod="none">
         </lyt:container>
    </lyt:template>
    My Portalapp.xml
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <application alias="affs">
      <application-config>
        <property name="Vendor" value="sap.com"/>
        <property name="SecurityArea" value="NetWeaver.Portal"/>
        <property name="SharingReference" value="SAPJ2EE::library:com.sap.portal.themes.lafservice, com.sapportals.htmlb, com.sap.portal.navigation.api_service, com.sap.portal.pagebuilder, com.sap.portal.useragent, com.sap.portal.navigation.helperservice, com.sap.portal.navigation.afp.helperservice"/>
      </application-config>
      <components>
        <component name="layout">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Category" value="platform">
              <property name="inheritance" value="final"/>
            </property>
            <property name="LayoutTagLibrary" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="FrameworkPageLayout.jsp"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="container">
              <property name="title" value="Content"/>
              <property name="orientation" value="vertical"/>
            </property>
            <property name="com.sap.portal.page.builder.optimization.level" value="2"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="Title" value="AFP Layout"/>
            <property name="EPCFLevel" value="1"/>
            <property name="SupportedUserAgents" value="(*,*,*)">
              <property name="validvalues" value="7/(*,*,*)"/>
            </property>
          </component-profile>
        </component>
        <component name="iview">
          <component-config>
            <property name="ClassName" value="com.customer.afp.fromscratch.FrameworkPageComponent"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="com.sap.portal.iview.ShowTray" value="false"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="EPCFLevel" value="1"/>
            <property name="SupportedUserAgents" value="(*,*,*)">
              <property name="validvalues" value="7/(*,*,*)"/>
            </property>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>

  • Error accessing JSp file from Tomcat4.1.27 at line:-1 in the jsp file: null

    Hi...when I tried to access my JSp file from tomcat 4.1.27 web server, I got the following error message. Can anyone help me out?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    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:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
    import java;
    ^
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
    private static java.util.Vector jspxincludes;
    ^
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
    public java.util.List getIncludes() {
    ^
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expected
    ^
    4 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         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)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)

    You JSP has four compile errors:
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
    import java;Invalid import. You need to import a whole package (*) or single class.
    import java; is wrong
    import java.util.*; is right
    import java.util.List; is right
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
    private static java.util.Vector jspxincludes;
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
    public java.util.List getIncludes() {Check the lines before these to make sure you didn't leave off a semi-colon, parens (')') or bracket ('}').
    C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expectedYou are missing a closing bracket ('}') somewhere.
    The message about the "line -1" error is the standard message that is always given when there are compile errors in the JSP.

  • Error opening JSP files in Netweaver Developer Studio

    Hello,
    When I try to open a *.jsp file in the Netweaver Developer Studio, I get the following error:
    The ordinal 233 could not be located in the dynamic link library SHDOCVW.dll
    When I click on OK for a couple of times (same message), I get the option to open the file.
    Then this message:
    Invalid or corrup jar file (with a reference to the jsp).
    I can however open files with java extensions. It is also not project related, all jsp files react in the same way.
    I am currently investigating what MS Windows service packs have been installed recently.
    Does anyone know what it means or how this can be solved?
    regards, William Jackman

    Hello William,
    Have you seen this note already ??
    Microsoft security patch  KB834707 side effects in NW. SAP Note 785308

  • Errors in JSP files, help.....

    I have 2 questions:
    1)
    When i javac a java file, the following errors came out.
    C:\>javac logon.java
    logon.java:3: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    logon.java:4: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    2 errors
    Anyone knows what does it means??? Any ways to solve this error??
    2)
    When i type http://localhost:8080/cdlist/cd_list.jsp at the IE address to view the file , the following error came out
    org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/taglibs/xtags-1.0) cannot be resolved in either web.xml or the jar files deployed with this application
    Can anyone please explain what it means and is there any ways to solve this error. Thankyou very much....

    Sorry but there seems to have another problem, while i run the file using tomcat this error came out:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 40 in the jsp file: /processLogon.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:153: ';' expected
                   routeURL = "frame.htm"
    ^
    An error occurred at line: 19 in the jsp file: /processLogon.jsp
    Generated servlet error:
    C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:71: cannot resolve symbol
    symbol : class logon
    location: package logonBean
    logonBean.logon logon = null;
    ^
    An error occurred at line: 19 in the jsp file: /processLogon.jsp
    Generated servlet error:
    C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:73: cannot resolve symbol
    symbol : class logon
    location: package logonBean
    logon = (logonBean.logon) pageContext.getAttribute("logon", PageContext.SESSION_SCOPE);
    ^
    An error occurred at line: 19 in the jsp file: /processLogon.jsp
    Generated servlet error:
    C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:76: cannot resolve symbol
    symbol : class logon
    location: package logonBean
    logon = (logonBean.logon) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "logonBean.logon");
    ^
    I was wondering, will tomcat javac the java file itself or do i need to javac it myself and put it in the root folder??? In this case i have javac the java file and i put the class file in root folder together with other files to run it, but there seems to still have errors while i try to run it. Pls help.

  • Errors in JSP file for htmlb code - CE 7.1

    Hi Experts,
    I am trying  created simple JSP dynpages application in NWDS 7.1 & CE 7.1.
    I am getting errors for HTMLB  code like:
    cannot find tag Library descriptor for tagLib
    In JSP page i wrote simple htmlb code like:
    <%@taglib uri="tagLib" prefix="htmlb"%>
    <htmlb:content id="myContext">
    <htmlb:page title="PageTitle">
    <htmlb:form id="myFormId">
    <htmlb:inputField id="inf1" type="String" width="125" visible="true"
    required="true" />
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    {/code}
    For HTMLB libraries added 2 jar file in lib folder
    /PORTAL-INF/lib   com.sap.portal.htmlb.jar ; &   com.sapportals.htmlb.jar
    After adding set the Java build path for Library jar file also.
    In portalapp.xml -
    <?xml version="1.0"; encoding="UTF-8"?>
    <application>
      <application-config>
       <property name="startup" value="true"/>
        <property name="SharingReference" value="com.sap.portal.htmlb";/>
      </application-config>
      <components>
        <component name="Test_Jsp">
          <component-config>
            <property name="ClassName" value="com.Test_Jsp.Test_Jsp";/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/Output.jsp";/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld";/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    {/code}
    Please any one help to correct this errors............
    Regards,
    Satya

    Hi,
    You need not add com.sap.portal.htmlb.jar and com.sapportals.htmlb.jar to /PORTAL-INF/lib as the classes will be available at runtime through com.sap.portal.htmlb SharingReference. So remove the htmlb jars from /PORTAL-INF/lib.
    Correct the value of tagLib property to /SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld
    Deploy and check if this helps.
    I see alot of unnecessary semicolons in your portalapp.xml, I think you just added them inorder to be able to post them here.
    Regards,
    Praveen Gudapati

  • Error opening JSP file weblogic 8.1

    Hi,
              I'm using weblogic 8.1 and testing few JSP pages on my local machine they work well but when the .war file is deployed on to our production server (which is remote), error message in the domainname.log file java.io.FileNotFoundException: /jsp_servlet/__mycomplogin.java (No such file or directory)
              any suggestions?
              thank you!
              

              "group" <[email protected]> wrote in message
              news:4029440f$[email protected]..
              > Hi,
              > I'm using weblogic 8.1 and testing few JSP pages on my local machine
              they work well but when the .war file is deployed on to our production
              server (which is remote), error message in the domainname.log file
              java.io.FileNotFoundException: /jsp_servlet/__mycomplogin.java (No such file
              or directory)
              >
              > any suggestions?
              > thank you!
              Can you print out the entire stack trace?
              

  • Where are the .java files compiled from .jsp files stored?

              hi,
              I'm new to weblogic server. When I use Tomcat as the jsp server, it compiles .jsp
              files to .java files and then .class files. So when an error reported I can track
              it in the .java file.
              But what should I do with weblogic? It only saves the .class files in the work
              dir. Or is there a better way to trace errors in jsp files?
              Thanks!
              

    This should give you the information you need to set the keepgenerated flag:
              http://e-docs.bea.com/wls/docs60/jsp/admin.html#53346
              Also, the .java files will be right next to the .class files with are under
              a tmp directory in the /WEB-INF directory under the WEB-INF if it is an open
              directory or in the
              config/mydomain/applications/.wl_temp_do_note_delete/WEB-INF directory if it
              is .war file.
              Sam
              "Raymond" <[email protected]> wrote in message
              news:3b931619$[email protected]..
              >
              > Thanks, but can you tell me more about it? where to set this flag? I'm
              using WLS
              > 6.0sp1.
              >
              > "Sam Pullara" <[email protected]> wrote:
              > >You can turn on the keepgenerated flag if you want to keep the .java
              > >files.
              > >How you do this depends on what version you are using.
              > >
              > >Sam
              > >
              

  • Exception-Error when excecuting JSP-File in Crystal reports for Eclipse

    Hi,
    I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
    Coud anyone help me?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
    An error occurred at line: 7 in the generated java file
    Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
    An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
    ReportClientDocument cannot be resolved to a type
    10:      try catch (ReportSDKExceptionBase e)
    60:      
    An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
    e cannot be resolved
    55:
    56:
    57:      } catch (ReportSDKExceptionBase e)
    60:      
    61: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26
    Bericht1.jsp:
    <%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              String reportName = "Bericht1.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                        // Create the CrystalReportViewer object
                        CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                        //     set the reportsource property of the viewer
                        IReportSource reportSource = clientDoc.getReportSource();                    
                        crystalReportPageViewer.setReportSource(reportSource);
                        // set viewer attributes
                        crystalReportPageViewer.setOwnPage(true);
                        crystalReportPageViewer.setOwnForm(true);
                        // Apply the viewer preference attributes
                        // Process the report
                        crystalReportPageViewer.processHttpRequest(request, response, application, null);
                   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Thanks
    Arnold

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • Error with HeaderiView.jsp file

    Hi there,
    I took the masthead par file from the portal and I did some changes in the HeaderiView.jsp. When I try the iview in the preview I see the next error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/pruebasjanet/ZiwImage/zprueba54
    Component Name : prueba1701.default
    Error occurs during the rendering of jsp component.
    Exception id: 10:14_06/09/07_0075_33099350
    See the details for the exception ID in the log file
    I already added the com.sap.portal.navigation.mastheadapi.jar in \PORTAL-INF\lib
    and com.sap.portal.navigation.masthead_core.jar \PORTAL-INF\private\lib.
    Any help would be greatly appreciated!
    Jeanette

    Hi Malini,
    Yes, I did some changes in Jsp file. I'm trying to make a copy of the Help Link. I copied all the components in the portalapp.xml (only changes, for example, <property name="ShowHelpLink" value="true">    <property name="ShowSiteLink" value="true">)
    Would you please help me checking the code?
    Thanks.
    Jeanette
    With the jsp file I have problems:
    <%@ page import = "java.util.ResourceBundle" %>
    <%@ page import = "com.sapportals.htmlb.*" %>
    <%@ page import = "com.sapportals.portal.prt.session.IUserContext" %>
    <%@ page import = "com.sapportals.portal.prt.component.*" %>
    <%@ page import = "com.sapportals.portal.prt.service.laf.*" %>
    <%@ page import = "com.sap.security.api.UMFactory" %>
    <%@ page import = "com.sapportals.portal.prt.service.license.ILicenseService"%>
    <%@ page import = "com.sapportals.portal.navigation.*" %>
    <%@ page import = "com.sapportals.portal.prt.runtime.PortalRuntime" %>
    <%@ page import = "com.sapportals.portal.prt.util.StringUtils" %>
    <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj" %>
    <%!
    final String PERSONALIZE_PAGE_EVENT_URN = "urn:com.sapportals:navigation";
    final String PERSONALIZE_PAGE_EVENT_NAME = "PersonalizePage";
    final String PERSONALIZE_PAGE_EVENT_PARAMS = "";
    final String PERSONALIZE_PORTAL_EVENT_URN = "urn:com.sapportals:navigation";
    final String PERSONALIZE_PORTAL_EVENT_NAME = "PersonalizePortal";
    final String PERSONALIZE_PORTAL_EVENT_PARAMS = "";
    final String LOGOFF_CONFIRM_MSG_COMPONENT = "logoffConfirmMsg";
    final String LOGON_REDIRECT_COMPONENT = "logInComponent";
    final String LOGOFF_REDIRECT_COMPONENT = "LogOutComponent";
    final String LOGOFF_CONFIRM_MSG_ARGS_IE = "dialogHeight: 170px; dialogWidth: 350px; edge: Raised; center: Yes; help: No; resizable: No; status: No";
    final String LOGOFF_CONFIRM_MSG_ARGS_NS = "Height=170,Width=350";
    final String LOGOFF_CONFIRM_WINDOW_NAME = "LOG_OFF_WINDOW";
    final String HELP_URL = "HelpUrl";
    final String SITE_URL = "SiteUrl";
    final String HELP_WINDOW_NAME = "HELP_WINODW";
    final String SITE_WINDOW_NAME = "SITE_WINODW";
    final String SHOW_PERSONALIZE_LINK = "ShowPersonalizeLink";
    final String SHOW_HELP_LINK = "ShowHelpLink";
    final String SHOW_SITE_LINK = "ShowSiteLink";
    final String SHOW_NEW_WINDOW_LINK = "ShowNewWindowLink";
    final String SHOW_LOG_OFF_LOG_ON_LINK = "ShowLogInLogOffLink";
    //String constants for NLS
    final String WELCOME_CLAUSE = "WELCOME_CLAUSE";
    final String HELP_TEXT = "HELP_TEXT";
    final String SITE_TEXT = "SITE_TEXT";
    final String LOG_OFF_TEXT = "LOG_OFF_TEXT";
    final String LOG_ON_TEXT = "LOG_ON_TEXT";
    final String PERSONALIZE_TEXT = "PERSONALIZE_TEXT";
    final String PERSONALIZE_PORTAL_TEXT = "PERSONALIZE_PORTAL_TEXT";
    final String NEW_WINDOW_TEXT = "NEW_WINDOW_TEXT";
    final String HELP_TOOLTIP = "HELP_TOOLTIP";
    final String SITE_TOOLTIP = "SITE_TOOLTIP";
    final String LOG_OFF_TOOLTIP = "LOG_OFF_TOOLTIP";
    final String LOG_ON_TOOLTIP = "LOG_ON_TOOLTIP";
    final String PERSONALIZE_TOOLTIP = "PERSONALIZE_TEXT";
    final String PERSONALIZE_PORATL_TOOLTIP = "PERSONALIZE_PORATL_TOOLTIP";
    final String NEW_WINDOW_TOOLTIP = "NEW_WINDOW_TOOLTIP";
    final String BEGINNING_OF_PAGE = "BEGINNING_OF_PAGE";
    final String MASTHEAD_ENTER_TOOLTIP = "MASTHEAD_ENTER_TOOLTIP";
    final String MASTHEAD_EXIT_TOOLTIP = "MASTHEAD_EXIT_TOOLTIP";
    final String UNLOAD_MSG = "UNLOAD_MSG";
    private String GetWelcomeMsg(IPortalComponentRequest request, String welcomeClause)
    IUserContext userContext = request.getUser();
    if (userContext != null)
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    String salutation = userContext.getSalutation();
    if ((firstName != null) && (lastName != null))
    if(salutation != null)
    return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, salutation}).toString();
    else
    return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
    else
    return java.text.MessageFormat.format(welcomeClause, new Object[] {userContext.getDisplayName()," ", " "}).toString();
    return "";
    private String GetLicenseText(IPortalComponentRequest request){
    ILicenseService license = (ILicenseService)request.getService(ILicenseService.KEY);
    if (license.sapInternalUsageOnly())
    return "<FONT color=orangeRed size=4><STRONG> Licensed For SAP Internal Usage</STRONG></FONT>";
    else
    return " ";
    private boolean getParameter(IPortalComponentRequest request, String param)
    String value = (String)request.getNode().getValue(param);
    return new Boolean(value).booleanValue();
    private String getHelpUrl(IPortalComponentRequest request)
    String value = (String)request.getNode().getValue(HELP_URL);
    return value;
    private String getSiteUrl(IPortalComponentRequest request)
    String value = (String)request.getNode().getValue(SITE_URL);
    return value;
    private String GetLogoffConfirmMsgURL(IPortalComponentRequest request)
    String componentName = request.getComponentContext().getComponentName();
    componentName = componentName.substring(0, componentName.lastIndexOf(".") + 1);
    IPortalComponentURI msgURI = request.createPortalComponentURI();
    msgURI.setContextName(componentName + LOGOFF_CONFIRM_MSG_COMPONENT);
    return msgURI.toString();
    // Attaching the "UnsavedData=true" flag to the Confirm logoff message
    private String GetLogoffConfirmUnsavedMsgURL(IPortalComponentRequest request)
    String basicUrl = GetLogoffConfirmMsgURL(request);
    String separator = (basicUrl.indexOf("?") >=0) ? "&" : "?";
    return basicUrl + separator + "UnsavedData=true";
    private String GetLogoffURL(IPortalComponentRequest request)
    /*IPortalComponentURI logoffURI = request.createPortalComponentURI();
    return logoffURI.toString();*/
    String componentName = request.getComponentContext().getComponentName();
    componentName = componentName.substring(0, componentName.lastIndexOf(".") + 1);
    IPortalComponentURI msgURI = request.createPortalComponentURI();
    msgURI.setContextName(componentName + LOGOFF_REDIRECT_COMPONENT);
    return msgURI.toString();
    private boolean isAccessabilityOn(IPortalComponentRequest request)
    //End: Temporary, till there's a way to set the accessibility for a user
    IUserContext user = request.getUser();
    //if((user.getAccessibilityLevel() != IUserContext.DEFAULT_ACCESSIBILITY_LEVEL) ||(isAccessibility == true) ) // 508 is on
    if (user.getAccessibilityLevel() != IUserContext.DEFAULT_ACCESSIBILITY_LEVEL) // 508 is on
    return true;
    return false;
    private String GetLoginURL(IPortalComponentRequest request)
    INavigationGenerator navigationService = (INavigationGenerator)PortalRuntime.getRuntimeResources().getService(INavigationService.KEY);
    StringBuffer URL = new StringBuffer(200).append(navigationService.getPortalURL(request , null));
    return URL.append("/login").toString();
    private String GetPortalUrl(IPortalComponentRequest request)
    INavigationGenerator navigationService = (INavigationGenerator)PortalRuntime.getRuntimeResources().getService(INavigationService.KEY);
    return navigationService.getPortalURL(request , null);
    private String getNLSString(IPortalComponentRequest request, String resource_key)
    try
    ResourceBundle bundle = request.getResourceBundle();
    if(bundle != null)
    return bundle.getString(resource_key);
    return resource_key;
    catch(MissingResourceException e)
    return resource_key;
    private String GetThemeURLPath(IPortalComponentRequest request)
    ILAFService iLAFService = (ILAFService)request.getService(ILAFService.KEY);
    String currentTheme = iLAFService.getCurrentTheme(request).getThemeName();
    String url = iLAFService.getRelativeThemeRootURLPath(request, ILAFService.PORTAL_THEME) + "/" + currentTheme + "/prtl";
    return url;
    //Get the external logoff URL
    private String getExternalLogOffUrl()
    return UMFactory.getProperties().get("ume.logoff.redirect.url");
    //Get the external logoff Mode (silent / not silent)
    private boolean getExternalLogOffMode()
    return UMFactory.getProperties().getBoolean("ume.logoff.redirect.silent" , false);
    private boolean isAnonymous(IPortalComponentRequest request)
    NavigationEventsHelperService helperService = (NavigationEventsHelperService)
    PortalRuntime.getRuntimeResources().getService(NavigationEventsHelperService.KEY);
    return helperService.isAnonymousUser(request);
    %>
    <%
    boolean isPreview = false;
    // initializaing the labels with the localized labels
    String welcomeClauseStr = getNLSString(componentRequest, WELCOME_CLAUSE);
    String helpTextStr = getNLSString(componentRequest, HELP_TEXT);
    String siteTextStr = getNLSString(componentRequest, SITE_TEXT);
    String logOffTextStr = getNLSString(componentRequest, LOG_OFF_TEXT);
    String logInTextStr = getNLSString(componentRequest, LOG_ON_TEXT);
    String personalizeTextStr = getNLSString(componentRequest, PERSONALIZE_TEXT);
    String newWindowTextStr = getNLSString(componentRequest, NEW_WINDOW_TEXT);
    String helpTooltipStr = getNLSString(componentRequest, HELP_TOOLTIP);
    String siteTooltipStr = getNLSString(componentRequest, SITE_TOOLTIP);
    String logOffTooltipStr = getNLSString(componentRequest, LOG_OFF_TOOLTIP);
    String logInTooltipStr = getNLSString(componentRequest, LOG_ON_TOOLTIP);
    String personalizeTooltipStr = getNLSString(componentRequest, PERSONALIZE_TOOLTIP);
    String personalizePortalTooltipStr = getNLSString(componentRequest, PERSONALIZE_PORATL_TOOLTIP);
    String beginningOfPageStr = getNLSString(componentRequest, BEGINNING_OF_PAGE);
    String newWindowStr = getNLSString(componentRequest, NEW_WINDOW_TOOLTIP);
    String mastheadEnterTable = getNLSString(componentRequest, MASTHEAD_ENTER_TOOLTIP);
    String mastheadExitTable = getNLSString(componentRequest, MASTHEAD_EXIT_TOOLTIP);
    String unLoadMsg = getNLSString(componentRequest, UNLOAD_MSG);
    boolean showPersonalizeLink = getParameter(componentRequest, SHOW_PERSONALIZE_LINK);
    boolean showHelpLink = getParameter(componentRequest, SHOW_HELP_LINK);
    boolean showSiteLink = getParameter(componentRequest, SHOW_SITE_LINK);
    boolean showNewWindowLink = getParameter(componentRequest, SHOW_NEW_WINDOW_LINK);
    boolean ShowLogInLogOffLink = getParameter(componentRequest, SHOW_LOG_OFF_LOG_ON_LINK);
    String mode = (String)componentRequest.getNode().getValue("mode");
    if ((mode != null) && (mode.equals("preview")))
    isPreview = true;
    String themeRootURLPath = GetThemeURLPath(componentRequest);
    boolean isAnonymous = isAnonymous(componentRequest);
    boolean isAccessabilityOn = isAccessabilityOn(componentRequest);
    if (isAccessabilityOn)
    helpTooltipStr = helpTextStr", "helpTooltipStr;
    siteTooltipStr = siteTextStr", "siteTooltipStr;
    logOffTooltipStr = logOffTextStr", "logOffTooltipStr;
    logInTooltipStr = logInTextStr", "logInTooltipStr;
    newWindowStr = newWindowTextStr", "newWindowStr;
    personalizePortalTooltipStr = personalizeTextStr", "personalizePortalTooltipStr;
    %>
    <script>
    function openLogoffMsg()
    <%if (!isPreview){%>
    if (EPCM.getUAType() == EPCM.MSIE)
    releaseProducerSessions();
    if(EPCM.getGlobalDirty())
    // unsaved data on the page, display modified dialog
    var val = window.showModalDialog('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
    if (val == 'logoff')
    disableWorkProtectCheck = true;
    logoff();
    else //no unsaved data
    // data saved, nothing get lost on the page, display normal dialog
    var val = window.showModalDialog('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
    if (val == 'logoff')
    logoff();
    else
    if(EPCM.getGlobalDirty())
    window.open('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
    else
    window.open('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
    <%}%>
    var isLogoffFinalAllowed = true;
    var logoffStartTime = (new Date).getTime();
    function logoff()
    EPCM.raiseEvent("urn:com.sapportals.portal:user", "logoff", "");
    logoffStartTime = (new Date).getTime();
    window.setTimeout("logoffDelay()", "50");
    function logoffDelay()
    var isLogoffDelayElapsed = ((new Date).getTime() - logoffStartTime) > (60*1000);
    if(isLogoffFinalAllowed || isLogoffDelayElapsed) {
    logoffFinalCall();
    } else {
    window.setTimeout("logoffDelay()","50");
    function logoffFinalCall()
    logoffThirdParty();
    document.forms["logoffForm"].submit();
    function logIn()
    location.replace("<%=GetLoginURL(componentRequest)%>");
    function runPersonalizePage()
    EPCM.raiseEvent("<%=PERSONALIZE_PAGE_EVENT_URN%>", "<%=PERSONALIZE_PAGE_EVENT_NAME%>", "<%=PERSONALIZE_PAGE_EVENT_PARAMS%>");
    function runPersonalizePortal()
    <%if (!isPreview){%>
    EPCM.raiseEvent("<%=PERSONALIZE_PORTAL_EVENT_URN%>", "<%=PERSONALIZE_PORTAL_EVENT_NAME%>", "<%=PERSONALIZE_PORTAL_EVENT_PARAMS%>");
    <%}%>
    function onPersonalizePortalDisable()
    var linkElem = document.getElementById("personalizePortal");
    var linkSepElem = document.getElementById("personalizePortalSep");
    var linkLogoffSepElem = document.getElementById("logoffsep1");
    if(linkElem != null)
    linkElem.style.display = "none";
    if(linkSepElem != null)
    linkSepElem.style.display = "none";
    if(linkLogoffSepElem != null)
    linkLogoffSepElem.style.display = "none";
    EPCM.subscribeEvent("urn:com.sapportals:navigation", "PersonalizePortalDisable", onPersonalizePortalDisable);
    function openNewPortalWindow()
    <%if (!isPreview){%>
    var navTarget = EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue().URL;
    var context = EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue().context;
    if (context != null && context.length > 0)
    EPCM.doNavigate(navTarget, 2, null, null, null, null, context);
    else
    EPCM.doNavigate(navTarget, 2);
    <%}%>
    function openHelp()
    <%if (!isPreview){%>
    window.open('<%=getHelpUrl(componentRequest)%>', '<%=HELP_WINDOW_NAME%>');
    <%}%>
    function openSite()
    <%if (!isPreview){%>
    window.open('<%=getSiteUrl(componentRequest)%>', '<%=SITE_WINDOW_NAME%>');
    <%}%>
    function setFocusOnHeader() {
    var melcomeMessage = document.getElementById("welcome_message");
    var headerNotch = document.getElementById("header_notch");
    if(EPCM.getUAType()==EPCM.MOZILLA) {
    // No focus
    } else {
    if(melcomeMessage!=null && melcomeMessage.currentStyle.display!="none") {
    melcomeMessage.focus();
    } else if(headerNotch!=null && headerNotch.currentStyle.display!="none") {
    headerNotch.focus();
    function logoffThirdParty()
    <% if(getExternalLogOffUrl()!= null){ %>
    var logOffUrl = '<%=getExternalLogOffUrl()%>';
    var silent = <%=getExternalLogOffMode()%>;
    if(silent)
    var newIFrame = document.getElementById("externalLogOffIframe");
    if(newIFrame == null)
    newIFrame = document.createElement("IFRAME");
    newIFrame.style.visibility = "hidden";
    newIFrame.width=0;
    newIFrame.height=0;
    newIFrame.id = "externalLogOffIframe";
    newIFrame.src = logOffUrl;
    document.body.appendChild(newIFrame);
    else
    newIFrame.src = "javascript:void(0)";
    newIFrame.src = logOffUrl;
    <% } %>
    </script>
    <hbj:content id="PageContext">
    <hbj:page title="Header Area">
    <hbj:form id="HeaderForm" >
    <!--<a href="#" tabindex=0 title= "<%=beginningOfPageStr%>" accesskey="m">
    <img src="<%=themeRootURLPath%>/../common/1x1.gif" border="0" style="display:none">
    </a>-->
    <% if (isAccessabilityOn)
    {%>
    <TABLE width="100%" border="0" id="myTable" ti="0" tabindex="0" title="<%=mastheadEnterTable%>" onkeydown="nav_skip('myTable',event)" ct="PortalMasthead" cellspacing="0" cellpadding="0" ><% if (isPreview) {%>ondragover="window.event.cancelBubble = true;" ondragleave="window.event.cancelBubble = true;"<%}%>>
    <%} else
    {%>
    <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="prtlHdrWhl" id="myTable" ti="0" tabindex="0" onkeydown="nav_skip('myTable',event)" ><% if (isPreview) {%>ondragover="window.event.cancelBubble = true;" ondragleave="window.event.cancelBubble = true;"<%}%>>
    <%}%>
    <tbody>
    <TR>
    <TD width="1%" nowrap class="prtlHeaderNotch" id="header_notch"> </TD>
          <TD width="5%" nowrap class="prtlHdrWelcome" id="welcome_message" ti="0" tabIndex="0"><%=StringUtils.escapeToHTML(GetWelcomeMsg(componentRequest, welcomeClauseStr))%></TD>
    <TD width="3%" nowrap class="prtlHdrWelcome" id="welcome_message" ti="1" tabIndex="1">
    <SCRIPT LANGUAGE="JavaScript">
    var months=new Array(13);
    months[1]="January";
    months[2]="February";
    months[3]="March";
    months[4]="April";
    months[5]="May";
    months[6]="June";
    months[7]="July";
    months[8]="August";
    months[9]="September";
    months[10]="October";
    months[11]="November";
    months[12]="December";
    var time=new Date();
    var lmonth=months[time.getMonth() + 1];
    var date=time.getDate();
    var year=time.getYear();
    if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))
    year="19" + year;
    if (navigator.appName == "Netscape")
    year=1900 + year;
    document.write("<center>" + lmonth + " ");
    document.write(date + ", " + year + "</center>");
    </SCRIPT>
    </TD>
    <% if (showSiteLink || showHelpLink || showPersonalizeLink || showNewWindowLink || ShowLogInLogOffLink)
    {%>
    <TD width="79%" class="prtlHeaderFunctionsTable">
    <TABLE border="0" cellspacing="0" cellpadding="0"
    class="prtlHeaderFunctionsContainer" height="100%">
    <TR>
    <TD nowrap >
    <!--<hbj:link id="SiteLink" tooltip="<%=siteTooltipStr%>" linkDesign="FUNCTION" reference="javascript:openSite();"><hbj:textView nested="true" text="<%=siteTextStr%>"/></hbj:link> -->
    <hbj:link id="SiteLink" tooltip="<%=siteTooltipStr%>"
    linkDesign="FUNCTION" reference="#">
    <% if (!isPreview) { SiteLink.setOnClientClick("javascript:openSite();");} %>
    <hbj:textView nested="true" text="<%=siteTextStr%>"/>
    </hbj:link>
    </TD>
                <TD nowrap>
                  <%}%>
    <%
    if (showHelpLink)
    { %>
    <TD nowrap >
    <!--<hbj:link id="HelpLink" tooltip="<%=helpTooltipStr%>" linkDesign="FUNCTION" reference="javascript:openHelp();"><hbj:textView nested="true" text="<%=helpTextStr%>"/></hbj:link> -->
    <hbj:link id="HelpLink" tooltip="<%=helpTooltipStr%>"
    linkDesign="FUNCTION" reference="#">
    <% if (!isPreview) { HelpLink.setOnClientClick("javascript:openHelp();");} %>
    <hbj:textView nested="true" text="<%=helpTextStr%>"/>
    </hbj:link>
    </TD>
                <TD nowrap>
                  <%}%>
                  <%
    if (!isAnonymous)
    if (showPersonalizeLink)
    if (showHelpLink)
    { %>
                <TD nowrap id="personalizePortalSep" class="prtlHdrSep"></TD>
    <%} %>
    <TD nowrap id="personalizePortal">
    <hbj:link id="PersonalizeLink"
    tooltip="<%=personalizePortalTooltipStr%>"
    linkDesign="FUNCTION"
    reference="#">
    <% if (!isPreview) {PersonalizeLink.setOnClientClick("javascript:runPersonalizePortal();");}%>
    <hbj:textView nested="true" text="<%=personalizeTextStr%>"/>
    </hbj:link>
    </TD>
    <TD nowrap></TD>
    <%}
    if (showNewWindowLink)
    if (showHelpLink || showPersonalizeLink)
    { %>
    <TD nowrap id="newWindowSep" class="prtlHdrSep"> </TD>
    <%}
    else
    {%>
    <TD nowrap> </TD>
    <%}%>
    <TD nowrap id="newWindow">
    <hbj:link id="newWindowLink" tooltip="<%=newWindowStr%>"
    linkDesign="FUNCTION"
    reference="#">
    <% if (!isPreview) {newWindowLink.setOnClientClick("javascript:openNewPortalWindow();");}%>
    <hbj:textView nested="true" text="<%=newWindowTextStr%>"/>
    </hbj:link>
    </TD>
    <%}%>
    <%}%>
    <TD>
    <%if (ShowLogInLogOffLink)
    {%>
    <TABLE cellspacing="0" cellpadding="0" border="0" class="prtlHeaderFunctionsContainer" height="100%">
    <TR><%
    if (showHelpLink || showPersonalizeLink || showNewWindowLink)
    {%>
    <%
    if(!showHelpLink && !showNewWindowLink)
    {%>
    <TD nowrap id="logoffsep1" class="prtlHdrSep"> </TD>
    <%
    }else
    {%>
    <TD nowrap id="logoffsep2" class="prtlHdrSep"> </TD>
    <%}%>
                      <TD nowrap>
                        <%
    }else
    {%>
                      <TD nowrap >  </TD>
    <%
    if (isAnonymous)
    {%>
                      <TD nowrap>
                        <!<hbj:link id="LoginLink" tooltip="<%=logInTooltipStr%>" linkDesign="FUNCTION" reference="javascript:logIn();"><hbj:textView nested="true" text="<%=logInTextStr%>"/></hbj:link>>
                        <hbj:link id="LoginLink"
    tooltip="<%=logInTooltipStr%>"
    linkDesign="FUNCTION"
    reference="#">
                        <% LoginLink.setOnClientClick("javascript:logIn();"); %>
                        <hbj:textView nested="true" text="<%=logInTextStr%>"/> </hbj:link>
                      </TD>
    <%}
    else
    {%>
                      <TD nowrap>
                        <!<hbj:link id="LogoffLink" tooltip="<%=logOffTooltipStr%>" linkDesign="FUNCTION" reference="javascript:openLogoffMsg();"><hbj:textView nested="true" text="<%=logOffTextStr%>"/></hbj:link>>
                        <hbj:link id="LogoffLink"
    tooltip="<%=logOffTooltipStr%>"
    linkDesign="FUNCTION"
    reference="#">
                        <%if (!isPreview) { LogoffLink.setOnClientClick("javascript:openLogoffMsg();");} %>
                        <hbj:textView nested="true" text="<%=logOffTextStr%>"/> </hbj:link>
                      </TD>
    <%}%>
    </TR>
    </TABLE>
    <%} %>
    </TD>
    </TR>
    </TABLE>
    </TD>
    <%}%>
          <TD width="12%" nowrap class="prtlHdrLogoContainer">
            <% if (isAccessabilityOn)
    {%>
            <%}%>
          </TD>
    </TR>
    </tbody>
    </TABLE>
    </hbj:form>
    </hbj:page>
    </hbj:content>
    <form name="logoffForm" style="display:none;position:absolute;top:-5000;left:-5000" action="<%=GetLogoffURL(componentRequest)%>" method="POST">
      <input type="hidden" name="logout_submit" value="true">
    </form>
    <script>
    <% if (!isPreview) {%>
    if (disablePersonalize) {
    EPCM.raiseEvent("urn:com.sapportals:navigation", "PersonalizePortalDisable", "");
    <%}%>
    setFocusOnHeader();
    EPCM.subscribeEvent("urn:com.sapportals.portal:browser","load",setFocusOnHeader);
    </script>

  • Rep-1247 error when starting jsp file on linux

    I have a rather frustrating problem on our production servers...
    We are trying to start jsp files on a linux report server (10Gr2).
    The command is displayed below
    [2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
    The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
    This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
    [2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
    [2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
    [2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
    [2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
    [2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
    [2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
    at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    I know that 1247 normally covers up another error, but I don't seem to get it....
    Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
    Message was edited by:
    user599601

    I have a rather frustrating problem on our production servers...
    We are trying to start jsp files on a linux report server (10Gr2).
    The command is displayed below
    [2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
    The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
    This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
    [2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
    [2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
    [2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
    [2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
    [2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
    [2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
    at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    I know that 1247 normally covers up another error, but I don't seem to get it....
    Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
    Message was edited by:
    user599601

  • Getting error when placing jsp file in tomcat root folder

    hello experts,
    i have developed an application on netbeans 6.1 for mail.
    It is working perfect when i run it from netbeans, but when we copy those jsp files to ROOT folder of tomcat5.5 server, it is showing me following error.
    rg.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 14 in the jsp file: /Mailer1.jsp
    Session cannot be resolved to a type
    11: <%!
    12: String nam = null, email = null, suggestion = null;
    13: RequestDispatcher disp = null;
    14: public static Session sess = null;
    15:
    16: %>
    17: <%
    An error occurred at line: 38 in the jsp file: /Mailer1.jsp
    sess cannot be resolved
    35:
    36: //SecurityManager security = System.getSecurityManager();
    37:
    38: sess= Session.getInstance(props,new javax.mail.Authenticator() //if u uses getDefaultInstance it will raise Security Exception
    39: {
    40: protected PasswordAuthentication getPasswordAuthentication()
    41: {
    An error occurred at line: 38 in the jsp file: /Mailer1.jsp
    Session cannot be resolved
    35:
    36: //SecurityManager security = System.getSecurityManager();
    37:
    38: sess= Session.getInstance(props,new javax.mail.Authenticator() //if u uses getDefaultInstance it will raise Security Exception
    39: {
    40: protected PasswordAuthentication getPasswordAuthentication()
    41: {
    An error occurred at line: 38 in the jsp file: /Mailer1.jsp
    javax.mail.Authenticator cannot be resolved to a type
    35:
    36: //SecurityManager security = System.getSecurityManager();
    37:
    38: sess= Session.getInstance(props,new javax.mail.Authenticator() //if u uses getDefaultInstance it will raise Security Exception
    39: {
    40: protected PasswordAuthentication getPasswordAuthentication()
    41: {
    An error occurred at line: 45 in the jsp file: /Mailer1.jsp
    sess cannot be resolved
    42: return new PasswordAuthentication("[email protected]","ratatouille");
    43: }
    44: });
    45: sess.setDebug(true);
    46:
    47:
    48: //sess = Session.getDefaultInstance(props);
    An error occurred at line: 50 in the jsp file: /Mailer1.jsp
    Transport cannot be resolved to a type
    47:
    48: //sess = Session.getDefaultInstance(props);
    49: //sess.setDebug(true);
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    An error occurred at line: 50 in the jsp file: /Mailer1.jsp
    sess cannot be resolved
    47:
    48: //sess = Session.getDefaultInstance(props);
    49: //sess.setDebug(true);
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    An error occurred at line: 51 in the jsp file: /Mailer1.jsp
    Message cannot be resolved to a type
    48: //sess = Session.getDefaultInstance(props);
    49: //sess.setDebug(true);
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    54: msg.setSubject(this.nam);
    An error occurred at line: 51 in the jsp file: /Mailer1.jsp
    MimeMessage cannot be resolved to a type
    48: //sess = Session.getDefaultInstance(props);
    49: //sess.setDebug(true);
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    54: msg.setSubject(this.nam);
    An error occurred at line: 51 in the jsp file: /Mailer1.jsp
    sess cannot be resolved
    48: //sess = Session.getDefaultInstance(props);
    49: //sess.setDebug(true);
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    54: msg.setSubject(this.nam);
    An error occurred at line: 52 in the jsp file: /Mailer1.jsp
    Message.RecipientType.TO cannot be resolved to a type
    49: //sess.setDebug(true);
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    54: msg.setSubject(this.nam);
    55: msg.setContent(suggestion, "text/plain");
    An error occurred at line: 52 in the jsp file: /Mailer1.jsp
    InternetAddress cannot be resolved to a type
    49: //sess.setDebug(true);
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    54: msg.setSubject(this.nam);
    55: msg.setContent(suggestion, "text/plain");
    An error occurred at line: 53 in the jsp file: /Mailer1.jsp
    InternetAddress cannot be resolved to a type
    50: Transport trans = sess.getTransport();
    51: Message msg = new MimeMessage(sess);
    52: msg.setRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]"));
    53: msg.setFrom(new InternetAddress(this.email));
    54: msg.setSubject(this.nam);
    55: msg.setContent(suggestion, "text/plain");
    56: trans.connect();
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    i m unable to find out the solution,
    please help me to resolve it.
    thnaks.

    Hi shams.hq,
    I don't understand how you bother to copy an application in your server directories. It's really piece of cake to deploy with Tomcat.
    All you have to do :
    - with Netbeans, you build the project : a WAR file will be created in the dist directory of your project;
    - launch the server, if it's not running;
    - with your web browser, connect to the Tomcat Manager;
    - from there, you may upload and deploy the WAR file of your project.
    Et voilà ! Tomcat will unzip the WAR and install your classes and libraries at the right place.

  • Error 404: SRVE0190E: File not found when trying to access jsp

    I am using RAD (new to web dev) for some reason my app is unable to find .jsp's when they are not in the web content folder. I have a predefined package for my jsp's and when I run my servlet I get
    Error 404: SRVE0190E: File not found: /WEB-INF/classes/app/view/search.jsp
    now if I amend my URL in the servlet to "/search.jsp" and move the jsp to the web content folder, it works. I just don't understand why it cannot find the file when I put it in the package I created and link to it, but finds it just fine in the webcontent folder. Is there some unwritten rule JSP's MUST be in the webcontent folder? Because when i do that, then I have issues with my image links for the GUI (get red X's for all my images regardless of the fact they are linked properly.) Basically if I put my jsps where I want, look fine in design and preview, but the jsp isnt found when executed, if I move them to the web content folder the images no longer work but the jsps run. I am getting rather frustrated. Any help is appreciated.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    *https://support.mozilla.org/kb/Clear+Recent+History
    Are you using cleanup software like CCleaner or other software that may corrupt the cache?
    You can try to delete the entire cache folder.<br />
    You can find the location of the cache folder on the about:cache page (open via the location bar, like a web page).
    You can check the <b>browser.cache.disk.enable</b> pref on the <b>about:config</b> page to verify that the disk cache is enabled (should be true).

Maybe you are looking for

  • Parent/Child requests in error

    Hi, I am actually working on a custom interface where I will have to pause the parent request when the child requests are running. APPS.FND_SUBMIT.submit_program ( application => r_stage_program.application_short_name , program     => r_stage_program

  • I didn't identify the fields.

    Dear Experts, Could you please guide me i am extracting FI-GL line item data.I didn't find few fields in that respective Data source.The fields are like Assest Valuated amount Valuated amount local currency2 Valuated amount local currency3 Please gui

  • Update table on a linked server

    I am creating a SP on server WDC1GISDBP2, I need to update a table on WDC1GISDBP3 (edtables is the database).  Both servers are running SS 2008r2 This is the error kicked back: Msg 102, Level 15, State 1, Line 4 Incorrect syntax near ';'. This is the

  • Use DAQ in Parallel Mode

    Is there any issues using a DAC card (M-Series) in TestStand in Parallel Mode?  I would like to have 4 instances running in parallel all using ine DAC card.  Of course, each instance would be using separate channels.  How would you create the referen

  • Service centre

    the blackberry support in bombay - India is pathetic.&lt;br&gt;First of all there is no service centre and handsets&lt;br&gt;have to b given to mobile operators and&lt;br&gt;it takes 30 + days to get it back.&lt;br&gt;Even aftr tht u r not sure that