Re: Tomcat 5.5 working, BUT not outside of webapps/
Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): CONTEXT path= docbase=C:/Inetpub/wwwroot/MYwebapps debug=0 reloadable=true / ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same system whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: Why don't you show us your config file. This behavior work fine for me with 5.5.7, with Apache mod_jk. On Feb 22, 2005, at 1:20 AM, Matt wrote: Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the HOST tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the steps found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags to server.xml until I turn blue in the face, and when I do so I get either 404 not found errors from Tomcat (can't find the subdirectory b/c I assume it is looking for it in webapps/, but then again it can't find it even if I copy the whole thing into webapps/) or The specified module could not be found message on the page (IIS result of a uriworkermap.properties issue). I have even tried editing the existing HOST tag to change webapps to C:/Inetpub/wwwroot and all sorts of folders below wwwroot. In those cases, if I manage to edit the uriworkermap.properties file correctly, all I get is a blank page for any .jsp, while IIS still handles the other stuff just fine. So, instead of these outdated docs everyone keeps pointing to, does anyone have any simple instructions to get Tomcat to properly use a folder OUTSIDE of webapps, and ALONG WITH webapps to work (especially assuming you've already got the basics working just fine as I do)? I'd like to start by getting a copy of jsp-examples working in wwwroot/ if possible (which is also how I was testing in the situation above, if that means anything), rather than also confusing the situation by learning how to create apps myself at
Re: Tomcat 5.5 working, BUT not outside of webapps/
Maybe take a look at the current $CATALINA_HOME/Catalina/localhost/ context files. Delete the old ones for your webapp and examples, so it will reload from server.xml On Feb 22, 2005, at 11:39 AM, Matt wrote: Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): CONTEXT path= docbase=C:/Inetpub/wwwroot/MYwebapps debug=0 reloadable=true / ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same system whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: Why don't you show us your config file. This behavior work fine for me with 5.5.7, with Apache mod_jk. On Feb 22, 2005, at 1:20 AM, Matt wrote: Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the HOST tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the steps found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags to server.xml until I turn blue in the face, and when I do so I get either 404 not found errors from Tomcat (can't find the subdirectory b/c I assume it is looking for it in webapps/, but then again it can't find it even if I copy the whole thing into webapps/) or The specified module could not be found message on the page (IIS result of a uriworkermap.properties issue). I have even tried editing the existing HOST tag to change webapps to C:/Inetpub/wwwroot and all sorts of folders below wwwroot. In those cases, if I manage to edit the uriworkermap.properties file correctly, all I get is a blank page for any .jsp, while IIS still handles the other stuff just fine. So, instead of these outdated docs everyone keeps pointing to, does anyone have any simple instructions to get Tomcat to properly use a folder OUTSIDE of webapps, and ALONG WITH webapps to work (especially assuming you've already got the basics working just fine as I do)? I'd like to start by getting a copy of jsp-examples working in wwwroot/ if possible (which is also how I was testing in the situation above, if
RE: Tomcat 5.5 working, BUT not outside of webapps/
Hi Matt, I'm not sure if this would solve your problem, but I have my server.xml set up with the following configuration: Host name=localhost debug=0 appBase=webapps/myApp unpackWARs=false autoDeploy=true xmlValidation=true xmlNamespaceAware=true Context path= docBase= debug=0 reloadable=true crossContext=true / !-- context path for external ini directory -- Context path=/ini docBase=c:\\myApp\c\releases\ini debug=0 reloadable=true crossContext=false / !-- context path for external lib directory -- Context path=/lib docBase=c:\\myApp\c\releases\lib debug=0 reloadable=true crossContext=false / /Host This means my root webapp for http://localhost resolves to webapps/myApp, and the http://localhost/ini url goes to c:\\koba\c\releases\ini, etc. When we first set this up Tomcat had problems starting up because it was reading in old web.xml files under the Tomcat/conf/Catalina... dir(s) but it couldn't find that path under Tomcat/webapps/myApp/. So we had to remove those old xml files (since the localhost root no longer went to Tomcat/webapps/). As a test, I just tried directing my Host's appBase to an external directory, and it worked for me. For that test I configured server.xml per the following: Host name=localhost debug=0 appBase=c:\\myApp\c\releases\ini unpackWARs=false autoDeploy=true xmlValidation=true xmlNamespaceAware=true Context path= docBase= debug=0 reloadable=true crossContext=true / /Host I am running Tomcat 5.0.25. - Wendy p.s. The Apache webserver allows you to manage aliases and the like better, if you're in a position to install that in front of Tomcat. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:40 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 working, BUT not outside of webapps/ Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): CONTEXT path= docbase=C:/Inetpub/wwwroot/MYwebapps debug=0 reloadable=true / ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same system whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: Why don't you show us your config file. This behavior work fine for me with 5.5.7, with Apache mod_jk. On Feb 22, 2005, at 1:20 AM, Matt wrote: Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the HOST tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS
Re: Tomcat 5.5 working, BUT not outside of webapps/
The original $CATALINA_HOME/webapps works fine, yes, but nothing will work outside of that, so I'm just looking for the steps (and files I need to edit) to have my own webapps work outside of $CATALINA_HOME/webapps. That's all - it's quite simple, really. C:\Inetpub\wwwroot is just a sample path on my Windows box, so how would I get Tomcat to also work on files in there, not just $CATALINA_HOME/webapps? The CONTEXT tag below is one sample of what I've tried (in server.xml), but it does *not* work. I have also edited uriworkermap.properties, but when I do that, Tomcat says it can't find any resources in that location, so the issue is how to setup another web applications area/folder/directory properly, step-by-step, file-by-file. It seems it shouldn't take more than 5 steps at most, no? If it helps, recall that I have setup Tomcat, jk_1.2.8 and my web server up out of the box and they work just fine with the stock usage and I can run jsp-examples, BUT I now want to *add* another location besides $CATALINA_HOME/webapps and have jsp files and servlets work in there as well, and that location could be (for example's sake) C:\Inetpub\wwwroot (and anywhere below). You threw me off when you mentioned $CATALINA_HOME/Catalina/host/some file, b/c I *do* have $CATALINA_HOME/localhost/manager.xml, but am completely clueless as to what that file has to do with server.xml. You say I have to delete it to have any of my changes in server.xml to actually take? That's the clarification I was looking for, but if I can address the original issue above (whether it includes this as part of it ot not) then that'd be the solution with which I'm struggling. Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: Ah, I see the problem ! It is working fine, and following your config: CONTEXT path= docbase=C:/Inetpub/wwwroot/MYwebapps debug=0 reloadable=true / The path says how to access the context (ie, the URL path from the root of the serv). Maybe I'm wrong. I can't keep track of what works and does not in your issue. If you can reach the apps at the old address, then the docbase property works. On Feb 22, 2005, at 2:55 PM, Matt wrote: There is a folder called localhost and in there is manager.xml Do I destroy this folder and file? SOmeone had mentioned adding a site.xml file in there, and I didn;t see anything in the docs re: this in terms of adding contexts? Thanks for clarifying, -Matt Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 working, BUT not outside of webapps/
OK, we've at least gotten to the point where I can now run the examples from my own directory outside of $CATALINA_HOME/webapps, and by ONLY editing server.xml and uriworkermap.properties slightly, and NOTHING ELSE, which is not only nice, but also what I expected all along! (THANK YOU!THANK YOU!THANK YOU!)* *HOWEVER, now that I made the changes you recommended, the webapps area now is NOT FOUND when using plain URL's. I get a (Tomcat-based) directory listing when using the following URL (instead of the Tomcat welcome page): http://localhost:8080 ...which includes my outside folder and then all of the folders in $CATALINA_HOME/webapps, AND if I go deeper into any of these listed directories with the explicit port :8080 set it works, BUT if I try the following URL: http://localhost/jsp-examples ...then I get a 404 page not found error (not a Tomcat page - standard IE stuff). With or without the :8080 port in my URL, my outside directory can be found just fine: http://localhost/JSP/MYwebapps/MYjsp-examples/index.html (and so on) ...so I have the inverse problem. Good grief! Can't we have both? Here's the beginning of my HOST tag through the CONTEXT (everything else in server.xml is out-of-the-box, unless jk_1.2.8.exe does anything here as well): Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase= debug=0 reloadable=true crossContext=true / Context path=/JSP docbase=C:/Inetpub/wwwroot/JSP debug=0 reloadable=true crossContext=false / ...the trick seems to be in the overlapping ending directory in path and docbase, which is kinda annoying since EVERY example I found showed path set to or / - hence my frustration up to this point. I have tried removing the first CONTEXT (seems weird with path and docbase both set to ). When I remove that, I get the same results - so what is this CONTEXT for, if anything? My uriworkermap.properties file is as follows: # uriworker.properties - # # This file provides sample mappings for example # ajp13w worker defined in workermap.properties.minimal /servlets-examples/*=ajp13w /jsp-examples/*.jsp=ajp13w /*.jsp=ajp13w /JSP/*.jsp=ajp13w # Now filter out all .jpeg files inside that context # For no mapping the url has to start with exclamation (!) !/servlets-examples/*.jpeg=ajp13w So, I'm still trying to get BOTH to work right, but making some progress! -Matt On Tue, 22 Feb 2005 [EMAIL PROTECTED] wrote: Hi Matt, I'm not sure if this would solve your problem, but I have my server.xml set up with the following configuration: Host name=localhost debug=0 appBase=webapps/myApp unpackWARs=false autoDeploy=true xmlValidation=true xmlNamespaceAware=true Context path= docBase= debug=0 reloadable=true crossContext=true / !-- context path for external ini directory -- Context path=/ini docBase=c:\\myApp\c\releases\ini debug=0 reloadable=true crossContext=false / !-- context path for external lib directory -- Context path=/lib docBase=c:\\myApp\c\releases\lib debug=0 reloadable=true crossContext=false / /Host This means my root webapp for http://localhost resolves to webapps/myApp, and the http://localhost/ini url goes to c:\\koba\c\releases\ini, etc. When we first set this up Tomcat had problems starting up because it was reading in old web.xml files under the Tomcat/conf/Catalina... dir(s) but it couldn't find that path under Tomcat/webapps/myApp/. So we had to remove those old xml files (since the localhost root no longer went to Tomcat/webapps/). As a test, I just tried directing my Host's appBase to an external directory, and it worked for me. For that test I configured server.xml per the following: Host name=localhost debug=0 appBase=c:\\myApp\c\releases\ini unpackWARs=false autoDeploy=true xmlValidation=true xmlNamespaceAware=true Context path= docBase= debug=0 reloadable=true crossContext=true / /Host I am running Tomcat 5.0.25. - Wendy p.s. The Apache webserver allows you to manage aliases and the like better, if you're in a position to install that in front of Tomcat. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:40 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 working, BUT not outside of webapps/ Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): CONTEXT path= docbase=C:/Inetpub
RE: Tomcat 5.5 working, BUT not outside of webapps/
up because it was reading in old web.xml files under the Tomcat/conf/Catalina... dir(s) but it couldn't find that path under Tomcat/webapps/myApp/. So we had to remove those old xml files (since the localhost root no longer went to Tomcat/webapps/). As a test, I just tried directing my Host's appBase to an external directory, and it worked for me. For that test I configured server.xml per the following: Host name=localhost debug=0 appBase=c:\\myApp\c\releases\ini unpackWARs=false autoDeploy=true xmlValidation=true xmlNamespaceAware=true Context path= docBase= debug=0 reloadable=true crossContext=true / /Host I am running Tomcat 5.0.25. - Wendy p.s. The Apache webserver allows you to manage aliases and the like better, if you're in a position to install that in front of Tomcat. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:40 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 working, BUT not outside of webapps/ Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): CONTEXT path= docbase=C:/Inetpub/wwwroot/MYwebapps debug=0 reloadable=true / ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same system whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: Why don't you show us your config file. This behavior work fine for me with 5.5.7, with Apache mod_jk. On Feb 22, 2005, at 1:20 AM, Matt wrote: Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the HOST tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the steps found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags
RE: Tomcat 5.5 working, BUT not outside of webapps/
to Tomcat/webapps/). As a test, I just tried directing my Host's appBase to an external directory, and it worked for me. For that test I configured server.xml per the following: Host name=localhost debug=0 appBase=c:\\myApp\c\releases\ini unpackWARs=false autoDeploy=true xmlValidation=true xmlNamespaceAware=true Context path= docBase= debug=0 reloadable=true crossContext=true / /Host I am running Tomcat 5.0.25. - Wendy p.s. The Apache webserver allows you to manage aliases and the like better, if you're in a position to install that in front of Tomcat. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:40 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 working, BUT not outside of webapps/ Well, I've tried all sorts of configurations, so I was hoping to get a clean example from someone who had it working. I changed the stock Tomcat 5.5 server.xml file to add the following (within the pre-existing, as well as the only, HOST tag for localhost, and I have tried with/without a slash for path, and with forward or backward slashes in docbase): CONTEXT path= docbase=C:/Inetpub/wwwroot/MYwebapps debug=0 reloadable=true / ...and I have edited the stock Tomcat 5.5 uriworkermap.properties file to add the directory relative to the additional docbase (I've also tried without the .jsp specificity at the end of the line to handle everything): /MYjsp-examples/*.jsp (the jk_1.2.8.exe installer puts it all in its own folders in $CATALINA_HOME's parent, not within $CATALINA_HOME/bin, and also sets the registry properly - anything else this nice installer does for me? It doesn't appear to set environment variables $CATALINA_HOME or JAVA_HOME - do I need to do this manually? The webapps examples work fine without these variables set though, so is this a deprecated step?) So, if I have copied the webapps folder (and everything in it) to the C:\Inetpub\wwwroot folder and renamed it MYwebapps, and renamed jsp-examples therein to be MYjsp-examples (and fixed the .html to point to the right path), I would have thought that I could run examples from the new directory as well. I don't see any path info. (non-relative) elsewhere that would cause problems and need to be changed? However, if uriworkermap.properties is edited properly, I get a Tomcat 404 error starting with the docbase, when clicking any example (.jsp link; the .html ones still work fine, since they're not handed-off to Tomcat) from the main page: http://localhost/MYwebapps/MYjsp-examples/index.html ...the same files still work fine if I go back to the original location: http://localhost/jsp-examples I've even tried making new HOST tags as well, but Tomcat won't start if you try to define two HOST tags for the same system whether I use a machine name, IP or whatever. Perhaps I misread the docs somewhere, or there's more to it than the above two steps, I'd love to know! Thanks, -Matt On Tue, 22 Feb 2005, Michael Greer wrote: Why don't you show us your config file. This behavior work fine for me with 5.5.7, with Apache mod_jk. On Feb 22, 2005, at 1:20 AM, Matt wrote: Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the HOST tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the steps found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags to server.xml until I turn blue in the face, and when I do so I get either 404 not found errors from
Tomcat 5.5 working, BUT not outside of webapps/
Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the HOST tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the steps found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags to server.xml until I turn blue in the face, and when I do so I get either 404 not found errors from Tomcat (can't find the subdirectory b/c I assume it is looking for it in webapps/, but then again it can't find it even if I copy the whole thing into webapps/) or The specified module could not be found message on the page (IIS result of a uriworkermap.properties issue). I have even tried editing the existing HOST tag to change webapps to C:/Inetpub/wwwroot and all sorts of folders below wwwroot. In those cases, if I manage to edit the uriworkermap.properties file correctly, all I get is a blank page for any .jsp, while IIS still handles the other stuff just fine. So, instead of these outdated docs everyone keeps pointing to, does anyone have any simple instructions to get Tomcat to properly use a folder OUTSIDE of webapps, and ALONG WITH webapps to work (especially assuming you've already got the basics working just fine as I do)? I'd like to start by getting a copy of jsp-examples working in wwwroot/ if possible (which is also how I was testing in the situation above, if that means anything), rather than also confusing the situation by learning how to create apps myself at the same time. Perhaps that has caused my problem - maybe the issue lies in a web.xml file somewhere for the jsp-examples (I;ve even copied all of webapps to wwwroot to try and get that to work, but no luck). Thanks, Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 working, BUT not outside of webapps/
Why don't you show us your config file. This behavior work fine for me with 5.5.7, with Apache mod_jk. On Feb 22, 2005, at 1:20 AM, Matt wrote: Is this simply not possible? I have tried extrapolating form the docs (which seems to work fine under webapps/ or $CATALINA_HOME) but anything outside of it fails as badly as the other works perfectly, even if I try to swap-out webapps/ for an otuside docbase using the HOST tag already present. There's got to be a file or simple edit that I'm missing for this? Anyone? Thanks, -Matt On Sun, 20 Feb 2005, Matt wrote: OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the steps found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags to server.xml until I turn blue in the face, and when I do so I get either 404 not found errors from Tomcat (can't find the subdirectory b/c I assume it is looking for it in webapps/, but then again it can't find it even if I copy the whole thing into webapps/) or The specified module could not be found message on the page (IIS result of a uriworkermap.properties issue). I have even tried editing the existing HOST tag to change webapps to C:/Inetpub/wwwroot and all sorts of folders below wwwroot. In those cases, if I manage to edit the uriworkermap.properties file correctly, all I get is a blank page for any .jsp, while IIS still handles the other stuff just fine. So, instead of these outdated docs everyone keeps pointing to, does anyone have any simple instructions to get Tomcat to properly use a folder OUTSIDE of webapps, and ALONG WITH webapps to work (especially assuming you've already got the basics working just fine as I do)? I'd like to start by getting a copy of jsp-examples working in wwwroot/ if possible (which is also how I was testing in the situation above, if that means anything), rather than also confusing the situation by learning how to create apps myself at the same time. Perhaps that has caused my problem - maybe the issue lies in a web.xml file somewhere for the jsp-examples (I;ve even copied all of webapps to wwwroot to try and get that to work, but no luck). Thanks, Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] *** *** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin *** *** - 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]
IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
OK, the docs out there are good, but they either concern old versions of IIS and/or Tomcat -OR- they concern the JK2 module (including this list's archives I have searched). If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it? So, I am using the very nice jk_1.2.8.exe installer. With that, most of the steps found in the various, partially-helpful docs are already done! ;^) That said: I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also Tomcat 5.5: I can go to http://localhost and get my IIS index page. I can go to http://localhost:8080 and get my Tomcat index page. I can go to http://localhost/jsp-examples/index.html and run all the wonderful examples. HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are in C:\Inetpub\wwwroot (and below) everything goes to hell. I have tried adding CONTEXT tags to server.xml until I turn blue in the face, and when I do so I get either 404 not found errors from Tomcat (can't find the subdirectory b/c I assume it is looking for it in webapps/, but then again it can't find it even if I copy the whole thing into webapps/) or The specified module could not be found message on the page (IIS result of a uriworkermap.properties issue). I have even tried editing the existing HOST tag to change webapps to C:/Inetpub/wwwroot and all sorts of folders below wwwroot. In those cases, if I manage to edit the uriworkermap.properties file correctly, all I get is a blank page for any .jsp, while IIS still handles the other stuff just fine. So, instead of these outdated docs everyone keeps pointing to, does anyone have any simple instructions to get Tomcat to properly use a folder OUTSIDE of webapps, and ALONG WITH webapps to work (especially assuming you've already got the basics working just fine as I do)? I'd like to start by getting a copy of jsp-examples working in wwwroot/ if possible (which is also how I was testing in the situation above, if that means anything), rather than also confusing the situation by learning how to create apps myself at the same time. Perhaps that has caused my problem - maybe the issue lies in a web.xml file somewhere for the jsp-examples (I;ve even copied all of webapps to wwwroot to try and get that to work, but no luck). Thanks, Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!
it's time to go... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
built mod_jk2 on fedora with tomcat 5.0.16 (working)
hi all, after very long nights, i finally got mod_jk2 built so that it now works on a fedora system with with apache2 and tomcat5. i don't know if everything i did when building and configuring is really required, but with the given steps it worked for me. as i read a lot on this list i want to give this back to you, perhaps it's useful for someone and saves some time. if you find things which are unnecessary or unimportant, please post it. --- Prerequisites, System * Fedora Core 1, 2.4.22-1.2140.nptl (fc1 binary rpm) * httpd-2.0.48-1.2, httpd-devel-2.0.48-1.2 (fc1 binary rpm) * apr-util-0.9.4-2, apr-devel-0.9.4-2, apr-0.9.4-2, apr-util-devel-0.9.4-2 (fc1 binary rpm) * java-1.4.2-sun-1.4.2.01-4jpp, java-1.4.2-sun-devel-1.4.2.01-4jpp (jpackage.org) * tomcat5-5.0.16-2jpp (jpackage.org) --- Building Configure jakarta-tomcat-connectors-jk2-src # unzip jakarta-tomcat-connectors-jk2-src-current.zip -d . # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/ # export CPPFLAGS=-I/usr/include/apr-0 # sh ./buildconf. # chmod 755 configure # ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib --with-apr-include=/usr/include/apr-0 --with-tomcat-41=/usr/share/tomcat5 --with-jni --with-java-home=/usr/lib/jvm/java Modify server/apache2/Makefile: # vi server/apache2/Makefile * Change LIBTOOL to LIBTOOL=/usr/bin/libtool * Change JK_LDFLAGS to JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix -laprutil-0 Build # make # libtool --finish /usr/lib/httpd/modules --- Verify Build and Install change to build dir # cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/ # ldd jkjni.so gives [EMAIL PROTECTED] apache2]# ldd jkjni.so libcrypt.so.1 = /lib/libcrypt.so.1 (0x008e3000) libapr-0.so.0 = /usr/lib/libapr-0.so.0 (0x00179000) libpcre.so.0 = /lib/libpcre.so.0 (0x00bb5000) libpcreposix.so.0 = /usr/lib/libpcreposix.so.0 (0x00713000) libaprutil-0.so.0 = /usr/lib/libaprutil-0.so.0 (0x00342000) libc.so.6 = /lib/tls/libc.so.6 (0x00e65000) librt.so.1 = /lib/tls/librt.so.1 (0x00686000) libm.so.6 = /lib/tls/libm.so.6 (0x005a3000) libnsl.so.1 = /lib/libnsl.so.1 (0x00839000) libdl.so.2 = /lib/libdl.so.2 (0x00615000) libldap.so.2 = /usr/lib/libldap.so.2 (0x002f6000) liblber.so.2 = /usr/lib/liblber.so.2 (0x00111000) libgdbm.so.2 = /usr/lib/libgdbm.so.2 (0x00361000) libdb-4.1.so = /usr/lib/tls/libdb-4.1.so (0x00199000) libexpat.so.0 = /usr/lib/libexpat.so.0 (0x00571000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x00b29000) libpthread.so.0 = /lib/tls/libpthread.so.0 (0x0011d000) libresolv.so.2 = /lib/libresolv.so.2 (0x0012d000) libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x00d99000) libssl.so.4 = /lib/libssl.so.4 (0x0013f000) libcrypto.so.4 = /lib/libcrypto.so.4 (0x003fb000) libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x0055d000) libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00723000) libcom_err.so.2 = /lib/libcom_err.so.2 (0x00174000) libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x0025a000) libz.so.1 = /usr/lib/libz.so.1 (0x0027c000) # ldd mod_jk2.so gives [EMAIL PROTECTED] apache2]$ ldd mod_jk2.so libc.so.6 = /lib/tls/libc.so.6 (0x0056f000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x00d3b000) # cp *.so /usr/lib/httpd/modules/ --- [Additional] Configuration Add to /etc/tomcat5/tomcat5.conf: serverRoot=/etc/httpd export serverRoot User/Groups of apache and tomcat4: [EMAIL PROTECTED] conf]# id apache uid=48(apache) gid=48(apache) groups=48(apache),91(tomcat4) [EMAIL PROTECTED] conf]# id tomcat4 uid=91(tomcat4) gid=91(tomcat4) groups=91(tomcat4),48(apache) Configuration files (and this description, too) can be found at http://www.javakaffee.de/wiki/jsp/Wiki?BuildModJk (at the bottom of the page): workers2.properties, jk2.properties, example for vhost that's all, i hope it's helpful, cheers, martin signature.asc Description: This is a digitally signed message part
Tomcat stops working after a few days!
Hi, I have a problem running Jakarta Tomcat 4.1 port under FreeBSD 4.4 with Blackdown Java 1.3.1 with mod_jk 1.2: After startup.sh /logs/catalina.out shows up following lines: [INFO] Registry - -Loading registry information [INFO] Registry - -Creating new Registry instance [INFO] Registry - -Creating MBeanServer [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.24 HTTP Tunnel connected to the DigiChat server localhost HttpTunnelingServlet connected to the groopz server [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009 [INFO] JkMain - -Jk running ID=0 time=7/21 config=/usr/local/jakarta-tomcat4.1/conf/jk2.properties [INFO] ChannelSocket - -server has been restarted or reset this connection [INFO] ChannelSocket - -server has been restarted or reset this connection [INFO] ChannelSocket - -server has been restarted or reset this connection [INFO] ChannelSocket - -server has been restarted or reset this connection The first days everythings runs correctly. The example servlets can be executed via port 80 by help of mod_jk. After a few days suddenly the servlets cannot be executed anymore. Having a look on the Tomcat process with top prints out state sbwait. That state does not change anymore AND I cannot shutdown the tomcat process by help of shutdown.sh - so I have to kill the process with kill -9. catalina.out meanwhile has grown up to nearly 1MB because a lot of lines (content: [INFO] ChannelSocket - -server has been restarted or reset this connection ) have been inserted. Killing and restarting Tomcat manually and restarting apache afterwards for activating mod_jk again results in making all work again. Does anyone have an idea of what is happening here? Thanks and regards Volker
RE: 2 VirtualHosts same IP address and port on Tomcat not working
Hi, I have read dozens of archived posts on virtualhost. I have distilled my httpd.conf and server.xml back to what seems to be the recommended approach, see below. But now I can see no sites on any URL. I have a suspicous End event threw exception in the catalina.out log, which suggests a problem with server.xml, but reading it I cannot see any illegal XML, so assume it is a configuration value error. At the end of the exception it also has ...IllegalArguementException: Servlet mapping specifies an unknown servlet name rwsite which suggests it doesn't like my second Host configuration. But I copied and pasted it from a posted version that worked and just changed the appBase and servername to appropriate values? In my error_log I get 2 types of errors: 1. Directory Index forbidden by rule: /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite - there is that same troublesome rwsite again. 2. File does not exist: /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite/servlet it's not a file but a directory? and I get File does not exist: /usr/local/jakarta-tomcat-4.1.12/webapp2/se/servlet, referer: http://www.stpenable.com/se/servlet/se/template/solutions%2Cmdmanage.vm; which is real. server.xml hosts section-- !-- Define the default virtual host -- Host name=www.stpenable.com debug=0 appBase=/usr/local/jakarta-tomcat-4.1.12/webapp2 unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=stpenable_log. suffix=.txt timestamp=true/ Context path= docBase=/usr/local/jakarta-tomcat-4.1.12/webapp2/se debug=1/ Context path=/rwtransform docBase=/usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform debug=1/ /Host Host name=www.roamware.co.uk debug=0 appBase=/usr/local/jakarta-tomcat-4.1.12/webapp1 unpackWARs=true autoDeploy=true Context path= docBase= debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=roamware_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host httpd.conf section-- NameVirtualHost * # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug VirtualHost * ServerName www.stpenable.com www.stpenable.com:/se ServerAlias localhost # Static files DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp2/se Alias /se /usr/local/jakarta-tomcat-4.1.12/webapp2/se Location /se/WEB-INF/* AllowOverride None deny from all /Location Location /se/META-INF/* AllowOverride None deny from all /Location JkMount /usr/local/jakarta-tomcat-4.1.12/webapp2/se/* ajp13 www.stpenable.com:/rwtransform Alias /rwsite /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform Location /rwtransform/WEB-INF/* AllowOverride None deny from all /Location Location /rwtransform/META-INF/* AllowOverride None deny from all /Location JkMount /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform/* ajp13 /VirtualHost VirtualHost * ServerName www.roamware.co.uk www.roamware.co.uk:/rwsite # Static files DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite Alias /rwsite /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite Location /rwsite/WEB-INF/* AllowOverride None deny from all /Location Location /rwsite/META-INF/* AllowOverride None deny from all /Location JkMount /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite/* ajp13 /VirtualHost I think I have tried everything I can with this. Any further suggestions? Seems like John Turner is the only one able to answer these questions. Regards David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 VirtualHosts same IP address and port on Tomcat not working
David Wynter wrote: Hi, It seems that the second VirtualHost I have set up for my second domain name is not paasing the requests through mod_jk to Tomcat. It is not even clear that you can support 2 virtualhosts for different domains with the same IP address and port 80. This is a separate problem to the www.stpenable.com not redirecting to www.stpenable.com/se/servlet/se/templates/index.vm but it still affects me. You can support many virtual hosts on the same IP address. I have production environments with 6, 9, and 12 virtual hosts working just fine. Is the only way I can support a second virtual host is by setting up a second Service with its own Engine and Ajp13 connector listening on a separate port (say 8007 instead of 8009?). I assume I then setup a second worker on the port I have introduced. And in this case do both sevices also have a listener for port 8080, or do I need one on that port at all since all my trafic will be on port 80? No, this is incorrect. You only need one Service. Your problems are related to your httpd.conf file, not the connector and not Tomcat. You have to instruct Apache appropriately. Its more than just JkMount, you also have to get your Alias and your DocumentRoot directives correct in httpd.conf...getting them wrong will cause Apache to miss the mod_jk match. I just tried it without a listener on port 8080, and a service with a connector on 8007 for one virtual host and a separate service with connector on 8009 for the other, nothing worked, so I suppose that answers my question. I am kinda surprised that on the whole internet there is not a configuration example of running different webapps on 2 domains on the same Tomcat instance, there must be hundreds of people doing it? There are. I've posted an example to this list twice in the past 4 months or so. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 VirtualHosts same IP address and port on Tomcat not working
Advice: Forget about servlets. Forget about serving all content from a servlet. Too many variables, causing you too much confusion. Take it one step at a time. First: set up Tomcat so that you have 2 virtual hosts. Each virtual host needs a SEPARATE appBase. If BOTH virtual hosts are to be IDENTICAL, then DON'T use a separate Host node for the second one (or a separate appBase), instead set up one Host node and use the Alias directive in server.xml to alias the second hostname to the first. Second: Create your Contexts. Root, subdir, whatever, set it up as you plan to use them in your URLs. Third: Create a SIMPLE JSP, like hello world or whatever. Put that in the appropriate Context. Stop Tomcat. Delete EVERYTHING in the work directory (but not the work directory itself). Start Tomcat. Fourth: Verify that http://host1:8080/yourContext1/yourSimple.jsp works as expected. Fifth: Verify that http://host2:8080/yourContext2/yourSimple.jsp works as expected. Then, and only then, worry about Apache. If you get to this step, then you know Tomcat is OK and your problems are Apache related. Right now you are fudging with both ends of the equation, and being wrong in either or both can make the whole thing fall apart with zero indication of which end is causing the problem. Sixth: create a VirtualHost in httpd.conf. Set the DocumentRoot to be equal to the Context in server.xml. Thus, everything you do from that point on in your app has to be relative to the webapp root and URLs for static and dynamic content will be the same. Seventh: Setup your JkMount. If your DocumentRoot is set correctly, and your Contexts are set correctly, you should be able to get what you want with: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 assuming your servlets are in /servlet. You might also want to consider putting an extension on your servlets, as in Struts, like *.do or something. This makes JkMount even easier. This is only for testing. Once you have it working, and you want to generate everything with a servlet, then change your JkMount to /*. John David Wynter wrote: Hi, I have read dozens of archived posts on virtualhost. I have distilled my httpd.conf and server.xml back to what seems to be the recommended approach, see below. But now I can see no sites on any URL. I have a suspicous End event threw exception in the catalina.out log, which suggests a problem with server.xml, but reading it I cannot see any illegal XML, so assume it is a configuration value error. At the end of the exception it also has ...IllegalArguementException: Servlet mapping specifies an unknown servlet name rwsite which suggests it doesn't like my second Host configuration. But I copied and pasted it from a posted version that worked and just changed the appBase and servername to appropriate values? In my error_log I get 2 types of errors: 1. Directory Index forbidden by rule: /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite - there is that same troublesome rwsite again. 2. File does not exist: /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite/servlet it's not a file but a directory? and I get File does not exist: /usr/local/jakarta-tomcat-4.1.12/webapp2/se/servlet, referer: http://www.stpenable.com/se/servlet/se/template/solutions%2Cmdmanage.vm; which is real. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 VirtualHosts same IP address and port on Tomcat not working
Message- From: David Wynter [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 15:39 To: Tomcat Users List Subject: RE: 2 VirtualHosts same IP address and port on Tomcat not working Actually I should qualify what I said. I have stpenable as the default Host so you can see www.stpenable.com/se/servlet/se/templates/index.vm but for some reason you cannot see www.roamware.co.uk/rwsite/servlet/rwsite/templates/index.vm which is the second of the VirtualHosts in my conf file. They are configured as matching patterns (if you know what I mean - only the names have changed between the 2 configs). The DefualHost in the Engine is www.stpenable.com Here is the Host section from my server.xml, I've strpped out the comments- !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.stpenable.com debug=0 appBase=webapp2 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=stpenable_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.roamware.co.uk debug=0 appBase=webapp1 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=roamware_log. suffix=.txt timestamp=true/ /Host regards, David - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 VirtualHosts same IP address and port on Tomcat not working
Hi,. I have read John Turner HowTo and the Galatea ones too. I have tried multiple different combinations of these. I found John's assetion that Tomcat does not generate multi VirtualHosts, but you can take the generated one, insert at the bottom of the httpd.conf and modify it to work. I know mod_jk works as I used it with a single host until I need it have to domains. I have tried the approach suggested by John but so far all I get is a directory listing of the resolved directory. I am using Turbine as the servlet processor, it uses .vm extension not .jsp. Here is my workers.properties and bottom of my httpd.conf. Can anyone see what is wrong. The server is up so try the URLs if you want to. I can put in the full servlet path eg. www.stpenable.com/se/servlet/se/templates/index.vm and it works. But it does not resolve from www.stpenable.com as it should. worker.properties- # BEGIN workers.properties worker.list=ajp13, worker1 worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=www.stpenable.com worker.ajp13.type=ajp13 worker.worker1.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.worker1.host=www.roamware.co.uk worker.worker1.type=ajp13 # END workers.properties excerpt from bottom of http.conf, and yes it does have mod_jk.so loaded-- NameVirtualHost * JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug VirtualHost * ServerName www.stpenable.com www.stpenable.com:/se # Static files Alias /se /usr/local/tomcat/webapp2/se Directory /usr/local/tomcat/webapp2/se Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.vm /Directory # Deny direct access to WEB-INF and META-INF # Location /se/WEB-INF/* AllowOverride None deny from all /Location Location /se/META-INF/* AllowOverride None deny from all /Location JkMount /se/*.shtml ajp13 JkMount /se/cgi-bin/* ajp13 JkMount /se/servlet/* ajp13 JkMount /se/*.vm ajp13 www.stpenable.com:/rwtransform # Static files Alias /rwtransform /usr/local/tomcat/webapp2/rwtransform Directory /usr/local/tomcat/webapp2/rwtransform Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.vm /Directory # Deny direct access to WEB-INF and META-INF # Location /rwtransform/WEB-INF/* AllowOverride None deny from all /Location Location /rwtransform/META-INF/* AllowOverride None deny from all /Location JkMount /rwtransform/*.shtml ajp13 JkMount /rwtransform/cgi-bin/* ajp13 JkMount /rwtransform/servlet/* ajp13 JkMount /rwtransform/*.vm ajp13 /VirtualHost VirtualHost * ServerName www.roamware.co.uk www.roamware.co.uk:/rwsite # Static files Alias /rwsite /usr/local/tomcat/webapp1/rwsite Directory /usr/local/tomcat/webapp1/rwsite Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.vm /Directory # Deny direct access to WEB-INF and META-INF # Location /rwsite/WEB-INF/* AllowOverride None deny from all /Location Location /rwsite/META-INF/* AllowOverride None deny from all /Location JkMount /rwsite/servlet/* worker1 JkMount /rwsite/*.vm worker1 /VirtualHost David Wynter roamware Ltd. (+44) (0) 208 922 7539 B. (+44) (0) 7879 605 706 M. www.roamware.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 VirtualHosts same IP address and port on Tomcat not working
I think there's some confusion...you only need this in workers.properties: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 .host = location of Tomcat When I first started trying to connect Tomcat and Apache a year ago, I thought I needed an entry for each virtual host in workers.properties. I have since learned that this is not true. Workers.properties only defines where do I find Tomcat not which virtual hosts will Tomcat accept. The latter is determined by server.xml. When I go to http://www.stpenable.com and http://www.stpenable.com/se/ I get a directory listing. What is it that I am supposed to get? You have *.shtml assigned to Tomcat. Why? Do you have .shtml as a servlet mapping in web.xml or something? I don't think your issues are virtual host related...perhaps if you could clarify what it is you want to do, we can help. John David Wynter wrote: Hi,. I have read John Turner HowTo and the Galatea ones too. I have tried multiple different combinations of these. I found John's assetion that Tomcat does not generate multi VirtualHosts, but you can take the generated one, insert at the bottom of the httpd.conf and modify it to work. I know mod_jk works as I used it with a single host until I need it have to domains. I have tried the approach suggested by John but so far all I get is a directory listing of the resolved directory. I am using Turbine as the servlet processor, it uses .vm extension not .jsp. Here is my workers.properties and bottom of my httpd.conf. Can anyone see what is wrong. The server is up so try the URLs if you want to. I can put in the full servlet path eg. www.stpenable.com/se/servlet/se/templates/index.vm and it works. But it does not resolve from www.stpenable.com as it should. worker.properties- # BEGIN workers.properties worker.list=ajp13, worker1 worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=www.stpenable.com worker.ajp13.type=ajp13 worker.worker1.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.worker1.host=www.roamware.co.uk worker.worker1.type=ajp13 # END workers.properties excerpt from bottom of http.conf, and yes it does have mod_jk.so loaded-- NameVirtualHost * JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug VirtualHost * ServerName www.stpenable.com www.stpenable.com:/se # Static files Alias /se /usr/local/tomcat/webapp2/se Directory /usr/local/tomcat/webapp2/se Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.vm /Directory # Deny direct access to WEB-INF and META-INF # Location /se/WEB-INF/* AllowOverride None deny from all /Location Location /se/META-INF/* AllowOverride None deny from all /Location JkMount /se/*.shtml ajp13 JkMount /se/cgi-bin/* ajp13 JkMount /se/servlet/* ajp13 JkMount /se/*.vm ajp13 www.stpenable.com:/rwtransform # Static files Alias /rwtransform /usr/local/tomcat/webapp2/rwtransform Directory /usr/local/tomcat/webapp2/rwtransform Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.vm /Directory # Deny direct access to WEB-INF and META-INF # Location /rwtransform/WEB-INF/* AllowOverride None deny from all /Location Location /rwtransform/META-INF/* AllowOverride None deny from all /Location JkMount /rwtransform/*.shtml ajp13 JkMount /rwtransform/cgi-bin/* ajp13 JkMount /rwtransform/servlet/* ajp13 JkMount /rwtransform/*.vm ajp13 /VirtualHost VirtualHost * ServerName www.roamware.co.uk www.roamware.co.uk:/rwsite # Static files Alias /rwsite /usr/local/tomcat/webapp1/rwsite Directory /usr/local/tomcat/webapp1/rwsite Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.vm /Directory # Deny direct access to WEB-INF and META-INF # Location /rwsite/WEB-INF/* AllowOverride None deny from all /Location Location /rwsite/META-INF/* AllowOverride None deny from all /Location JkMount /rwsite/servlet/* worker1 JkMount /rwsite/*.vm worker1 /VirtualHost David Wynter roamware Ltd. (+44) (0) 208 922 7539 B. (+44) (0) 7879 605 706 M. www.roamware.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: 2 VirtualHosts same IP address and port on Tomcat not working
Hi John, Thanks for the reply. I have fixed the workers.properties and related stuff in the httpd.conf you pointed out below. What I want is to see what i see at www.stpenable.com/se/servlet/se/templates/index.vm to be what I see when I hit www.stpenable.com Ditto for www.roamware.co.uk to see www.roamware.co.uk/rwsite/servlet/rwsite/templates/index.vm. These servlet contexts have just become visible because I removed all the Context entries in the various Host... sections of my server.xml. thanks David -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 14:59 To: Tomcat Users List Subject: Re: 2 VirtualHosts same IP address and port on Tomcat not working I think there's some confusion...you only need this in workers.properties: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 .host = location of Tomcat When I first started trying to connect Tomcat and Apache a year ago, I thought I needed an entry for each virtual host in workers.properties. I have since learned that this is not true. Workers.properties only defines where do I find Tomcat not which virtual hosts will Tomcat accept. The latter is determined by server.xml. When I go to http://www.stpenable.com and http://www.stpenable.com/se/ I get a directory listing. What is it that I am supposed to get? You have *.shtml assigned to Tomcat. Why? Do you have .shtml as a servlet mapping in web.xml or something? I don't think your issues are virtual host related...perhaps if you could clarify what it is you want to do, we can help. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2 VirtualHosts same IP address and port on Tomcat not working
Actually I should qualify what I said. I have stpenable as the default Host so you can see www.stpenable.com/se/servlet/se/templates/index.vm but for some reason you cannot see www.roamware.co.uk/rwsite/servlet/rwsite/templates/index.vm which is the second of the VirtualHosts in my conf file. They are configured as matching patterns (if you know what I mean - only the names have changed between the 2 configs). The DefualHost in the Engine is www.stpenable.com Here is the Host section from my server.xml, I've strpped out the comments- !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.stpenable.com debug=0 appBase=webapp2 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=stpenable_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.roamware.co.uk debug=0 appBase=webapp1 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=roamware_log. suffix=.txt timestamp=true/ /Host regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 VirtualHosts same IP address and port on Tomcat not working
Did you remove the Context entries for some reason? They are critical. Also, in httpd.conf you have: # Static files Alias /rwsite /usr/local/tomcat/webapp1/rwsite and later JkMount /rwsite/servlet/* worker1 JkMount /rwsite/*.vm worker1 Thus, the URLs that Apache would expect would be: www.roamware.co.uk/rwsite/rwsite/servlet/rwsite/templates/index.vm Aside from the three rwsite entries this looks pretty convoluted to me. If you have /rwsite in an Alias in httpd.conf, then your JkMount would be, AFAIK: JkMount /servlet/* worker1 JkMount /*.vm worker1 John David Wynter wrote: Actually I should qualify what I said. I have stpenable as the default Host so you can see www.stpenable.com/se/servlet/se/templates/index.vm but for some reason you cannot see www.roamware.co.uk/rwsite/servlet/rwsite/templates/index.vm which is the second of the VirtualHosts in my conf file. They are configured as matching patterns (if you know what I mean - only the names have changed between the 2 configs). The DefualHost in the Engine is www.stpenable.com Here is the Host section from my server.xml, I've strpped out the comments- !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.stpenable.com debug=0 appBase=webapp2 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=stpenable_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.roamware.co.uk debug=0 appBase=webapp1 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=roamware_log. suffix=.txt timestamp=true/ /Host regards, David - 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]
RE: 2 VirtualHosts same IP address and port on Tomcat not working
Hi, It seems that the second VirtualHost I have set up for my second domain name is not paasing the requests through mod_jk to Tomcat. It is not even clear that you can support 2 virtualhosts for different domains with the same IP address and port 80. This is a separate problem to the www.stpenable.com not redirecting to www.stpenable.com/se/servlet/se/templates/index.vm but it still affects me. Is the only way I can support a second virtual host is by setting up a second Service with its own Engine and Ajp13 connector listening on a separate port (say 8007 instead of 8009?). I assume I then setup a second worker on the port I have introduced. And in this case do both sevices also have a listener for port 8080, or do I need one on that port at all since all my trafic will be on port 80? I just tried it without a listener on port 8080, and a service with a connector on 8007 for one virtual host and a separate service with connector on 8009 for the other, nothing worked, so I suppose that answers my question. I am kinda surprised that on the whole internet there is not a configuration example of running different webapps on 2 domains on the same Tomcat instance, there must be hundreds of people doing it? Thanks David -Original Message- From: David Wynter [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 15:39 To: Tomcat Users List Subject: RE: 2 VirtualHosts same IP address and port on Tomcat not working Actually I should qualify what I said. I have stpenable as the default Host so you can see www.stpenable.com/se/servlet/se/templates/index.vm but for some reason you cannot see www.roamware.co.uk/rwsite/servlet/rwsite/templates/index.vm which is the second of the VirtualHosts in my conf file. They are configured as matching patterns (if you know what I mean - only the names have changed between the 2 configs). The DefualHost in the Engine is www.stpenable.com Here is the Host section from my server.xml, I've strpped out the comments- !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.stpenable.com debug=0 appBase=webapp2 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=stpenable_log. suffix=.txt timestamp=true/ /Host !-- Define the default virtual host -- Host name=www.roamware.co.uk debug=0 appBase=webapp1 unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=stpenable_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=roamware_log. suffix=.txt timestamp=true/ /Host regards, David - 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]
RE: 2 VirtualHosts same IP address and port on Tomcat not working
FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=roamware_log. suffix=.txt timestamp=true/ Context path= docBase=/usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite debug=1/ /Host I am understanding a bit more how the connectors work. But I have worked 16 hours a day for the last 2 on this. I need some sleep. Regards, David -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 20:39 To: Tomcat Users List Subject: Re: 2 VirtualHosts same IP address and port on Tomcat not working Did you remove the Context entries for some reason? They are critical. Also, in httpd.conf you have: # Static files Alias /rwsite /usr/local/tomcat/webapp1/rwsite and later JkMount /rwsite/servlet/* worker1 JkMount /rwsite/*.vm worker1 Thus, the URLs that Apache would expect would be: www.roamware.co.uk/rwsite/rwsite/servlet/rwsite/templates/index.vm Aside from the three rwsite entries this looks pretty convoluted to me. If you have /rwsite in an Alias in httpd.conf, then your JkMount would be, AFAIK: JkMount /servlet/* worker1 JkMount /*.vm worker1 John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not working
Greetings, I have made some kinda change but I can't figure out what I did wrong. I've attached a copy of my server.xml . This site is http://gdttest.mgnetwork.com:8080/AdWebster Can someone look to see if there's something wrong with my server.xml file? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working
Howdy, My mail reader doesn't like your attachment. In general, instead of posting attachments post the relevant bits from the file. In this case, since you have no idea what you did wrong, why not just start with a new installation of tomcat? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 8:52 AM To: [EMAIL PROTECTED] Subject: Tomcat not working Greetings, I have made some kinda change but I can't figure out what I did wrong. I've attached a copy of my server.xml . This site is http://gdttest.mgnetwork.com:8080/AdWebster Can someone look to see if there's something wrong with my server.xml file? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not working properly
Greetings, My index.jsp page running under tomcat 4.1.12 shows code https://placeanad.classifiedmarketplace.net/AdWebster/ What do I need to do to the conf file to make it process the jsp? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working properly
Hi, By default it should process your jsp code, please give us more info on your setup. -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28. júlí 2003 17:27 To: [EMAIL PROTECTED] Subject: Tomcat not working properly Greetings, My index.jsp page running under tomcat 4.1.12 shows code https://placeanad.classifiedmarketplace.net/AdWebster/ What do I need to do to the conf file to make it process the jsp? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator - 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]
RE: Tomcat not working properly
This is how it is set up VirtualHost 207.243.40.37:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/certs/nc1public.cert SSLCertificateKeyFile /usr/local/apache/certs/nc2private.key /VirtualHost I have tomcat 4.1.12 running on the server. Before we went to the ssl version it was processing the code fine via port 8080 but now that it has to go through 443 it doesn't work anymore. Thanks, Bobbie -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:25 PM To: Tomcat Users List Subject: RE: Tomcat not working properly Hi, By default it should process your jsp code, please give us more info on your setup. -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28. júlí 2003 17:27 To: [EMAIL PROTECTED] Subject: Tomcat not working properly Greetings, My index.jsp page running under tomcat 4.1.12 shows code https://placeanad.classifiedmarketplace.net/AdWebster/ What do I need to do to the conf file to make it process the jsp? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not working properly
You have to install an Apache connector (mod_jk.so or mod_jk2.so) and configure it to send certain requests to Tomcat. Apache does not do this by default. http://jakarta.apache.org/tomcat/faq/connectors.html John [EMAIL PROTECTED] wrote: This is how it is set up VirtualHost 207.243.40.37:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/certs/nc1public.cert SSLCertificateKeyFile /usr/local/apache/certs/nc2private.key /VirtualHost I have tomcat 4.1.12 running on the server. Before we went to the ssl version it was processing the code fine via port 8080 but now that it has to go through 443 it doesn't work anymore. Thanks, Bobbie -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:25 PM To: Tomcat Users List Subject: RE: Tomcat not working properly Hi, By default it should process your jsp code, please give us more info on your setup. -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28. júlí 2003 17:27 To: [EMAIL PROTECTED] Subject: Tomcat not working properly Greetings, My index.jsp page running under tomcat 4.1.12 shows code https://placeanad.classifiedmarketplace.net/AdWebster/ What do I need to do to the conf file to make it process the jsp? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator - 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] - 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]
RE: Tomcat not working properly
I'm trying to do that but in the connector build when I run buildconf.sh it doesn't find the configure.ac and there fore doesn't allow me to configure the connector Here's the list of errors that I get cd native # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file # ./configure ksh: ./configure: not found # chmod 755 buildconf.sh # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file # -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 2:31 PM To: Tomcat Users List Subject: Re: Tomcat not working properly You have to install an Apache connector (mod_jk.so or mod_jk2.so) and configure it to send certain requests to Tomcat. Apache does not do this by default. http://jakarta.apache.org/tomcat/faq/connectors.html John [EMAIL PROTECTED] wrote: This is how it is set up VirtualHost 207.243.40.37:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/certs/nc1public.cert SSLCertificateKeyFile /usr/local/apache/certs/nc2private.key /VirtualHost I have tomcat 4.1.12 running on the server. Before we went to the ssl version it was processing the code fine via port 8080 but now that it has to go through 443 it doesn't work anymore. Thanks, Bobbie -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:25 PM To: Tomcat Users List Subject: RE: Tomcat not working properly Hi, By default it should process your jsp code, please give us more info on your setup. -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28. júlí 2003 17:27 To: [EMAIL PROTECTED] Subject: Tomcat not working properly Greetings, My index.jsp page running under tomcat 4.1.12 shows code https://placeanad.classifiedmarketplace.net/AdWebster/ What do I need to do to the conf file to make it process the jsp? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not working properly
The obvious question: What does libtoolize --help tell you? Is this Linux? What flavor? Do you need ksh? Have you tried this in sh or bash? I'm not saying it will make a difference (it shouldn't), but it might. John [EMAIL PROTECTED] wrote: I'm trying to do that but in the connector build when I run buildconf.sh it doesn't find the configure.ac and there fore doesn't allow me to configure the connector Here's the list of errors that I get cd native # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file # ./configure ksh: ./configure: not found # chmod 755 buildconf.sh # ./buildconf.sh libtoolize --force --automake --copy libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. aclocal aclocal: `configure.ac' or `configure.in' is required automake -a --foreign -i --copy automake: `configure.ac' or `configure.in' is required autoconf autoconf: no input file # -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 2:31 PM To: Tomcat Users List Subject: Re: Tomcat not working properly You have to install an Apache connector (mod_jk.so or mod_jk2.so) and configure it to send certain requests to Tomcat. Apache does not do this by default. http://jakarta.apache.org/tomcat/faq/connectors.html John [EMAIL PROTECTED] wrote: This is how it is set up VirtualHost 207.243.40.37:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/certs/nc1public.cert SSLCertificateKeyFile /usr/local/apache/certs/nc2private.key /VirtualHost I have tomcat 4.1.12 running on the server. Before we went to the ssl version it was processing the code fine via port 8080 but now that it has to go through 443 it doesn't work anymore. Thanks, Bobbie -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:25 PM To: Tomcat Users List Subject: RE: Tomcat not working properly Hi, By default it should process your jsp code, please give us more info on your setup. -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28. júlí 2003 17:27 To: [EMAIL PROTECTED] Subject: Tomcat not working properly Greetings, My index.jsp page running under tomcat 4.1.12 shows code https://placeanad.classifiedmarketplace.net/AdWebster/ What do I need to do to the conf file to make it process the jsp? Thanks, Bobbie Bobbie Atristain Internet Systems Administrator - 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] - 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] - 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]
RE: Tomcat not working behind a NAT?
For this particular Servlet call we are not accessing any databases. DTDs? Not really familiar with those...I will check. I don't think we are trying to resolve hosts. Here is something we got from our client: -- The sniffer log showed the NATed address in one of the http requests ... following along the line of tomcat not using a localhost for addressing requests even if they're local to the system ... What options are there to specify the address for tomcat under which to start ? It must perform a lookup on DNS to translate the address, can we use the /etc/hosts file to create a 'fixed' address that won't be affected by DNS ? This may not resolve it either ... as which one would you actually put in to allow both 'local' access vs 'outside' access ... -- Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 5:46 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? It shouldn't use high ports. Are you running any database services or other services? Are your dtd's not correct and its trying actually pull foriegn assets via http? Are you trying to resolve hosts in your access log? (or similar) Use your sniffer to see the type of request being performed on the hight port. -Tim Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them.
RE: Tomcat not working behind a NAT?
I still think you are barking up the wrong tree here. If I had to guess I would say that 95% of all internet faceing Tomcat servers are behind some kind of NAT device. One thing to consider. NAT only translates the IP in the IP header and doesn't change the data payload. So if you are, for whatever reason, using an IP address that is getting sent along in the payload and trying to redirect to it or whatever, NAT won't change that. Kinda how SQLNet doesn't like NAT devices. Because the users IP is embedded in the payload as part of the protocol. So it goofs up when the IP header and the IP in the payload don't match. But what you are thinking below is the first thing I would do. Make sure the machine on the outside see's the correct hostname/IP number and the machine on the inside see's that same hostname as the inside IP address. You can do that via the hosts file if you like. -e On Fri, 25 Jul 2003, Erin Dalzell wrote: For this particular Servlet call we are not accessing any databases. DTDs? Not really familiar with those...I will check. I don't think we are trying to resolve hosts. Here is something we got from our client: -- The sniffer log showed the NATed address in one of the http requests ... following along the line of tomcat not using a localhost for addressing requests even if they're local to the system ... What options are there to specify the address for tomcat under which to start ? It must perform a lookup on DNS to translate the address, can we use the /etc/hosts file to create a 'fixed' address that won't be affected by DNS ? This may not resolve it either ... as which one would you actually put in to allow both 'local' access vs 'outside' access ... -- Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 5:46 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? It shouldn't use high ports. Are you running any database services or other services? Are your dtd's not correct and its trying actually pull foriegn assets via http? Are you trying to resolve hosts in your access log? (or similar) Use your sniffer to see the type of request being performed on the hight port. -Tim Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working behind a NAT?
OK, I have a question for all the Tomcat gurus out there. Here is my scenario: * tomcat machine is behind NAT * internal ip address is 2.2.2.2 (ip changed to protect the innocent!) * external ip is 3.3.3.3 * client accesses servlet with ip 3.3.3.3. * inside servlet we call RequestDispatcher rd = getServletContext().getRequestDispatcher( /another_page.jsp ); * then we call rd.forward( orig_request, response ); My question is, is that forward call a full http request? If so, what ip address will it use? I think that it is trying to use the 3.3.3.3 address and the NAT doesn't like it. Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 10:05 AM To: Tomcat Users List Subject: RE: Tomcat not working behind a NAT? I still think you are barking up the wrong tree here. If I had to guess I would say that 95% of all internet faceing Tomcat servers are behind some kind of NAT device. One thing to consider. NAT only translates the IP in the IP header and doesn't change the data payload. So if you are, for whatever reason, using an IP address that is getting sent along in the payload and trying to redirect to it or whatever, NAT won't change that. Kinda how SQLNet doesn't like NAT devices. Because the users IP is embedded in the payload as part of the protocol. So it goofs up when the IP header and the IP in the payload don't match. But what you are thinking below is the first thing I would do. Make sure the machine on the outside see's the correct hostname/IP number and the machine on the inside see's that same hostname as the inside IP address. You can do that via the hosts file if you like. -e On Fri, 25 Jul 2003, Erin Dalzell wrote: For this particular Servlet call we are not accessing any databases. DTDs? Not really familiar with those...I will check. I don't think we are trying to resolve hosts. Here is something we got from our client: -- The sniffer log showed the NATed address in one of the http requests ... following along the line of tomcat not using a localhost for addressing requests even if they're local to the system ... What options are there to specify the address for tomcat under which to start ? It must perform a lookup on DNS to translate the address, can we use the /etc/hosts file to create a 'fixed' address that won't be affected by DNS ? This may not resolve it either ... as which one would you actually put in to allow both 'local' access vs 'outside' access ... -- Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 5:46 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? It shouldn't use high ports. Are you running any database services or other services? Are your dtd's not correct and its trying actually pull foriegn assets via http? Are you trying to resolve hosts in your access log? (or similar) Use your sniffer to see the type of request being performed on the hight port. -Tim Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146
RE: Tomcat not working behind a NAT?
Does setting the proxyName help? See docs at: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html -Original Message- From: Erin Dalzell [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 4:31 PM To: 'Tomcat Users List' Subject: RE: Tomcat not working behind a NAT? OK, I have a question for all the Tomcat gurus out there. Here is my scenario: * tomcat machine is behind NAT * internal ip address is 2.2.2.2 (ip changed to protect the innocent!) * external ip is 3.3.3.3 * client accesses servlet with ip 3.3.3.3. * inside servlet we call RequestDispatcher rd = getServletContext().getRequestDispatcher( /another_page.jsp ); * then we call rd.forward( orig_request, response ); My question is, is that forward call a full http request? If so, what ip address will it use? I think that it is trying to use the 3.3.3.3 address and the NAT doesn't like it. Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 10:05 AM To: Tomcat Users List Subject: RE: Tomcat not working behind a NAT? I still think you are barking up the wrong tree here. If I had to guess I would say that 95% of all internet faceing Tomcat servers are behind some kind of NAT device. One thing to consider. NAT only translates the IP in the IP header and doesn't change the data payload. So if you are, for whatever reason, using an IP address that is getting sent along in the payload and trying to redirect to it or whatever, NAT won't change that. Kinda how SQLNet doesn't like NAT devices. Because the users IP is embedded in the payload as part of the protocol. So it goofs up when the IP header and the IP in the payload don't match. But what you are thinking below is the first thing I would do. Make sure the machine on the outside see's the correct hostname/IP number and the machine on the inside see's that same hostname as the inside IP address. You can do that via the hosts file if you like. -e On Fri, 25 Jul 2003, Erin Dalzell wrote: For this particular Servlet call we are not accessing any databases. DTDs? Not really familiar with those...I will check. I don't think we are trying to resolve hosts. Here is something we got from our client: -- The sniffer log showed the NATed address in one of the http requests ... following along the line of tomcat not using a localhost for addressing requests even if they're local to the system ... What options are there to specify the address for tomcat under which to start ? It must perform a lookup on DNS to translate the address, can we use the /etc/hosts file to create a 'fixed' address that won't be affected by DNS ? This may not resolve it either ... as which one would you actually put in to allow both 'local' access vs 'outside' access ... -- Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 5:46 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? It shouldn't use high ports. Are you running any database services or other services? Are your dtd's not correct and its trying actually pull foriegn assets via http? Are you trying to resolve hosts in your access log? (or similar) Use your sniffer to see the type of request being performed on the hight port. -Tim Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you
Re: Tomcat not working behind a NAT?
No, forward is an internal forward. It does not leave the JVM. In fact, it doesn't leave the servlet context. -Tim Erin Dalzell wrote: OK, I have a question for all the Tomcat gurus out there. Here is my scenario: * tomcat machine is behind NAT * internal ip address is 2.2.2.2 (ip changed to protect the innocent!) * external ip is 3.3.3.3 * client accesses servlet with ip 3.3.3.3. * inside servlet we call RequestDispatcher rd = getServletContext().getRequestDispatcher( /another_page.jsp ); * then we call rd.forward( orig_request, response ); My question is, is that forward call a full http request? If so, what ip address will it use? I think that it is trying to use the 3.3.3.3 address and the NAT doesn't like it. Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working behind a NAT?
My question is, is that forward call a full http request? If so, what ip address will it use? I think that it is trying to use the 3.3.3.3 address and the NAT doesn't like it. Well ya. That's kinda what I've been saying. Don't hardwire the IP. So instead of using an IP use a hostname. For example www.myapp.com = 3.3.3.3 on the external DNS. Then on your Tomcat systems host file (or internal DNS) put 2.2.2.2 www.myapp.com So when/if Tomcat need to use the URL for some reason when it goes to resolve the IP it gets the correct internal IP number. -e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working behind a NAT?
Well, something is getting out far enough for the NAT to swallow it! I have managed to upgrade our app to Tomcat 4.0.6 and I will turn up the debugging info and then trace through the code to learn more about it. All we do is call a JSP. And that is it. But somehow, the NAT doesn't like it!! Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 4:49 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? No, forward is an internal forward. It does not leave the JVM. In fact, it doesn't leave the servlet context. -Tim Erin Dalzell wrote: OK, I have a question for all the Tomcat gurus out there. Here is my scenario: * tomcat machine is behind NAT * internal ip address is 2.2.2.2 (ip changed to protect the innocent!) * external ip is 3.3.3.3 * client accesses servlet with ip 3.3.3.3. * inside servlet we call RequestDispatcher rd = getServletContext().getRequestDispatcher( /another_page.jsp ); * then we call rd.forward( orig_request, response ); My question is, is that forward call a full http request? If so, what ip address will it use? I think that it is trying to use the 3.3.3.3 address and the NAT doesn't like it. Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them.
Tomcat not working behind a NAT?
Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them.
Re: Tomcat not working behind a NAT?
Hi, I was unaware that tomcat connects to itself on a high port. Never the less, Tomcat should be completely unaware of the 204.1.1.1 address. If your NAT is totally transparent the only place that IP lives is on the external interface of your firewall/NAT device. I don't see how that IP could sneak back there. Unless, and I'm going to guess here, your application is looking at the URI of the request and doing something with it. In that case you should use IP numbers and have internal vs. external DNS (or /etc/hosts) set up with the different IP numbers (one for the inside value and one with the 10.x.x.x inside value). So that way if it tries to connect to the same URI that was in the request it will get the right 10.x.x.x IP number. I don't know if that helped or not. -e On Thu, 24 Jul 2003, Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not working behind a NAT?
Made sense to me. :) John Eric J. Pinnell wrote: Hi, I was unaware that tomcat connects to itself on a high port. Never the less, Tomcat should be completely unaware of the 204.1.1.1 address. If your NAT is totally transparent the only place that IP lives is on the external interface of your firewall/NAT device. I don't see how that IP could sneak back there. Unless, and I'm going to guess here, your application is looking at the URI of the request and doing something with it. In that case you should use IP numbers and have internal vs. external DNS (or /etc/hosts) set up with the different IP numbers (one for the inside value and one with the 10.x.x.x inside value). So that way if it tries to connect to the same URI that was in the request it will get the right 10.x.x.x IP number. I don't know if that helped or not. -e On Thu, 24 Jul 2003, Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - 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]
Re: Tomcat not working behind a NAT?
Heh.. ya. That didn't all come out right. Use a host name instead of IP numbers and have internal and external DNS set up with the internal and external IP numbers of the host respectively. That's better. -e On Thu, 24 Jul 2003, John Turner wrote: Made sense to me. :) John Eric J. Pinnell wrote: Hi, I was unaware that tomcat connects to itself on a high port. Never the less, Tomcat should be completely unaware of the 204.1.1.1 address. If your NAT is totally transparent the only place that IP lives is on the external interface of your firewall/NAT device. I don't see how that IP could sneak back there. Unless, and I'm going to guess here, your application is looking at the URI of the request and doing something with it. In that case you should use IP numbers and have internal vs. external DNS (or /etc/hosts) set up with the different IP numbers (one for the inside value and one with the 10.x.x.x inside value). So that way if it tries to connect to the same URI that was in the request it will get the right 10.x.x.x IP number. I don't know if that helped or not. -e On Thu, 24 Jul 2003, Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not working behind a NAT?
Ah yes, but I think tomcat does know what address was used to connect to it. If I connect to tomcat via 204.1.1.1, doesn't tomcat then think that that is its ip address and when it tries to open an IP connection to itself, it uses that IP address? If that were the case, then when it tried to make the connection it would fail as the NAT doesn't like connections that go out and then back in. That make any sense? emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 12:52 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? Hi, I was unaware that tomcat connects to itself on a high port. Never the less, Tomcat should be completely unaware of the 204.1.1.1 address. If your NAT is totally transparent the only place that IP lives is on the external interface of your firewall/NAT device. I don't see how that IP could sneak back there. Unless, and I'm going to guess here, your application is looking at the URI of the request and doing something with it. In that case you should use IP numbers and have internal vs. external DNS (or /etc/hosts) set up with the different IP numbers (one for the inside value and one with the 10.x.x.x inside value). So that way if it tries to connect to the same URI that was in the request it will get the right 10.x.x.x IP number. I don't know if that helped or not. -e On Thu, 24 Jul 2003, Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them.
Re: Tomcat not working behind a NAT?
That isn't how NAT works. Tomcat doesn't know anything about the 204.* address if the router is doing the NAT properly. The address Tomcat will see for the request is the router's internal Ip address. John Erin Dalzell wrote: Ah yes, but I think tomcat does know what address was used to connect to it. If I connect to tomcat via 204.1.1.1, doesn't tomcat then think that that is its ip address and when it tries to open an IP connection to itself, it uses that IP address? If that were the case, then when it tried to make the connection it would fail as the NAT doesn't like connections that go out and then back in. That make any sense? emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 12:52 PM To: Tomcat Users List Subject: Re: Tomcat not working behind a NAT? Hi, I was unaware that tomcat connects to itself on a high port. Never the less, Tomcat should be completely unaware of the 204.1.1.1 address. If your NAT is totally transparent the only place that IP lives is on the external interface of your firewall/NAT device. I don't see how that IP could sneak back there. Unless, and I'm going to guess here, your application is looking at the URI of the request and doing something with it. In that case you should use IP numbers and have internal vs. external DNS (or /etc/hosts) set up with the different IP numbers (one for the inside value and one with the 10.x.x.x inside value). So that way if it tries to connect to the same URI that was in the request it will get the right 10.x.x.x IP number. I don't know if that helped or not. -e On Thu, 24 Jul 2003, Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? Thanks emd Erin Dalzell eXpresso Product Specialist Epic Data 604.207.7699 This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any attachments are intended only for use by the addressees named in this email and may contain legally privileged and/or confidential information. If you are not the intended recipient of this email, you are hereby notified that any use, dissemination, distribution or copying of this e-mail or any attachments is strictly prohibited. If you have received this email in error, please immediately notify me by return email and by phone at 604-273-9146, permanently delete the original and any copy of this email and any attachments from your systems and destroy any printouts of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not working behind a NAT?
Sorry, I'm on crack. Tomcat will see the actual client IP address for the request. John John Turner wrote: That isn't how NAT works. Tomcat doesn't know anything about the 204.* address if the router is doing the NAT properly. The address Tomcat will see for the request is the router's internal Ip address. John Erin Dalzell wrote: Ah yes, but I think tomcat does know what address was used to connect to it. If I connect to tomcat via 204.1.1.1, doesn't tomcat then think that that is its ip address and when it tries to open an IP connection to itself, it uses that IP address? If that were the case, then when it tried to make the connection it would fail as the NAT doesn't like connections that go out and then back in. That make any sense? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not working behind a NAT?
It shouldn't use high ports. Are you running any database services or other services? Are your dtd's not correct and its trying actually pull foriegn assets via http? Are you trying to resolve hosts in your access log? (or similar) Use your sniffer to see the type of request being performed on the hight port. -Tim Erin Dalzell wrote: Hi there, We have just discovered that our tomcat web app is not working correctly behind a NAT. Our actual web app works fine, but when we try to access our management pages via http. It doesn't work. Any static pages are served up correctly through our defined tomcat port (6300), but any dynamic content (to several different servlets) don't work. When we run a sniffer, it looks like tomcat tries to communicate with itself on a very high (and random) port. For example, if our tomcat is accessible locally as 10.10.10.10 and externally as 204.1.1.1 and we access from withing our network (10.10.x.x) everything works fine and tomcat is able to talk to itself on port 45000. But if I access it from an external site, tomcat tries to communicate with itself on the 204.1.1.1 address and the NAT doesn't like it. So, I have a few questions: 1) why doesn't tomcat (we are using version 4) use localhost to communicate with itself? 2) anyone else seen this problem? 3) can the high port be configured? Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Admin tool for Tomcat not working.
Hi I have a user defined as admin having 2 roles: 1. admin, 2 manager. I can access the tomcat - manager utility thru the browser, but am unable to access the admin utility. When i try to goto http://localhost:8080/admin it says - Access to the specified resource () has been forbidden. Am i missing something ? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat not working
Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
RE: tomcat not working
Do you have an index.html file in your ROOT context/webapp? most likely /opt/jakarta/webapps/ROOT/index.html What do you get if you try http://ip_address:8080/ without specifying a file? Also for your HP-UX machine did you use the apache/tomcat depot provided by HP or did you download the files from apache and jakarta websites? If the latter how much trouble did you have compiling the connector between apache and tomcat? This does not have to do with your problem but I am simply curious as I use HP-UX machines, as well. Jeff -Original Message- From: Vishal Gupta [mailto:vhgupta1;yahoo.com] Sent: Thursday, October 24, 2002 3:57 AM To: [EMAIL PROTECTED] Subject: tomcat not working Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: tomcat not working
Pls see below.. Thanks and regards, Vishal PELOQUIN,JEFFREY (HP-Boise,ex1) [EMAIL PROTECTED] wrote: Do you have an index.html file in your ROOT context/webapp? ..yes its there ..I suspect some configuration or user right as it says resource not available..i made its owner as tomcat and permissions are 777.. ...pls advice as it must be a simple problem...and i am a novice with hp systems.but i have checked min. config mentioned in running.txt and everything seems to be ok most likely /opt/jakarta/webapps/ROOT/index.html What do you get if you try http://ip_address:8080/ without specifying a file? ...I still get the same error Also for your HP-UX machine did you use the apache/tomcat depot provided by HP or did you download the files from apache and jakarta websites? If the latter how much trouble did you have compiling the connector between apache and tomcat? This does not have to do with your problem but I am simply curious as I use HP-UX machines, as well. ..apache jakarta file gave me some error so i used the depot for that but tomcat installation was smooth from jakarta binary file Jeff -Original Message- From: Vishal Gupta [mailto:vhgupta1;yahoo.com] Sent: Thursday, October 24, 2002 3:57 AM To: [EMAIL PROTECTED] Subject: tomcat not working Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site -- To unsubscribe, e-mail: For additional commands, e-mail: Vishal Gupta Schlumberger Measurement Systems India Ltd 10th Floor, HMG Ambassador Bangalore 560 025 Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 E-Mail :- [EMAIL PROTECTED] and [EMAIL PROTECTED] - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
urgent:::Pls :Tomcat not working
Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. Vishal Gupta Schlumberger Measurement Systems India Ltd 10th Floor, HMG Ambassador Bangalore 560 025 Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 E-Mail :- [EMAIL PROTECTED] and [EMAIL PROTECTED] - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site
RE: urgent:::Pls :Tomcat not working
Hi, Did you try starting tomcat without Apache, making sure you can see the tomcat home page and run the examples? It's often a good idea to verify the various components work well individually before trying them together ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Vishal Gupta [mailto:vhgupta1;yahoo.com] Sent: Thursday, October 24, 2002 9:21 AM To: Tomcat Users List Subject: urgent:::Pls :Tomcat not working Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. Vishal Gupta Schlumberger Measurement Systems India Ltd 10th Floor, HMG Ambassador Bangalore 560 025 Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 E-Mail :- [EMAIL PROTECTED] and [EMAIL PROTECTED] - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: urgent:::Pls :Tomcat not working
here is the response I sent earlier: Do you have an index.html file in your ROOT context/webapp? most likely /opt/jakarta/webapps/ROOT/index.html What do you get if you try http://ip_address:8080/ without specifying a file? Also for your HP-UX machine did you use the apache/tomcat depot provided by HP or did you download the files from apache and jakarta websites? If the latter how much trouble did you have compiling the connector between apache and tomcat? This does not have to do with your problem but I am simply curious as I use HP-UX machines, as well. Jeff -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -Original Message- From: Vishal Gupta [mailto:vhgupta1;yahoo.com] Sent: Thursday, October 24, 2002 7:21 AM To: Tomcat Users List Subject: urgent:::Pls :Tomcat not working Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. Vishal Gupta Schlumberger Measurement Systems India Ltd 10th Floor, HMG Ambassador Bangalore 560 025 Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 E-Mail :- [EMAIL PROTECTED] and [EMAIL PROTECTED] - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Tomcat Current Working Directory
Is there a way to configure Tomcat 4.0.4's current working directory to point to sub-directory of the webapps folder, rather than /bin? I hate to answer a question with a question, but here goes: Why would you want to do that? Larry -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Current Working Directory
Is there a way to configure Tomcat 4.0.4's current working directory to point to sub directory of the webapps folder, rather than /bin? Thanks, Gerard Callahan SAIC [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Current Working Directory
If running as NT service, there is a registry string that you can create named Current Directory and you can give it a value of anything you like. Not sure how to implement with batch file. --- Callahan, Gerard [EMAIL PROTECTED] wrote: Is there a way to configure Tomcat 4.0.4's current working directory to point to sub directory of the webapps folder, rather than /bin? Thanks, Gerard Callahan SAIC [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
INDIANNIC : Re: Configuring IIS 5.0 with Tomcat 4.0.1 - working!
Hi thank u for the trouble u have taken and the help i was successful in setting up this particular url for http://209.11.42.166:8080 (or http://localhost:8080 ) using tomcat 4.0.1 and IIS 5.0 based on your advice now if possible could advise further we need to set up jsp for a website say for example what are the addions / changes to be made to various files www.aaaonlinux.com how shud we go about that thanks in advance rajesh - Original Message - From: chris brown [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Monday, January 14, 2002 8:16 PM Subject: Configuring IIS 5.0 with Tomcat 4.0.1 - working! Thanks to everyone who provided me with suggestions. I got it working by useful the files and steps described at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/ One other thing took a while to fix... but that's the fault (well, a feature) of IIS. I didn't install Tomcat within the inetpub directory, so my folders only had Windows security permissions allowing the current Windows user or the administrator to access my Tomcat webapp files, NOT the default anonymous internet access windows account. Once I authorised the appropriate users to access the folders for my webapp, I could access the site via IIS. I had to do this for the jakarta alias too. Thanks for the help, hope this helps others too! - Chris -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Getting Tomcat 4.0.1 working with IIS
Help! I can only find a HOWTO / reference info for Tomcat 3.3 and IIS... I'm having difficulty applying this in Tomcat 4.0.1, as although I can get an (apparently beta) Ajp13 connector running, I can't get a Ajp12 connector running (which is required, according to the HOWTO). If anyone can help me, please do so ! (maybe point me to a HOWTO, a previous message -- I have tried searching the archives, but this was slow and had difficulty finding relevant posts --, or - even better - post a message to say what I need to do). Thanks, Chris Brown PS: the HOWTO I'm referring to is http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 3:17 AM Subject: RE: Tomcat 4.01, IIS and JSPs we´re using tomcat 4.01 with mod_jk in production with IIS 5.0 with isapi_redirect.dll, with out problems. Does this little program have anything that the usual mod_jk, and isapi_redirect.dll doesn´t have ? bye [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Getting Tomcat 4.0.1 working with IIS
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/ try that Stevie -Original Message- From: chris brown [mailto:[EMAIL PROTECTED]] Sent: 14 January 2002 11:51 To: tomcat-user Subject: Getting Tomcat 4.0.1 working with IIS Help! I can only find a HOWTO / reference info for Tomcat 3.3 and IIS... I'm having difficulty applying this in Tomcat 4.0.1, as although I can get an (apparently beta) Ajp13 connector running, I can't get a Ajp12 connector running (which is required, according to the HOWTO). If anyone can help me, please do so ! (maybe point me to a HOWTO, a previous message -- I have tried searching the archives, but this was slow and had difficulty finding relevant posts --, or - even better - post a message to say what I need to do). Thanks, Chris Brown PS: the HOWTO I'm referring to is http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, January 05, 2002 3:17 AM Subject: RE: Tomcat 4.01, IIS and JSPs we´re using tomcat 4.01 with mod_jk in production with IIS 5.0 with isapi_redirect.dll, with out problems. Does this little program have anything that the usual mod_jk, and isapi_redirect.dll doesn´t have ? bye [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Configuring IIS 5.0 with Tomcat 4.0.1 - working!
Thanks to everyone who provided me with suggestions. I got it working by useful the files and steps described at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/ One other thing took a while to fix... but that's the fault (well, a feature) of IIS. I didn't install Tomcat within the inetpub directory, so my folders only had Windows security permissions allowing the current Windows user or the administrator to access my Tomcat webapp files, NOT the default anonymous internet access windows account. Once I authorised the appropriate users to access the folders for my webapp, I could access the site via IIS. I had to do this for the jakarta alias too. Thanks for the help, hope this helps others too! - Chris -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuring IIS 5.0 with Tomcat 4.0.1 - working!
Thanks to everyone who provided me with suggestions. I got it working by useful the files and steps described at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html I'm glad this page is actually useful. Please feel free to suggest improvements to it, as it's a remix of various older documents on jk/ajp, so there could be errors / stale info. http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/ One other thing took a while to fix... but that's the fault (well, a feature) of IIS. I didn't install Tomcat within the inetpub directory, so my folders only had Windows security permissions allowing the current Windows user or the administrator to access my Tomcat webapp files, NOT the default anonymous internet access windows account. Once I authorised the appropriate users to access the folders for my webapp, I could access the site via IIS. I had to do this for the jakarta alias too. Thanks for the help, hope this helps others too! Remy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat + Apache working, but JSPs not passed to Tomcat by Apache...
I have managed to get Tomcat 4.0.1 and Apache 1.3.20 working nicely on my Windows box... but Apache is only passing requests to Tomcat as directed by the WebAppDeploy directives in httpd.conf, e.g.: WebAppConnection conn warp test.panoguide.com:8008 WebAppDeploy examples conn /examples/ How do I instruct Apache to pass through all *.jsp requests to Tomcat too but leave all other files (e.g. *.jpg, *.gif) handled by Apache? Using mod_jk it is easy to do this kind of selective mapping, such as: JkMount /*.jsp ajp12 Is there some syntactic equivalent when using mod_webapp and Tomcat 4, or should I use mod_jk instead and forget mod_webapp??? Thanks for any help, pointers advice etc... James. -- panoguide.com broadening your horizons -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat +iis working
Hi! Well, not much..few things are required like creating virtual directory under the web site with executable rights and one registry setting are required.. regards -NIHAR -Original Message- From: Steve Vu [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 12:03 PM To: Tomcat Users List Subject: RE: tomcat +iis working That's cool Nihar. The thing you said that interests me is using both ASP and JSP. Did you have to do any special configuration after connecting IIs to Tomcat? We are using ASP at work but may consider using JSP, so being able to do this would make the transition a lot easier. I'm guessing that there's not too much config necessary? IIS automatically handles ASP and Tomcat takes all JSP requests? Thanks for any info. The more detail the beter. Thanks much, Steve -Original Message- From: Nihar [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 10, 2001 7:29 PM To: Tomcat Users List Subject: RE: tomcat +iis working tomact version 3.2.1 !! -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 4:24 AM To: 'Tomcat Users List' Subject: RE: tomcat +iis working Which version of tomcat? Saludos , Ignacio J. Ortega -Mensaje original- De: Nihar [mailto:[EMAIL PROTECTED]] Enviado el: sábado 10 de noviembre de 2001 23:49 Para: tomcat Asunto: tomcat +iis working Hi gurus, Finally my tomcat and iis integration works. I spend near about 8 hours on this and now willing to help people who is having difficulty in this. I am running around 30 virtual domains on iis(windows nt) serving jsp and asp functionality. regards -NIHAR -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How get Cocoon 1.8.1 with Tomcat 4.0.1 working?
Create a directory under webapps. It can be named whatever, but for this purpose, cocoon works. In that directory, create another called WEB-INF (note case is important). Follow the directions given for TC 3.x except where it makes reference to setting up a class path and copying .jar files. At that point, all .jar files including cocoon.jar should be placed in WEB-INF/lib and nothing needs to be done with the classpath. TC 4.0.1's class loader will take care of classpath issues. Everything else should work right. Just place your .xml and .xslt files under the webapps/cocoon directory and restart TC or use the manager app to load the new app. Try to access them from your browser. Good luck and hope this helps. --David Smith On Monday 12 November 2001 07:53 pm, you wrote: Hello all, I have installed Tomcat 4.0.1 and Cocoon 1.8.2. I have done it with the manuals for Tomcat 3.x for Cocoon installing. But it won't work. When I type in http://www.artada.de/Cocoon.xml then I became the following error: Publishing Engine could not be initialized. java.lang.RuntimeException: Error loading logicsheet at resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to java.lang.Exception: Resource not found or retrieving error. at org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302) I use the same config for Cocoon that I have used on Tomcat 3.2.1 (where it works very fine!!) I don't found any manuals to Install Cocoon 1.8.2 on Tomcat 4.0.1. So I have no idea what I have to do, so it work on it. Can anybody help me? Or give me a URL to a manual for do this?? Thanks! Jan Lange -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How get Cocoon 1.8.1 with Tomcat 4.0.1 working?
Hello all, I have installed Tomcat 4.0.1 and Cocoon 1.8.2. I have done it with the manuals for Tomcat 3.x for Cocoon installing. But it won't work. When I type in http://www.artada.de/Cocoon.xml then I became the following error: Publishing Engine could not be initialized. java.lang.RuntimeException: Error loading logicsheet at resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to java.lang.Exception: Resource not found or retrieving error. at org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302) I use the same config for Cocoon that I have used on Tomcat 3.2.1 (where it works very fine!!) I don't found any manuals to Install Cocoon 1.8.2 on Tomcat 4.0.1. So I have no idea what I have to do, so it work on it. Can anybody help me? Or give me a URL to a manual for do this?? Thanks! Jan Lange -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat stop working after Apache upgraded
Hi, I have upgrade apache to 1.3.19 (RH 7.1 RPM) and then the Tomcat(3.2.1 or 3.3-b2) no longer works with my Apache. I always get a Document contains no data error when I try to access the JSP. Does anyone have any idea? Thanks a thousands. Tony Cheung
Re: apache and tomcat not working
Do you get any output in the servlet.log file? - Original Message - From: Alejandro Arredondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 4:38 PM Subject: apache and tomcat not working Hello, I installed tomcat in my system. It works fine when I run it as stand alone server in the 8080 port. I followed the steps to configure it with apache that are in the Working with mod_jk documentation. The server restarts whithout trouble. I can see the examples subdirectory, but I can not run the servlets and JSP's. They always throw an 500 Internal Server Error. I am using win 2000 with apache 1.3.19 and tomcat 3.2.1. I will also install it in my linux system, after making it work on windows. I added the mod_jk.conf-auto configuration to my httpd.conf. I copied the mod_jk.dll to the modules subdirectory. Can anybody help me? Thanks in advance _ Free E-mail --- http://letodesigns.mail.everyone.net Letodesigns Programming Free e-mail 6MB limit http://letodesigns.8k.com
tomcat not working totally...
Hi, I'm new to tomcat, I am running NetBSD 1.4.1 (sorry, no time to upgrade) on i386, with the apache-1.3.17.1 package. I installed the jakarta-tomcat-3.1.1 binary package and ran the startup script. I tried out the JSP and servlet examples and some of them did not work, I suspect it's a CLASSPATH problem but after looking at the tomcat.sh script, i think all i need is JAVA_HOME to be set right, and the script sets CLASSPATH so at least JSP and servlet engines would run. If you guys can take a look at http://guadalupe.rem.cmu.edu:8080 and give me ideas as to what's wrong, i'd really appreciate that. I have a feeling that this is something trivial and you guys have probably seen this many times. Thanks! /ayn -- Andrew Y Ng | [EMAIL PROTECTED] | http://andrew.Ngbert.org/ -- (-) please finger [EMAIL PROTECTED] if u need more info... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat not working totally...
What JDK version do you have installed? It looks to me like the file tools.jar is not in your CLASSPATH. Should be located in JAVA_HOME/lib Let me know if that helps. Cj Andrew Y Ng wrote: Hi, I'm new to tomcat, I am running NetBSD 1.4.1 (sorry, no time to upgrade) on i386, with the apache-1.3.17.1 package. I installed the jakarta-tomcat-3.1.1 binary package and ran the startup script. I tried out the JSP and servlet examples and some of them did not work, I suspect it's a CLASSPATH problem but after looking at the tomcat.sh script, i think all i need is JAVA_HOME to be set right, and the script sets CLASSPATH so at least JSP and servlet engines would run. If you guys can take a look at http://guadalupe.rem.cmu.edu:8080 and give me ideas as to what's wrong, i'd really appreciate that. I have a feeling that this is something trivial and you guys have probably seen this many times. Thanks! /ayn -- Andrew Y Ng | [EMAIL PROTECTED] | http://andrew.Ngbert.org/ -- (-) please finger [EMAIL PROTECTED] if u need more info... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat not working totally...
java -version gives me: java version "1.1.6" there is not a tools.jar anywhere, maybe i need to update my JDK? /ayn On Tue, 27 Feb 2001, Corey A. Johnson wrote: What JDK version do you have installed? It looks to me like the file tools.jar is not in your CLASSPATH. Should be located in JAVA_HOME/lib Let me know if that helps. Cj Andrew Y Ng wrote: Hi, I'm new to tomcat, I am running NetBSD 1.4.1 (sorry, no time to upgrade) on i386, with the apache-1.3.17.1 package. I installed the jakarta-tomcat-3.1.1 binary package and ran the startup script. I tried out the JSP and servlet examples and some of them did not work, I suspect it's a CLASSPATH problem but after looking at the tomcat.sh script, i think all i need is JAVA_HOME to be set right, and the script sets CLASSPATH so at least JSP and servlet engines would run. If you guys can take a look at http://guadalupe.rem.cmu.edu:8080 and give me ideas as to what's wrong, i'd really appreciate that. I have a feeling that this is something trivial and you guys have probably seen this many times. Thanks! /ayn -- Andrew Y Ng | [EMAIL PROTECTED] | http://andrew.Ngbert.org/ -- (-) please finger [EMAIL PROTECTED] if u need more info... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Andrew Y Ng | [EMAIL PROTECTED] | http://andrew.Ngbert.org/ -- (-) please finger [EMAIL PROTECTED] if u need more info... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat not working totally...
Yep. That will do it. Grab JDK 1.2.. That will take care of your problem. Cj Andrew Y Ng wrote: java -version gives me: java version "1.1.6" there is not a tools.jar anywhere, maybe i need to update my JDK? /ayn On Tue, 27 Feb 2001, Corey A. Johnson wrote: What JDK version do you have installed? It looks to me like the file tools.jar is not in your CLASSPATH. Should be located in JAVA_HOME/lib Let me know if that helps. Cj Andrew Y Ng wrote: Hi, I'm new to tomcat, I am running NetBSD 1.4.1 (sorry, no time to upgrade) on i386, with the apache-1.3.17.1 package. I installed the jakarta-tomcat-3.1.1 binary package and ran the startup script. I tried out the JSP and servlet examples and some of them did not work, I suspect it's a CLASSPATH problem but after looking at the tomcat.sh script, i think all i need is JAVA_HOME to be set right, and the script sets CLASSPATH so at least JSP and servlet engines would run. If you guys can take a look at http://guadalupe.rem.cmu.edu:8080 and give me ideas as to what's wrong, i'd really appreciate that. I have a feeling that this is something trivial and you guys have probably seen this many times. Thanks! /ayn -- Andrew Y Ng | [EMAIL PROTECTED] | http://andrew.Ngbert.org/ -- (-) please finger [EMAIL PROTECTED] if u need more info... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Andrew Y Ng | [EMAIL PROTECTED] | http://andrew.Ngbert.org/ -- (-) please finger [EMAIL PROTECTED] if u need more info... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
unable to make tomcat 3.2.1 working on win2000 and iis 5.0
Hi, Please help. Thanks. Haichu Ni The following is the isapi.log i got: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /jakarta/isapi_redirect.dll [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /jakarta/isapi_redirect.dll [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 2300 [jk_connect.c (124)]: jk_open_socket, after connect ret = 0 [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on [jk_connect.c (140)]: jk_open_socket, return, sd = 2300 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 2300 [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12 start sequence [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the terminating mark [jk_ajp12_worker.c (472)]: ajpv12_handle_request done [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request [jk_ajp12_worker.c (488)]: Into ajpv12_handle_response [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 404 Not Found [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=404 Not Found [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Type: text/html [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Content-Type=text/html [jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header arrays [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Length: 201 [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Content-Length=201 [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Servlet-Engine=Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read [jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done [jk_ajp12_worker.c (563)]: ajpv12_handle_response, starting response [jk_isapi_plugin.c (201)]: Into jk_ws_service_t::start_response [jk_ajp12_worker.c (574)]: ajpv12_handle_response, reading response body [jk_isapi_plugin.c (335)]: Into jk_ws_service_t::write [jk_ajp12_worker.c (590)]: ajpv12_handle_response, response body is done [jk_ajp12_worker.c (602)]: ajpv12_handle_response done [jk_isapi_plugin.c (551)]: HttpExtensionProc service() returned OK [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]