JSP page problem

I'm trying to run a relatively simple jsp page, but I get the following error:
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: /dateBean.jsp (line: 7, column: 4) The value for the useBean class attribute com.apress.projsp.DateFormatBean is invalid.
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
     org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1234)
     org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1182)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
     org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
     org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)
     org.apache.jasper.compiler.Node$Root.accept(Node.java:475)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
     org.apache.jasper.compiler.Generator.generate(Generator.java:3490)
     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:250)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.19 logs.
The jsp page is the following:
<html>
    <head>
      <title>Professional JSP 2, 4th Edition</title>
      <link rel="stylesheet" href="projsp.css">
    </head>
  <body>
    <jsp:useBean id="date" class="com.apress.projsp.DateFormatBean"/>
    <h2>Today's Date is <%= date.getDate()%></h2>
  </body>
</html>
and the class source code is as follows:
package com.apress.projsp;

import java.util.Date;
import java.text.*;

public class DateFormatBean implements java.io.Serializable{
  private DateFormat dateFormat;
  private Date date;

  public DateFormatBean() {
    dateFormat = DateFormat.getInstance();
    date = new Date();
  }

  public String getDate() {
    return dateFormat.format(date);
  }

  public void setDate(Date date) {
    this.date = date;
  }

  public void setFormat(String format) {
    this.dateFormat = new SimpleDateFormat(format);
  }
}
All files are in their correct position and Ant was used to compile the project.
Version 7 of Tomcat is also used.

Thank you.

Because you have already told him to do

here

 
    
        
        
        

    

and here

 
            
                
                
            
        

I would say that empty the build.xml that you and start with something more simple, there is a lot of unwanted things there. Bottom line is, you need to compile your classes once, put in one place and pull in your WAR file when build you. The WAR file is not only necessary for tomcat, it is one of the ways that you can deploy your web application to any application server.

Tags: Java

