tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Problem making my servlet the default servlet (instead of ROOT)
Date Thu, 15 Sep 2005 09:29:15 GMT
Hi,

To make this URL work

http://localhost/cart.faces - error 404

You need to just define your context as path="" (although I use path="/ROOT" with no problem).


You URI mappings for JK would need to include (if no other wildcard mapping exists)

/*.faces=ajp13

to ensure traffic with faces extensions reach Tomcat.

Allistair.



> -----Original Message-----
> From: David Thielen [mailto:david@windward.net]
> Sent: 14 September 2005 18:14
> To: 'Tomcat Users List'
> Subject: RE: Problem making my servlet the default servlet (instead of
> ROOT)
> 
> 
> Hi;
> 
> We have some ASP stuff too so we have to have IIS.
> 
> I think I'll just put my servlet in root and stop trying to 
> change what root
> is (yuck).
> 
> Thanks - dave
> 
> 
> -----Original Message-----
> From: Parsons Technical Services 
> [mailto:parsonstechnical@earthlink.net] 
> Sent: Tuesday, September 13, 2005 10:45 PM
> To: Tomcat Users List
> Subject: Re: Problem making my servlet the default servlet 
> (instead of ROOT)
> 
> > If I do <Context path="/" docBase="store"., then
> > http://localhost:8080/cart.faces  returns an error 404.
> >
> Yep. It will. Since you are using the path attribute I assume 
> this is in the
> 
> server.xml and to set it as the root you would use "".
> 
> " If you specify a context path of an empty string (""), you 
> are defining 
> the default web application for this Host, which will process 
> all requests 
> not assigned to other Contexts. "
> 
> If this is not in the server.xml then remove the path 
> attribute completely. 
> Name your package ROOT.war and deploy it. (Someone correct me 
> if I am wrong 
> here.)
> 
> >
> > I figured it should be "/" and not ""?
> >
> 
> No. See above.
> 
> >
> > If I do <Context path="" docBase="store"., then it works. But.
> >
> > http://localhost:8080/store/cart.faces works
> >
> > http://localhost/store/cart.faces works (via IIS)
> >
> > http://localhost:8080/cart.faces works
> >
> > http://localhost/cart.faces - error 404
> >
> >
> >
> > Any idea why the error only if using the root?
> >
> >
> 
> 
> I don't use IIS but I would say it is a configuration issue in the 
> connector, as you are connecting to two different apps in the 
> first two URLs
> 
> than you are in the last two. And since both :8080 URLs work 
> then Tomcat is 
> working.
> 
> Out of curiosity is there any particular reason you are using 
> IIS and not 
> Tomcat alone?
> 
> Doug 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK> 
Disclaimer:  The information contained within this e-mail is confidential and may be privileged.
This email is intended solely for the named recipient only; if you are not authorised you
must not disclose, copy, distribute, or retain this message or any part of it. If you have
received this message in error please contact the sender at once so that we may take the appropriate
action and avoid troubling you further.  Any views expressed in this message are those of
the individual sender.  QAS Limited has the right lawfully to record, monitor and inspect
messages between its employees and any third party.  Your messages shall be subject to such
lawful supervision as QAS Limited deems to be necessary in order to protect its information,
its interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee
that attachments are virus free or compatible with your systems and does not accept any liability
in respect of viruses or computer problems experienced.
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message