Can't run JSP

I downloaded Tomcat and I installed. I set the JAVA_HOME and CATALINA_HOME variables to the appropriate values. I have the j2sdk1.4.1_01 installed. Although the http:localhost:8080/ is opening after that I do not know quite how I can run the examples.
I put a .jsp file in the webapps\ROOT and I tried to run it through IE with the URL
http://localhost/name.jsp as I read in a tutorial.
Is it wrong?It does not working anyway.
What can I do and how I can run jsp examples???
Please answer me...

Do one thing put all your jsp files in a directory like my directory name is Jignesh, then it will be created in
C:\Program Files\Apache Tomcat 4.0\webapps\Jignesh
now to run any JSP file
you should write in address bar
http://localhost:8080/Jignesh/filename.jsp
and your tomcat must be running at that time. ok. hope this will help you.

Similar Messages

  • Can't run jsp file

    why i can't run my jsp file? but some of them can be run ?
    i use tomcat.
    this is my snippet code :
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <%
         out.println("Hai");
    %>
    </body>
    </html>i can't run above jsp file. why ?
    am i being hacked ? i use IE 5 althought sometime i use netscape 6 or Opera 7.
    i try to run another jsp file, it's succeed but with above simple jsp file, it can't.
    but when i tried to run it on another computer, it runs.
    HELP ME!

    Once again, I HAVE SAVE IT!. and i make sure that the
    file name didn't mistake.
    but when i run it, the link doesn't have any link to
    anywhere.Maybe your link is incorrect.
    >
    the other step i take, save as the file to another
    name and then run it again, but it still the same.
    the change i have made is useless.
    Just for this file (suppose we call it trouble.jsp).
    for another jsp file, when i run it, it works.
    but, for this trouble.jsp, i found it very weird.Weird won't help anybody fix your problem.
    >
    I'll repeat once again, i have save it and make sure
    the name is correct, the path is correct when i run
    it.Then everything's fine, I guess.
    Yes, sometime we make mistake and let other people get
    the blame.
    but, for this, i found it weird.The machine is only doing what you told it to do, and what you told it is quite incorrect. There's nothing weird about it.
    >
    according to me, i have set my tomcat very well.Maybe you aren't the best judge.
    from the start i use it, it works fine and give me
    result the way i expected.Then why are you posting anything here? Sounds like you know everything and that all is well.

  • How can I run jsp in Eclipse

    I've installed eclipse which runs with tomcat. In what directory I should put jsp in order to run it?

    Hi,
    Download Myeclipse plugin from www.myeclipseide.org.com
    with in that plugin you can develop all application.
    bye
    sure..:)-

  • Can't run jsp files in Jdeveloper

    I have some existing jsp files and when I compile these files, Oracle9i Jdeveloper keeps telling me "Error: JSP files must reside in the server root directory or a subdirectory beneath it".
    I originally think that's because of "import" and I got rid of all "import ....", and the same error message still insists.
    Please help, thanks!:-).

    Hi All!
    I have just downloaded jdeveloper 9.0.3.3 - and I have run into a similar issue...
    1. I created workspace by selecting new workspace from wizard
    2. I created a new project -- from existing (previously tested using Resin server) code -- and, I select the "copy files to project directory" checkbox in the "wizard" dialog
    3. when I rebuild the project in jdev9033, for each jsp file name I get this message, i.e.,
    "Error: JSP files must reside in the server root directory or a subdirectory beneath it"
    what does this mean for me do?? (btw - I am using the default server that is integrated within Jdeveloper)
    In my working "existing code", my jsp files are loosely located under my "myProject" folder (which also contains the "WEB-INF" and "src" folders.
    Where, in my existing code, does JDeveloper expect to my the JSP files to be?....In a "JSP" folder?.... Or, where - within my new workspace/project - should I copy these JSP files in order to make this error message go away??
    Thanks for you help!!

  • Hi, can any one know how to run .jsp application in weblogic 8.1

    hi,
    i am using weblogic 8.1 ,
    in weblogic 6.1 and 7.0 there is directory called default web apps under bea\user projects\application.we placed all .jsp file under here.
    now bea deleted this folder.
    now how to set of environment for run .jsp application using weblogic8.1
    can one may help thanks,
    jp reddy

    hi,
    i solve this one after check bea documnetaion.
    with regards
    jp

  • Jsp files: how can i run it on web logic server 6.1?

              I have installed web logic server 6.1 on my machine but i have some trouble to
              run jsp files on it cause if i have a .jsp file in the root directory(where is
              placed index.html default home page) and try to call the .jsp file on the browser
              it appears the source of the jsp. How can i do to compile the .jsp file and return
              the page result on the browser?
              Thank you
              Paolo
              

    Copy JSP file into the
              /applications/DefaultWebApp directory
              In a web browser, request the JSP file using the following URL:
              http://localhost:port/
              Paolo wrote:
              > I have installed web logic server 6.1 on my machine but i have some trouble to
              > run jsp files on it cause if i have a .jsp file in the root directory(where is
              > placed index.html default home page) and try to call the .jsp file on the browser
              > it appears the source of the jsp. How can i do to compile the .jsp file and return
              > the page result on the browser?
              > Thank you
              > Paolo
              

  • Can't run login.jsp correctly

    After finishing configuration procedure, I tried to test if it works. I can run test.jsp ok, but I can't run login.jsp correctly.
    I got the message:
    JSP Error:
    Request URI:/papz/login.jsp
    Exception:
    java.lang.NoClassDefFoundError: oracle/panama/model/User
    How can I correct the error?

    Another discrepancy I noticed...pg. 11 of the PTG installation guide specifies you add classpath to file classes111.zip in <PTG_HOME>/panama/lib subdir. I have classes12.zip in that dir.
    Would that make a difference?

  • How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    Please advise...
    VJ

    cross posted
    http://forum.java.sun.com/thread.jsp?thread=299137&forum=31&message=1184025

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Error running jsp page through jdevloper

    Hi,
    I am a newbie trying to run jsp through jdev.It comes up with a error saying Error: /Documents and Settings/al/Desktop/jdev1012/jdev/booking/ViewController/public_html/ not contained in /Documents and Settings/al/Desktop/jdev1012/jdev/Booking/ViewController/public_html/index.jsp.
    Can some one help me.
    I am running on a winxp machine.
    jdev10g.

    swattiii.....yaar..u are tring to put a null value inside hashtable..prbly u are doing this in ur jsp......
    send ur jsp code

  • Can't run J2EE app on AS 10.1.3

    We have J2EE application based on Toplink/ADF/Struts. Our project is maintained in JDeveloper 10.1.2. We had no serious problems deploying our app to AS 10.1.2. But we cannot deploy it on 10.1.3. server. Before any jsp page shows, this internal error is shown:
    500 Internal Server Error
    java.lang.NullPointerException     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    Where can be the problem ? Must we convert aour project into JDeveloper 10.1.3 ? Whe tried it, no success so far. Thanks for any suggestions.

    One small addition - even the simpliest application possible (one jsp, no classes, no data connection) can't run after deploy:
    500 Internal Server Error
    java.lang.NullPointerException     at java.io.File.<init>(File.java:194)     at oracle.jsp.runtimev2.JspServlet.prepareTable(JspServlet.java:564)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:476)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)

  • I have a power Mac G4 mirror front running 10.4.9. How current of an OS can I run on this machine? I want to put it back into use but need to upgrade the software so that I can run the newest version of Quickbooks amoung other things.

    I have a power Mac G4 with a mirror front running 10.4.9. How current of an OS can I run on this machine? I want to put it back into use but need to upgrade the OS so that I can run the newest version of Quickbooks amoung other things.

    I think you're out of luck...
    System Requirements:
    Minimum System Requirements
    Mac with an Intel processor
    Mac OS X v10.6
    1 GB RAM
    CD-ROM drive for installation
    120 MB of available disk space
    Printer: 100% Macintosh-compatible printer, if you plan to print invoices, checks, deposit slips, lists, purchase orders, mailing labels, reports, or graphs
    Checks: Use Intuit Checks if you plan to print checks. Canadian Image Ready Cheques are not supported.
    Integration/Compatibility Requirements
    Export report data requires Numbers '09 (included with iWork from Apple) or Microsoft Excel 2004 or 2008 for Mac.
    E-mail requires Apple Mail; Microsoft Entourage 2004 or 2008 for Mac
    Back up to MobileMe requires paid MobileMe account available separately from Apple, Inc.
    iCal, iChat, and AddressBook are included in Mac OS X. Internet access required for iChat.
    Accepting credit and debit cards directly into QuickBooks 2011 for Mac requires Intuit Merchant Service for QuickBooks for Mac (sold separately); subject to application approval and debit card transactions are processed as Signature Debit which does not require entering a PIN code. See http://payments.intuit.com/legal.jsp for details.
    Processing payroll, integrated with QuickBooks for Mac, requires paid subscription (sold separately), EIN and Internet access. QuickBooks 2011 for Mac works with Intuit QuickBooks Payroll for Mac.
    http://www.amazon.com/Intuit-413615-QuickBooks-2011-for/dp/system-requirements/B 003YJ8WFE/ref=noref?ie=UTF8&n=229534&s=software

  • How to run JSP pages in weblogic 8.1 sp2

    hi frnzs,
    plese give me some idea about how to run JSP pages in weblogic server.

    enen i dont know hw to fly palne otherwise i can definitely give u sm guides abt that......

  • How to run JSP Report

    Hello,
    I am new at Reports 9i. I created report dummy.jsp which selects some data from a table.
    Could you please explain me how to run this JSP Report from internet explorer?
    Sincerely.
    givi

    Hello Givi,
    For running the JSP report from a browser, you need a J2EE container like OC4J. The JSP report can be run in two ways:
    1. rwservlet
    http://<we_server_host>:<port_no>/reports/rwservlet?<reports_parameters>
    2. the JSP deployed on the J2EE container
    http://<we_server_host>:<port_no>/<context_root>/your_report.jsp?<reports_parameters>
    Method 1 will actually display the paper layout of your report, while method 2 will display the web layout on the browser.
    If you want to start with basic information, pl refer to the section 8.1.2 of Publishing Reports document available at
    http://otn.oracle.com/docs/products/reports/content.html
    Navneet.

  • Running JSP 2.0 pages on Tomcat 4.1

    I have web-application written in JSP 2.0. I use custom tags in tag-files and EL.
    How can I run this application on hoster's Tomcat 4.1 server.

    But hoster do not have Tomcat 5 :( only Tomcat 4.1
    May I run JSP 2.0 app on Tomcat 4.1 with some tricks

Maybe you are looking for