Similar Questions

  • problem with validation in the field with the radio button type in create profile jsp page

    Hello

    Kindly help me with the validation of a field with the type option button in the createProfile jsp page. Its actually not to validate the sex with radio button field.

    The code is as follows...

    < % @ page language = "java" contentType = text/html"; charset = ISO-8859-1"

    pageEncoding = "ISO-8859-1" % >

    <! – this taglib used to access dsp tags - >

    < %@taglib uri = "" / dspTaglib "prefix ="dsp"% >"

    < dsp:page >

    < dsp:importbean bean = "/ atg/userprofiling/ProfileFormHandler" / >

    < dsp:importbean bean = "/ atg/dynamo/drop/ErrorMessageForEach" / >

      <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > < /title > user registration Page

    < / head >

    < body >

    < dsp:form id = "registerForm" method = "post" action = "registration.jsp" >

    < div >

    < div > if please fill in all fields below and click Save

    button. < / div >

    < br / >

    < table >

    < tbody >

    < b >

    < td width = "150" > name < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.firstName"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    Last name < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.lastName"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    < td > username < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.login"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    password < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.password"

    MaxLength = "30" size = "25" type = "password" required = "true" / > < table >

    < /tr >

    < b >

    < td > confirm password < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.password"

    MaxLength = "30" size = "25" type = "password" required = "true" / > < table >

    < /tr >

    < b >

    Identification of Email < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.email"

    MaxLength = "30" size = "25" type = "text" required = "true" / > < table >

    < /tr >

    < b >

    Sex < td > < table >

    < td > < dsp:input bean = "ProfileFormHandler.value.gender"

    Type = "radio" required = "true" > male < / dsp:input > < dsp:input

    Bean = "ProfileFormHandler.Value.Gender" type = "radio" "

    required = "true" > female < / dsp:input > < table >

    < /tr >

    < b >

    < td colspan = "2" > < dsp:input bean = "ProfileFormHandler.create"

    Type = "submit" value = "Save" / > < dsp:input

    Bean = "ProfileFormHandler.createSuccessURL" type = "hidden"

    value = "index.jsp" / > < table > "

    < /tr >

    < b >

    < td colspan = "2" >

    < ul >

    < dsp:droplet name = "ErrorMessageForEach" >

    < dsp:param bean = "ProfileFormHandler.formExceptions"

    name = 'exceptions' / >

    < name dsp:oparam = "output" >

    < li > < dsp:valueof param = "message" / > < /li >

    < / dsp:oparam >

    < / dsp:droplet >

    < /ul >

    < table >

    < /tr >

    < / tbody >

    < /table >

    < / div >

    < / dsp:form >

    < / dsp:page >

    < / body >

    < / html >

    Use code next, may be you do not value attribute set and causing a problem (data inconsistency problem) or case mismatch while storing data in the repository.

    <%Boolean checked = true;%>

    Sex:

    Male

    Female

    I do not know what will radio back button if the value is specified: a boolean value or the value aim to display (in your male cases),.

    If the problem is fixed, undo the change and please let me know what value he sent in your case.

    Please

    Thank you

    Nitin.

  • Problem of JSP Page 3-frame passing parameters to OASFRAME (Start Frame)

    Hello

    I put in work of a JSP Page from 3-framework like the Dev Guide in the chapter entitled 'tree '. Unlike the example of the doc, I need to pass parameters to my starting framework.

    I am specifying the URI of the destination for the link that goes to my page 3-Frame as follows:
    OAFrame.jsp? OAFunc = XXX_NBA_OBJ_NAV_TOP:XXX_NBA_OBJ_NAV_START:XXX_NBA_OBJ_NAV_CENTRE & OAFRDIM = 30 p: 15 p

    but I need to pass parameters to the page of the frame to start. When I try the following, only the upper frame renders:
    OAFrame.jsp? OAFunc = XXX_NBA_OBJ_NAV_TOP:XXX_NBA_OBJ_NAV_START & objectId = 1384253 & objectType = CLIENT: XXX_NBA_OBJ_NAV_CENTRE & OAFRDIM = 30 p: 15 p

    How to pass parameters to the function XXX_NBA_OBJ_NAV_START?

    All rated help. Thank you.

    Concerning
    Tessa

    Hi Tessa

    the only way you can get arround this is to change the standard page of OAFrame.jsp located in $OA_HTML on your server.

    You must add the parameters on this page in the following way

    Here is an article on the OAFrame.jsp page.

    String transactionid = request.getParameter ("transactionid");
    String sessionid = request.getParameter ("sessionid");
    String frameSources = request.getParameter ("OAFunc");
    String frameDimensions = request.getParameter (OAWebBeanConstants.FRAME_DIMENSIONS);
    //
    ADDING CODE
    String values = request.getParameter ("values");
    //

    StringBuffer baseUrl = new StringBuffer (50);
    (.append("://").append) baseUrl.append (request.getScheme ())
    request.getHeader("Host")).append("/OA_HTML/"); "

    StringBuffer parameters = new StringBuffer (100);
    Parameters.Append ("& DBC ="). Append (dbcName);
    Parameters.Append ("& TransactionId ="). Append (TransactionId);
    Parameters.Append ("& SessionID ="). Append (SessionId);
    //
    ADDING CODE
    Parameters.Append ("& values ="). Append (values);
    //

    Note that this page will now receive a parameter called the values of the request and forward it to managers overtime.

    so, you can call
    OAFrame.jsp? OAFunc = FWK_TBX_TREE_CENTERFRAME:FWK_TBX_TREE_STARTFRAME:FWK_TBX_TREE_CENTERFRAME & OAHP = FWK_TOOLBOX_TUTORIAL_APP & OASF = FWK_TOOLBOX_SAMPLE_BROWSE & OAFRDIM = 30 p: 15 p & values = 'Test '.

    for example

    and in the controller for the executives, you could use

    String value = pageContext.getParameter ("values");

    Hope this helps

    Concerning
    George

  • Calling a JSP Page of OA framework on another window


    Hello

    Requirement.

    1 call link to an external vendor using an intermediate JSP Page in a Standard of OA framework page

    What has been done to achieve this.

    1. create a "submit" button in the application of the controller process

    2. write the code button event click process form request to generate a URL and call an external JSP with shipping delivery id parameter passed

    3 make a Post event on a dummy JSP page as encyrpts settings and call provider JSP

    All of the above steps work as expected. The only problem I have is that when the click on the button send, the windows of existing oracle applications is crushed by the JSP and as a result, the user has no way to go back to the Oracle applications.

    The expectation here is to be able to call the JSP in a new window.

    Please let me know how this could be done.

    I put snippets of process request, application process and code jsp.

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processRequest (pageContext, webBean);

    now create a new button programmatically

    OASB OASubmitButtonBean = (OASubmitButtonBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, "BUTTON_SUBMIT");

    oasb.setID ("Go");

    oasb.setUINodeName ("Go");

    oasb.setEvent ("Go");

    oasb.setText ("Click for BOWL Image-1");

    webBean.addIndexedChild (oasb);

    }

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);

    String strEvent = pageContext.getParameter (EVENT_PARAM);

    If (strEvent.equals ('Go'))
    {
    String username = "abcd";
    String password = "abcd";
    entID int = 3152;
    int PROJID = 4;
    String indexFields = 'NUMBER of SEQ';
    String sortBY = "BOWL."
    String Searchtypes = "and";
    String resultsType = 'Docs ';

    For delivery to the specific record number.
    OAMessageStyledTextBean xxDeliverynumberTextInputBeanHandle = (OAMessageStyledTextBean) webBean.findChildRecursive("DelilveryName");

    String deliveryID = xxDeliverynumberTextInputBeanHandle.getValue (pageContext) m:System.NET.SocketAddress.ToString ();

    String url = "someurl';
    Try
    {

    pageContext.sendRedirect ("callImageSilo.jsp? url ="+ url +"& UserName ="+"username + & Password =" + password + "& EntID =" + entID + "& PROJID =" + PROJID + "& IndexFields =" + indexFields + "& IndexValues =" + deliveryID + "& SortBy =" + sortBY + "& Searchtypes =" + Searchtypes + "& ResultsType =" + resultsType);

    }
    catch (IOException e)
    {
    e.printStackTrace ();
    }

    }
    }

    Pointers of how this could be resolved.

    I was able to achieve this requirement by setting the destination on the link to only in passing the required attribute and put the user id and the password as a parameter query in the xxx.jsp.

    http://xmlns.Oracle.com/OA"/ >

  • JSP page refreshes

    Hello

    For some reason, OBPM engine Studio reload changes in custom JSP pages. No changes appear even when I reload the app (run > Reload). So the only way to recharge changes is to stop / start the engine, then all changes are reflected as required.

    Everyone knows about this problem? Is there a setting in the engine to allow JSP reloading?

    Thank you very much in advance.

    Kind regards
    Nick.

    Hi Nick,

    Edit your file "\conf\web.xml" and look for this section:

    . . .
    
    development
    false
    
    . . .
    

    and replace with

    . . .
    
    development
    true
    
    . . .
    

    I could be wrong, but after editing the web.xml file, I think you need to just stop and restart the engine just a moment to have the change that you made to it come into force.

    After having changed the JSP, you will need to click on 'Save all' then click the 'Reload' in the Studio to view immediately your changes take effect.

    Hope this helps,
    Dan

  • How do the error of debugging JSP page/Javascript on the Blackberry browser on Simulator

    Hi, expert,

    at present, we are porting a web app (html5) from Iphone to Blackberry. It is written in JSP/javascript ajax in the backend. It is usually work the browser Blackberry 6.0 on a simulator. However, one of the page could be made, it shows just a blank page.

    I've seen an error like this onscreen Simulator MDS - CS:

    <2011-09-05 11:57:37.822="" edt="">: [1172] :::
    d receipt for non-existent packages! 904265821 >
    <2011-09-05 11:57:37.854="" edt="">: [1175] :::
    G = invalid, DEVICEPIN:CONNECTIONID = 2100000 a: 1770114602, SEQUENCE = 1, information
    tion = packet received for a connection timed out >

    However, I have seen the error on other pages when they are displayed correctly. Not sure why we continue to see this error.

    So, it could be a javascript error as well. Not sure at this stage. The page is written as a JSP page with javascript/ajax inside, which is the same as other pages that work. Very weird.

    No idea how I could debug to this case?

    Starting from the 7.0 you can use the web Inspector and in 5.0 you can debug using our tools, but in 6.0 you're stuck with more traditional methods such as the suggestion of chicoxmlof try/catch or alert statements

  • Unable to find server jsp pages

    Hi all

    When present on a java page click a button called (.jsp), but I am not able to findout the location of the page in WINSCP, Pls look at my URL of the page below

    http://10.60.53.153:7003/ManagedAttachmentOPM-ManagedAttachmentOPM-context-root/ManagedAttachmentOPM.jsp?sample No. = 100001 & Description = Oil_BLK_NEUTRALISED of soybean, OIL of SOYBEAN REFINED & Obj_type = quality & B_Group = IFFCO UAE & Op_Unit is ERC_OU:Emirates Refining Co. Ltd. & Org_ID = 121 & Org_Desc = Sharjah ERCO & sample = 100001 n & Description = Oil_BLK_NEUTRALISED of soybean, OIL of SOYBEAN REFINED & Obj_type = quality & B_Group = IFFCO UAE and Op_Unit ERC_OU : Emirates Refining Co. Ltd. & Org_ID = 121 & Org_Desc = ERCO Sharjah

    I searched $OA_HTML in this way, my page is not available there at - it another way to findout my page.

    Pls help someone it is very urgent for me.

    Thank you

    Mannala.

    Hi Mannala,

    I'm not sure what you're trying to achieve and what is your real goal for the jsp page.

    in any case, if nothing works why not give you a search/search on the top level directory.

    Please post version of the operating system, applications, and DB. Assuming that it Linux you use WINSCP, please run command:

    find - name .jsp

    Thank you &

    Best regards

  • Hello JSP Page of the world

    We start using the Jdeveloper 11.1.2.2.0 today.

    We want to create a JSP page with the string "Hello World".

    First of all, we have the challenge "Choose default run Target".

    Thanks in advance

    NY

    Have you tried to run your project? In this case, the window "Choose default run Target" appears. You can run a Java servlet, a Java Server Page or html file. Create a page jspx (right click) and run it. Even, you can run a stubborn workflow.

  • Special characters are not displayed in the ADF jsp page

    Hi all
    Using the controller view ADF, I get the data from the database table, but when I view the data in the jsp page after a special character < what ever the data is there, it is not moved. Provide suggestions.


    Thanks in advance
    Mani

    Hello

    Have you tried to use a simple outputText (instead of outputFormatted?)? If this does not work even with af:outputText, try to escape from the false outputText property definition (attention: http://docs.oracle.com/cd/E15051_01/apirefs.1111/e12419/tagdoc/af_outputText.html).

    Arun-

  • How to compile a customized in 11i jsp page

    Hi gurus,

    Please help me on how to compile a .jsp in 11i instance.

    Thank you
    Rambaud

    What version of 11i is your EBS? As I remember, no need to compile JSP in earlier versions of 11i; JSP pages is compiled during the loading of the page.

    Thank you
    Shree

  • How to call oracle iRecruitment JSP page from a site of companys

    Hello

    There is a requirement, where the Oracle iRecruitment JSP page must be called from the site. Basically when you click on the tab of career on the site, this OAF page should open.
    The servers are different, this will be possible?
    Please provide me with some info on that.

    Thank you
    AG

    Pls close the thread if your question is answered.

    Refer

    http://forums.Oracle.com/forums/Ann.jspa?annID=914

    -Anand

  • How to customize the JSP page in iSupport

    Hello

    I worked on the OA framework. But I have a requirement to customize page iSupport in oracle applications. There is a button on the page, I want to call a DB function passing 2 parameters for this function. The result of this function and display the error message to user based in the result of the function.

    This is the JSP page. I got the name of page JSP of URL in the browser. I discovered the source of this page and found after statement...

    onclick = "JavaScript:document.identifyproblem.JTFValidateFlag.Value = 'Yes'; * Next * ('identifyproblem', 'NEXTFROMIP');" "return false" type = "button" > next < / button > < img src="/OA_HTML/cabo/images/swan/t.gif" width = "10" height = "10" > < table > < /tr > < / table >

    "next" function is available in a .js file that is imported in above file.

    function next (shape, opcode)
    {
    If (opcode == 'NEXTFROMCI' | opcode == "NEXTFROMIP") {}
    If (! checkContactPoint (form)) return;
    }

    If (checkRequiredField (form)) {}
    document. Forms [form]. IBU_CF_SR_OPCODE. Value = opcode.
    document. Forms [form]. Submit();
    }
    else {}
    return;
    }
    }


    If I want to change the functionality can I add my code and more to have a "next"?

    Or I have to change something in the file of the page controller?

    Hi Paraq,

    My mistake, I'm not familiar with iSupport pages, but do a search on google I see that they are standard JSP and not OSTEOARTHRITIS.

    I'm not sure if this will help iSupport Extension

    I'm sure there are many examples of how to extend the iSupport OTN pages

    Keith

  • Question to an interactive presentation without a JSP page

    Hello

    I need to know if there is a way to make a dynamic presentation that uses a BPM object, not a JSP page. Dynamic, I want to say that the result of a field depends on the option selected in a previous filed and if so, how?

    The features that I need are really simple, only if the X option in a drop-down list of the next field box is disabled, if you select Y the other if turned on.

    Thank you

    You can set the visibility and the Properties edit-able of any component in a presentation.

    Here is an example:

    From a function, I called onchangeJobId that is associated with a component through its property combo box ' on invoke change. Whenever the drop-down list box change the values of this function is called. It's a button that I created on the same visible or invisible presentation on the issue of whether a value is selected in the drop-down list box to.

    refresh the child drop-down list box
    refreshValidValues ("parcelId")

    If (this.jobId is nothing) then
         
    Disable create a new task button
    setVisible this
    using the ComponentID = "buttonNewJob."
    Visible = true;
    collapsed = false
    on the other

    Enable to create a new task button
    setVisible this
    using the ComponentID = "buttonNewJob."
    Visible = false;
    collapsed = false
    end

    Hope that helps.

    TP

  • Cannot run .jsp page thru WebVPN (Clientless SSL VPN).

    Hello

    I can't access a portal which is a page through the WebVPN .jsp.

    With Internet Explorer, I get the following error: (stop running this script? [...])

    When I say 'No' I get an empty page. Same thing, if I click on 'Yes '.

    With FireFox, I get a blank page without any error message.

    VPN is an asa 5510 version 8.0 (4) 39.

    Is this a limitation of the clientless VPN? A Bug? Anyone has an idea on how to solve this problem?

    Thank you!

    Pascal

    If please activate smart tunneling on the bookmark in question and test it again.

  • R12 post-installation checks fail with RW-50015 for HTTP, help, virtual directory, JSP Page and Login Page

    Hello

    I try to install EBS R12 for three weeks with the same result (after five fail post-installation verification).

    I tried to install Oracle Linux 5.8 32 bit and Oracle Linux 5.8 64-bit but end result is the same. When I installed Linux oral, I chose all the option packages. I also used the latest version of RapidWiz as suggested by some posts on the forum (and also in response to my other post by Hussein).

    Each installation attempt failed with the following text:

    (x) HTTP                                      (x) Help Page

    Virtual directory (x) (x), JSP

    Login page (x)

    It failed with "RW-50015: error".

    =========

    HTTP

    ====

    check the URL = http://prod.ebs1.com:8000

    RW-50015: error:-HTTP listener does not. The service may not be started on the port again. Please check the service and use the button try again.

    ==========

    Help page

    =========

    check the URL = http://prod.ebs1.com:8000/OA_HTML/help

    RW-50015: error:-Help Page does not. The service may not be started on the port again. Please check the service and use the button try again.

    ========

    Virtual directory

    =================

    RW-50015: error:-Http virtual directory server is not responding. The service may not be started on the port again. Please check the service and use the button try again.

    ==============

    JSP

    ===

    check the URL = http://prod.ebs1.com:8000/OA_HTML/jtfTestCookie.jsp

    RW-50015: error:-JSP does not. The service may not be started on the port again. Please check the service and use the button try again.

    ==============

    Login page

    ==========

    RW-50015: error:-Login Page does not. The service may not be started on the port again. Please check the service and use the button try again.

    ==============

    I did find a lot of information to solve this problem.

    Help, please!

    Best regards

    Well, I must fix it in next (trying to start Apache (adapcctl.sh) casts a ' error while loading Shared Libraries: libdb.so.2' on RedHat Linux 5 (Doc ID 879522.1)).

    Once you run the commands in the MOS Doc, stop and start the services than those mentioned above and it should seem so

    Thank you

    Hussein

