Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem running my first JSP using JRun

 
Ria Mathur
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run my first JSP page with JRun,
The code is plain "hello world" in HTML, but I am getting internal server error 500 when I try to view the page. The same installation of JRun runs servlets w/o any problem, so there's is no problem with the installation.
Am I supposed to put these JSP pages in a specific directory of JRun like servlets? The documentation doesn't mention this. Anyone with JRun exp pls help. I am running JRun on Win2k
Thanks,
Ria
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure about Jrun, for the servers that I have worked with, (Tomcat and Websphere) you just create a JSP folder within the servers directory and put your jsp's there. You may want to try that, if you haven't already.
 
Manish Hatwalne
Ranch Hand
Posts: 2595
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ria Mathur:
I am trying to run my first JSP page with JRun,
The code is plain "hello world" in HTML, but I am getting internal server error 500 when I try to view the page. The same installation of JRun runs servlets w/o any problem, so there's is no problem with the installation.

Try setting the classpath which is in general-java config of JRun. It is *not* same as system classpath. Does it compile the jsp into a servlet?
If it doesn't help let us know what the entire error is with ur version of JRun u r using.

Am I supposed to put these JSP pages in a specific directory of JRun like servlets? The documentation doesn't mention this. Anyone with JRun exp pls help. I am running JRun on Win2k

NO!! You can put it in any folder as long as it's a virtual directory.
HTH,
- Manish
[ January 17, 2002: Message edited by: Manish Hatwalne ]
 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There must be a syntax error in your JSP file.
500 Internal server is thrown by the JSP engine when it cannot convert the JSP file into a servlet file.Check your code or put it here for more help.
 
Ria Mathur
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Manish,
It was the classpath in JRun, It couldn't get it to convert into a servlet, now the problem is solvd. Thanx a lot.
-Ria
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic