File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Can I use JRun to run JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can I use JRun to run JSP" Watch "Can I use JRun to run JSP" New topic

Can I use JRun to run JSP


Joined: Nov 08, 2000
Posts: 11
I installed JRun 3.0 Developer Edition. And tried to run a JSP file from my http://<server>:8000/MyFirstJsp.jsp
(after saving the file under
<jruninstalldirectory>/servers/default/default-app directory )
It is sagiving the message, its not abole to find the specied file.
Should I do some other settings...or does JRun3.0 version I am using, support JSP or not?
Please give any pointers.
Manoj Singh
Ranch Hand

Joined: Aug 10, 2000
Posts: 41
Everything seems to be right !! ...Check the JSP code ! See what excat error message is it giving !!

Sun Certified Java 2 Programmer<BR>" Only those who will risk going too far can possibly find out how far one can go "
Bala Krishniah
Ranch Hand

Joined: Dec 14, 2000
Posts: 81
My jsp code is
<% for(int i=0;i<5;i++) { %>
<h1>Hello World!</h1>
<% } %>
First of all how do I deploy the jsp file in the JRun?
Is it enough to save the file under the specified directory?
It is giving the error:
404 Not Found
allaire.jrun.JRunServletException: The page /MyFirstJspPage.jsp could not be found.
at allaire.jrun.jsp.JSPParser.generateXML(
at allaire.jrun.jsp.JSPServlet.parsePage(
at allaire.jrun.jsp.JSPServlet.createServlet(
Manoj Singh
Ranch Hand

Joined: Aug 10, 2000
Posts: 41
The code is absolutely correct ! The Directory where you are saving it is also fine .. ie ../default/default-app/..check if the name of the jsp file you are invoking is the same as the one you kept while creating it ?
In JRUN 3.0 you just put the pages in the above said directory and the server itself will do the compilation and display the result
[This message has been edited by Manoj Singh (edited December 14, 2000).]
Bala Krishniah
Ranch Hand

Joined: Dec 14, 2000
Posts: 81
Yes, the file name is correct. This is how I am calling, http://krishniah:8000/MyFirstJspPage.jsp
What can be wrong? Is there other settings I have not done?
Bala Krishniah
Ranch Hand

Joined: Dec 14, 2000
Posts: 81
Hi Manoj,
I did it, what I was doing wrong was, I was starting and logging
into the JRun Admin Server but not the JRun Default server.
And called my file using, http://krishniah:8100/MyFirstJspPage.jsp
And it worked...
But what I dint understand was why 8100 port? I guess thats the default port, is it?
But thanks a lot. I really appriciate it.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
By the way. Many thanks for changing to a new name. We do appreciate it, honest.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Bala Krishniah
Ranch Hand

Joined: Dec 14, 2000
Posts: 81
This is a great service, and this site is wonderful.
Thank you so much!
sateesh arumbaka

Joined: May 17, 2001
Posts: 5
hello Krishna
I did download an evaluation of JRun
and I faced the same problem that U faced,
when I used port no. 8100 instead of 8000 it works fine
why doesnt the port 8000 work ...
Subbu Aswathanarayan
Ranch Hand

Joined: Jun 22, 2001
Posts: 73
the JRUN admin server runs at port 8000.this server is used only for admin purpose.

Kunal Aher

Joined: Apr 07, 2000
Posts: 20
Just to add . The admin server that runs on port 8000 is just another server like the one that runs on port 8100 . So technically it is very much possible to add an application and use it just like default server .
But the more important aspect is that of creation of an application ( u shd create a folder somewhere in the sytem before ) and then set the physical folder name . Once u have created the application u can put jsp files in the root of the folder and classes in web-inf\classes .
To add some more info u can also add another server in addition to default and the admin server ..

I agree. Here's the link:
subject: Can I use JRun to run JSP
It's not a secret anymore!