Maybe you are looking for

  • Portege R700 - Windows 7 32-bit - NETWORK adapter driver does not work.

    Hi all I rebuilt a Portege R700 with Windows 7 32-bit o/s. I downloaded the drivers from the Toshiba site but could not get the only rider listed working card. It seems to install ok but will not work. If I try to 'put to date pilot' with Device Mana

  • Before cam images is automatically mirrored

    Hello I use the new Moto G for a month but I can't solve why my images of front cam is mirrored automatically after the capture of an image. Is this a problem with G3 or it's a fault in my camera? I checked in another G3, I replaced two weeks ago. I

  • installation of window cannot find drivers (bootcamp)

    First I found the problem on appleSSD.sys, someone said to use oldbootcamp 5.1.5640 (I use macbookpro 2014 middle) to fix 1 use Boot Camp Assistant, prepare the USB key. Select the first two points, then prepare the drive. Boot Camp Assistant to quit

  • Cannot install fingerprint - S431 reader

    I just reinstalled Windows 7 on my Thinkpad S431 and for some reason that the installer for the Manager of fingerprints is to throw this error. Someone knows what's the problem?

  • Hide update does not

    Windows 7 Pro 32 bit, clean install. Update Windows guard offering two optional updates, even after I chose to hide.  One is an update to support SD cards > 32 GB (that I don't need), and the other is an Office Live add-in (which I don't).  I hid the