Loading JSP pages gives error

I have created a JSP extension file and tried to run it in browser but receive error !!!
HTTP Status 500 -
description The server encountered an internal error () that prevented it from fulfilling this request.
this error message was shown when Tomcat was running.
and
HTTP Status 404 -
description The requested resource () is not available.
when tried after starting J2EE server.
in both cases I used URL : http://localhost:8080/test1.jsp
Any suggestions to resolve this problem???
Please make it as simple as possible because I am new to Java.
Thank you.

Text for the file is as follows:
<%@ taglib prefix=�tags� tagdir=�/WEB-INF/tags� %>
<html>
<head>
<title>JSP 2.0 Hello World</title>
</head>
<body>
<tags:helloWorld/>
</body>
</html>The URL I have tried was :: http://127.0.0.1:8080/test1.jsp
Is there any specific directory, wherein I need to save this file.......
Thank you.
Message was edited by:
fresh@java

Similar Messages

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • When i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th

    when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
    if you can help me thank's
    [email address removed by host]

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • Ive just learned that i can use loadjava to load jsp pages into the database.

    Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
    Any ideas?

    Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
    execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
    PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
    ORA-29540: class ZebraGetPrinterFromXML does not exist

  • Firefox 8.0 loading MSN Homepage gives error 'problems loading page' every timebut the page eventually loads - Any solution?

    Firefox 8.0 gives error message "problem loading page" when loading MSN homepage. This occurs every time.
    The error is: "Firefox can't find the server at www.%3ciframe%20marginheight=%220%22%20marginwidth=%220%22%20name=%22wxbuttonframe%22%20id=%22wxbuttonframe%22%20height=%22283%22%20src=%22http.com."
    Is there a solution?

    I get an e-mail with go-comics and the ones I want to post links to I'll open in the browser as I read them in the e-mail so I regularly have a dozen tabs open (all the same site) by the time I'm through the e-mail. Every third or fourth page will hang up on something (connecting to or waiting for) sometimes not loading a single image, sometimes loading half the page, sometimes loading everything but the comic (because, hey, why put that as the first thing to load when you've got all these ads and crap to throw at your paying customers?).
    At some point a couple of months ago I got some malware associated with trovisearch (I do not know how that got past security and java blocker but it did, probably some hidden crap in something from CNET) that somehow spoofed a page for Housecall and added five or six pieces of malware and adware. I cleaned for two days after and still can't find anything left on the computer even though I've been running scans constantly to try to make Firefox work right. I downloaded and ran a scan using Kaspersky during that time and then uninstalled it. That very well may be the cause of the post-refresh SSL issue.
    I have Spybot and Malwarebytes scan logs from the time of the infection if that would help in any way. It doesn't look like there's a way to attach .xml files in this forum, though.
    I can also run hijack this and copy and paste if that would help.
    I'm currently running Windows Defender and rely on that and Noscript and adblocker plus to keep me isolated from most attacks (I don't have those add-ons re-installed yet). I also run Peerblock because they add malicious sites and known hacking sources (like Chinanet) to what they block as well as all the fake p2p stuff that's constantly pinging the computer. If I'm treading around in perilous waters I run Sandboxie.
    Chrome is working as normal but Firefox feels like dial-up or worse right now and without adblocker I might as well be using IE.

  • Delay Loading JSP page

    I have a jsp page, it has got two frames, the upper one is an applet and the lower one is a jsp page. The jsp page tries to accesc the variable of applet. Since the jsp page gets loaded first it gets javascript error.
    Now i want to delay the jsp page from gettingloaded. It should load afer the applet.
    I cannot touch the applet because it contains truepass code.
    Please let me know how can i do it.
    Thanks
    Abhay

    To frustrate your users? Anyway, try Thread.sleep.

  • Probplem on loading JSP page

    I have some problem doing my jsp, whenever i tried to load a jsp page with simple form, when i click the button of form, it make an insert into an Access Database. OK. The problem is: when i load the page the first time, the page make an insert into the database of null values.(The scripts are executed without button click ).
    Thaks for help,Simon.

    To prevent that problem happen.
    I will suggest you with some idea:
    1. You can prevent user to view the address of the page( eg, by creating frame or by invisible the address bar when need )
    2. Prevent this kind of problem from your database. Sample like this:
    You have a table with an PK - of course this PK is not allow null. So, when your page try to insert in the databse it will return error. You can handle this error as well.
    3. You can declare a querystring to indicate that your page is first load or else.
    4. Check this problem from your Java code.
    I hope all of my suggestion will useful for you.
    Have a try!!!!

  • 2nd execution of download jsp always gives error

    I have got a download button in my html which executes the server page Filedownload.jsp. The download executes fine, but I cannot invoke it again without refreshing the html screen. Otherwise I get an error.
    This is how the jsp is invoked from my html:
    document.location='FileDownload.jsp?ReportTypeDir=' + ReportTypeStr +
    '&MonthDir=' + MonthStr + '&filename=' + DownLoadFileStr;
    And this is my jsp:
    <%@ page contentType = "application/vnd.ms-excel" %>
    <%@page language = "java" import = "java.util.*, java.io.*, javax.servlet.*, java.text.*" %>
    <%
    String filepath = "c:\\Pace\\" + request.getParameter("ReportTypeDir") + "\\" + request.getParameter("MonthDir");
    String filename = request.getParameter("filename") + ".xls";
    File file = new File(filepath + "\\" + filename);
    byte b[] = new byte[(int)file.length()];
    response.setHeader("Content-Disposition", "attachment; filename=\"" + filename +"\";");
    if (file.isFile())
    BufferedInputStream fin = new BufferedInputStream(new FileInputStream(file));
    BufferedOutputStream outs = new BufferedOutputStream(response.getOutputStream());
    int read = 0;
    while((read = fin.read(b)) !=-1){
    outs.write(b,0,read);
    }//end of while
    outs.close();
    fin.close();
    }//end of if
    %>
    How can I avoid getting this error message.
    Thanks in advance
    Nongo

    I'm suprised that it even worked the first time. Since your jsp calls response.getWriter() to give you the implicit 'out' variable, it would be illegal to call response.getOutputStream() in your jsp.

  • Problem in loading jsp page

    Hi ,
    I'm facing a problem in displaying a JSP page . I'm displaying records from the database on the page . I want to display only 20 records at a time . I have given the navigation facility for previous,first ,last ,next etc.
    I'm getting all the records at once and displaying them at once . But , I show only 20 records at a time ,hiding the remaining records .
    This works fine for less no . of records but for more records ,say 2000-3000 records , it gets quite slow as expected .
    I don't want to fire the query again .
    Is there any other way possible using this technique .
    It's very urgent . So kindly help .
    Thanks.

    Just get a scrollable ResultSet with the row amount for 1 page, e.g.
          * Returns a result set for the given query, that is read only and scrollable
         * (cursor can move forward and backward). The default fetch size is used and
         * can be changed anytime by calling resultSet.setFetchSize(newFetchSize).
         * <p>
         * Note: be sure that the used JDBC driver supports scrollable result sets via
         * <code>DatabaseMetaData.supportsResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE)</code>
          * @param select SQL select query.
         * @param fetchSize Number of rows to prefetch.
          * @return Scrollable, read-only result set.
        private ResultSet getScrollableResultSet(String select, int fetchSize) {
            ResultSet result = null;
            if (select != null) {
                try {
    //TYPE_SCROLL_SENSITIVE can throw SQLException "Unsupported syntax for refreshRow()" with the
    //current ORACLE driver (8.1.7.0.0).
    //                Statement stmt = createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                    Statement stmt = createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                    int maxRows = stmt.getMaxRows();
                    if (fetchSize < 0 || fetchSize > maxRows) {
                        fetchSize = 0; //ignore fetch size
                    stmt.setFetchSize(fetchSize);
                    long t = System.currentTimeMillis();
                    result = stmt.executeQuery(select);
                    logger.debug(select + (" ("+(System.currentTimeMillis() - t)+")"));
                    if (result == null) {
                        stmt.close();
                } catch (SQLException sqle) {
                    logger.error("Error getting scrollable ResultSet for '"+select+"'.", sqle);
                    throw new BavException(sqle);
            return result;
        }//getScrollableResultSet()and fetch the next/previous page records via the resultSets next()/previous() methods. But beware that the SQL statement doesn't use an ORDER BY or GROUP BY that needs to fetch all rows anyway.

  • Tomcat not loading jsp pages

    I've running 10.6.2 with default install of Tomcat and Apache. Tomcat is enabled in Server Admin, and I've created a site in Server Admin that points 8080 port requests to /Library/Tomcat/webapps. And index.jsp is set as a default index file.
    When I try and go to myserver:8080/mysite the browser loads the jsp as text. Just like I'd opened it in a text file.
    I've removed the site folder, and uploaded a new war file (which works on my local 10.6.2 client machine with Tomcat 6.0.24 installed), and a new site folder is created as expected. But the jsp page just doesn't load correctly.
    What am I missing (besides years of Tomcat and Apache experience..)

    hey.. noticed one more thing.. stuff works when i put
    it in my file:///var/lib/tomcat-5.5/webapps/ROOT/
    folder .. so i think i havent set my user properly..
    any pointers??I don't think you should be putting stuff in ROOT.
    Create your own web context and put it under /webapps.
    %

  • Intermitent pauses when loading JSP page.

    Solaris 7
    Weblogic V5.1 SP5
    Apache 1.3.12
    Mod_wl_ssl.so
    JDK 1.3
    Hi,
    We have two environments running very similar configurations.
    The first is a test environment with an Ultra5 running as an Apache server
    and an Ultra 10 as the weblogic server. Two databases are currently being
    used one is an SQL and the other Oracle.
    The second is our production site, and is the same apart from the hardware,
    the Apache system is a Netra and the Weblogic server is a 220R. (There are
    some other differences, physical location etc)
    On the test site everything is fine but on the live site we are experiencing
    a long pause when loading pages. This happens every 10-15 times a page is
    loaded, and only on JSP pages. It seems to stop after loading part of the
    page and around 30-60 seconds later the rest gets loaded.
    This is very easy to reproduce just by hitting the home page of our site
    about 10 times.
    I'm going to swap out as many network components at our co-location as
    possible, but I'm wondering if anybody else has experienced a similar
    problem.
    Regards
    Steve Haigh

    It turned out to be a faulty network component!! Strange behaviour though.
    Steve Haigh <[email protected]> wrote in message
    news:3a077a36$[email protected]..
    Solaris 7
    Weblogic V5.1 SP5
    Apache 1.3.12
    Mod_wl_ssl.so
    JDK 1.3
    Hi,
    We have two environments running very similar configurations.
    The first is a test environment with an Ultra5 running as an Apache server
    and an Ultra 10 as the weblogic server. Two databases are currently being
    used one is an SQL and the other Oracle.
    The second is our production site, and is the same apart from thehardware,
    the Apache system is a Netra and the Weblogic server is a 220R. (There are
    some other differences, physical location etc)
    On the test site everything is fine but on the live site we areexperiencing
    a long pause when loading pages. This happens every 10-15 times a page is
    loaded, and only on JSP pages. It seems to stop after loading part of the
    page and around 30-60 seconds later the rest gets loaded.
    This is very easy to reproduce just by hitting the home page of our site
    about 10 times.
    I'm going to swap out as many network components at our co-location as
    possible, but I'm wondering if anybody else has experienced a similar
    problem.
    Regards
    Steve Haigh

  • How to load jsp page in Frame?

    hi
    I have tried to make an Application which is a very simple Messenger made by java.awt.Frame
    and had problem to load/open jsp page.
    Is there any way to load/open jsp page in Frame When an event occured?
    It makes me crasy these days.
    Please Help me.
    Thank you and have a nice day!
    Sorry about my English^^

    I think we need more info than that.
    Why do u want to open JSP in a Frame? do u want to open it with all the JSP code still there (for editing), or do u just want to display the HTML which is created after executing the JSP.
    You will need Tomcat or JRun or another servlet/JSP engine to execute a JSP. do u have it installed? and the fact that u have win2000 and sql server 2000 doesnt really shed any light on your problem and what u r trying to acheive.
    Post more info and hopefully we'll be able to help u better.

  • Jsp page getting error when opened after opening a form

    Hi,
    I have created an OA page, there is a link and a button in this page.
    Whenever I click on the link, a standard jsp page will be opened in a new window.
    When the button is clicked a standard form will be opened.
    But when I click the button, and then click on the link then an error page is getting displayed with 'Logged in user does not have permission to access this page.' message.
    Please help me on this.
    Thanks.

    But when I click the button, and then click on the link then an error page is getting displayed with 'Logged in user does not have permission to access this page.' message.
    Do you mean to say that the link works if you click on it without clicking on the button? The jsp you are talking about is a seeded one or a custom? --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to execute a backing-bean method before loading JSP Page?

    Hi everybody.
    Scene:
    An AdfForm, with
    -SelectChoice, referenced to a <list> of pageDef, which is referenced to an ADF BC.
    Goal:
    -Executing the query of the ADF BC before load the SelectChoice, to load the correct values.
    A good question to know:
    Exists any way to execute a method of backing before loading a JSP Page?
    Any similar to onload method of javascript. It could be fantastic.
    Thanks in advance,
    Jaime

    hi Jaime
    If I understand correctly, you are using the ADF Model for data binding.
    Because your goal is "Executing the query of the ADF BC ...", maybe you can also consider to refresh an executable in your Page Definition.
    See also "10.5.5 How to Use Refresh Correctly for InvokeAction and Iterator Bindings"
    at http://download.oracle.com/docs/html/B25947_01/bcdcpal005.htm#BJECHBHF
    It says "... You can use the Refresh property on iterator bindings and invokeAction executables in your page definition to control when each are evaluated during the ADF page lifecycle, either during the prepareModel phase, the prepareRender phase, or both. ...".
    Although you have posted your question in a structured way, which is a good thing, I think it would help to understand your question if you can explain how you determine "the correct values" for your list, what is varying?
    success
    Jan Vervecken

  • Master + 2 table details on same page gives error

    first I am using jdev + jheadstart 9.0.3
    I got a master with 2 details on the same page and
    this page gives me errors. I cannot update the master or
    insert the master. The details fails too with insert and update.
    If I change the same page property of one detail all goes well.
    Is this a bug

    Edwin,
    Yes, it is. It has to do with the way checkForChanges is called. I do not have an example available of the generated code, but the generator should have generated something like:
    onSubmit = "return (checkForChanges('myForm', 'Set1') &amp;&amp; checkForChanges('myForm', 'Set2'));"
    It has been recorded as bug no 2745305.
    To fix this, you must change the page manually.
    Jan Kettenis

Maybe you are looking for