Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes JSP is not running under JRun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP is not running under JRun" Watch "JSP is not running under JRun" New topic
Author

JSP is not running under JRun

Ramesh Subramanian
Greenhorn

Joined: Oct 03, 2000
Posts: 13
Hello,
I'm Having win'98,jdk1.2.2(professional),jsdk1.2.1(Enterprise),JRun.
I can able to run the servlet files..
But i couldn't able to run the JSP files..
I followed all the steps they said on the sample example.
The pgm is:
<html>
<head>
<title>Greetings</title>
</head>
<body>
<% for(int i=0;i<5;i++) { %>
<h1>Hello World!</h1>
<% } %>
</body>
</html>
It gives the following error.
404 Not Found
/MyFirstJspPage.jsp:
allaire.jrun.JRunServletException: The page /MyFirstJspPage.jsp could not be found.
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:56)
at allaire.jrun.jsp.JSPServlet.parsePage(JSPServlet.java:409)
at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:381)
at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java, Compiled Code)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled Code)
at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)

Can anyone pl tell me what are the things i have to do?
Is there is anything needed to set the classpath?
Thanks in Advance
Ramesh
Brian Nice
Ranch Hand

Joined: Nov 02, 2000
Posts: 195
are you sticking this file in the jrun/servers/default/default-app directory? That is where JRun needs the JSP file if you have not set up any sort of application mappings. The deafult-app directory is a quick way to test JSPs because you can just throw them in that directory, and check the url. If you are running on your machine, make sure to include the port number in your URL. For instance:
http://localhost:8100/MyFirstJspPage.jsp
hth
Brian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP is not running under JRun