Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP is not running under JRun

 
Ramesh Subramanian
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic