Dim,
Very nice, this tip solved my problem.
I've added the line <Context path="" docbase="c:/winnt"> and now I can run
root JSP file that are
mapped to c\winnt.
Actually, I've tried it before, but I was expecting to see the lines in the
server.xml to be
reflected in the tomcat-apache.conf file, as it was in other lines I have
inserted to server.xml
(for example:
adding <Context path="/MyJspDirectory" docBase="c:/winnt" /> to
server.xml
caused Tomcat to add ( in it's restart ) the following lines to
tomcat-apache.conf:
Alias /MyJspDirectory "c:/winnt"
<Directory "D:/j/webapps/test">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /MyJspDirectory/servlet /MyJspDirectory
<Location "/MyJspDirectory/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Directory "c:/winnt/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Location "/MyJspDirectory/META-INF/">
AllowOverride None
deny from all
</Location>
<Directory "c:/winnt/META-INF/">
AllowOverride None
deny from all
</Directory>
)
And since tomcat-apache.conf was not changed I didn't even try to check root
JSPs.
Although there is some anomaly here, it is working fine, thank you.
( Maybe the answer is in the tomcat-apache.conf line
ApJServMount /servlet /ROOT
that force Apache to mount root JSPs to Tomcat root directory, and then
Tomcat, according to it's
server.xml maps root files to c:\winnt )
All the best,
Eitan
> -----Original Message-----
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP mapping
>
>
> Eitan,
>
> Yep - editing tomcat-apache.conf by hand is a bad idea as it is
> generated by tomcat every time it starts, which would explain why your
> changes disappear (o: I'm assuming that in your server.xml you have a
> line <Context path="" docbase="webapps/ROOT"> or something
> similar? If
> you change the docbase in that to point to "c:/winnt", you should be
> able to remove the context mapping you've put in atm and find that
> http://foo/bar.jsp will work (as will
> http://foo/servlet/myservletmapping).
>
> hope this does the trick
> cheers
> dim
>
> Eitan Ben Noach wrote:
> >
> > Thanks dim,
> >
> > I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
> >
> > No meter what I've tried to do on the tomact-apache.conf
> and server.xml
> > files, Tomcat will not
> > let me map root JSP files to a directory other then
> > c:\jakarta-tomcat-3.2.3\webapps\root
> >
> > Is there any doc that defines the exact syntax of the ApJServMount
> > directive?
> > The user guide gives examples but does not specify the
> exact definition.
> >
> > I've tried the following at the tomact-apache.conf:
> >
> > ApJServMount / /MyJspDirectory
> >
> > and then in the server.xml define:
> > <Context path="/MyJspDirectory" docBase="c:/winnt" />
> >
> > When restarting Tomcat the line "ApJServMount /
> /MyJspDirectory" at the
> > tomact-apache.conf had been removed!
> >
> > Trying the line:
> > ApJServMount /servlet /MyJspDirectory
> >
> > has the same results
> >
> > Eitan
> >
> > > -----Original Message-----
> > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, June 18, 2001 4:05 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: JSP mapping
> > >
> > >
> > > Eitan,
> > >
> > > Are you running standalone or with a web server? Assuming you're
> > > running standalone, and that there's not much else you're
> using tomcat
> > > for, all you need to do is remove the "/"MyJspDirectory" from the
> > > context path and it should work fine.
> > >
> > > cheesr
> > > dim
> > >
> > > Eitan Ben Noach wrote:
> > > >
> > > > HI,
> > > >
> > > > I want to map JSPs called by browser at the http server
> root, like
> > > > http://victoria.xx.yy/zz.jsp to be handled by JSP file that
> > > is located some
> > > > were else then
> > > > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp,
> > > for example by
> > > > c:\winnt\zz.jsp.
> > > >
> > > > I've succeeded on configuring Tomcat to handle JSP files at
> > > the context path
> > > > /MyJspDirectory to be handled by JSP files at the c:\winnt
> > > directory by
> > > > changing the server.xml file by defining:
> > > > <Context path="/MyJspDirectory" docBase="c:/winnt" />
> > > >
> > > > In that way the browser link
> > > http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> > > > handles by c:\winnt\zz.jsp.
> > > > How can I do the same for the link
> http://victoria.xx.yy/zz.jsp ?
> > > >
> > > > It seems that it should be solved through the
> > > "ApJServMount" and "Alias"
> > > > directives as well as the server.xml ( and maybe web.xml ),
> > > > but how?
> > > >
> > > > Thanks
> > > > -----------------------------
> > > > Eitan Ben-Noach
> > > > Proficiency, Ltd.
> > > >
> > > > Tel: +972.2.548.0287
> > > > Fax: +972.2.586.3871
> > > > email: [EMAIL PROTECTED]
> > > >
> > > > The Intelligence in Engineering Supply Chain Collaboration
> > > > <http://www.proficiency.com/>
> > > >
> > > > > ----- Original Message -----
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 18, 2001 2:13 PM
> > > > > Subject: Re: Vs: Vs: mod_webapp.so needed
> > > > >
> > > > >
> > > > > > Give this a whirl:
> > > > > >
> > > > > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > > > > >
> > > > > > The next part is actually configuring it?!
> > > > > >
> > > > > > James
> > > > > > >
> > > > > > > why not....I can�t lose anything...:)....thanks! and yes,
> > > > > we are talking about RH.
> > > > > > > Will you give me address where I can download it?
> > > > > > >
> > > > > > > -jari
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: <[EMAIL PROTECTED]>
> > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > > > > Subject: Re: Vs: mod_webapp.so needed
> > > > > > >
> > > > > > >
> > > > > > > > I've got it compiled for Redhat 6.2, although that's a
> > > > > 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
> > > > > 2.4. If you want to give it a try I'll upload it to my server?
> > > > > > > >
> > > > > > > > James
> > > > > > > > >
> > > > > > > > > Sorry....Linux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ----- Original Message -----
> > > > > > > > > From: <[EMAIL PROTECTED]>
> > > > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > > > > Subject: Re: mod_webapp.so needed
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > It would help if you specified for which platform.
> > > > > > > > > > >
> > > > > > > > > > > Hi,
> > > > > > > > > > >
> > > > > > > > > > > Can somebody tell me where I can get
> > > > > mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > > > > >
> > > > > > > > > > > thanks
> > > > > > > > > > >
> > > > > > > > > > > -jari
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > >
>