Re: adding servlet to existing website through iis7 and tomcat6
okay i'm reading the docs right now actually thanks for all the help --- On Tue, 6/15/10, Pid wrote: From: Pid Subject: Re: adding servlet to existing website through iis7 and tomcat6 To: "Tomcat Users List" Date: Tuesday, June 15, 2010, 4:05 PM 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: --- On *Tue, 6/15/10, Pid //* wrote: > > > From: Pid > 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 > 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 / >/* wrote: > > > > > > From: Pid > > > Subject: Re: adding servlet to existing website through iis7 > and tomcat6 > > To: "Tomcat Users List" > > > Date: Tuesday, June 15, 2010, 1:45 PM > > > > On 15/06/2010 18:29, 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/ > > > 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:test.html" > > > > So is the file "test.html" in tomcat/conf or somewhere else? > > > > If somewhere else, where is it? > > > > > > p > > > > > >
Re: adding servlet to existing website through iis7 and tomcat6
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: --- On *Tue, 6/15/10, Pid //* wrote: > > > From: Pid > 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 > 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 / >/* wrote: > > > > > > From: Pid > > > Subject: Re: adding servlet to existing website through iis7 > and tomcat6 > > To: "Tomcat Users List" > > > Date: Tuesday, June 15, 2010, 1:45 PM > > > > On 15/06/2010 18:29, 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/ > > > 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: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 / > > >>/* wrote: > > > > > > > > > From: Pid
RE: adding servlet to existing website through iis7 and tomcat6
uriworkermap.prioperties: /rpctodb/*=testWorker /rpctodb/*servlet.class=testWorker /examples/*=testWorker /examples/*.jsp=testWorker /examples/servlet/*=testWorker worker.properties: worker.list=testWorker worker.testWorker.port=8009 worker.testWorker.host=localhost worker.testWorker.type=ajp13 isapi_redirect.properties: extension_uri=/tomcat/isapi_redirect.dll log_file=C:\tomcat\logs\iis_redirect.log log_level=debug worker_file=C:\tomcat\conf\workers.properties worker_mount_file=C:\Jakarta\conf\uriworkermap.properties As for my iss_redirect.log file, it isnt altered when i try to reach my servlet unsuccessfully through my website. But it is working properly when i access my servlet through http://localhost:80 thanksa lot JB --- On Tue, 6/15/10, Martin Gainty wrote: From: Martin Gainty Subject: RE: adding servlet to existing website through iis7 and tomcat6 To: "Tomcat Users List" Date: Tuesday, June 15, 2010, 1:46 PM suppressing username/passowrds can you display contents of conf/auto/iis_redirect.reg conf/auto/uriworkermap.properties conf/auto/isapi_redirect.properties. ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 15 Jun 2010 10:29:13 -0700 > From: j...@rogers.com > Subject: Re: adding servlet to existing website through iis7 and tomcat6 > To: users@tomcat.apache.org; p...@pidster.com > > 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 > 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/ > 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. > thanks > JB > > --- On Tue, 6/15/10, Pid wrote: > > From: Pid > Subject: Re: adding servlet to existing website through iis7 and tomcat6 > To: "Tomcat Users List" > Date: Tuesday, June 15, 2010, 1:10 PM > > On 15/06/2010 16:04, 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: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 i
Re: adding servlet to existing website through iis7 and tomcat6
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. all i have in test.html is a simple "hello" in the body JB --- On Tue, 6/15/10, Pid wrote: From: Pid Subject: Re: adding servlet to existing website through iis7 and tomcat6 To: "Tomcat Users List" Date: Tuesday, June 15, 2010, 1:45 PM On 15/06/2010 18:29, 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/ > 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: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 //* wrote: > > > From: Pid > Subject: Re: adding servlet to existing website through iis7 and tomcat6 > To: "Tomcat Users List" > Date: Tuesday, June 15, 2010, 1:10 PM > > On 15/06/2010 16:04, 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: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 > > > > > >
RE: adding servlet to existing website through iis7 and tomcat6
suppressing username/passowrds can you display contents of conf/auto/iis_redirect.reg conf/auto/uriworkermap.properties conf/auto/isapi_redirect.properties. ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 15 Jun 2010 10:29:13 -0700 > From: j...@rogers.com > Subject: Re: adding servlet to existing website through iis7 and tomcat6 > To: users@tomcat.apache.org; p...@pidster.com > > 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 > 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/ > 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. > thanks > JB > > --- On Tue, 6/15/10, Pid wrote: > > From: Pid > Subject: Re: adding servlet to existing website through iis7 and tomcat6 > To: "Tomcat Users List" > Date: Tuesday, June 15, 2010, 1:10 PM > > On 15/06/2010 16:04, 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: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 > > > > > > _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
Re: adding servlet to existing website through iis7 and tomcat6
On 15/06/2010 18:29, 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/ > 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: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 //* wrote: > > > From: Pid > Subject: Re: adding servlet to existing website through iis7 and tomcat6 > To: "Tomcat Users List" > Date: Tuesday, June 15, 2010, 1:10 PM > > On 15/06/2010 16:04, 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: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
Re: adding servlet to existing website through iis7 and tomcat6
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 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/ 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. thanks JB --- On Tue, 6/15/10, Pid wrote: From: Pid Subject: Re: adding servlet to existing website through iis7 and tomcat6 To: "Tomcat Users List" Date: Tuesday, June 15, 2010, 1:10 PM On 15/06/2010 16:04, 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: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 > >
Re: adding servlet to existing website through iis7 and tomcat6
On 15/06/2010 16:04, 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: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
adding servlet to existing website through iis7 and tomcat6
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:test.html 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