The way the default-app is set up (<hint>and this is in the documentation, so
you might want to read it</hint>) is to look in the Web server's document root
for JSP pages.  There's a property called use-webserver-root in
webapp.properties for the default-app, as well as in local.properties for the
default-app.  It looks like this:

default-app.use-webserver-root=true

If you don't have the Web server and JRun connected, then this property does
nothing for you.  This property is set this way to make life easier for users
who have the two connected.

So, anyway, when you request a JSP through the default-app mapping, JRun is
going to look in the Web server's document root.  If it's not there, it won't
find it.  Something that throws some people off is that if it was there once,
and had been requested successfully, and then JRun and the Web server have been
disconnected, they can still hit the page, even though they aren't going through
the Web server.  Big mystery?  No.  The JSP gets compiled into a servlet, and
once it's a servlet it's served entirely through JRun.

To get your JSPs working out of an app directory, use the demo-app's directory,
or create a new app and use that.  The only app _by default_ that looks for JSPs
in the Web server is the default-app.

Scott Stirling
West Newton, MA


> -----Original Message-----
> From: Sabi Humphrey [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 23, 2000 7:44 PM
> To: JRun-Talk
> Subject: RE: Testing installation
>
>
> Steve
>
> I tried as you said and was having the following error
> on the page displayed. I placed the page mytest.jsp in
> the folder C:\Program
> Files\Allaire\JRun\servers\default\default-app
> and the default server was running.
>
> 404 Not Found
> /mytest.jsp:
>
> allaire.jrun.JRunServletException: The page
> /mytest.jsp could not be found.


------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to