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!!

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 to develop and Run .jsp page from Jdeveloper 10g

    Dear All,
    I need to develop one small JSP page using Jdeveloper10g. pls share information How to develop and Run .jsp page from Jdeveloper 10g.
    Thanks in Advance,
    Hanimi.

    Hi Gyan,
    Any Idea how to get DB connection for JSP Pages.
    Our Java guys developed one JSP page for Login page.
    After Log in instead of standard responsibilites page we calling custom jsp page, For getting DB connection they defined one properties file and hard coded DB details on that file and calling, but client is not accepting hard coding.
    Pls give any idea for getting DB connection directly in JSP pages.
    Hanimi.

  • I have an old file that was made by macromedia flash,but I can't run this file in my Windows 7 64-bit ,while I can run it in Windows XP 32-bit

    I have an old file that was made by macromedia flash,but I can't run this file in my Windows 7 64-bit ,while I can run it in Windows XP 32-bit

    Hi momi macrom,
    Have moved your post to the Flash forum. Experts here are better placed to help you.
    Thanks,
    Preran

  • Can we run EXE file/ Another Java Program from Java Application? How?

    Can we run EXE file and another java program from java application?
    Thanks in advance

    Example running adobe acrobat
    String command = "C:\\Program Files\\Adobe\\Acrobat 5.0\\Reader\\AcroRd32.exe /t "+selectedDocument+" \\\\CONTROL\\HP LaserJet 4L";
    Runtime rn = Runtime.getRuntime();
    Process process = rn.exec(command);
    process.waitFor();rykk

  • Can't run Batch files or Devnev (visual studio) - is not recognized .. command

    Getting the famous error :
    ... is not recognized as an internal or external command`*
    When & Where :
    not sure about the total range of the problem,
    Here I can't run batch files and "devneve.exe"
    sample Batch could be :
    @echo off   
    clr
    'clr' is not recognized ...
    **Here are the keynotes:**
     1. I run it as an admin (cmd)
     2. The Path variable seems to have anything needed, Powershell's path is also there sys32..v1
     3. I'm going into the current directory of devnev.exe ...
     4. ran also "devnev.exe"
     5. I don't have 2 cmd s in a known folder
     6. the autorun registries for command prompt were deleted
     7. the cmd extensions were disabled and re-enabled
     8. Avast IS 9 is running,
     9. The system seems to be fine
     10. all .Net frameworks are installed
     11. for a test jetAudio or ILDasm could be executed from the cmd
    Win 8.1 Pro , CPU i7, VS 2013 upd2

    thanks,
    this was one of the silliest problems I've ever encountered, my bad fault,
    the file is DevEnv not DevNev...!
    but about the clr, don't know from when I added them to my batches, but I'm sure the scripts were working correctly a time ago, maybe by a mistake I changed them, I thought it is the most known command, but I was wrong, there is a long time gap between me
    and DOS.

  • Can't find the imported java class when run .jsp file

    Hi,
    I want to run a jsp web application using tomcat. I put all my .jsp files under "TOMCAT_HOME/webapps/junmin" directory, and put all .class files under "TOMCAT_HOME/webapps/junmin/WEB-INF/classes" directory. I set up TOMCAT_HOME AND JAVA_HOME already. But when I type in the address like below:
    http://db1.acad.emich.edu:8080/junmin/login.jsp
    The IE will give me error msg indicating that it can't find all the .class files which I imported them in login.jsp file.
    So, does anyone know that if I miss some configuration in order to let the .jsp file recognize the .class files. Thanks a lot!
    Sincerely, Junmin

    Ha, this might be the reason.
    Can I add sth like this:
    <Context path="/junmin" docbase="junmin" debug=0 reloadable=true>
    </Context>
    But in my local computer, I didn't add this <Context> either. It works well.
    Thanks a lot! I will ask the administrator to try this.
    And will write down the reason.
    Sincerely, Junmin

  • Problem in configuring my Laptop to run JSP files

    I am having problem in testing my finished JSP files in my laptop. Everytime I run my JSP, it continues requesting for internet connections. It cannot run in an offline modus. I am using Mindows 2000, JDeveloper 3.2.3 and Oracle 9i database.I installed IIS(Internet Information Server). I need urgent help because of my school presentation.

    Hi,
    Please check this link and follow the guide to configure exchange online account to your IPhone:
    https://support.office.com/en-SG/Article/Set-up-email-on-Apple-iPhone-iPad-and-iPod-Touch-b2de2161-cc1d-49ef-9ef9-81acd1c8e234
    Since this forum is for general questions and feedback related to Office for windows, if you need further assistance on this issue, you can post in the following forum:
    https://social.technet.microsoft.com/Forums/msonline/en-US/home?forum=onlineservicesexchange
    The reason why we recommend posting appropriately is you will get the most
    qualified pool
    of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Internal Server Error while running JSP file (Oracle AS - HP Unix)

    Hello Friends,
    I have created a JSP file in which I am trying to connect the database using oracle.jdbc.pool directory. But it shows an error message as:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    the path for pool package is:
    /appltest/apps/prodora/iAS/oem_webstage/oracle/jdbc/pool
    the location of JSP file is:
    /appltest/apps/prodcomn/portal/TEST_test/test
    What I think is I have to play with the CLASSPATh entries, but dont know how. Please help me in solving this issue...
    For your reference the JSP code is:
    <%@ page import="java.sql.*, javax.sql.*, oracle.jdbc.pool.*" %>
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl" scope="session" />
    <%
    try
    ods.setURL("jdbc:oracle:thin:@test:1546:test");
    ods.setUser("kpm_hr");
    ods.setPassword("kpm_hr");
    Connection conn = ods.getConnection();
    Statement stmt = conn.createStatement();
    Resultset rset = stmt.executeQuery("select first_name,last_name from kpm_hr.kpm_hr_emp_mst where empcode='P0580'");
    rset.next();
    out.println(rset.getString(1)+" "+rset.getString(2);
    catch(SQLException e)
    out.println(e);
    Thanks in adavnce,
    Ankur
    Regards,
    Ankur Bhatia

    Just to verify, which relevant log files have you found?
    catch(SQLException e) {
    out.println(e);
    } Have you search the console log file?
    A quick observation reveals that your jsp is just a standalone java program executed inside jsp. Suppose you just run it as a standalone program. Any error then?
    Another way going forward is to install oc4j standalone of the same version. It is very easy to install: just download the oc4j-extended.zip and unzip it and run "java -jar oc4j.jar". Put you jsp inside j2ee/home/default-web-app and run. You should see relevant log messages in j2ee/home/log/server.log and j2ee/home/application-deployments/yourApp/application.log.
    You should have Jdeveloper of some appropriate version installed. If you have not, install one. It might be not a little bit high learning curve at first, but the rewards are quick and amazing, especially since jdev 10.1.3. (I am speaking from my experience.) Try it with Jdeveloper.

  • [Error running JSP portlet in JDeveloper

    I'm writing a JSP portlet with JDeveloper 9.0.3.
    The "index.jsp" works OK, and I can see the registration URL for my new provider.
    I deploy the application to Oracle9iAS 9.0.2.0.1 Application Server succesfully throught DCM servlet, register the new provier and I can run the portlet succesfully.
    But if I try to run the "pasa_parametroShowPage.jsp" inside the Jdeveloper, I get an HTTP 500 Error :
    java.lang.NullPointerException
         void htdocs.pasa__parametro._pasa__parametroShowPage._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         [htdocs/pasa_parametro/pasa_parametroShowPage.jsp]
              pasa_parametroShowPage.jsp:12
    Line 12 is:
    Hello <%= pReq.getUser().getName() %>
    Thanks in advance.

    In order to successfully run, "pasa_parametroShowPage.jsp" must be called in a portal context - JDeveloper does not do this.
    Therefore, when called from JDeveloper, the PortletRenderRequest object is not present, hance the null pointer exception.
    You shouldn't attempt to run this JSP directly from with in jdev. You'll notice that if you point a browser directly at that JSP, you will get the same null pointer exception.
    If you need to debug this JSP in jdev, you can use a portal instance **or** the test harness (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/TESTSUITE/PDKTEST/PDKTEST.ZIP)
    to fire http requests at JDeveloper's embedded OC4J.

  • 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.

  • How to run jsp file in Apache Tomcat 5.0?

    hi,
    i'm using jdk1.5,jsp1.2 & Apache Tomcat 5.0 as a web server.in my application i have 2 jsp files,1 html file & 1 javabean class.where i must place the html,jsp files and the .java file & .class file for a bean class.how to run this application.
    bean class:
    public class Userdata {
    private String username;
    private String email;
    private int age;
    public void setUsername( String value )
    username = value;
    public void setEmail( String value )
    email = value;
    public void setAge( int value )
    age = value;
    public String getUsername() { return username; }
    public String getEmail() { return email; }
    public int getAge() { return age; }
    getname.html file:
    <HTML>
    <BODY>
    <FORM METHOD=POST ACTION="Savename.jsp">
    What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
    What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
    What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
    <P><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    savename.jsp file:
    <jsp:useBean id="user" class="Userdata" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <HTML>
    <BODY>
    Continue
    </BODY>
    </HTML>
    nextpage.jsp file:
    <jsp:useBean id="user" class="Userdata" scope="session"/>
    <HTML>
    <BODY>
    You entered<BR>
    Name: <%= user.getUsername() %><BR>
    Email: <%= user.getEmail() %><BR>
    Age: <%= user.getAge() %><BR>
    </BODY>
    </HTML>
    refer these source code and plz,give the result at the earliest.
    whether i want to write a web.xml file for this jsp file.
    if yes,means plz present the web.xml file for this application.
    plz,if anybody knows give me detailed description for this application.

    create a dir under webapps dir
    place your .html and .jsp files here
    also create WEB-INF dir here
    Under WEB-INF create classes and lib dir
    under classes dir put your .class file
    You also need to put web.xml under your WEB-INF dir.
    You ca keep your java file any where u want on your computer.

  • How to precompile jsp file in jdeveloper before deployment....

    Hi
    thank you for reading my post
    how i compile jsp file in my web application , is it doable in jdeveloper 10.1.3.0.4?
    even if i could precompile the application before deployment is OK for me.
    thanks

    1. Highlight your web project or the individual file
    2. Right click
    3. Select Rebuild to build all jsp files or Make to rebuilt only changed files

  • Can't open .jsp files on my mac from a citrix link

    I can't open any .jsp files on my mac. It's from a citrix site for work but it doesn't recognize how to open it at all. It downloads to launch-10.jsp but nothing happens. When you try to open it, it says it doesn't recognize the file type.

    Go to the App store and download The Unarchiver. Its free and will open most file types.

  • Unable to run JSP file in TOmcat

    My Tomcat is running when i type http://localhost:8080/index.jsp , i'm able to see home page
    CLASSPATH=C:\j2sdk1.4.2_08\bin;E:\Grinder;E:\Grinder\lib\grinder.jar;C:\Program Files\Java\j2re1.4.2_08\lib\grinder.jar;
    JAVA_HOME=C:\j2sdk1.4.2_08
    I tried both pointing to JAVA_HOME C:\Program Files\Java\j2re1.4.2_08
    When i try to run the JSP file under C:\Tomcat 5.0\webapps\ROOT\add.jsp. I'm getting following error.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    I know the same.
    But problem is that whenever I am creating a new file containing single line say 'Hello world' and then try to run,
    the similar type of error msg comes.

Maybe you are looking for

  • Consignment Scenario

    Dear Experts, We have the consignment business scenario below: 1. Supplier sends the materials to our location 2. Every Monday we count all the remaining materials to determine actual consumption. 3. We report the materials used to supplier with a PO

  • Intall BOBJ INTEGRATION FOR SAP XI 3.0 LINUX

    hi, I install BO. When I install to step "installation Directory",  it show error below: "No install of Enterprise 12 coud be fonnd at the specified path" I do not know to choose directory. Can you help me? Thanks Minh Duy

  • Wireless Mighty Mouse Right Button does not work well

    Recently I bought in Online Apple Store a Wireless Mighty Mouse. I installed the drivers that came in the CD, and, I defined in the System Preferences the second button of the mouse (the Right Button) to function as the Secondary Button. But after th

  • Fonts Retrieval

    Hi All, I have a view that allows users to control text, and formatting of this text, that will be shown (or not) in a form. Is there any way I can retrieve a list of the fonts available in adobe forms so I can present them in a drop-down list for us

  • To maintain material with the plant

    hi to all, i hv create a configural material, but when im going to create a BOM for the material i face error, "material not maintained in plant". i want to know how i maintain this configural material with the plant to create BOM?