Re: Multiple domains on single machine
Thanks all for the pointers. I solved the issue using the following way: TOMCAT_HOME\conf\apps-vhosts.xml: ?xml version=1.0 encoding=ISO-8859-1? Server Host name=admin Context path= docBase=E:/admin.support.cp.net/html debug=0/ /Host Host name=support Context path= docBase=E:/support1.cp.net debug=0/ /Host /Server And Added the following in the httpd.conf: NameVirtualHost 192.168.5.54:80 VirtualHost 192.168.5.54:80 DocumentRoot E:/admin.support.cp.net/html/ ServerName admin #ServerAlias shangai.shangai.persistent.co.in admin ServerAdmin [EMAIL PROTECTED] ErrorDocument 404 E:/admin.support.cp.net/notfound.html ErrorLog logs/admin.support.cp.net-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/admin.support.cp.net-access_log combined Alias /icons/ E:/admin.support.cp.net/icons/ ScriptAlias /cgi-bin/ E:/admin.support.cp.net/cgi-bin/ JkWorkersFile E:/jakarta-tomcat-3.3.2/conf/jk/workers.properties #JkLogFile D:/Program Files/Apache Group/Apache/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 Directory E:/admin.support.cp.net/html Options FollowSymLinks Includes DirectoryIndex index.html index.jsp AllowOverride AuthConfig /Directory AddType text/x-server-parsed-html .html /VirtualHost VirtualHost 192.168.5.54:80 DocumentRoot E:/support1.cp.net ServerName support #ServerAlias shangai.shangai.persistent.co.in support ServerAdmin [EMAIL PROTECTED] ErrorLog logs/support-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/support-access_log combined Alias /pdf/ E:/support1.cp.net/content/pdf/ Alias /images/ E:/support1.cp.net/images/ ScriptAlias /cgi-bin/ E:/support1.cp.net/cgi-bin/ ErrorDocument 404 E:/support1.cp.net/notfound.jsp # Allow Server Side includes (SSI) Directory E:/support1.cp.net Options FollowSymLinks Includes AllowOverride AuthConfig allow from all /Directory AddType text/x-server-parsed-html .html /VirtualHost #AddModule mod_jk.c JkWorkersFile E:/jakarta-tomcat-3.3.2/conf/jk/workers.properties #JkLogFile D:/Program Files/Apache Group/Apache/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 include E:/jakarta-tomcat-3.3.2/conf/auto/mod_jk.conf Thanks a lot again :-) Mayuresh. - Original Message - From: Swanthe Lindgren [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 5:26 PM Subject: SV: Multiple domains on single machine I am using one physical machine to host both apache and tomcat with multiple domain names mapped to the same IP. Here is an extract of my configuration for apache, jk2 and tomcat. The only thing I havent got working 100% is the auto-deployment, but as its not to big a bother to manage by hand, I can live with that for the moment. # Apache httpd.conf NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 ServerName domain1.my.network /VirtualHost VirtualHost 127.0.0.1 ServerName domain2.my.network /VirtualHost #Connection Apache-Tomcat with jk2 #workers2.properties [uri:domain1.my.network/*] group=ajp13:localhost:8009 [uri:domain1.my.network/*] group=ajp13:localhost:8009 #Tomcat server.xml Engine name=Apache defaultHost=local.gallriks.ucr.uu.se debug=0 Host name=domain1.my.network appBase=webapps/ Host name=domain2.my.network appBase=webapps/ /Engine #Context.xml for domain1 Context displayName=Domain1 docBase=domain1 path= reloadable=true #Context.xml for domain1 Context displayName=Domain2 docBase=domain2 path= reloadable=true Swanthe Lindgren System developer Uppsala Clinical Reasearch Center -Ursprungligt meddelande- Från: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] Skickat: den 9 december 2004 07:56 Till: Tomcat Users List Ämne: Re: Multiple domains on single machine My problem is that I have two domains mapped to the same IP ? Please could you help me in this. - Original Message - From: Mayuresh Kshirsagar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:25 AM Subject: Re: Multiple domains on single machine Hi, I have to use APACHE. I have seen one example given in the APACHE documentation: -- NameVirtualHost * VirtualHost * ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost * ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost -- So may
Multiple domains on single machine
Hi I have setup a test machine so that it should host two sites 1. http://admin 2. http://support But only one (http://admin) is accessible and the other one is not. Can you give any pointers. I set up virtual hosts as (httpd.conf): NameVirtualHost *:80 VirtualHost *:80ServerName adminServerAdmin [EMAIL PROTECTED]DocumentRoot E:/admin.support.cp.net/html/ErrorDocument 404 E:/admin.support.cp.net/notfound.htmlErrorLog logs/admin.support.cp.net-error_logLogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedLogFormat "%h %l %u %t \"%r\" %s %b" commonLogFormat "%{Referer}i - %U" refererLogFormat "%{User-agent}i" agentCustomLog logs/admin.support.cp.net-access_log combinedAlias /icons/ E:/admin.support.cp.net/icons/ScriptAlias /cgi-bin/ E:/admin.support.cp.net/cgi-bin/Directory "E:/admin.support.cp.net/html"Options FollowSymLinks IncludesDirectoryIndex index.html index.jspAllowOverride AuthConfig/DirectoryAddType text/x-server-parsed-html .html/VirtualHost VirtualHost *:80 DocumentRoot E:/support1.cp.net ServerName support ServerAdmin[EMAIL PROTECTED] ErrorLog logs/support-error_log LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %s %b" common LogFormat "%{Referer}i - %U" referer LogFormat "%{User-agent}i" agent CustomLog logs/support-access_log combined Alias /pdf/ E:/support1.cp.net/content/pdf/ Alias /images/ E:/support1.cp.net/images/ ScriptAlias /cgi-bin/ E:/support1.cp.net/cgi-bin/ ErrorDocument 404 E:/support1.cp.net/notfound.jsp # Allow Server Side includes (SSI) Directory "E:/support1.cp.net" Options FollowSymLinks Includes AllowOverride AuthConfig allow from all /Directory AddType text/x-server-parsed-html .html/VirtualHost Similarly I added following to server.xml: Host Name="support" Context path="" docBase="E:/support1.cp.net" debug="0" reloadable="true" / /Host Host Name="admin" Context path="" docBase="E:/admin.support.cp.net" debug="0" reloadable="true" / /Host I also added lines to the "hosts" file on that machine: IP-Address admin IP-Address support. Thanks Mayuresh. ?xml version=1.0 encoding=ISO-8859-1? !-- Copyright 1999-2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- Server !-- You can add a home attribute to represent the base for all relative paths. If none is set, the TOMCAT_HOME property will be used, and if not set . will be used. webapps/, work/ and log/ will be relative to this ( unless set explicitely to absolute paths ). -- ContextManager workDir=work !-- Global modules -- LoaderInterceptor11 useApplicationLoader=true / TrustedLoader / LogSetter name=tc_log timestamps=true verbosityLevel=INFORMATION / LogEvents enabled=false / !-- Backward compat: read the Context declarations from server.xml-- ContextXmlReader config=conf/server.xml / !-- Separated Context -- ContextXmlReader config=conf/apps.xml / AutoDeploy source=modules target=modules redeploy=true / AutoWebApp dir=modules host=DEFAULT trusted=true/ AutoDeploy source=webapps target=webapps / AutoWebApp dir=webapps host=DEFAULT / PolicyLoader securityManagerClass=java.lang.SecurityManager policyFile=conf/tomcat.policy / SimpleMapper1 / SessionExpirer checkInterval=60 / !-- For development you can use randomClass=java.util.Random -- SessionIdGenerator randomClass=java.security.SecureRandom randomFile=/dev/urandom / !-- == context processing modules == -- !-- This will be the default profile ( all except the global modules can be set per context ) -- LogSetter name=servlet_log timestamps=true verbosityLevel = INFORMATION path=logs/servlet-${MMdd}.log / LogSetter name=JASPER_LOG timestamps=true path=logs/jasper-${MMdd}.log verbosityLevel = INFORMATION / WebXmlReader validate=true / ErrorHandler showDebugInfo=true / WorkDirSetup cleanWorkDir=false / !-- Test -- Host Name=support Context path= docBase=E:/support1.cp.net debug=0 reloadable=true/ /Host
Re: Multiple domains on single machine
Any pointers on this one please...its urgent - Original Message - From: Mayuresh Kshirsagar To: [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:27 PM Subject: Multiple domains on single machine Hi I have setup a test machine so that it should host two sites 1. http://admin 2. http://support But only one (http://admin) is accessible and the other one is not. Can you give any pointers. I set up virtual hosts as (httpd.conf): NameVirtualHost *:80 VirtualHost *:80 ServerName admin ServerAdmin [EMAIL PROTECTED] DocumentRoot E:/admin.support.cp.net/html/ ErrorDocument 404 E:/admin.support.cp.net/notfound.html ErrorLog logs/admin.support.cp.net-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/admin.support.cp.net-access_log combined Alias /icons/ E:/admin.support.cp.net/icons/ ScriptAlias /cgi-bin/ E:/admin.support.cp.net/cgi-bin/ Directory E:/admin.support.cp.net/html Options FollowSymLinks Includes DirectoryIndex index.html index.jsp AllowOverride AuthConfig /Directory AddType text/x-server-parsed-html .html /VirtualHost VirtualHost *:80 DocumentRoot E:/support1.cp.net ServerName support ServerAdmin [EMAIL PROTECTED] ErrorLog logs/support-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/support-access_log combined Alias /pdf/ E:/support1.cp.net/content/pdf/ Alias /images/ E:/support1.cp.net/images/ ScriptAlias /cgi-bin/ E:/support1.cp.net/cgi-bin/ ErrorDocument 404 E:/support1.cp.net/notfound.jsp # Allow Server Side includes (SSI) Directory E:/support1.cp.net Options FollowSymLinks Includes AllowOverride AuthConfig allow from all /Directory AddType text/x-server-parsed-html .html /VirtualHost Similarly I added following to server.xml: Host Name=support Context path= docBase=E:/support1.cp.net debug=0 reloadable=true / /Host Host Name=admin Context path= docBase=E:/admin.support.cp.net debug=0 reloadable=true / /Host I also added lines to the hosts file on that machine: IP-Address admin IP-Address support. Thanks Mayuresh. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple domains on single machine
Hi, I have to use APACHE. I have seen one example given in the APACHE documentation: -- NameVirtualHost * VirtualHost * ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost * ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost -- So may be this isnt wrong. When I add an index.html, it is displayed by apache. But the JSP and servlet requests are not being passed to TOMCAT. In my tomcat server.xml I have added the lines: Host Name=support Context path= docBase=E:/support1.cp.net debug=0 reloadable=true / /Host Host Name=admin Context path= docBase=E:/admin.support.cp.net debug=0 reloadable=true / /Host The support one is being executed properly, but the admin one is not being recognised. any solutions ? Mayuresh. - Original Message - From: Benjamin Armintor [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: Mayuresh Kshirsagar [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 9:40 PM Subject: RE: Multiple domains on single machine You may not even need to use the Apache HTTPD web server, in which case you should just have Tomcat listen on port 80 itself, and refer to the documentation for Hosts on the Tomcat site. If you really need to use the Apache web server, you'd probably get better advice from the HTTPD list for your Apache configuration. So this is a bit off topic, but it's a problem that you have the one named VirtualHost (the default one, *:80), and two configurations for it. You need to have two named VirtualHosts (one for each of your virtual hosts, eh?). Read the Apache HTTPD documentation at http://httpd.apache.org/docs-project/. There's very good documentation on most of the directives. When you get that sorted, you'll need to bring Tomcat up behind Apache. This has been worked out far better in numerous how-tos and messages to this list than I could here. You'll find some helpful links at http://wiki.apache.org/jakarta-tomcat/UsefulLinks. Benjamin J. Armintor Operations Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 8:07 AM To: Tomcat Users List Subject: Re: Multiple domains on single machine Any pointers on this one please...its urgent - Original Message - From: Mayuresh Kshirsagar To: [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:27 PM Subject: Multiple domains on single machine Hi I have setup a test machine so that it should host two sites 1. http://admin 2. http://support But only one (http://admin) is accessible and the other one is not. Can you give any pointers. I set up virtual hosts as (httpd.conf): NameVirtualHost *:80 VirtualHost *:80 ServerName admin ServerAdmin [EMAIL PROTECTED] DocumentRoot E:/admin.support.cp.net/html/ ErrorDocument 404 E:/admin.support.cp.net/notfound.html ErrorLog logs/admin.support.cp.net-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/admin.support.cp.net-access_log combined Alias /icons/ E:/admin.support.cp.net/icons/ ScriptAlias /cgi-bin/ E:/admin.support.cp.net/cgi-bin/ Directory E:/admin.support.cp.net/html Options FollowSymLinks Includes DirectoryIndex index.html index.jsp AllowOverride AuthConfig /Directory AddType text/x-server-parsed-html .html /VirtualHost VirtualHost *:80 DocumentRoot E:/support1.cp.net ServerName support ServerAdmin [EMAIL PROTECTED] ErrorLog logs/support-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/support-access_log combined Alias /pdf/ E:/support1.cp.net/content/pdf/ Alias /images/ E:/support1.cp.net/images/ ScriptAlias /cgi-bin/ E:/support1.cp.net/cgi-bin/ ErrorDocument 404 E:/support1.cp.net/notfound.jsp # Allow Server Side includes (SSI) Directory E:/support1.cp.net Options FollowSymLinks Includes AllowOverride AuthConfig allow from all /Directory AddType text/x-server-parsed-html .html /VirtualHost Similarly I added following to server.xml: Host Name=support Context path= docBase=E:/support1.cp.net debug=0 reloadable=true / /Host Host Name=admin Context path= docBase=E:/admin.support.cp.net debug=0 reloadable=true / /Host I also added lines to the hosts file on that machine: IP-Address admin IP-Address support
Re: Multiple domains on single machine
My problem is that I have two domains mapped to the same IP ? Please could you help me in this. - Original Message - From: Mayuresh Kshirsagar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:25 AM Subject: Re: Multiple domains on single machine Hi, I have to use APACHE. I have seen one example given in the APACHE documentation: -- NameVirtualHost * VirtualHost * ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost * ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost -- So may be this isnt wrong. When I add an index.html, it is displayed by apache. But the JSP and servlet requests are not being passed to TOMCAT. In my tomcat server.xml I have added the lines: Host Name=support Context path= docBase=E:/support1.cp.net debug=0 reloadable=true / /Host Host Name=admin Context path= docBase=E:/admin.support.cp.net debug=0 reloadable=true / /Host The support one is being executed properly, but the admin one is not being recognised. any solutions ? Mayuresh. - Original Message - From: Benjamin Armintor [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: Mayuresh Kshirsagar [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 9:40 PM Subject: RE: Multiple domains on single machine You may not even need to use the Apache HTTPD web server, in which case you should just have Tomcat listen on port 80 itself, and refer to the documentation for Hosts on the Tomcat site. If you really need to use the Apache web server, you'd probably get better advice from the HTTPD list for your Apache configuration. So this is a bit off topic, but it's a problem that you have the one named VirtualHost (the default one, *:80), and two configurations for it. You need to have two named VirtualHosts (one for each of your virtual hosts, eh?). Read the Apache HTTPD documentation at http://httpd.apache.org/docs-project/. There's very good documentation on most of the directives. When you get that sorted, you'll need to bring Tomcat up behind Apache. This has been worked out far better in numerous how-tos and messages to this list than I could here. You'll find some helpful links at http://wiki.apache.org/jakarta-tomcat/UsefulLinks. Benjamin J. Armintor Operations Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 8:07 AM To: Tomcat Users List Subject: Re: Multiple domains on single machine Any pointers on this one please...its urgent - Original Message - From: Mayuresh Kshirsagar To: [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:27 PM Subject: Multiple domains on single machine Hi I have setup a test machine so that it should host two sites 1. http://admin 2. http://support But only one (http://admin) is accessible and the other one is not. Can you give any pointers. I set up virtual hosts as (httpd.conf): NameVirtualHost *:80 VirtualHost *:80 ServerName admin ServerAdmin [EMAIL PROTECTED] DocumentRoot E:/admin.support.cp.net/html/ ErrorDocument 404 E:/admin.support.cp.net/notfound.html ErrorLog logs/admin.support.cp.net-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/admin.support.cp.net-access_log combined Alias /icons/ E:/admin.support.cp.net/icons/ ScriptAlias /cgi-bin/ E:/admin.support.cp.net/cgi-bin/ Directory E:/admin.support.cp.net/html Options FollowSymLinks Includes DirectoryIndex index.html index.jsp AllowOverride AuthConfig /Directory AddType text/x-server-parsed-html .html /VirtualHost VirtualHost *:80 DocumentRoot E:/support1.cp.net ServerName support ServerAdmin [EMAIL PROTECTED] ErrorLog logs/support-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/support-access_log combined Alias /pdf/ E:/support1.cp.net/content/pdf/ Alias /images/ E:/support1.cp.net/images/ ScriptAlias /cgi-bin/ E:/support1.cp.net/cgi-bin/ ErrorDocument 404 E:/support1.cp.net/notfound.jsp # Allow Server Side includes (SSI) Directory E:/support1.cp.net Options FollowSymLinks Includes AllowOverride AuthConfig allow from all
JSP pages not refreshing
Hi Folks, I am on windows. have apache, tomcat and java. I have a test website up and running on my test machines. I have changed the contents on of the pages. they dont sem to be reflecting the changes. On Unix, we have a touch on these jsps, which solves the problem. How can we do it on windows, so that all the pages are refreshed and fresh pages are seen. Thanks in advance. Regards, Mayuresh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP pages not refreshing
One more solution I found was to delete the TOMCAT_HOME\works\* and restart tomcat and apache. any more solutions to this ? - Original Message - From: vishal nalwa [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:59 PM Subject: Re: JSP pages not refreshing Hi , Follow these points -Goto tomcat5.5/conf/ folder -open the web.xml -Find out the JSP servlet which will look like servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param load-on-startup3/load-on-startup /servlet now modify it to servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param init-param param-namereloading/param-name param-valuetrue/param-value /init-param load-on-startup3/load-on-startup /servlet It will surely solve your problem Regards, Vishal Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony - 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: JSP pages not refreshing
Hi Ben, No I have replicated a website onto my test machines. All the pages are JSPs and involve servlets. When I do a modification to them. They are not reflected readily. Any pointers? Thanks, Mayuresh. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 6:38 PM Subject: Re: JSP pages not refreshing I am on windows. have apache, tomcat and java. I have a test website up and running on my test machines. This is an app that you built? You didn't just modify the contents of the sample apps shipped with Tomcat did you? I have changed the contents on of the pages. they dont sem to be reflecting the changes. On Unix, we have a touch on these jsps, which solves the problem. How can we do it on windows, so that all the pages are refreshed and fresh pages are seen. You shouldn't need to do anything. Check the dates on the machines you are working with. If the new version of the file has an earlier date than the existing one, tomcat will not recompile the JSP. - 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]
Ajp12Interceptor: HANDLER THREAD PROBLEM
Hi All, I have set up a website on my test machines using Apache1.3 Tomcat3.3.2 and mod_jk. While connecting to http://localhost/ I get the following error shown for Tomcat. Also attaching the error.log of httpd.conf. 2004-12-02 14:11:51 - Ctx() : Class not found: TOMCAT/JSP/index.jsp 2004-12-02 14:11:51 - Ctx() : Status code:404 request:R( + /index.jsp + null) m sg:null 2004-12-02 14:11:53 - Ctx() : Status code:404 request:R( + /index.jsp + null) m sg:null 2004-12-02 14:17:48 - Ctx() : Status code:404 request:R( + /index.jsp + null) m sg:null 2004-12-02 14:26:24 - Ajp12Interceptor: HANDLER THREAD PROBLEM - java.io.IOExcep tion: Stream broken at org.apache.tomcat.modules.server.Ajp12.readNextRequest(Ajp12.java:277 ) at org.apache.tomcat.modules.server.AJP12Request.readNextRequest(Ajp12In terceptor.java:215) at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(A jp12Interceptor.java:178) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:644) at java.lang.Thread.run(Thread.java:534) error.log- [Thu Dec 02 14:17:36 2004] [warn] module mod_jk.c is already added, skipping program files/apache group/apache/htdocs/manual/urlmapping.html [Wed Dec 01 16:16:58 2004] [error] [client 127.0.0.1] File does not exist: d:/program files/apache group/apache/htdocs/manual/urlmapping.html [Wed Dec 01 16:17:34 2004] [error] [client 127.0.0.1] File does not exist: d:/program files/apache group/apache/htdocs/manual/urlmapping.html [Wed Dec 01 16:54:14 2004] [error] [client 127.0.0.1] File does not exist: d:/program files/apache group/apache/htdocs/manual/urlmapping.html Apache server shutdown initiated... Apache server shutdown initiated... [Wed Dec 01 19:13:38 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 19:13:38 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Wed Dec 01 19:14:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 19:14:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Wed Dec 01 19:15:24 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 19:15:24 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Wed Dec 01 21:52:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Wed Dec 01 21:52:25 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Thu Dec 02 12:08:50 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-on.gif [Thu Dec 02 12:08:50 2004] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/support.cp.net/images/myprofile-off.gif [Thu Dec 02 13:49:40 2004] [warn] module mod_jk.c is already added, skipping [Thu Dec 02 14:10:57 2004] [warn] module mod_jk.c is already added, skipping [Thu Dec 02 14:12:32 2004] [warn] module mod_jk.c is already added, skipping [Thu Dec 02 14:17:35 2004] [warn] module mod_jk.c is already added, skipping Could you please show me a way ? Thanks. Mayuresh.