SendMailServlet - problem, debugging tips
Would anyone be able to provide some debugging tips for Tomcat servlets? Also, what would cause a servlet to be unavailable?
Re: SendMailServlet problem...
The load on the server is light, occassionally it goes up but not long enough to block all of the testing that I have done. Other example servlets are working fine. My system.out debugging is getting me nowhere in a hurry... - Original Message - From: Sean Dockery [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 6:54 PM Subject: Re: SendMailServlet problem... According to the HTTP 1.1 spec... 10.5.4 503 Service Unavailable The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response. Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection. What is the load like on your server? Does it have enough memory? At 17:28 2003-02-06 -0600, you wrote: When I run the jsp example to sendmail I recieve the following error: Http status 503 - Servlet SendMailServlet is currently unavailable Any ideas? I have the mail.smtp.host changed to my mail server in server.xml. I am the username and password to the server. Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com - 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: SendMailServlet - problem, debugging tips
At this point, I'll take any debugging help I can get!!! I'll check out eclipse... - Original Message - From: Raible, Matt [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 6:40 PM Subject: RE: SendMailServlet - problem, debugging tips Eclipse has a nice tomcat plugin that you can set breakpoints in servlets... works awesome for me. -Original Message- From: chris schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 5:38 PM To: tomcat Subject: SendMailServlet - problem, debugging tips Would anyone be able to provide some debugging tips for Tomcat servlets? Also, what would cause a servlet to be unavailable? - 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: SendMailServlet problem...
Any ideas on what would make a servlet unavailable? Anything that would lead to a server is busy error page? - Original Message - From: Sean Dockery [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 6:54 PM Subject: Re: SendMailServlet problem... According to the HTTP 1.1 spec... 10.5.4 503 Service Unavailable The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response. Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection. What is the load like on your server? Does it have enough memory? At 17:28 2003-02-06 -0600, you wrote: When I run the jsp example to sendmail I recieve the following error: Http status 503 - Servlet SendMailServlet is currently unavailable Any ideas? I have the mail.smtp.host changed to my mail server in server.xml. I am the username and password to the server. Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com - 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80
Galbayar, I didn't get an explanation but let me try and decipher... You are saying for EACH VirtualHost to have a Directory directive? Defined where? Below the DocumentRoot in httpd.conf? Or below each VirtualHost? Would the JkMount(s) also go below each VirtualHost? - Original Message - From: Galbayar Dorjgotov [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 03, 2003 8:58 PM Subject: RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80 VirtualHost * ServerName cde.com ServerAlias www.cde.com DocumentRoot /apache/Tomcat4.1/CDE ErrorLog logs/cde.com-error_log CustomLog logs/cde.com-access_log common /VirtualHost Directory /apache/Tomcat4.1/CDE Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all DirectoryIndex main.jsp /Directory JkMount www.cde.com/* ajp12 JkMount www.cde.com/*.jsp ajp12 -Original Message- From: tomcat guy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 8:57 AM To: Tomcat Users List Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80 Has anyone come across this warning? Any guesses as to what is wrong? Here is the httpd.conf definition: NameVirtualHost * VirtualHost * ServerName cde.com ServerAlias www.cde.com DocumentRoot /apache/Tomcat4.1/CDE JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/cde.com-error_log CustomLog logs/cde.com-access_log common /VirtualHost VirtualHost * ServerName qv.com ServerAlias www.qv.com DocumentRoot /apache/Tomcat4.1/QV JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/qv.com-error_log CustomLog logs/qv.com-access_log common /VirtualHost VirtualHost * ServerName abc.com ServerAlias www.abc.com DocumentRoot /apache/Tomcat4.1/AMW JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/abc.com-error_log CustomLog logs/abc.com-access_log common /VirtualHost # !-- !!! added workers file for apache tomcat integration -- JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf everything appears to be working normally but why the error??? - 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80
Oscar, per the docs that I used NameVirutalHost is suppose to use the *. - Original Message - From: Oscar Carrillo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 03, 2003 10:26 AM Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80 I'm not very familiar with Apache configuration, but shouldn't your * be replaced with the ServerName. I'm not sure what NameVirtualHost should be set at. I have mine set to the servername of the only servername I have. Oscar On Mon, 3 Feb 2003, chris schild wrote: Sorry, here is the error from apache.exe -t VirtualHost www.zcompany.com:80 overlaps with VirtualHost www.abc.com:80, the first has precedence, perhaps you need a NameVirtualHost directive - Original Message - From: Oscar Carrillo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 03, 2003 8:59 AM Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80 What error? Oscar On Mon, 3 Feb 2003, tomcat guy wrote: Has anyone come across this warning? Any guesses as to what is wrong? Here is the httpd.conf definition: NameVirtualHost * VirtualHost * ServerName cde.com ServerAlias www.cde.com DocumentRoot /apache/Tomcat4.1/CDE JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/cde.com-error_log CustomLog logs/cde.com-access_log common /VirtualHost VirtualHost * ServerName qv.com ServerAlias www.qv.com DocumentRoot /apache/Tomcat4.1/QV JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/qv.com-error_log CustomLog logs/qv.com-access_log common /VirtualHost VirtualHost * ServerName abc.com ServerAlias www.abc.com DocumentRoot /apache/Tomcat4.1/AMW JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/abc.com-error_log CustomLog logs/abc.com-access_log common /VirtualHost # !-- !!! added workers file for apache tomcat integration -- JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf everything appears to be working normally but why the error??? - 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80
Sorry, here is the error from apache.exe -t VirtualHost www.zcompany.com:80 overlaps with VirtualHost www.abc.com:80, the first has precedence, perhaps you need a NameVirtualHost directive - Original Message - From: Oscar Carrillo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 03, 2003 8:59 AM Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80 What error? Oscar On Mon, 3 Feb 2003, tomcat guy wrote: Has anyone come across this warning? Any guesses as to what is wrong? Here is the httpd.conf definition: NameVirtualHost * VirtualHost * ServerName cde.com ServerAlias www.cde.com DocumentRoot /apache/Tomcat4.1/CDE JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/cde.com-error_log CustomLog logs/cde.com-access_log common /VirtualHost VirtualHost * ServerName qv.com ServerAlias www.qv.com DocumentRoot /apache/Tomcat4.1/QV JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/qv.com-error_log CustomLog logs/qv.com-access_log common /VirtualHost VirtualHost * ServerName abc.com ServerAlias www.abc.com DocumentRoot /apache/Tomcat4.1/AMW JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 ErrorLog logs/abc.com-error_log CustomLog logs/abc.com-access_log common /VirtualHost # !-- !!! added workers file for apache tomcat integration -- JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf everything appears to be working normally but why the error??? - 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]
Apache2 + jk2 + tomcat
John, I have seen you refer to the url (below) several times regarding documentation. ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip I am not able to login? Is there a user/pswd that you know of?!? Logging in anonymously is not working. I'm interested to see if this can help shed some more light on my learning and more importantly configuration. thanks much..
Re: Remote Restart Tomcat 4.1.8
Henning, How is the stability/scalability of VNC? PC anywhere crashes one of my computers and terminal services goes down with several users signed-on. Thanks - Original Message - From: Henning Heil [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 1:28 PM Subject: Re: Remote Restart Tomcat 4.1.8 haytham, it's a question of 'how remote you are' and the OSes you're using, solutions for win: a) install a terminal - server - client constellation (should work for other OSes too) or b) get VNC from ATT Research labs, that's fun ! (http://www.uk.research.att.com/vnc) cheers, henning Haytham Samad wrote: Is it possible to restart or shutdown/start Tomcat remotely? Thanks - 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]
Apache2 + jk2 + tomcat HOWTO - Robert Sowders
Robert (or anyone that may know) I am interested in your documentation on apache2, jk2, etc. BUT I am unable to login to the site. Could you provide the user/pswd info? ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip Thanks in advance...
virtualHost + jk2
I made the move to the jk2 connector from jk. Would anyone be able to tell me how to define VirtualHosts for httpd.conf server.xml. I added the configuration after getting localhost localhost:8080 to work properly. When I added the VirtualHosts to httpd.conf server.xml (same as the jk connector) everything went to crap. Could someone give me a brief example setting up 1 virtualHost??? Nothing in the docs talks about VirtualHosts. peace,c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 workers2 documentation
Does anyone know of a url for documenation on jk2 workers2? I was hoping there is more than what is out there than what is on the tomcat site There is plenty on jk workers but that is not where the development is going Any info is much appreciated!
Re: JK2 workers2 documentation
Excellent! Thanks Lajos... - Original Message - From: Lajos [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 6:17 PM Subject: Re: JK2 workers2 documentation Chris - Since this is a hot topic, I'm adding a Flashguide to http://www.galatea.com/flashguides specifically about jk2. I'll announce as soon as it is up. Regards, Lajos chris schild wrote: Does anyone know of a url for documenation on jk2 workers2? I was hoping there is more than what is out there than what is on the tomcat site There is plenty on jk workers but that is not where the development is going Any info is much appreciated! -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - 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: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavaila
Anyone know what is missing here? I have the problem with http://localhost/servlets and http://mydomain1.com/servlets ... I am receiving the msg: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavailable. Would anyone be able to tell me this may be happening? Note, I altered the code to use smtp authentication. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JK2 workers2 vs. jk workers???
I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2 workers2 vs. jk workers???
Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2 workers2 vs. jk workers???
John, Would you recommend staying with the original mod_jk since I am using Win2k or is mod_jk2 the way to go? I am going to rebuild Tomcat since I have configured reconfigured it so much. My knowledge level, although still minimal, is much greater than it was a month ago... btw- I am still have problems with the msg: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavailable Any ideas on that one? Thanks again! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, January 27, 2003 2:23 PM Subject: RE: JK2 workers2 vs. jk workers??? Not for JK2. John -Original Message- From: list [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 3:02 PM To: Tomcat Users List Subject: Re: JK2 workers2 vs. jk workers??? here you find everything you need: http://www.galatea.com/flashguides/index chris schild wrote: Does anyone know of the location of some docs? And/Or have a sample configuration including virtual hosts. I am using: Apache 2.0.43 Tomcat 4.1.18 Windows 2000 Thanks much!!! - Original Message - From: chris schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 27, 2003 1:33 PM Subject: JK2 workers2 vs. jk workers??? I have seen jk.properties workers.properties BUT what is the difference with jk2 workers2?Do I need jk workers also? I guess the I am missing something here!!! I haven't found anything in the archives or docs (so far) that is helping. I'm assuming it is mod_jk2 instead of mod_jk?Would someone please give me some guidance on setting up Apache 2.0.43 in front of Tomcat 4.1.18 with multiple Virtual Hosts? The information in the documentation is tantalizing but I cannot quite get it to work. I just looking for a general theory of operation here. Do I need to create matching host entries in server.xml for each of the hosts in workers2.properties or can I configure the root of certain virtual hosts to specific contexts of localhost? For example can I use workers2.properties to make http://foo.mycompany.com go to http://localhost/app1 and http://bar.mycomapny.com go to http://localhost/app2? This is hinted at by the context and servlet properties of the uri config element but it is not clear. Thank You, Victor Lewis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavaila
I am receiving the msg: Apache Tomcat - HTTP Status 503 - Servlet SendMailServlet is currently unavailable. Would anyone be able to tell me this may be happening? Note, I altered the code to use smtp authentication. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Virtual Hosts
Tom, I could possibly use some of the information. I am running on the same releases: Apache 2.0.43, Tomcat 4.1.18 win2k. My problem is that I can't get to the directory of my virtualHosts. e.g. http://localhost/examples is not a problem BUT http://mysite.com/examples will not work. I just noticed an err in the log saying - Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples Can't find where to make my edits so the directory can be seen. Maybe this is a related issue? Either way if you know how to configure the systems so that the directory will be shown, I would much appreciated it! - Original Message - From: Tom Holmes Jr. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 11:37 PM Subject: Virtual Hosts I have finally discovered the problem on why some of my web-apps are working and some are not ... it is either my configuration or a MAJOR SERIOUS BUG with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000. I have included a copy of my httpd.conf file because it is the only one that matters here. The server.xml file has one Engine tag and then it has 4 different Host tags with 1 Context for each virtual host. When we have two virtual host/web-apps listed below ONLY the JSP pages work for the second web-app. They do NOT work for the first web-app listed. If I flip these virtual hosts around and then restart the Apache/Tomcat server, then the opposite is true. I then tried 3 web-apps and again ... ONLY the last web-app works and the JSP pages are correctly served. If anyone needs the other files: jk2.properties or workers2.properites or server.xml, please let me know and I can provide them. I am sure that these files are ok. Switching the Host tags around in the Engine tag did not seem to have any effect. I may try this same configuration on my Red Hat Linux 8.0 box and see if the same problem happens. At least that way I could say the problem is cross-platform or just limitations on the Windows 2000 versions. If I can be of any help, or if you need any more information, please let me know. I ask that someone please look at this issue and my configuration and recommend a solution. I really want to use Apache and Tomcat together, but this is incredibly frustrating and should not be a problem. Thanks. Tom VirtualHost * ServerName test.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/test-error_log CustomLog logs/test-access_log common DirectoryIndex default.jsp index.jsp /VirtualHost VirtualHost * ServerName meditech.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech Location /*.jsp JkUriSet uri meditech.tomholmes.net JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/meditech-error_log CustomLog logs/meditech-access_log common DirectoryIndex default.jsp /VirtualHost -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Virtual Hosts
I'm having the same problem. In the log files apache2/logs/COM_error_log I get a: Directory index forbidden by rule: Is there a definition in http.conf that I need to alter??? - Original Message - From: John Ruffin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 2:42 PM Subject: RE: Virtual Hosts I'm having a similar issue. I'm running tc4.1.18 on w2k server. http://localhost/examples works but http://mysite.com/examples doesn't. I searched the archives and found some information on creating a host file with the FQDN as the name but that didn't seem to work. Is there something else I need to change? Do I need to configure my firewall || router to let additional ports through? Right now, port:80 (http) serves static content with no problem. I'm new - thanks for your help. -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:16 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Virtual Hosts Tom, I could possibly use some of the information. I am running on the same releases: Apache 2.0.43, Tomcat 4.1.18 win2k. My problem is that I can't get to the directory of my virtualHosts. e.g. http://localhost/examples is not a problem BUT http://mysite.com/examples will not work. I just noticed an err in the log saying - Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples Can't find where to make my edits so the directory can be seen. Maybe this is a related issue? Either way if you know how to configure the systems so that the directory will be shown, I would much appreciated it! - Original Message - From: Tom Holmes Jr. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 11:37 PM Subject: Virtual Hosts I have finally discovered the problem on why some of my web-apps are working and some are not ... it is either my configuration or a MAJOR SERIOUS BUG with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000. I have included a copy of my httpd.conf file because it is the only one that matters here. The server.xml file has one Engine tag and then it has 4 different Host tags with 1 Context for each virtual host. When we have two virtual host/web-apps listed below ONLY the JSP pages work for the second web-app. They do NOT work for the first web-app listed. If I flip these virtual hosts around and then restart the Apache/Tomcat server, then the opposite is true. I then tried 3 web-apps and again ... ONLY the last web-app works and the JSP pages are correctly served. If anyone needs the other files: jk2.properties or workers2.properites or server.xml, please let me know and I can provide them. I am sure that these files are ok. Switching the Host tags around in the Engine tag did not seem to have any effect. I may try this same configuration on my Red Hat Linux 8.0 box and see if the same problem happens. At least that way I could say the problem is cross-platform or just limitations on the Windows 2000 versions. If I can be of any help, or if you need any more information, please let me know. I ask that someone please look at this issue and my configuration and recommend a solution. I really want to use Apache and Tomcat together, but this is incredibly frustrating and should not be a problem. Thanks. Tom VirtualHost * ServerName test.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/test-error_log CustomLog logs/test-access_log common DirectoryIndex default.jsp index.jsp /VirtualHost VirtualHost * ServerName meditech.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech Location /*.jsp JkUriSet uri meditech.tomholmes.net JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/meditech-error_log CustomLog logs/meditech-access_log common DirectoryIndex default.jsp /VirtualHost -- -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe
Re: Virtual Hosts
This is when I go the url http://mydomain.com/examples http://mydomain.com/examples/jsp/index.html works just fine I'm having the same problem. In the log files apache2/logs/COM_error_log I get a: Directory index forbidden by rule: Is there a definition in http.conf that I need to alter??? - Original Message - From: John Ruffin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 2:42 PM Subject: RE: Virtual Hosts I'm having a similar issue. I'm running tc4.1.18 on w2k server. http://localhost/examples works but http://mysite.com/examples doesn't. I searched the archives and found some information on creating a host file with the FQDN as the name but that didn't seem to work. Is there something else I need to change? Do I need to configure my firewall || router to let additional ports through? Right now, port:80 (http) serves static content with no problem. I'm new - thanks for your help. -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:16 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Virtual Hosts Tom, I could possibly use some of the information. I am running on the same releases: Apache 2.0.43, Tomcat 4.1.18 win2k. My problem is that I can't get to the directory of my virtualHosts. e.g. http://localhost/examples is not a problem BUT http://mysite.com/examples will not work. I just noticed an err in the log saying - Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples Can't find where to make my edits so the directory can be seen. Maybe this is a related issue? Either way if you know how to configure the systems so that the directory will be shown, I would much appreciated it! - Original Message - From: Tom Holmes Jr. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 11:37 PM Subject: Virtual Hosts I have finally discovered the problem on why some of my web-apps are working and some are not ... it is either my configuration or a MAJOR SERIOUS BUG with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000. I have included a copy of my httpd.conf file because it is the only one that matters here. The server.xml file has one Engine tag and then it has 4 different Host tags with 1 Context for each virtual host. When we have two virtual host/web-apps listed below ONLY the JSP pages work for the second web-app. They do NOT work for the first web-app listed. If I flip these virtual hosts around and then restart the Apache/Tomcat server, then the opposite is true. I then tried 3 web-apps and again ... ONLY the last web-app works and the JSP pages are correctly served. If anyone needs the other files: jk2.properties or workers2.properites or server.xml, please let me know and I can provide them. I am sure that these files are ok. Switching the Host tags around in the Engine tag did not seem to have any effect. I may try this same configuration on my Red Hat Linux 8.0 box and see if the same problem happens. At least that way I could say the problem is cross-platform or just limitations on the Windows 2000 versions. If I can be of any help, or if you need any more information, please let me know. I ask that someone please look at this issue and my configuration and recommend a solution. I really want to use Apache and Tomcat together, but this is incredibly frustrating and should not be a problem. Thanks. Tom VirtualHost * ServerName test.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/test-error_log CustomLog logs/test-access_log common DirectoryIndex default.jsp index.jsp /VirtualHost VirtualHost * ServerName meditech.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech Location /*.jsp JkUriSet uri meditech.tomholmes.net JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/meditech-error_log CustomLog logs/meditech-access_log common DirectoryIndex default.jsp /VirtualHost -- -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution
Compile error: class file contains wrong class, bad class file???
Hi all, here is the error I get... C:\Java\JCreator LE\MyProjects\Email\Email.java:16: cannot access ServletConfig bad class file: C:\Java\servlet-2_3\javax\servlet\ServletConfig.class class file contains wrong class: javax.servlet.ServletConfig Please remove or make sure it appears in the correct subdirectory of the classpath. code: -- public void init(ServletConfig config) throws ServletException ^1 error -- I have searched for answer but I get nothing?!? The classpath is set correctly - C:\Java\classes;C:\Java\javamail-1_3\mail.jar;C:\Java\jaf-1_0_2\activation.jar;C:\Java\servlet-2_3\javax\servlet;C:\Java\jsp-1_2\servlet.jar I can't think of anything else Any suggestions? Here is the code up to the error: code: -- // import the JavaMail packagesimport javax.mail.*;import javax.mail.internet.*; // import the servlet packagesimport javax.servlet.*;import javax.servlet.http.*; // import misc classes that we needimport java.util.*;import java.io.*; public class Email extends HttpServlet { String smtpServer; public void init(ServletConfig config) throws ServletException { super.init(config); // get the SMTP server from the servlet properties smtpServer = config.getInitParameter(smtpServer); } public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {I get this error whether it is from the DOS cmd line or from the case tool JCreator???Anybody know about this???
Re: Compile error: class file contains wrong class, bad class file???
Sorry, I figured it out. When I installed the Tomcat directory under Apache. The compiler was picking up %tomcat_home%/servlet.jar instead of the servlet2_03/servlet.jar defined in the classpath ooopsss. - Original Message - From: Chris Schild [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 4:35 PM Subject: Compile error: class file contains wrong class, bad class file??? Hi all, here is the error I get... C:\Java\JCreator LE\MyProjects\Email\Email.java:16: cannot access ServletConfig bad class file: C:\Java\servlet-2_3\javax\servlet\ServletConfig.class class file contains wrong class: javax.servlet.ServletConfig Please remove or make sure it appears in the correct subdirectory of the classpath. code: -- public void init(ServletConfig config) throws ServletException ^1 error -- I have searched for answer but I get nothing?!? The classpath is set correctly - C:\Java\classes;C:\Java\javamail-1_3\mail.jar;C:\Java\jaf-1_0_2\activation.j ar;C:\Java\servlet-2_3\javax\servlet;C:\Java\jsp-1_2\servlet.jar I can't think of anything else Any suggestions? Here is the code up to the error: code: -- // import the JavaMail packagesimport javax.mail.*;import javax.mail.internet.*; // import the servlet packagesimport javax.servlet.*;import javax.servlet.http.*; // import misc classes that we needimport java.util.*;import java.io.*; public class Email extends HttpServlet { String smtpServer; public void init(ServletConfig config) throws ServletException { super.init(config); // get the SMTP server from the servlet properties smtpServer = config.getInitParameter(smtpServer); } public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {I get this error whether it is from the DOS cmd line or from the case tool JCreator???Anybody know about this??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Virtual Hosts
Does any know what would cause this message: Directory index forbidden by rule: C:\apache\qv This is when I go the url http://mydomain.com/examples http://mydomain.com/examples/jsp/index.html works just fine I'm having the same problem. In the log files apache2/logs/COM_error_log I get a: Directory index forbidden by rule: Is there a definition in http.conf that I need to alter??? - Original Message - From: John Ruffin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 2:42 PM Subject: RE: Virtual Hosts I'm having a similar issue. I'm running tc4.1.18 on w2k server. http://localhost/examples works but http://mysite.com/examples doesn't. I searched the archives and found some information on creating a host file with the FQDN as the name but that didn't seem to work. Is there something else I need to change? Do I need to configure my firewall || router to let additional ports through? Right now, port:80 (http) serves static content with no problem. I'm new - thanks for your help. -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:16 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Virtual Hosts Tom, I could possibly use some of the information. I am running on the same releases: Apache 2.0.43, Tomcat 4.1.18 win2k. My problem is that I can't get to the directory of my virtualHosts. e.g. http://localhost/examples is not a problem BUT http://mysite.com/examples will not work. I just noticed an err in the log saying - Directory index forbidden by rule: C:/Apache/Tomcat4.1/path/to/examples Can't find where to make my edits so the directory can be seen. Maybe this is a related issue? Either way if you know how to configure the systems so that the directory will be shown, I would much appreciated it! - Original Message - From: Tom Holmes Jr. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 11:37 PM Subject: Virtual Hosts I have finally discovered the problem on why some of my web-apps are working and some are not ... it is either my configuration or a MAJOR SERIOUS BUG with Apache 2.0.43 and Tomcat 4.1.18 on Windows 2000. I have included a copy of my httpd.conf file because it is the only one that matters here. The server.xml file has one Engine tag and then it has 4 different Host tags with 1 Context for each virtual host. When we have two virtual host/web-apps listed below ONLY the JSP pages work for the second web-app. They do NOT work for the first web-app listed. If I flip these virtual hosts around and then restart the Apache/Tomcat server, then the opposite is true. I then tried 3 web-apps and again ... ONLY the last web-app works and the JSP pages are correctly served. If anyone needs the other files: jk2.properties or workers2.properites or server.xml, please let me know and I can provide them. I am sure that these files are ok. Switching the Host tags around in the Engine tag did not seem to have any effect. I may try this same configuration on my Red Hat Linux 8.0 box and see if the same problem happens. At least that way I could say the problem is cross-platform or just limitations on the Windows 2000 versions. If I can be of any help, or if you need any more information, please let me know. I ask that someone please look at this issue and my configuration and recommend a solution. I really want to use Apache and Tomcat together, but this is incredibly frustrating and should not be a problem. Thanks. Tom VirtualHost * ServerName test.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/test-error_log CustomLog logs/test-access_log common DirectoryIndex default.jsp index.jsp /VirtualHost VirtualHost * ServerName meditech.tomholmes.net ServerAdmin [EMAIL PROTECTED] DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/meditech Location /*.jsp JkUriSet uri meditech.tomholmes.net JkUriSet worker ajp13:localhost:8009 /Location ErrorLog logs/meditech-error_log CustomLog logs/meditech-access_log common DirectoryIndex default.jsp /VirtualHost -- -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else
Re: Tomcat Apache directories, jsp/servlet path
If you want to auto-deploy, then you need to look at $CATALINA_HOME/webapps/admin.xml and $CATALINA_HOME/webapps/manager.xml for examples on how to auto-deploy a Context. Respectively, those two files will make http://localhost/admin and http://localhost/manager work. John Auto-deploy is the goal, I have copied the examples from localhost/admin to mycompany.com/admin appBase I used the examples above to try to get to http://mycompany.com/admin but I get a 404 error? http://mycompany.com/examples also doesn't work BUT http://mycompany.com/examples/jsp/index.html works fine Could the error be coming from my appBase/WEB-INF/web.xml file not being defined correctly I think I need to step away and come back but I hate quitting!!! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:58 PM Subject: RE: Tomcat Apache directories, jsp/servlet path I might add that http://localhost/examples is an example of what you need to do for any webapp if you don't want to auto-deploy (One Host element, one Context). If you want to auto-deploy, then you need to look at $CATALINA_HOME/webapps/admin.xml and $CATALINA_HOME/webapps/manager.xml for examples on how to auto-deploy a Context. Respectively, those two files will make http://localhost/admin and http://localhost/manager work. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 2:53 PM To: 'Tomcat Users List' Subject: RE: Tomcat Apache directories, jsp/servlet path Well, first off, you don't have any ROOT Contexts in that server.xml you posted. If you want http://my.domain.com/my.jsp to work, you need: 1) a Host element for my.domain.com (just like the one in server.xml for localhost, but change the appBase) 2) a Context within that Host element that looks like this: Context path= docBase=ROOT debug=0/ 3) a folder in the Host's appBase directory called ROOT 4) a folder in the ROOT folder called WEB-INF 5) a file in ROOT/WEB-INF called web.xml 6) my.jsp goes in appBase/docBase, in this case appBase/ROOT/my.jsp If you don't want to do that, you can use the auto-deploy feature for Contexts, and put a file called myapp.xml in CATALINA_HOME/webapps (or rather, Host's appBase), the contents of which might be: Context path=/myApp docBase=some/path/to/myApp debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context John -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 2:39 PM To: Tomcat Users List Subject: Re: Tomcat Apache directories, jsp/servlet path Lajos, I believe you are right on the servlet-mapping but I am uncertain what should be defined in web.xml. The same with server.xml. I am not finding the docs that I need. Thanks for the help! - Original Message - From: Lajos Moczar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:11 PM Subject: Re: Tomcat Apache directories, jsp/servlet path Chris - Can you provide the relevant snippets of server.xml and web.xml? Off the bat, I can't really suggest anything except to say that possibly you need other servlet-mapping tags defined in web.xml. Cheers, Lajos Chris Schild wrote: Can someone tell me (provide an example) of how to add directories for running jsp/servlets? I have multiple hosts and the examples work fine but I am missing something as for running jsp/servlets for those virtual hosts. www.mydomain1.com/examples/jsp/test.jsp and www.mydomain2.com/examples/jsp/test.jsp work fine but when I try www.mydomain1.com/test.jsp on the root directory I get nuttin? HTML, etc seem to work ok... Where should I define this path? Is there something that I need to modify in web.xml? Somebody please help before I lose my hair! (: Is there a URL with some documentation out there I am missing? Did I overlook it in tomcat-4.0-doc HOWTO? -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands
Re: Tomcat Apache directories, jsp/servlet path
Yes, I believe I am confusing myself! (: I've looked at to manys docs and started circling myself... Anyhow, 1) I have the a Host element of mycompany.com 2) The appBase is QV 3) admin.xml is defined in QV/admin.xml 4) Here is the admin.xml Context path=/admin docBase=../QV/webapps/admin debug=0 privileged=true !-- Uncomment this Valve to limit access to the Admin app to localhost for obvious security reasons. Allow may be a comma-separated list of hosts (or even regular expressions). Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1/ -- Logger className=org.apache.catalina.logger.FileLogger prefix=QV_admin_log. suffix=.txt timestamp=true/ /Context Everything seems clear but I'm obviously doing something wrong! aaaghh... When I enter the url http://mycompany.com/examples I get Forbidden You don't have permission. When I enter the url http://mycompany.com/examples/jsp/index.html all is well. When I enter the url http://mycompany.com/admin I get a 404 Thanks John you've been extremely helpful! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 2:42 PM Subject: RE: Tomcat Apache directories, jsp/servlet path Well, just copying admin.xml isn't going to do much. I think things are getting a little confusing. If you need some.domain.com/admin, then: 1) you need a HOST element with a name parameter of some.domain.com 2) you need to set that HOST's appBase 3) you need to put admin.xml in that appBase 4) you need to edit appBase/admin.xml and verify that the path used in the Context element in appBase/admin.xml makes sense and is available /admin and /manager use auto-deploy. How about you describe your directory structure, what the appBase is for the host you are working with (localhost? something else?), post the XML file you are using for auto-deploy, and tell us what URL you want to work, and we can go from there. The Context in the default install of admin.xml has a path in itif that path doesn't make sense for some.server.com when you set that some.server.com as a new virtual host, you will get a 404 trying to reach some.domain.com/admin. John -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 3:31 PM To: Tomcat Users List Subject: Re: Tomcat Apache directories, jsp/servlet path If you want to auto-deploy, then you need to look at $CATALINA_HOME/webapps/admin.xml and $CATALINA_HOME/webapps/manager.xml for examples on how to auto-deploy a Context. Respectively, those two files will make http://localhost/admin and http://localhost/manager work. John Auto-deploy is the goal, I have copied the examples from localhost/admin to mycompany.com/admin appBase I used the examples above to try to get to http://mycompany.com/admin but I get a 404 error? http://mycompany.com/examples also doesn't work BUT http://mycompany.com/examples/jsp/index.html works fine Could the error be coming from my appBase/WEB-INF/web.xml file not being defined correctly I think I need to step away and come back but I hate quitting!!! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:58 PM Subject: RE: Tomcat Apache directories, jsp/servlet path I might add that http://localhost/examples is an example of what you need to do for any webapp if you don't want to auto-deploy (One Host element, one Context). If you want to auto-deploy, then you need to look at $CATALINA_HOME/webapps/admin.xml and $CATALINA_HOME/webapps/manager.xml for examples on how to auto-deploy a Context. Respectively, those two files will make http://localhost/admin and http://localhost/manager work. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 2:53 PM To: 'Tomcat Users List' Subject: RE: Tomcat Apache directories, jsp/servlet path Well, first off, you don't have any ROOT Contexts in that server.xml you posted. If you want http://my.domain.com/my.jsp to work, you need: 1) a Host element for my.domain.com (just like the one in server.xml for localhost, but change the appBase) 2) a Context within that Host element that looks like this: Context path= docBase=ROOT debug=0/ 3) a folder in the Host's appBase directory called ROOT 4) a folder in the ROOT folder called WEB-INF 5) a file in ROOT/WEB-INF called web.xml 6) my.jsp goes in appBase/docBase, in this case appBase/ROOT/my.jsp If you don't want to do that, you can use the auto-deploy feature for Contexts, and put a file called
Re: Tomcat Apache directories, jsp/servlet path
That is what I have... I'm still getting the: Forbidden You don't have permission to access /admin/ on this server. The permissions should be good as everyone has access. Something is messed up somewhere I'll set it down and start again from the beginning with all of the notes that I have compiled... It's getting a little frustating... sometimes a fresh start is what is needed!? Thanks for your help John! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 3:46 PM Subject: RE: Tomcat Apache directories, jsp/servlet path OK. Does /some/dir/QV/webapps/admin exist? If not, that is why you are getting a 404. If you want /admin in QV/webapps/admin, then I believe the docBase in your Context should simply be admin, not ../QV/webapps/admin. Tomcat has CATALINA_HOME/webapps as an appBase by default. That's for localhost. If you are setting up some.server.com with an appBase of CATALINA_HOME/QV, then localhost:CATALINA_HOME/webapps = some.server.com:CATALINA_HOME/QV. Thus, you would ney, e - CATALINA_HOME/QV/admin.xml - CATALINA_HOME/QV/admin - contents of CATALINA_HOME/server/admin/ copied to CATALINA_HOME/QV/admin/ - Inside admin.xml, Context path would be admin. - URL would be some.server.com/admin I'm pretty sure that should work for you. If not, or if I'm wrong, someone will correct me. John -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:34 PM To: Tomcat Users List Subject: Re: Tomcat Apache directories, jsp/servlet path Yes, I believe I am confusing myself! (: I've looked at to manys docs and started circling myself... Anyhow, 1) I have the a Host element of mycompany.com 2) The appBase is QV 3) admin.xml is defined in QV/admin.xml 4) Here is the admin.xml Context path=/admin docBase=../QV/webapps/admin debug=0 privileged=true !-- Uncomment this Valve to limit access to the Admin app to localhost for obvious security reasons. Allow may be a comma-separated list of hosts (or even regular expressions). Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1/ -- Logger className=org.apache.catalina.logger.FileLogger prefix=QV_admin_log. suffix=.txt timestamp=true/ /Context Everything seems clear but I'm obviously doing something wrong! aaaghh... When I enter the url http://mycompany.com/examples I get Forbidden You don't have permission. When I enter the url http://mycompany.com/examples/jsp/index.html all is well. When I enter the url http://mycompany.com/admin I get a 404 Thanks John you've been extremely helpful! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 2:42 PM Subject: RE: Tomcat Apache directories, jsp/servlet path Well, just copying admin.xml isn't going to do much. I think things are getting a little confusing. If you need some.domain.com/admin, then: 1) you need a HOST element with a name parameter of some.domain.com 2) you need to set that HOST's appBase 3) you need to put admin.xml in that appBase 4) you need to edit appBase/admin.xml and verify that the path used in the Context element in appBase/admin.xml makes sense and is available /admin and /manager use auto-deploy. How about you describe your directory structure, what the appBase is for the host you are working with (localhost? something else?), post the XML file you are using for auto-deploy, and tell us what URL you want to work, and we can go from there. The Context in the default install of admin.xml has a path in itif that path doesn't make sense for some.server.com when you set that some.server.com as a new virtual host, you will get a 404 trying to reach some.domain.com/admin. John -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 3:31 PM To: Tomcat Users List Subject: Re: Tomcat Apache directories, jsp/servlet path If you want to auto-deploy, then you need to look at $CATALINA_HOME/webapps/admin.xml and $CATALINA_HOME/webapps/manager.xml for examples on how to auto-deploy a Context. Respectively, those two files will make http://localhost/admin and http://localhost/manager work. John Auto-deploy is the goal, I have copied the examples from localhost/admin to mycompany.com/admin appBase I used the examples above to try to get to http://mycompany.com/admin but I get a 404 error? http://mycompany.com/examples also doesn't work BUT http://mycompany.com/examples/jsp/index.html works fine
Tomcat Apache directories, jsp/servlet path
Can someone tell me (provide an example) of how to add directories for running jsp/servlets? I have multiple hosts and the examples work fine but I am missing something as for running jsp/servlets for those virtual hosts. www.mydomain1.com/examples/jsp/test.jsp and www.mydomain2.com/examples/jsp/test.jsp work fine but when I try www.mydomain1.com/test.jsp on the root directory I get nuttin? HTML, etc seem to work ok... Where should I define this path? Is there something that I need to modify in web.xml? Somebody please help before I lose my hair! (: Is there a URL with some documentation out there I am missing? Did I overlook it in tomcat-4.0-doc HOWTO?
Re: Tomcat Apache directories, jsp/servlet path
Lajos, I believe you are right on the servlet-mapping but I am uncertain what should be defined in web.xml. The same with server.xml. I am not finding the docs that I need. Thanks for the help! - Original Message - From: Lajos Moczar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:11 PM Subject: Re: Tomcat Apache directories, jsp/servlet path Chris - Can you provide the relevant snippets of server.xml and web.xml? Off the bat, I can't really suggest anything except to say that possibly you need other servlet-mapping tags defined in web.xml. Cheers, Lajos Chris Schild wrote: Can someone tell me (provide an example) of how to add directories for running jsp/servlets? I have multiple hosts and the examples work fine but I am missing something as for running jsp/servlets for those virtual hosts. www.mydomain1.com/examples/jsp/test.jsp and www.mydomain2.com/examples/jsp/test.jsp work fine but when I try www.mydomain1.com/test.jsp on the root directory I get nuttin? HTML, etc seem to work ok... Where should I define this path? Is there something that I need to modify in web.xml? Somebody please help before I lose my hair! (: Is there a URL with some documentation out there I am missing? Did I overlook it in tomcat-4.0-doc HOWTO? -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- !!! added listener for apache tomcat integration -- Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll / !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin
Re: Tomcat Apache directories, jsp/servlet path
John, Lajos, Just to make sure that I am understanding everything correctly (for auto-deploy): I need a Host element and Context defined in server.xml. Add context in myapps.xml to appBase defined in Host for virtual host. Add web.xml to WEB-INF of myapps.xml base folder (defined in myapps.xml). Is that correct? Nothing in conf? Do I need to add Context to the Host element if I want to auto-deploy?Or is that defined in .../mypath/myapps/WEB-INF/web.xml? If so, what scripting do I need to add to the web.xml file? Basically, i have tried both ways but tripped and fell. I will try again later tonight. Thanks again, - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:58 PM Subject: RE: Tomcat Apache directories, jsp/servlet path I might add that http://localhost/examples is an example of what you need to do for any webapp if you don't want to auto-deploy (One Host element, one Context). If you want to auto-deploy, then you need to look at $CATALINA_HOME/webapps/admin.xml and $CATALINA_HOME/webapps/manager.xml for examples on how to auto-deploy a Context. Respectively, those two files will make http://localhost/admin and http://localhost/manager work. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 2:53 PM To: 'Tomcat Users List' Subject: RE: Tomcat Apache directories, jsp/servlet path Well, first off, you don't have any ROOT Contexts in that server.xml you posted. If you want http://my.domain.com/my.jsp to work, you need: 1) a Host element for my.domain.com (just like the one in server.xml for localhost, but change the appBase) 2) a Context within that Host element that looks like this: Context path= docBase=ROOT debug=0/ 3) a folder in the Host's appBase directory called ROOT 4) a folder in the ROOT folder called WEB-INF 5) a file in ROOT/WEB-INF called web.xml 6) my.jsp goes in appBase/docBase, in this case appBase/ROOT/my.jsp If you don't want to do that, you can use the auto-deploy feature for Contexts, and put a file called myapp.xml in CATALINA_HOME/webapps (or rather, Host's appBase), the contents of which might be: Context path=/myApp docBase=some/path/to/myApp debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context John -Original Message- From: Chris Schild [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 2:39 PM To: Tomcat Users List Subject: Re: Tomcat Apache directories, jsp/servlet path Lajos, I believe you are right on the servlet-mapping but I am uncertain what should be defined in web.xml. The same with server.xml. I am not finding the docs that I need. Thanks for the help! - Original Message - From: Lajos Moczar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:11 PM Subject: Re: Tomcat Apache directories, jsp/servlet path Chris - Can you provide the relevant snippets of server.xml and web.xml? Off the bat, I can't really suggest anything except to say that possibly you need other servlet-mapping tags defined in web.xml. Cheers, Lajos Chris Schild wrote: Can someone tell me (provide an example) of how to add directories for running jsp/servlets? I have multiple hosts and the examples work fine but I am missing something as for running jsp/servlets for those virtual hosts. www.mydomain1.com/examples/jsp/test.jsp and www.mydomain2.com/examples/jsp/test.jsp work fine but when I try www.mydomain1.com/test.jsp on the root directory I get nuttin? HTML, etc seem to work ok... Where should I define this path? Is there something that I need to modify in web.xml? Somebody please help before I lose my hair! (: Is there a URL with some documentation out there I am missing? Did I overlook it in tomcat-4.0-doc HOWTO? -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED
Apache Tomcat Virtual Host
The version of Tomcat that I am is using is 4.1.18, The version of Apache is 2.0.43 The connector that I am using is mod_jk. The virtual host are defined in httpd server.xml. The JkMounts? That could be a problem... any advice there??? What about workers.properties? In the configuration documentation that I used, there wasn't a mentioning of JkMounts??? Also, mime type is an issue, how do I confirm that it is configured correctly in Apache? Wouldn't it be setup correctly out of the box? Thanks for the help! I am right on the edge of having everything work as I need it (for now)! - Original Message - From: adrian [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 20, 2003 4:01 AM Subject: Re: Apache Tomcat Virtual Host Chris Schild wrote: Hi all, I am a newbie to Tomcat. I'm having a problem with configuring the virtual host with Tomcat. The problem is that I cannot get the examples/jsp to work with the virtual host?!? A window pops up asking to open or save the source when I try to execute an example. I'm sure I need to be more specific, I'm not quite sure what to ask at this point. Do I not Þ~óJ the correct paths configured with Tomcat? http://localhost/examples/jsp/index.html is functioning correctly. I have gone thru the archives but nothing seems to be pointing me in the right direction. Any advice would be much appreciated! What connector are you using ? Where do you define the virtual host ? If you`re using mod_jk what are you JkMounts ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache Tomcat Virtual Host
The version of Tomcat that I am is using is 4.1.18, The version of Apache is 2.0.43 running on Windows 2000 The connector that I am using is mod_jk. The virtual host are defined in httpd server.xml. The JkMounts? That could be a problem... any advice there??? What about workers.properties? In the configuration documentation that I used, there wasn't a mentioning of JkMounts??? Also, mime type is an issue, how do I confirm that it is configured correctly in Apache? Wouldn't it be setup correctly out of the box? Thanks for the help! I am right on the edge of having everything work as I need it (for now)! - Original Message - From: adrian [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 20, 2003 4:01 AM Subject: Re: Apache Tomcat Virtual Host Chris Schild wrote: Hi all, I am a newbie to Tomcat. I'm having a problem with configuring the virtual host with Tomcat. The problem is that I cannot get the examples/jsp to work with the virtual host?!? A window pops up asking to open or save the source when I try to execute an example. I'm sure I need to be more specific, I'm not quite sure what to ask at this point. Do I not Þ~óJ the correct paths configured with Tomcat? http://localhost/examples/jsp/index.html is functioning correctly. I have gone thru the archives but nothing seems to be pointing me in the right direction. Any advice would be much appreciated! What connector are you using ? Where do you define the virtual host ? If you`re using mod_jk what are you JkMounts ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache Tomcat Virtual Host
Thanks guys! That was it. The mounts were not defined. John, I don't remember seeing JkMounts mentioned in your HOWTO for win2k. Everything else worked smoothly. Thanks for the advice!!! - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, January 20, 2003 1:57 PM Subject: RE: Apache Tomcat Virtual Host Right on. John -Original Message- From: Ed Robbins [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 2:52 PM To: Tomcat Users List Subject: Re: Apache Tomcat Virtual Host I'm running the same setup and in the httpd.conf file, I have the JkMounts in the following manner: JkMount /*.jsp ajp13 JkMount /robbinsapps/* ajp13 JkMount /RobbinsApps/* ajp13 JkMount /*.do ajp13 This will map anything ending in .jsp, anything ending in /robbinsapps/*, anything ending in /RobbinsApps/* and finally, anything ending in *.do. This is under the virtual host, so it applies to the virtual host. In the server.xml, I have a host entry that matches this virtual host and under the host entry contexts that match robbinsapps and RobbinsApps Ed On Mon, 2003-01-20 at 14:51, Chris Schild wrote: The version of Tomcat that I am is using is 4.1.18, The version of Apache is 2.0.43 running on Windows 2000 The connector that I am using is mod_jk. The virtual host are defined in httpd server.xml. The JkMounts? That could be a problem... any advice there??? What about workers.properties? In the configuration documentation that I used, there wasn't a mentioning of JkMounts??? Also, mime type is an issue, how do I confirm that it is configured correctly in Apache? Wouldn't it be setup correctly out of the box? Thanks for the help! I am right on the edge of having everything work as I need it (for now)! - Original Message - From: adrian [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 20, 2003 4:01 AM Subject: Re: Apache Tomcat Virtual Host Chris Schild wrote: Hi all, I am a newbie to Tomcat. I'm having a problem with configuring the virtual host with Tomcat. The problem is that I cannot get the examples/jsp to work with the virtual host?!? A window pops up asking to open or save the source when I try to execute an example. I'm sure I need to be more specific, I'm not quite sure what to ask at this point. Do I not Þ~óJ the correct paths configured with Tomcat? http://localhost/examples/jsp/index.html is functioning correctly. I have gone thru the archives but nothing seems to be pointing me in the right direction. Any advice would be much appreciated! What connector are you using ? Where do you define the virtual host ? If you`re using mod_jk what are you JkMounts ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache Tomcat Virtual Host
Hi all, I am a newbie to Tomcat. I'm having a problem with configuring the virtual host with Tomcat. The problem is that I cannot get the examples/jsp to work with the virtual host?!? A window pops up asking to open or save the source when I try to execute an example. I'm sure I need to be more specific, I'm not quite sure what to ask at this point. Do I not have the correct paths configured with Tomcat? http://localhost/examples/jsp/index.html is functioning correctly. I have gone thru the archives but nothing seems to be pointing me in the right direction. Any advice would be much appreciated!