Hi.

I had that error, that I could not put a .jsp in the root.  I am not sure
why but I remember I could not find a way around it at the time so I ended
up putting it in the /jsp folder with all the rest of the .jsp files and
pointing the

<welcome-file-list>

option in web.xml at /jsp/index.jsp

I would try doing some poking around in TOMCAT_HOME/conf/web.xml to see if
there is something getting in the way there.

If you still have problems let me know.

Andoni.

----- Original Message -----
From: "Robert Charbonneau" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 9:31 PM
Subject: Re: <Context>


> On August 27, 2003 10:12 am, John Turner wrote:
> > Sure, as soon as you give us insight such as:
> >
> > - what's wrong, exactly
>
> I want to be able to run JSPs directly from the root of the domain on the
> webserver.  ie. http://domain.tld/index.jsp
>
> When I access http://localhost/index.jsp when the path of the Context
> container is set to "/", I get a 404.  This, obviously, is undesirable.
> However, if I simply hit http://localhost/ Apache gives me a directory
> listing which shows me index.jsp.
>
> > - what error messages you're getting
>
> I get a 404 File Not Found error when I try to access index.jsp from /
when
> <Context path="/"
>
> > - what version of Tomcat
>
> 4.1.27
>
> > - what version of Apache, what connector
>
> Apache httpd 2.0.47 and mod_jk-2.0.43.so
>
> > - whether its working in Tomcat standalone, without Apache
>
> It's not working as the root of the tomcat server on port 8080, but I
wasn't
> expecting it to.  I want the root of the domain being able to serve JSPs
and
> Servlets so I don't have to create a subdirectory off of the root for this
> purpose.
>
> > - what URL you are trying to use
>
> http://localhost/index.jsp
>
> > Specific information is best.  Saying "it doesn't work" doesn't help us
> > help you.  Also, there is more involved in Apache + Tomcat than just
> > server.xml, so you will need to give us that information as well (please
> > don't post entire files...just snippets showing deviations from defaults
> > is sufficient).
>
> Sorry about that, most mailing lists I belong to are pretty free form.
I'll
> keep an eye on the amount of data sent in the future.
>
> As for the rest of the configuration, everything is default except
server.xml.
> When I startup Tomcat mod_jk.conf is generated in
$CATALINA_HOME/conf/auto/
> and is included by httpd.conf which is the only modification to that file
I
> made aside from changing ServerName to ServerName localhost.
>
> Any help would be appreciated.
>
> > John
> >
> > Robert Charbonneau wrote:
> > > I was trying to setup Tomcat to allow Apache to serve *.jsp files from
> > > the DocumentRoot of Apache.  I had setup the following:
> > >
> > >
> > >         <Context path="/" docBase="/jsps/global/root" debug="9"
> > > reloadable="true" >
> > >           <Loader checkInterval="3"/>
> > >           <Logger
className="org.apache.catalina.logger.SystemOutLogger"
> > > timestamp="true"/>
> > >         </Context>
> > >
> > >       </Host>
> > >
> > >     </Engine>
> > >
> > >   </Service>
> > >
> > > </Server>
> > >
> > >
>
> --
> Robert Charbonneau
> [EMAIL PROTECTED]
> --
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to