• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Can I use JRun to run JSP

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Thanks
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Everything seems to be right !! ...Check the JSP code ! See what excat error message is it giving !!
Manoj
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My jsp code is
<html>
<head>
<title>Greetings</title>
</head>
<body>
<% for(int i=0;i<5;i++) { %>
<h1>Hello World!</h1>
<% } %>
</body>
</html>
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
/MyFirstJspPage.jsp:
allaire.jrun.JRunServletException: The page /MyFirstJspPage.jsp could not be found.
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:57)
at allaire.jrun.jsp.JSPServlet.parsePage(JSPServlet.java:403)
at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:375)
:
:
:
 
Manoj Singh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Manoj
[This message has been edited by Manoj Singh (edited December 14, 2000).]
 
Bala Krishniah
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way. Many thanks for changing to a new name. We do appreciate it, honest.
 
Bala Krishniah
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a great service, and this site is wonderful.
Thank you so much!
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ...
sateesh
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
the JRUN admin server runs at port 8000.this server is used only for admin purpose.
Subbu
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ..

 
reply
    Bookmark Topic Watch Topic
  • New Topic