On 15/06/2010 20:49, j...@rogers.com wrote: > with the test.html file, im not trying to achieve anything, it was just > a test to see if the virtual directory pointing to the correct place. > thanks for the advice about the conf directory, i will change it > to be able to host the servlet in on my own domain, and not on > localhost, im guessing i have to change something that has to do with > "host" in the server.xml file. Do you have any suggestions on this? > thanks a lot again
If IIS is 'in front' of Tomcat, then you'll configure the domain part there. Tomcat with default config will serve applications from: path/to/tomcat/webapps the default application is given the special name ROOT (capitals matter), so if you want to serve a website, you'd put it in: path/to/tomcat/webapps/ROOT It's completely safe to remove all of the contents of 'webapps' and start over. Alternatively, specify a different path in the 'appBase' parameter of the default Host definition: <Host ... appBase="C:\sites\myapps" and then place a ROOT directory in there. The docs site has plenty of information in the Configuration section. p > --- On *Tue, 6/15/10, Pid /<p...@pidster.com>/* wrote: > > > From: Pid <p...@pidster.com> > Subject: Re: adding servlet to existing website through iis7 and tomcat6 > To: j...@rogers.com > Date: Tuesday, June 15, 2010, 3:39 PM > > On 15/06/2010 18:58, j...@rogers.com > </mc/compose?to=j...@rogers.com> wrote: > > hi > > sorry, yeah that was the apache tomcat connector page i was using, > and i > > am using iis7 > > test.html file is in tomcat\conf, it is where the redirector dll > is and > > it is where i have pointed my virtual directory. > > It sounds like you've got IIS to publish Tomcat's conf directory. > > If it works then you're publishing all of the config files too. (e.g. > server.xml). This is a BAD idea, don't do it. > > > > all i have in test.html is a simple "hello" in the body > > What exactly are you trying to achieve? > > > p > > > > > JB > > > > --- On *Tue, 6/15/10, Pid /<p...@pidster.com > </mc/compose?to=...@pidster.com>>/* wrote: > > > > > > From: Pid <p...@pidster.com </mc/compose?to=...@pidster.com>> > > Subject: Re: adding servlet to existing website through iis7 > and tomcat6 > > To: "Tomcat Users List" <users@tomcat.apache.org > </mc/compose?to=us...@tomcat.apache.org>> > > Date: Tuesday, June 15, 2010, 1:45 PM > > > > On 15/06/2010 18:29, j...@rogers.com > </mc/compose?to=j...@rogers.com> > > </mc/compose?to=j...@rogers.com > </mc/compose?to=j...@rogers.com>> wrote: > > > hi, > > > thanks for the response > > > what im trying to do is host a servlet i've made onto my website > > > i packed it into a WAR file, then deployed it into Tomcat > webapps, > > where > > > i am able to access it through localhost:8080 > > > then i configured iis to work with tomcat. after following > various > > > tutorials on how to configure the isapi redirector > > > > (http://tomcat.apache.org/tomcat-3.3-doc/tomcat-iis-howto.html and > > > > You're using Tomcat 3.3? I thought you said you were using 6.0? > > > > Try: > > > > http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html > > > > > http://onjava.com/pub/a/onjava/2002/12/18/tomcat.html), i got > > eveyrthing > > > working for localhost:8080, the "default website" > > > my servlet works under: > > > http://localhost/<servletname> > > > and also works for the supplied tomcat examples in: > > > http://localhost/examples/servlets/ > > > I tried following the same steps for my own website, as i > did for the > > > Default Website. > > > When i try to access the page i get 404 file not found errors > > > btw, "tomcat/conf" is where i have the isapi_redirector.dll, > and also > > > the various properties files. > > > > "If i make a html file, say "test.html", inside the \conf > folder, i can > > get to it through: > > http://<my website address>/<virtual directory name>/test.html" > > > > So is the file "test.html" in tomcat/conf or somewhere else? > > > > If somewhere else, where is it? > > > > > > p > > > > > > > thanks > > > JB > > > > > > --- On *Tue, 6/15/10, Pid /<p...@pidster.com > </mc/compose?to=...@pidster.com> > > </mc/compose?to=...@pidster.com > </mc/compose?to=...@pidster.com>>>/* wrote: > > > > > > > > > From: Pid <p...@pidster.com > </mc/compose?to=...@pidster.com> </mc/compose?to=...@pidster.com > </mc/compose?to=...@pidster.com>>> > > > Subject: Re: adding servlet to existing website through iis7 > > and tomcat6 > > > To: "Tomcat Users List" <users@tomcat.apache.org > </mc/compose?to=us...@tomcat.apache.org> > > </mc/compose?to=us...@tomcat.apache.org > </mc/compose?to=us...@tomcat.apache.org>>> > > > Date: Tuesday, June 15, 2010, 1:10 PM > > > > > > On 15/06/2010 16:04, j...@rogers.com > </mc/compose?to=j...@rogers.com> > > </mc/compose?to=j...@rogers.com </mc/compose?to=j...@rogers.com>> > > > </mc/compose?to=j...@rogers.com > </mc/compose?to=j...@rogers.com> > > </mc/compose?to=j...@rogers.com > </mc/compose?to=j...@rogers.com>>> wrote: > > > > Hi, > > > > Im using apache tomcat 6.0.18, and have configured it > > successfully > > > with IIS7. I am able to view the Tomcat examples > through both > > > localhost and localhost:8080. I am also able to view > servlets > > that I > > > have deployed into the tomcat webapps folder through > localhost and > > > localhost:8080. This is all under the "Default Web > Site" of IIS7. > > > > I'm having trouble viewing servlets i've made through an > > existing > > > website? > > > > I've tried adding a virtual directory to my website, > like I did > > > for "Default web site" to my tomcat conf directory, and > added the > > > according ISAPI redirectors. All i get is a 404 file not > found > > error. > > > > If i make a html file, say "test.html", inside the \conf > > folder, i > > > can get to it through: > > > > http://<my website address>/<virtual directory > name>/test.html > > > > > > That sounds wrong "tomcat/conf" is not a directory that > should be > > > published. (It would be a security risk) > > > > > > I'd undo that and start over. > > > > > > What is it that you're trying to achieve? > > > > > > > > > p > > > > > > > I'm not sure if im going about this properly, or if iis is > > having > > > trouble accessing the redirector. > > > > How do i go about doing this? > > > > any help is greatly appreciated, > > > > thanks, > > > > JB > > > > > > > > > > > > > > > > > > > >
signature.asc
Description: OpenPGP digital signature