VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2
All, I've been trying to get .jsp files to display with virtuals on Apache2+Tomcat4.1+Jdk1.4+Mod_JK2. However, I've not been very successful. All static content displays, but cannot get dynamic content to display. I have included my current Httpd.conf and Server.xml files. I'd appreciate any samples/docs you may know of, or suggestions of where I've gone wrong. I'm sure this is an easy problem, but I've not been able to find the solution, either by reviewing this mail list or elsewhere. Thanks in advance, TA Environment: Apache 2.0.40 Tomcat 4.1.10 Mod_JK2 Java 1.4.0_02 Win2000 Pro * HTTPD.CONF START * # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to C:/apache/Apache2 will be interpreted by the # server as C:/apache/Apache2/logs/foo.log. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., c:/apache instead of c:\apache). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot C:/apache/Apache2 # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # #ScoreBoardFile logs/apache_runtime_status # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile logs/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to Off to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule mpm_winnt.c ThreadsPerChild 250 MaxRequestsPerChild 0 /IfModule # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the VirtualHost # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 Listen 80 # # Dynamic
Re: this is a bug, right?
Not a bug. c:insert calls RequestDispacher.include, where section 8.3.1 of the (2.3) servlet spec requires that getPathInfo, getPathTranslated, getServletPath all reflect the values of the included servlet. As per the section above, you can obtain some of the original values via calling request.getAttribute with the values respectively: getPathInfo - javax.servlet.include.path_info getServletPath - javax.servlet.include.servlet_path getPathTranslated can be mapped to: application.getRealPath(request.getAttribute(javax.servlet.include.path_inf o)); Craig Longman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Reloading application with tomcat 4.x manager
Hi guys, When I'm using Tomcat Manager app to reload a webapp, I have a problem: I use a ContextListener to do some application initialization and to put in the ServletContext some objects. When using reload, for some reason the servletContext I receive from the destroy() event is different (?!?) from the ServletContext I received in the init() event- thus I can't clean the resources the app used. I never get these problems when I shutdown Tomcat- in which case I get the same ServletContext from the init() and destroy() events. Is that a bug in the Manager app? Note that I don't have any other webapp installed, just one (so there's no chance of confusing ServletContext of different webapps). Anyone has an idea? -Original Message- From: Siddharth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:30 AM To: Tomcat Users List Subject: Re: Caching / Cloning Neal, I have never worked with XSLT but I can show you the way where you can have an initial copy of ServletContext which you can use independently. Interface ServletContext has a mathod called getContext(java.lang.String uripath) returns ServletContext You can use this method by giving uripath of same application to get a copy of cache. I hope, This suggestion may help you. Siddharth - Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 9:52 AM Subject: Caching / Cloning Is there a way to make a copy of what's in my cache (getServletContext()) and make changes to that local copy, independent of whether the cached object implements Cloneable()? In order to speed up my XSLT I thought I would preload them (their Transformer objects) into app scope and simply retrieve it as needed for transforms. This works fine except I just remembered that I need to set attributes on these XsLT Transformer objects. Now, I am PRESUMING that this means that I would then be locking up the servlet context each time I set one of these parameters so then it seems I should clone() the object locally. That way I could set the params locally without affecting (or locking) the cached version). BUT Transfomer does not appear to implement the Cloneable() interface. Is there a way around this? Am I by any chance wrong about what's actually happening here? Can anyone make a suggestion? Here's what I'm doing basically: ServletContext application = getServletContext(); application.setAttribute(TEMPLATES_HASH,templates); (where templates is a Hashtable containing Transformer objects) Thanks. Neal -- 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]
Re: this is a bug, right?
On Wed, 2002-09-18 at 02:43, Bill Barker wrote: Not a bug. c:insert calls RequestDispacher.include, where section 8.3.1 of the (2.3) servlet spec requires that getPathInfo, getPathTranslated, getServletPath all reflect the values of the included servlet. yeah, although that part tripped me up at first, i have figured it out. however, if you look closely at what gets returned for a URI: getRequestURI(): HEAD TITLEre that isn't a valid URI no matter who the calling page is. i'm working on narrowing this down, it only seems to happen when i've used a tag that performed a pageContext.include() directly. if that is done, then the pageContext.include() produces bogus URIs, as well as any subsequent c:import tags. strangely enough, if the c:import is first, then both it and the custom tag i have work fine and the URIs look good in the included servlet. once i can narrow down a simple enough test case, i'll submit it as a bug. thanks though. -- CraigL-Thx(); Be Developer ID: 5852 signature.asc Description: This is a digitally signed message part
Re: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2
Have you tried using JKMount inside your virtual Directory statements in httpd.conf. You used to be able to do this with JK, did JK2 do away with this? I thought I saw somewhere in the src that all these pre existing Directory statements were preserved for JK2. Am I wrong? Maybe I was dreaming. There sure seems to be quite a few people that are having problems with this. Has anyone tried to use JKMount inside the virtual Directory? I don't run virtual or I'd try it myself. rls Terry Anderson [EMAIL PROTECTED] 09/17/2002 11:35 PM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2 All, I've been trying to get .jsp files to display with virtuals on Apache2+Tomcat4.1+Jdk1.4+Mod_JK2. However, I've not been very successful. All static content displays, but cannot get dynamic content to display. I have included my current Httpd.conf and Server.xml files. I'd appreciate any samples/docs you may know of, or suggestions of where I've gone wrong. I'm sure this is an easy problem, but I've not been able to find the solution, either by reviewing this mail list or elsewhere. Thanks in advance, TA Environment: Apache 2.0.40 Tomcat 4.1.10 Mod_JK2 Java 1.4.0_02 Win2000 Pro * HTTPD.CONF START * # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to C:/apache/Apache2 will be interpreted by the # server as C:/apache/Apache2/logs/foo.log. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., c:/apache instead of c:\apache). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot C:/apache/Apache2 # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # #ScoreBoardFile logs/apache_runtime_status # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile logs/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to Off to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for
nullpointerexception jdbcstore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On September 4th I reported bug 12286 with a fix included. Is somebody planning to commit this? What is the normal time before fixes get into the tree and is there something more I have to do to get this committed? Greetings, Ronald. - -- ~ Ronald Klop ~ Amsterdam, The Netherlands -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE9iDvAPgc4rWsY77MRArISAKCyQnZyRmoil/S3zAGR1INvXdwUqwCeKSph uJnpOsKzMvPwsH7mL4XZZi8= =+F8J -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2
Hmmm, I found this in the src; /** * Set a property associated with a URI, using native Location * directives. * * This is used if you want to use the native mapping and * integrate better into apache. * * Same behavior can be achieved by using uri.properties and/or JkSet. * * Example: * VirtualHost foo.com * Location /examples * JkUriSet worker ajp13 * /Location * /VirtualHost * * This is the best way to define a webapplication in apache. It is * scalable ( using apache native optimizations, you can have hundreds * of hosts and thousands of webapplications ), 'natural' to any * apache user. * * XXX This is a special configuration, for most users just use * the properties files. */ I believe this is still in effect. No one has said that doesn't work. Can somebody test this? In any case there is a PR filed now (12750). rls Terry Anderson [EMAIL PROTECTED] 09/17/2002 11:35 PM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2 All, I've been trying to get .jsp files to display with virtuals on Apache2+Tomcat4.1+Jdk1.4+Mod_JK2. However, I've not been very successful. All static content displays, but cannot get dynamic content to display. I have included my current Httpd.conf and Server.xml files. I'd appreciate any samples/docs you may know of, or suggestions of where I've gone wrong. I'm sure this is an easy problem, but I've not been able to find the solution, either by reviewing this mail list or elsewhere. Thanks in advance, TA Environment: Apache 2.0.40 Tomcat 4.1.10 Mod_JK2 Java 1.4.0_02 Win2000 Pro * HTTPD.CONF START * # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to C:/apache/Apache2 will be interpreted by the # server as C:/apache/Apache2/logs/foo.log. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., c:/apache instead of c:\apache). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot C:/apache/Apache2 # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # #ScoreBoardFile logs/apache_runtime_status # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile logs/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow
Re: Apache+Tomcat+JBoss Error (No Context configured)
Manoj, Whats in your application.xml file ? (it defines what the context is ...) When you deploy are there any error messages in the log file (JBoss one?) David Manoj Kithany wrote: Hi Mr. Phil, I am using Jboss+Tomcat Bundle. Thanks! Manoj G. Kithany From: Philippe de M. Sevestre [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Apache+Tomcat+JBoss Error (No Context configured) Date: Tue, 17 Sep 2002 14:22:09 -0300 Are you running the JBoss+Tomcat bundle or running them in two distinct VMs ? The drop-in deployment feature of wars in JBoss is only available when running the whole thing in a single VM. - Original Message - From: Manoj Kithany [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: segunda-feira, 16 de setembro de 2002 20:16 Subject: Apache+Tomcat+JBoss Error (No Context configured) Hi Experts, Greetings! Can you provide me with the Simple HellowWorld JSP/Servlet? I want to TEST is my servers are working fine. I am using Apache 1.3.26, Tomcat 4.0.4, JBoss 3.0.3 Also, can you list the Directory structure of placing Class files, JSP files, Servlet files, WAR/EAR/JAR files? In httpd.conf I have following for Apache to know about Tomcat: LoadModule jk_module libexec/mod_jk.so JkWorkersFile /usr/local/apache1326/conf/workers.properties JKMount /examples/servlet/* ajp13 JKMount /examples/*.jsp ajp13 JKMount /uno/* ajp13 In workers.properties I have following: workers.tomcat_home=/jboss/catalina workers.java_home=/usr/java130 ps=/ worker.list=ajp12, ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=168.179.100.241 worker.ajp13.type=ajp13 I have a simple JSP file uno.jsp as follows: %@ page import=java.text.*,java.util.*% Greetings from Manoj I created the WAR/EAR file (uno.ear; uno.war) and put those in /jboss/server/default/deploy directory. I then start my JBoss (Tomcat)first and then Apache and then point my URL to http://IPADDRESS:8080/uno/uno.jsp on which I get following Error: Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process this request Do I have to follow the same procedure for Servlets? Do you know what this Error is about and how to tackle that. THANKS! Manoj G. Kithany _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- 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: Apache2 and Tomcat4 on different boxes
Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But still, apache does not talk to tomcat. They work fine when they are on the same box, also, do I need to stutdown port 8080 on tomcat, because tomcat is accessible thru his port. Here are my latest config files.. workers.properties -- worker.ajp13.port=8009 worker.ajp13.host=neptune.broward.edu worker.ajp13.type=ajp13 -- httpd.conf - IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/apache/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel debug VirtualHost morpheus.broward.edu ServerName morpheus.broward.edu JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /FCCSC ajp13 JkMount /FCCSC/* ajp13 JkMount / ajp13 JkMount /* ajp13 /VirtualHost - server.xml(host param) - Host name=neptune.broward.edu debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append= true / - Thanks a lot -Raj [EMAIL PROTECTED] 09/13/02 03:18PM You have to have the hostnames the same, all the way through. Don't mix IP addresses and hostnames. Does worker.ajp13.host equal the Host element's name parameter in server.xml on the Tomcat box? Also, does this app work with Tomcat on the same box? John -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: Friday, September 13, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: Apache2 and Tomcat4 on different boxes Hi all, Here is my apache and tomcat
Re: nullpointerexception jdbcstore
Did you cross post this to the tomcat-dev list? Anyway the PR states it affects 4.1.10 but your statements in the explanation pertain only 4.0.4. Which way is it? It doesn't look like it's gotten much attention in any case. Perhaps you need to freshen it to bring it to the top again. rls Ronald Klop [EMAIL PROTECTED] 09/18/2002 01:39 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:nullpointerexception jdbcstore -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On September 4th I reported bug 12286 with a fix included. Is somebody planning to commit this? What is the normal time before fixes get into the tree and is there something more I have to do to get this committed? Greetings, Ronald. - -- ~ Ronald Klop ~ Amsterdam, The Netherlands -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE9iDvAPgc4rWsY77MRArISAKCyQnZyRmoil/S3zAGR1INvXdwUqwCeKSph uJnpOsKzMvPwsH7mL4XZZi8= =+F8J -END PGP SIGNATURE- -- 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: integrating apache-tomcat-jboss
Nanijon, Make sure that you have uncommented the ajp12 / ajp13 connector in your server.xml file. it's inside the catalina directory inside conf. This might help ! David Nani Jon wrote: Hi all: I have the latest jboss-3.0.0_tomcat-4.0.3 bundle installed on a windows 2000 box. Everything is working fine. Now I want to throw apache into the mix to serve static content. I am having a heck of time integrating these guys. The info I found was basically for the integration of the stand alone version of tomcat and apache. I have not been able to find much of anything on jboss-tomcat with apache. The steps for the stand alone tomcat and apache don't seem to be working for the bundled catalina version with jboss. If any one can help or point me to the proper instructions, I would appreciate it. Thanks, Nanijon - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: configuring virtual hosts
Maybe by using the alias tags? -Original Message- From: Raiju Mathew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:16 AM To: [EMAIL PROTECTED] Subject: configuring virtual hosts Hi all, i have a domain www.abc.com I want my web server to be Tomcat 4.0.3( I dont want tomcat to run as an add on to apache) How i will configure my server.xml to have the virtual host www.abc pointing toward a context path in my tomcat server. Any reply is highly appreciated. Is it possible to have multiple domains also in the same tomcat server. Raiju __ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- 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: configuring virtual hosts
Look at the examples in server.xml rls Aviv Eliezer [EMAIL PROTECTED] 09/18/2002 03:16 AM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: configuring virtual hosts Maybe by using the alias tags? -Original Message- From: Raiju Mathew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:16 AM To: [EMAIL PROTECTED] Subject: configuring virtual hosts Hi all, i have a domain www.abc.com I want my web server to be Tomcat 4.0.3( I dont want tomcat to run as an add on to apache) How i will configure my server.xml to have the virtual host www.abc pointing toward a context path in my tomcat server. Any reply is highly appreciated. Is it possible to have multiple domains also in the same tomcat server. Raiju __ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- 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]
RE: Tomcat 4.1.10 + mod_jk2 startup errorr
Looks like your jk2.properties file is munged somehow. Send it along with the workers2.properties file and I'll put another set of eyes on it. rls -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jk connector
Thanx for your work. You save my live and protected my job. Med -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mardi 17 septembre 2002 17:23 À : 'Tomcat Users List' Objet : RE: jk connector You have to build from source: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/src/ Or select from the binaries that I have collected from myself and others on the list: http://www.johnturner.com/howto John -Original Message- From: Thébault, Médérick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 11:16 AM To: Tomcat Users List Subject: jk connector This URL http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ release/v1 .2.0/ does not have any files? Do you know where I can find it? Thanx -- 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]
Reloading .jsp-Pages
Hey, I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always reload the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ModJk log has quite many errors
Hello there, Our mod_jk log file contains many error messages (see zipped attachement)? Typically the errors are: [Mon Sep 16 15:38:18 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:38:20 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:43:27 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (1013)]: Error reading reply and [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 1 [Mon Sep 16 15:44:22 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2. Does anybody any ideas or has experience with similar problems? kind regards, Ago Meister mod_jk.log.gz Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.10 + mod_jk2 startup errorr
One quick thing. Your log files do not expand the ${serverRoot} variable. Is this Environment variable set? If not then replace it with the full path in the indicated places. Maybe this will help a bit. Starting service Tomcat-Standalone Apache Tomcat/4.1.10 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [Tue Sep 17 13:41:21 2002] (error ) [jk_config_file.c (261)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties [Tue Sep 17 13:41:21 2002] ( info ) [jk_config.c (246)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers2.properties [Tue Sep 17 13:41:21 2002] (error ) [jk_logger_file.c (171)] Initializing log file stderr [Tue Sep 17 13:41:21 2002] (error ) [jk_shm.c (333)] shm.init(): No file [Tue Sep 17 13:41:21 2002] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties [INFO] ChannelUn - -JK: listening on unix socket: /usr/local/tomcat/work/jk2.socket [INFO] JkMain - -Jk running ID=0 time=1/190 config=/usr/local/tomcat/conf/jk2.properties [Tue Sep 17 13:41:21 2002] ( info ) [jk_jni_aprImpl.c (470)] jkInvoke() invoke 4456ab0c rls - Forwarded by Robert L Sowders/NMD/USGS/DOI on 09/18/2002 02:41 AM - Robert L Sowders 09/18/2002 02:34 AM To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1.10 + mod_jk2 startup errorr Looks like your jk2.properties file is munged somehow. Send it along with the workers2.properties file and I'll put another set of eyes on it. rls -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Reloading .jsp-Pages
Are you using widows? Dominik Jednoralski [EMAIL PROTECTED] 09/17/2002 02:43 AM Please respond to Tomcat Users List To: Tomcat User Help [EMAIL PROTECTED] cc: Subject:Reloading .jsp-Pages Hey, I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always reload the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
AW: Reloading .jsp-Pages
sorry: yes, i am. -Ursprungliche Nachricht- Von: Robert L Sowders [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 11:56 An: Tomcat Users List Betreff: Re: Reloading .jsp-Pages Are you using widows? Dominik Jednoralski [EMAIL PROTECTED] 09/17/2002 02:43 AM Please respond to Tomcat Users List To: Tomcat User Help [EMAIL PROTECTED] cc: Subject:Reloading .jsp-Pages Hey, I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always reload the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
Redirect not working
Hi all. My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0. If I deploy examples webapp and access it through Tomcat's standalone listener (port 8080) everything works ok. When I access it through Apache, it works well until I find some kind of redirection (ie /examples/ - /examples/index.html), then I get a page with the message: Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily but redirection is NOT followed by the browser (I've tried various versions of IE, Netscape, Mozilla...). If I try to connect using telnet, the response with port 8080 is: HTTP/1.1 302 Moved Temporarily while through Apache is: HTTP/1.1 Moved Temporarily Nevertheless, in access.log of Apache the status code for my request is correctly set to 302. Same behaviour if I do a sendRedirect from within a servlet or jsp, redirecting to another servlet (no static content at all). Can anybody help me? TIA, Carlo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Reloading .jsp-Pages
There's a bug in 4.1.10 when Tomcat is used like a service and installed in different drive from C:. Is your case? -Mensaje original- De: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Enviado el: martes, 17 de septiembre de 2002 11:58 Para: Tomcat User Help Asunto: AW: Reloading .jsp-Pages sorry: yes, i am. -Ursprungliche Nachricht- Von: Robert L Sowders [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 11:56 An: Tomcat Users List Betreff: Re: Reloading .jsp-Pages Are you using widows? Dominik Jednoralski [EMAIL PROTECTED] 09/17/2002 02:43 AM Please respond to Tomcat Users List To: Tomcat User Help [EMAIL PROTECTED] cc: Subject:Reloading .jsp-Pages Hey, I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always reload the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
AW: Reloading .jsp-Pages
i am using tomcat 4.0.1 on drive c: -Ursprungliche Nachricht- Von: Miguel Angel Mulero Martinez [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 12:13 An: Tomcat Users List Betreff: RE: Reloading .jsp-Pages There's a bug in 4.1.10 when Tomcat is used like a service and installed in different drive from C:. Is your case? -Mensaje original- De: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Enviado el: martes, 17 de septiembre de 2002 11:58 Para: Tomcat User Help Asunto: AW: Reloading .jsp-Pages sorry: yes, i am. -Ursprungliche Nachricht- Von: Robert L Sowders [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 11:56 An: Tomcat Users List Betreff: Re: Reloading .jsp-Pages Are you using widows? Dominik Jednoralski [EMAIL PROTECTED] 09/17/2002 02:43 AM Please respond to Tomcat Users List To: Tomcat User Help [EMAIL PROTECTED] cc: Subject:Reloading .jsp-Pages Hey, I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always reload the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
RE: Reloading .jsp-Pages
Sorry! I mistake the message. This answer isn't for this question. Sorry again. -Mensaje original- De: Miguel Angel Mulero Martinez [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 18 de septiembre de 2002 12:13 Para: Tomcat Users List Asunto: RE: Reloading .jsp-Pages There's a bug in 4.1.10 when Tomcat is used like a service and installed in different drive from C:. Is your case? -Mensaje original- De: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Enviado el: martes, 17 de septiembre de 2002 11:58 Para: Tomcat User Help Asunto: AW: Reloading .jsp-Pages sorry: yes, i am. -Ursprungliche Nachricht- Von: Robert L Sowders [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 11:56 An: Tomcat Users List Betreff: Re: Reloading .jsp-Pages Are you using widows? Dominik Jednoralski [EMAIL PROTECTED] 09/17/2002 02:43 AM Please respond to Tomcat Users List To: Tomcat User Help [EMAIL PROTECTED] cc: Subject:Reloading .jsp-Pages Hey, I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always reload the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
AW: Reloading .jsp-Pages
no problem. has anyone else an idea? -Ursprungliche Nachricht- Von: Miguel Angel Mulero Martinez [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 12:21 An: Tomcat Users List Betreff: RE: Reloading .jsp-Pages Sorry! I mistake the message. This answer isn't for this question. Sorry again. -Mensaje original- De: Miguel Angel Mulero Martinez [mailto:[EMAIL PROTECTED]] Enviado el: miercoles, 18 de septiembre de 2002 12:13 Para: Tomcat Users List Asunto: RE: Reloading .jsp-Pages There's a bug in 4.1.10 when Tomcat is used like a service and installed in different drive from C:. Is your case? -Mensaje original- De: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Enviado el: martes, 17 de septiembre de 2002 11:58 Para: Tomcat User Help Asunto: AW: Reloading .jsp-Pages sorry: yes, i am. -Ursprungliche Nachricht- Von: Robert L Sowders [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 11:56 An: Tomcat Users List Betreff: Re: Reloading .jsp-Pages Are you using widows? Dominik Jednoralski [EMAIL PROTECTED] 09/17/2002 02:43 AM Please respond to Tomcat Users List To: Tomcat User Help [EMAIL PROTECTED] cc: Subject:Reloading .jsp-Pages Hey, I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always reload the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: Using Alias within a host element
Hi all I have a host section in my server.xml as follows Host name=mywebsite.com debug=0 unpackWARs=true Aliaso2/Alias Tomcat does not like the part o2 as it return 400 Bad request when I use it in the browser. It resolves OK and all that. If I change my host file to otwo it works OK. Is this a bug or am I doing something wrong? Thanks Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: nullpointerexception jdbcstore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Robert L Sowders wrote: | Did you cross post this to the tomcat-dev list? Anyway the PR states it | affects 4.1.10 but your statements in the explanation pertain only 4.0.4. | | Which way is it? I first reported it for 4.0.4, but it wasn't fixed in 4.1.10, so I changed that. To make clear that the bug was still there. I didn't cross-post this to the -dev list. I don't know the policies about that in these mailinglists yet. If -dev is for developers only or for all talk about development. And I was thinking that most developers wil be subscribed to both lists anyway. | It doesn't look like it's gotten much attention in any case. | Perhaps you need to freshen it to bring it to the top again. That is what I'm trying to do with this mail, but I wil try to get some attention to it later today on the -dev list. I hope it wil be used. I have found more bugs which are easy to fix (NPE-stuff, etc.), but I don't want to spent time for fixing it if the fixes aren't used (or rejected with good reasons). Ronald Klop. | | Ronald Klop [EMAIL PROTECTED] | 09/18/2002 01:39 AM | Please respond to Tomcat Users List | | | To: [EMAIL PROTECTED] | cc: | Subject:nullpointerexception jdbcstore | | Hello, | | On September 4th I reported bug 12286 with a fix included. Is somebody | planning to commit this? What is the normal time before fixes get into | the tree and is there something more I have to do to get this committed? | | Greetings, | | Ronald. | | -- | ~ Ronald Klop | ~ Amsterdam, The Netherlands - -- 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] - -- ~ Ronald Klop ~ Amsterdam, The Netherlands -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE9iGkEPgc4rWsY77MRAqypAJwO9bbtE7YFv2LkoL9hLpgo0lMuTgCfaSSz lmiu+1uha8cKJIR3AZyY8XM= =ZzxS -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2
FYI...in the case of mod_jk/mod_jk2 questions, the workers.properties/workers2.properties file is probably more valuable than server.xml for debugging and help. John -Original Message- From: Terry Anderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 2:35 AM To: [EMAIL PROTECTED] Subject: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2 All, I've been trying to get .jsp files to display with virtuals on Apache2+Tomcat4.1+Jdk1.4+Mod_JK2. However, I've not been very successful. All static content displays, but cannot get dynamic content to display. I have included my current Httpd.conf and Server.xml files. I'd appreciate any samples/docs you may know of, or suggestions of where I've gone wrong. I'm sure this is an easy problem, but I've not been able to find the solution, either by reviewing this mail list or elsewhere. Thanks in advance, TA Environment: Apache 2.0.40 Tomcat 4.1.10 Mod_JK2 Java 1.4.0_02 Win2000 Pro * HTTPD.CONF START * # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to C:/apache/Apache2 will be interpreted by the # server as C:/apache/Apache2/logs/foo.log. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., c:/apache instead of c:\apache). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot C:/apache/Apache2 # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # #ScoreBoardFile logs/apache_runtime_status # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile logs/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to Off to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # WinNT MPM #
RE: jk connector
No problem, glad I could help. John -Original Message- From: Thébault, Médérick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 5:35 AM To: Tomcat Users List Subject: RE: jk connector Thanx for your work. You save my live and protected my job. Med -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : mardi 17 septembre 2002 17:23 À : 'Tomcat Users List' Objet : RE: jk connector You have to build from source: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4 .1.10/src/ Or select from the binaries that I have collected from myself and others on the list: http://www.johnturner.com/howto John -Original Message- From: Thébault, Médérick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 11:16 AM To: Tomcat Users List Subject: jk connector This URL http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ release/v1 .2.0/ does not have any files? Do you know where I can find it? Thanx -- 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]
RE: Mod_jk on Debian, i have find
If you have a binary for mod_jk on Debian, would you be willing to send it to me, so that I can put it on my site with the binaries for other versions? John -Original Message- From: Jean-Baptiste Onofré [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:46 AM To: [EMAIL PROTECTED] Subject: Mod_jk on Debian, i have find Hello all, for information i have a problem with mod_jk on Debian (systematic Internal Server Error). I have find the solution of the problem. The Ajp13 connector port is the 8009. But this port seems to be use by another process. So i have change this port to 9000 (in server.xml from Tomcat and in my workers.properties) and all be good. It's just information for people that have the same problem. Best regards -- Jean-Baptiste Onofré (Nanthrax) Membre fondateur de phpFR.org http://www.phpfr.org [EMAIL PROTECTED] Membre fondateur du LUG Béziers http://lug-beziers.org [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]
RE: configuring virtual hosts
RTFM Everywhere it says localhost in server.xml, change it to www.abc.com. You will also need to change the port from 8080 to 80. John -Original Message- From: Raiju Mathew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 1:16 AM To: [EMAIL PROTECTED] Subject: configuring virtual hosts Hi all, i have a domain www.abc.com I want my web server to be Tomcat 4.0.3( I dont want tomcat to run as an add on to apache) How i will configure my server.xml to have the virtual host www.abc pointing toward a context path in my tomcat server. Any reply is highly appreciated. Is it possible to have multiple domains also in the same tomcat server. Raiju __ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- 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]
Reloading .jsp-Pages
Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Reloading .jsp-Pages
Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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: jsp:include
Make the crossContext attribute true in server.xml. RS Georges Roux georges.roux@freTo: [EMAIL PROTECTED] e.frcc: Subject: jsp:include 09/17/02 05:31 PM Please respond to Tomcat Users List Hi evrerybody, How include file result who are not in the same context. I use cocoon who are not in the same context like jsp:include page:../cocoon/mount/menu/menu_english.html / and I want to include this precious result. is that possible? an idea? Please, thanks for advance. Georges -- Software is like sex it's better when it's free., Linus Torvalds - - o' \,=./ `o (o o) +=oo0==(_)==0oo===+ | .-. | | Georges Roux /v\ TUX | | URL : georgesroux.dyndns.org// \\POWERED | | email : [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]
RE: RE: Reloading .jsp-Pages
thats the point: it doesn't recompile even if the files where updated. isn't there a switch to force tomcat to always recompile all jsps? -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
RE: RE: Reloading .jsp-Pages
What you mean? If it doesn't recompile why we have the reloadable option? Anyway, why the need to touch if the file date/time has changed? Shutdown tomcat is just too much. Would be nice if we could send a command to a port to refresh its data. On Tue, 2002-09-17 at 09:47, Dominik Jednoralski wrote: thats the point: it doesn't recompile even if the files where updated. isn't there a switch to force tomcat to always recompile all jsps? -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: Reloading .jsp-Pages
If you've already touched the files and made sure that the date stamp is more recent than the most recent access to that jsp page it could be a browser cache or proxy problem. Have you got caching turned off in your browser? Hamish -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:47 PM To: Tomcat User Help Subject: RE: RE: Reloading .jsp-Pages thats the point: it doesn't recompile even if the files where updated. isn't there a switch to force tomcat to always recompile all jsps? -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
Re: Enquiry
Yes there is, First question is are you running this with Apache? If you are then you don t do anything with Tomcat, all the configuration is with Apache. If you running with just Tomcat I believe your configuration is down through the server.xml file. Hope this helps nin From: Lee Jesse [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Enquiry Date: Wed, 18 Sep 2002 11:44:42 +0800 Dear Sir or Madam, I have some problems changing the host name of the Tomcat. The initial host name for Tomcat is 'localhost', and I want to change to some other name. Can it be done? Thank you. Regards, Jesse Lee -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: Reloading .jsp-Pages
... and if you are only changing included files then touch the jsp doing the include -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 13:47 To: Tomcat User Help Subject: RE: RE: Reloading .jsp-Pages thats the point: it doesn't recompile even if the files where updated. isn't there a switch to force tomcat to always recompile all jsps? -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
http://www.domain.com/index.jsp VRS http://www.domain.com
I'm using tomcat 4.x. When i specify a welcome file, and hit the root of a webapp, i'm automatically redirected to the welcome file- ie, if I ask for http://www.domain.com I'm redirected (and what I'll see in the browser address bar) to http://www.domain.com/index.jsp. does anyone know how to make it so that tomcat will forward to the welcome-file, so in the browser address bar it'll show only http://www.domain.com/ ? Thanks so much! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache2 and Tomcat4 on different boxes
thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj,I hope something fell out of your workers file on it's way to me ...You define the workers.list as using ajp12 and ajp13But there is no definition for ajp12...Also the host IP you give from the list below is the apache box.Your httpd.conf file seems OK though.DavidRaj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But still, apache does not talk to tomcat. They work fine when they are on the same box, also, do I need to stutdown port 8080 on tomcat, because tomcat is accessible thru his port. Here are my latest config files.. workers.properties -- worker.ajp13.port=8009 worker.ajp13.host=neptune.broward.edu worker.ajp13.type=ajp13 -- httpd.conf - IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/modules/mod_jk.so /IfModule JkWorkersFile "/usr/local/apache/conf/workers.properties" JkLogFile "/usr/local/apache/logs/mod_jk.log" JkLogLevel debug VirtualHost morpheus.broward.edu ServerName morpheus.broward.edu JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /FCCSC ajp13 JkMount /FCCSC/* ajp13 JkMount / ajp13 JkMount /* ajp13 /VirtualHost - server.xml(host param) - Host name="neptune.broward.edu" debug="0" appBase="webapps" unpackWARs="true" Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append= "true" / - Thanks a lot -Raj [EMAIL PROTECTED] 09/13/02 03:18PM You have to have the hostnames the same, all the way through. Don't mix IP addresses and hostnames. Does worker.ajp13.host equal the Host element's name
Understanding Logfile Errors
Hello, I have been getting the following errors in the mod_jk.log file... Is there any documentation describing the errors in the tomcat log files? I imagine my set up needs work, but I don't know. Does anyone have any advice for what I need to change? [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (1009)]: Error reading reply [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Wed Sep 18 08:29:00 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111 [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (598)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (843)]: Error connecting to the Tomcat process. [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (1149)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 1 [Wed Sep 18 08:29:00 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111 [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (598)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (843)]: Error connecting to the Tomcat process. [Wed Sep 18 08:29:00 2002] [jk_ajp_common.c (1149)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Wed Sep 18 08:29:01 2002] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Sep 18 08:29:01 2002] [jk_ajp_common.c (1009)]: Error reading reply [Wed Sep 18 08:29:01 2002] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Wed Sep 18 08:29:15 2002] [jk_ajp_common.c (888)]: Error sending request body [Wed Sep 18 08:29:15 2002] [jk_ajp_common.c (1149)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 0 [Wed Sep 18 08:30:31 2002] [jk_ajp_common.c (888)]: Error sending request body [Wed Sep 18 08:30:31 2002] [jk_ajp_common.c (1149)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 0 [Wed Sep 18 08:30:56 2002] [jk_ajp_common.c (888)]: Error sending request body [Wed Sep 18 08:30:56 2002] [jk_ajp_common.c (1149)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 0 [Wed Sep 18 08:35:16 2002] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Sep 18 08:35:16 2002] [jk_ajp_common.c (1009)]: Error reading reply [Wed Sep 18 08:35:16 2002] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Wed Sep 18 08:35:38 2002] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Sep 18 08:35:38 2002] [jk_ajp_common.c (1009)]: Error reading reply [Wed Sep 18 08:35:38 2002] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Wed Sep 18 08:35:52 2002] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Sep 18 08:35:52 2002] [jk_ajp_common.c (1009)]: Error reading reply [Wed Sep 18 08:35:52 2002] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Wed Sep 18 08:36:01 2002] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Sep 18 08:36:01 2002] [jk_ajp_common.c (1009)]: Error reading reply [Wed Sep 18 08:36:01 2002] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Wed Sep 18 08:36:33 2002] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Sep 18 08:36:33 2002] [jk_ajp_common.c (1009)]: Error reading reply I use: Apache 1.3.20 Tomcat 4.0.4 Mod_jk connector Linux RedHat 7.2 Any Help is Greatly Appreciated. Thank You Shannon
RE: RE: Reloading .jsp-Pages
The problem arent the includes, its the jsp-page itself. its no browser-cache-problem (i've deleted the cache before reloading). the timestamp of the jsp-file is definitly younger than the version before. i deleted the file, restarted the server, got my 404, copied the file again, restarted the server. guess: still from server-cache... i guess the 'reloadable'-switch doesnt work for some reason... -Ursprüngliche Nachricht- Von: jon wingfield [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 15:21 An: Tomcat Users List Betreff: RE: RE: Reloading .jsp-Pages ... and if you are only changing included files then touch the jsp doing the include -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 13:47 To: Tomcat User Help Subject: RE: RE: Reloading .jsp-Pages thats the point: it doesn't recompile even if the files where updated. isn't there a switch to force tomcat to always recompile all jsps? -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
RE: Caching / Cloning
Neal, Have you thought about using SessionContext. I believe the session context is specific to the session of the servlet, so when the instance of the servlet is run, it will have it s own copy of its Transforms to work with. That way you don t have to worry about different servlet instances locking of data. OR Are is the Transforms hashtable shared by all servlet instances. If so e-mail with more information about what you are doing and I can give you some more information. Nin From: neal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Caching / Cloning Date: Tue, 17 Sep 2002 22:35:55 -0700 Siddarth, Thanks but I'm thinking of two possible issues: 1. using the ServletContext.getContext() - won't this still just return a pointer rather than cloning the cache? I looked at the API and didn't see anything that said it was copying the object and creating a local copy. 2. Returning and having to handle the entire contents of the servlet context could imply alot of overheard, I would thinkat least presuming your copying the context each time a page is called in ordert to obtain a local copy of something, in this case an XsLT Transformer object. Am I misunderstanding your suggestion, or how this would work? Thanks. Neal -Original Message- From: Siddharth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 10:30 PM To: Tomcat Users List Subject: Re: Caching / Cloning Neal, I have never worked with XSLT but I can show you the way where you can have an initial copy of ServletContext which you can use independently. Interface ServletContext has a mathod called getContext(java.lang.String uripath) returns ServletContext You can use this method by giving uripath of same application to get a copy of cache. I hope, This suggestion may help you. Siddharth - Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 9:52 AM Subject: Caching / Cloning Is there a way to make a copy of what's in my cache (getServletContext()) and make changes to that local copy, independent of whether the cached object implements Cloneable()? In order to speed up my XSLT I thought I would preload them (their Transformer objects) into app scope and simply retrieve it as needed for transforms. This works fine except I just remembered that I need to set attributes on these XsLT Transformer objects. Now, I am PRESUMING that this means that I would then be locking up the servlet context each time I set one of these parameters so then it seems I should clone() the object locally. That way I could set the params locally without affecting (or locking) the cached version). BUT Transfomer does not appear to implement the Cloneable() interface. Is there a way around this? Am I by any chance wrong about what's actually happening here? Can anyone make a suggestion? Here's what I'm doing basically: ServletContext application = getServletContext(); application.setAttribute(TEMPLATES_HASH,templates); (where templates is a Hashtable containing Transformer objects) Thanks. Neal -- 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] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2
Robert / John - Thanks so much for you late night assistance! I followed the example below, since JKMount didn't seem to work, and everything is up and running. I really appreciate your help! Thanks again, TA -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 3:57 AM To: Tomcat Users List Subject: Re: VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2 Hmmm, I found this in the src; /** * Set a property associated with a URI, using native Location * directives. * * This is used if you want to use the native mapping and * integrate better into apache. * * Same behavior can be achieved by using uri.properties and/or JkSet. * * Example: * VirtualHost foo.com * Location /examples * JkUriSet worker ajp13 * /Location * /VirtualHost * * This is the best way to define a webapplication in apache. It is * scalable ( using apache native optimizations, you can have hundreds * of hosts and thousands of webapplications ), 'natural' to any * apache user. * * XXX This is a special configuration, for most users just use * the properties files. */ I believe this is still in effect. No one has said that doesn't work. Can somebody test this? In any case there is a PR filed now (12750). rls Terry Anderson [EMAIL PROTECTED] 09/17/2002 11:35 PM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:VIRTUAL ON APACHE2+TOMCAT4.1+JDK1.4+MOD_JK2 All, I've been trying to get .jsp files to display with virtuals on Apache2+Tomcat4.1+Jdk1.4+Mod_JK2. However, I've not been very successful. All static content displays, but cannot get dynamic content to display. I have included my current Httpd.conf and Server.xml files. I'd appreciate any samples/docs you may know of, or suggestions of where I've gone wrong. I'm sure this is an easy problem, but I've not been able to find the solution, either by reviewing this mail list or elsewhere. Thanks in advance, TA Environment: Apache 2.0.40 Tomcat 4.1.10 Mod_JK2 Java 1.4.0_02 Win2000 Pro * HTTPD.CONF START * # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to C:/apache/Apache2 will be interpreted by the # server as C:/apache/Apache2/logs/foo.log. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., c:/apache instead of c:\apache). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot C:/apache/Apache2 # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two
RE: RE: Reloading .jsp-Pages
The reloadable switch is only for .class. The jsp allways must reload in change, but I don't know why fails in your case. -Mensaje original- De: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Enviado el: martes, 17 de septiembre de 2002 15:32 Para: Tomcat User Help Asunto: RE: RE: Reloading .jsp-Pages The problem arent the includes, its the jsp-page itself. its no browser-cache-problem (i've deleted the cache before reloading). the timestamp of the jsp-file is definitly younger than the version before. i deleted the file, restarted the server, got my 404, copied the file again, restarted the server. guess: still from server-cache... i guess the 'reloadable'-switch doesnt work for some reason... -Ursprüngliche Nachricht- Von: jon wingfield [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 15:21 An: Tomcat Users List Betreff: RE: RE: Reloading .jsp-Pages ... and if you are only changing included files then touch the jsp doing the include -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 13:47 To: Tomcat User Help Subject: RE: RE: Reloading .jsp-Pages thats the point: it doesn't recompile even if the files where updated. isn't there a switch to force tomcat to always recompile all jsps? -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Redirect not working
Are you sure that is a Redirect? Redirect requires /path - URL. Yours looks like an Alias. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Redirect not working Hi all. My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0. If I deploy examples webapp and access it through Tomcat's standalone listener (port 8080) everything works ok. When I access it through Apache, it works well until I find some kind of redirection (ie /examples/ - /examples/index.html), then I get a page with the message: Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily but redirection is NOT followed by the browser (I've tried various versions of IE, Netscape, Mozilla...). If I try to connect using telnet, the response with port 8080 is: HTTP/1.1 302 Moved Temporarily while through Apache is: HTTP/1.1 Moved Temporarily Nevertheless, in access.log of Apache the status code for my request is correctly set to 302. Same behaviour if I do a sendRedirect from within a servlet or jsp, redirecting to another servlet (no static content at all). Can anybody help me? TIA, Carlo -- 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]
A very strange behaviour
Hi I'm designing a new web application and I have stored my files in the D:\Tests\Web\HeaderTest directory and I have defined the following Context in the server.xml: Context path=/headertest docBase=D:\Tests\Web\HeaderTest debug=0 privileged=true / I suppose this tells the Tomcat that the root directory for my webapp is D:\Tests\Web\HeaderTest or http://localhost:8080/headertest. But if I define a link in a page in my webapp such as: a href=/home.jspLink /a it refers to a wrong document: http://localhost:8080/home.jsp which is unavailable. Does anybody know what's wrong with this? Also another problem is that when I include a file using the include action or even the include directive the links defined in the included document changes so they don't refer to their original destinations anymore. For example, I want a header.html to be included in all the pages throughout my web site but if I include the header.html in subdirectories of my web app, the links get broken. I have tried lots of guesses and I have read some parts of JSP 1.2 Spec that are about includes and ... but I have not found the answer. All helps are appreciated. Thanks in advance.
RE: Tomcat won't auto-start on RedHat 7.3
Kenny, Can you elaborate just a little more for me, a linux novice who wants to do the same thing? Regarding your script to start Tomcat at run level 5, can you tell me where you referenced this script in the startup sequence? That is, into which file did you place the invocation of the script. And since I want to set JAVA_HOME and CATALINA_HOME as well, would you mind posting your final startup script? Thanks, Michael Schulz -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:25 PM To: Tomcat Users List Subject: Re: Tomcat won't auto-start on RedHat 7.3 That did it. Thanks all, Kenny - Original Message - From: Ben Ricker [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 2:17 PM Subject: Re: Tomcat won't auto-start on RedHat 7.3 On Tue, 2002-09-17 at 14:06, Kenny G. Dubuisson, Jr. wrote: Very good question...I bet they aren't. Do you know where I would set those for boot (or should I just put them in the script I wrote)? Thanks, Kenny Put them in the script. Ben Ricker Wellinx.com - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 2:04 PM Subject: RE: Tomcat won't auto-start on RedHat 7.3 When run during boot, are JAVA_HOME and CATALINA_HOME set? John -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 3:01 PM To: Tomcat Users List Subject: Tomcat won't auto-start on RedHat 7.3 I have successfully installed Apache 2.0.40, Tomcat 4.0.4, and mod_jk and all works fine. The problem I have is that I wrote a simple startup script for Tomcat to be executed upon init level 5 entrance. If I run the script from a shell prompt, it works fine. If it runs when Linux is booting, though it says OK when starting, Tomcat doesn't actually get started. The script is: #!/bin/sh case $1 in start) echo -n Starting Tomcat: /usr/local/jakarta-tomcat-4.0.4/bin/startup.sh echo ;; stop) echo -n Stopping Tomcat: /usr/local/jakarta-tomcat-4.0.4/bin/shutdown.sh echo ;; restart) $0 stop $0 start ;; *) echo Usage: $0 {start|stop|restart} exit 1 esac exit 0 Any Ideas? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: A very strange behaviour
This is normal. The problem is the browser, that translates /home.jsp to server/home.jsp and makes this petition to tomcat. If you want change that, use relative paths. -Mensaje original- De: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 18 de septiembre de 2002 15:49 Para: [EMAIL PROTECTED] Asunto: A very strange behaviour Hi I'm designing a new web application and I have stored my files in the D:\Tests\Web\HeaderTest directory and I have defined the following Context in the server.xml: Context path=/headertest docBase=D:\Tests\Web\HeaderTest debug=0 privileged=true / I suppose this tells the Tomcat that the root directory for my webapp is D:\Tests\Web\HeaderTest or http://localhost:8080/headertest. But if I define a link in a page in my webapp such as: a href=/home.jspLink /a it refers to a wrong document: http://localhost:8080/home.jsp which is unavailable. Does anybody know what's wrong with this? Also another problem is that when I include a file using the include action or even the include directive the links defined in the included document changes so they don't refer to their original destinations anymore. For example, I want a header.html to be included in all the pages throughout my web site but if I include the header.html in subdirectories of my web app, the links get broken. I have tried lots of guesses and I have read some parts of JSP 1.2 Spec that are about includes and ... but I have not found the answer. All helps are appreciated. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But still, apache does not talk to tomcat. They work fine when they are on the same box, also, do I need to stutdown port 8080 on tomcat, because tomcat is accessible thru his port. Here are my latest config files.. workers.properties -- worker.ajp13.port=8009 worker.ajp13.host=neptune.broward.edu worker.ajp13.type=ajp13 -- httpd.conf - IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/apache/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel debug VirtualHost morpheus.broward.edu ServerName
Re: Reloading .jsp-Pages
reloadble=true attribute is used to auto-reload jsp pages when they have changed. But you have to remember a key point when you are including a jsp in another jsp page: If you use the %@ include % directive to include , remember that the include happens at compile time rather than request time. So if the included jsp has changed, but the including jsp hasn't, then your changes won't be visible. SO in this case4, it would be better to use the jsp:include /. Moral of story: reloadable attribute isn't a cure-all. You may need to use jsp:include / My 2 cents. RS Dominik Jednoralski To: Tomcat User Help tomcat@lime-desi [EMAIL PROTECTED] gn.de cc: Subject: Reloading .jsp-Pages 09/17/02 07:28 AM Please respond to Tomcat Users List Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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: Redirect not working
I'm quite sure: in one case I explicitly do a sendRedirect(newurl) from within a servlet. Furthermore, the response code is 302, which is a temporary redirection. Jonathan Soons [EMAIL PROTECTED] on 18/09/2002 15.45.03 Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Redirect not working Are you sure that is a Redirect? Redirect requires /path - URL. Yours looks like an Alias. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Redirect not working Hi all. My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0. If I deploy examples webapp and access it through Tomcat's standalone listener (port 8080) everything works ok. When I access it through Apache, it works well until I find some kind of redirection (ie /examples/ - /examples/index.html), then I get a page with the message: Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily but redirection is NOT followed by the browser (I've tried various versions of IE, Netscape, Mozilla...). If I try to connect using telnet, the response with port 8080 is: HTTP/1.1 302 Moved Temporarily while through Apache is: HTTP/1.1 Moved Temporarily Nevertheless, in access.log of Apache the status code for my request is correctly set to 302. Same behaviour if I do a sendRedirect from within a servlet or jsp, redirecting to another servlet (no static content at all). Can anybody help me? TIA, Carlo -- 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] Carlo Montanari Sysadm Unix office T-Systems Italia debis IT Services Italia S.p.A. Via degli Ontani, 25 36100 - Vicenza Phone: +39 0444 558355 Fax: +39 0444 558352 Mobile: +39 348 4530249 e-mail: [EMAIL PROTECTED] Internet: http://www.t-systems.it -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
XML Parser question
Hi all, I am trying to create a simple XML transformation. In my directory: tomcat/lib/container I have the crimson.jar and the xalan.jar I created a directory called: tomcat/webapps/cocoon/election where I have put my xml, xsl, and dtd files When I point my browser to: http://IPnamehere:8080/cocoon/election/ I see a directory list of the files but when I click on them I get a Cocoon Resource Not Found error. I noticed that when I start Tomcat my JIT compiler fails, but I am able to view the Cocoon welcome pages. An anyone direct me to a good tutorial on getting my xml page transformed using cocoon?? (I'm running: Apache 1.3.9, Java2, JSDK2.0, Tomcat 3.3.1, Cocoon 2.0.3, mod_jk - on UnixWare) Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Reloading .jsp-Pages
Another thing I forgot to mention: There may be issues with auto-reload with a particular release. I think you use Tomcat 4.0.2. Check the release notes for that version. Also for the latest version which I believe is Tomcat 4.1.10. RS RSEQUEIRA@TRANSEN TRIC.COM To: Tomcat Users List [EMAIL PROTECTED] 09/18/02 09:02 AMcc: Please respond toSubject: Re: Reloading .jsp-Pages Tomcat Users List reloadble=true attribute is used to auto-reload jsp pages when they have changed. But you have to remember a key point when you are including a jsp in another jsp page: If you use the %@ include % directive to include , remember that the include happens at compile time rather than request time. So if the included jsp has changed, but the including jsp hasn't, then your changes won't be visible. SO in this case4, it would be better to use the jsp:include /. Moral of story: reloadable attribute isn't a cure-all. You may need to use jsp:include / My 2 cents. RS Dominik Jednoralski To: Tomcat User Help tomcat@lime-desi [EMAIL PROTECTED] gn.de cc: Subject: Reloading .jsp-Pages 09/17/02 07:28 AM Please respond to Tomcat Users List Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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]
jsp:forward to a different context
Hi, Is there any way to forward to a different context(webapp) from within a JSP? I am running Tomcat 4.0.4 Regards, Wm. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: Reloading .jsp-Pages
fair enough. Used to see something similar on earlier versions of tomcat on windows (been on 4.0.4 on linux for a while). Reload of jsps worked for the most part but very occasionally we had to delete tomcat's work directory and restart for changes to be compiled :( If you can, upgrade to 4.0.4 (or 4.1.10 if you're braver than me). I know you said the issue wasn't related to client side caching but here goes anyway: There are a quite a few posts in the archives about trying to get around browser/proxy caching of pages. We have a filter which sets http headers for each jsp requested: snip if (response instanceof HttpServletResponse) { HttpServletResponse httpResponse = (HttpServletResponse)response; httpResponse.setHeader(Cache-Control,no-cache); httpResponse.setHeader(Pragma,no-cache); } /snip some people on the list have also used: httpResponse.setDateHeader(Expires,0); (although i'm not sure what the http spec says about 0 as a value, i'll look it up one day) Hope this helps, Jon -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 14:32 To: Tomcat User Help Subject: RE: RE: Reloading .jsp-Pages The problem arent the includes, its the jsp-page itself. its no browser-cache-problem (i've deleted the cache before reloading). the timestamp of the jsp-file is definitly younger than the version before. i deleted the file, restarted the server, got my 404, copied the file again, restarted the server. guess: still from server-cache... i guess the 'reloadable'-switch doesnt work for some reason... -Ursprüngliche Nachricht- Von: jon wingfield [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 15:21 An: Tomcat Users List Betreff: RE: RE: Reloading .jsp-Pages ... and if you are only changing included files then touch the jsp doing the include -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: 17 September 2002 13:47 To: Tomcat User Help Subject: RE: RE: Reloading .jsp-Pages thats the point: it doesn't recompile even if the files where updated. isn't there a switch to force tomcat to always recompile all jsps? -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:29 PM To: Tomcat User Help Subject: Reloading .jsp-Pages Hey, I'm using tomcat 4.0.1 / windows. I've a problem with reloading my jsp-pages. tomcat simply ignores the changes I've made to them. I added the following contexts in the server.xml-file: Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0 reloadable=true / and DefaultContext reloadable=true / Anyway, they're still in the servers cache and aren't reloaded after an update. Does anyone of you smart guys know how to tell tomcat to always recomlpile the jsp-files and -includes in the MyWebApp-Directory? Thank you... Dominik Jednoralski -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.10 + mod_jk2 startup errorr
Thanks Robert... I had the serverRoot variable set in jk2.properties. I put it into /etc/profile, and it expaned fine. Now, I just get the log file error: (error ) [jk_logger_file.c (171)] Initializing log file stderr I looked at the souce code, and it looks like unless you specify the logger element of [workerEnv] to something other than logger, you're going to get that listing. - Original Message - From: Robert L Sowders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 5:47 AM Subject: RE: Tomcat 4.1.10 + mod_jk2 startup errorr One quick thing. Your log files do not expand the ${serverRoot} variable. Is this Environment variable set? If not then replace it with the full path in the indicated places. Maybe this will help a bit. Starting service Tomcat-Standalone Apache Tomcat/4.1.10 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [Tue Sep 17 13:41:21 2002] (error ) [jk_config_file.c (261)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties [Tue Sep 17 13:41:21 2002] ( info ) [jk_config.c (246)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers2.properties [Tue Sep 17 13:41:21 2002] (error ) [jk_logger_file.c (171)] Initializing log file stderr [Tue Sep 17 13:41:21 2002] (error ) [jk_shm.c (333)] shm.init(): No file [Tue Sep 17 13:41:21 2002] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties [INFO] ChannelUn - -JK: listening on unix socket: /usr/local/tomcat/work/jk2.socket [INFO] JkMain - -Jk running ID=0 time=1/190 config=/usr/local/tomcat/conf/jk2.properties [Tue Sep 17 13:41:21 2002] ( info ) [jk_jni_aprImpl.c (470)] jkInvoke() invoke 4456ab0c rls - Forwarded by Robert L Sowders/NMD/USGS/DOI on 09/18/2002 02:41 AM - Robert L Sowders 09/18/2002 02:34 AM To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Tomcat 4.1.10 + mod_jk2 startup errorr Looks like your jk2.properties file is munged somehow. Send it along with the workers2.properties file and I'll put another set of eyes on it. rls -- 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: jsp:forward to a different context
Say you wish to forward from Context A to Context B. You need to do two things: 1) Turn the crossContext attribute to true in server.xml 2) In your code: % ServletContext ctxB = application.getContext(/B); RequestDispatcher rdB = ctxB.getRequestDispatcher (file_name_relative_to_context_B); rdB.forward(request, response); % RS William Wragg william@datapro.To: Tomcat Users List co.uk[EMAIL PROTECTED] cc: 09/18/02 09:14 AMSubject: jsp:forward to a different context Please respond to Tomcat Users List Hi, Is there any way to forward to a different context(webapp) from within a JSP? I am running Tomcat 4.0.4 Regards, Wm. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 -- 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]
What causes the following error?
Apache Tomcat/4.0.2 - HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. END OF ERROR MESSAGE I'm getting this error from my sites host. The Struts action class isn't being found obviously but I don't know why and the admin at the host in not responding to emails. Any ideas? This never happened during development.
RE: What causes the following error?
You must specify in the web.xml wich is the class of the servlet action. Have you do it? -Mensaje original- De: Bill Blackmon [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 18 de septiembre de 2002 16:25 Para: [EMAIL PROTECTED] Asunto: What causes the following error? Apache Tomcat/4.0.2 - HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. END OF ERROR MESSAGE I'm getting this error from my sites host. The Struts action class isn't being found obviously but I don't know why and the admin at the host in not responding to emails. Any ideas? This never happened during development. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What causes the following error?
yes, i've done that and the jar file is where it is supposed to be. i've checked all of the other settings as well. - Original Message - From: Miguel Angel Mulero Martinez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 10:35 AM Subject: RE: What causes the following error? You must specify in the web.xml wich is the class of the servlet action. Have you do it? -Mensaje original- De: Bill Blackmon [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 18 de septiembre de 2002 16:25 Para: [EMAIL PROTECTED] Asunto: What causes the following error? Apache Tomcat/4.0.2 - HTTP Status 503 - Servlet action is currently unavailable type Status report message Servlet action is currently unavailable description The requested service (Servlet action is currently unavailable) is not currently available. END OF ERROR MESSAGE I'm getting this error from my sites host. The Struts action class isn't being found obviously but I don't know why and the admin at the host in not responding to emails. Any ideas? This never happened during development. -- 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: Apache2 and Tomcat4 on different boxes
Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ?If it is the case, I think it's normal, because your Apache Virtual Host isjust defined for 10.103.2.30.And It seems to me strange, because you said that the @IP of the Apacheserver is 10.103.2.4 and you have a virtual host listenning on the10.103.2.30 @IP.I don't understand what you want really do.Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and alsothere was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking underhtdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj[EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxesHi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But still, apache does not talk to tomcat. They work fine when they are on the same box, also, do I need to stutdown port 8080 on tomcat, because tomcat is accessible thru his port. Here are my latest config files.. workers.properties -- worker.ajp13.port=8009 worker.ajp13.host=neptune.broward.edu worker.ajp13.type=ajp13 -- httpd.conf - IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/modules/mod_jk.so /IfModule JkWorkersFile
RE: Problem in tomcat installation in Solaris 8.0
Thanks Kent. I traced out to a file setclasspath.sh and added a line for JAVA_HOME over there. This solved the startup problem. Thanks again, Anup -Original Message- From: Kent Perrier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:14 PM To: Tomcat Users List Subject: Re: Problem in tomcat installation in Solaris 8.0 On Tue, Sep 17, 2002 at 02:06:18PM -0400, Anup Ray wrote: Hi, I am a newbie in Tomcat. I downloaded tomcat binary version, unzipped it and trying to start it but getting the following error. Could anybody help me out. Thanks---Anup Ray [EMAIL PROTECTED] _ # ./startup.sh The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program Well, it appears that either startup.sh or catalina.sh thinks that JAVA_HOME is not pointing to the correct place. Put an echo $JAVA_HOME in either (or both) startup.sh or catalina.sh to see what they are seeing as your JAVA_HOME Kent -- 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: Apache2 and Tomcat4 on different boxes
You have specify that in your httpd.conf: JkWorkersFile /opt/tomcat4/conf/jk/workers.properties JkLogFile /opt/tomcat4/logs/mod_jk.log you have another tomcat installed on your apache server? -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But
RE: Problem in tomcat installation in Solaris 8.0
That's not the best solution. Kent's suggestion was to put an echo in there to see what the script thought JAVA_HOME was, not to hardcode it. The recommended location for environment variables is in your login environment, either system-wide or in your individual login environment. In other words, JAVA_HOME and CATALINA_HOME should be set for you (and the user Tomcat runs as) whether the Tomcat startup script is run or not. Otherwise, you will have to hardcode JAVA_HOME into every script in every Java-related software package you use, as any of them that expect to know where the JDK is will be looking for that variable. John -Original Message- From: Anup Ray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 10:48 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Problem in tomcat installation in Solaris 8.0 Thanks Kent. I traced out to a file setclasspath.sh and added a line for JAVA_HOME over there. This solved the startup problem. Thanks again, Anup -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem invoking CGIs that are EXE files
I have Tomcat 4.0.3 installed on a Solaris 8 box, and have been trying to set up the CGI functionality. I have a 3rd party web application that has binary executables, all of which are named filename.exe. Don't get me started on why a unix binary would have an .exe file extension... The problem is that Tomcat is always returning the binary to the browser, instead of executing it. Simply changing the extension of the binary to .sh (renaming the binary) will cause Tomcat to actually execute it. However, I would like to not have to modify this 3rd party app, since much of their HTML references these cgi's... I cannot see a difference in my configuration that would cause Tomcat to work correctly with .sh files, and not .exe files. My cgi servlet mapping should be causing the execution of all files that match the /cgi-bin/* pattern. Are there just some file extensions that Tomcat will not try to execute? I looked at the source code, and couldn't find any reference to .exe files that would exclude them from execution... Thanks for any help or insight into this matter! Jason Young Inet Technologies, Inc. 1500 N Greenville Ave Richardson, TX 75081 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Job Openings
Hi, My company is looking for experienced Java professionals with 3-4 years of experience. Experience in core, serverside Java, JSP, XML and XSL is a must. If you are interested, please send your resume to [EMAIL PROTECTED] Thanks Manoj. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:03 AM To: Tomcat Users List Subject: RE: Redirect not working I'm quite sure: in one case I explicitly do a sendRedirect(newurl) from within a servlet. Furthermore, the response code is 302, which is a temporary redirection. Jonathan Soons [EMAIL PROTECTED] on 18/09/2002 15.45.03 Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Redirect not working Are you sure that is a Redirect? Redirect requires /path - URL. Yours looks like an Alias. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Redirect not working Hi all. My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0. If I deploy examples webapp and access it through Tomcat's standalone listener (port 8080) everything works ok. When I access it through Apache, it works well until I find some kind of redirection (ie /examples/ - /examples/index.html), then I get a page with the message: Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily but redirection is NOT followed by the browser (I've tried various versions of IE, Netscape, Mozilla...). If I try to connect using telnet, the response with port 8080 is: HTTP/1.1 302 Moved Temporarily while through Apache is: HTTP/1.1 Moved Temporarily Nevertheless, in access.log of Apache the status code for my request is correctly set to 302. Same behaviour if I do a sendRedirect from within a servlet or jsp, redirecting to another servlet (no static content at all). Can anybody help me? TIA, Carlo -- 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] Carlo Montanari Sysadm Unix office T-Systems Italia debis IT Services Italia S.p.A. Via degli Ontani, 25 36100 - Vicenza Phone: +39 0444 558355 Fax: +39 0444 558352 Mobile: +39 348 4530249 e-mail: [EMAIL PROTECTED] Internet: http://www.t-systems.it -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem invoking CGIs that are EXE files
.exe may not be explicitly excluded as an extension, but are other file extensions explicitly included? Like .sh, .pl, .cgi? John -Original Message- From: Jason Young [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:00 AM To: [EMAIL PROTECTED] Subject: Problem invoking CGIs that are EXE files ...snip... Are there just some file extensions that Tomcat will not try to execute? I looked at the source code, and couldn't find any reference to .exe files that would exclude them from execution... Thanks for any help or insight into this matter! Jason Young Inet Technologies, Inc. 1500 N Greenville Ave Richardson, TX 75081 -- 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: Job Openings
Do you REALLY have jobs or are you just collecting resumes? - Original Message - From: Pooleery, Manoj [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 10:21 AM Subject: Job Openings Hi, My company is looking for experienced Java professionals with 3-4 years of experience. Experience in core, serverside Java, JSP, XML and XSL is a must. If you are interested, please send your resume to [EMAIL PROTECTED] Thanks Manoj. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:03 AM To: Tomcat Users List Subject: RE: Redirect not working I'm quite sure: in one case I explicitly do a sendRedirect(newurl) from within a servlet. Furthermore, the response code is 302, which is a temporary redirection. Jonathan Soons [EMAIL PROTECTED] on 18/09/2002 15.45.03 Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Redirect not working Are you sure that is a Redirect? Redirect requires /path - URL. Yours looks like an Alias. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Redirect not working Hi all. My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0. If I deploy examples webapp and access it through Tomcat's standalone listener (port 8080) everything works ok. When I access it through Apache, it works well until I find some kind of redirection (ie /examples/ - /examples/index.html), then I get a page with the message: Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily but redirection is NOT followed by the browser (I've tried various versions of IE, Netscape, Mozilla...). If I try to connect using telnet, the response with port 8080 is: HTTP/1.1 302 Moved Temporarily while through Apache is: HTTP/1.1 Moved Temporarily Nevertheless, in access.log of Apache the status code for my request is correctly set to 302. Same behaviour if I do a sendRedirect from within a servlet or jsp, redirecting to another servlet (no static content at all). Can anybody help me? TIA, Carlo -- 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] Carlo Montanari Sysadm Unix office T-Systems Italia debis IT Services Italia S.p.A. Via degli Ontani, 25 36100 - Vicenza Phone: +39 0444 558355 Fax: +39 0444 558352 Mobile: +39 348 4530249 e-mail: [EMAIL PROTECTED] Internet: http://www.t-systems.it -- 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: [OT] Job Openings
I'm really not sure what your post has to do with Tomcat. Perhaps you should post to a jobs list? -shawn Shawn Wilson [[EMAIL PROTECTED]] Software Developer, ATMReports.com PH: 877-327-0873, FAX: 406-294-5806 -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 8:21 AM To: 'Tomcat Users List' Subject: Job Openings Hi, My company is looking for experienced Java professionals with 3-4 years of experience. Experience in core, serverside Java, JSP, XML and XSL is a must. If you are interested, please send your resume to [EMAIL PROTECTED] Thanks Manoj. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:03 AM To: Tomcat Users List Subject: RE: Redirect not working I'm quite sure: in one case I explicitly do a sendRedirect(newurl) from within a servlet. Furthermore, the response code is 302, which is a temporary redirection. Jonathan Soons [EMAIL PROTECTED] on 18/09/2002 15.45.03 Please respond to Tomcat Users List [EMAIL PROTECTED] To:Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Redirect not working Are you sure that is a Redirect? Redirect requires /path - URL. Yours looks like an Alias. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Redirect not working Hi all. My configuration is: Apache 2.0.35 and Tomcat 4.0.3 (or 4.0.4, same behaviour), with mod_webapp and warp connector. Solaris 8, jdk 1.4.0. If I deploy examples webapp and access it through Tomcat's standalone listener (port 8080) everything works ok. When I access it through Apache, it works well until I find some kind of redirection (ie /examples/ - /examples/index.html), then I get a page with the message: Apache Tomcat/4.0.3 -HTTP Status 302 - Moved Temporarily but redirection is NOT followed by the browser (I've tried various versions of IE, Netscape, Mozilla...). If I try to connect using telnet, the response with port 8080 is: HTTP/1.1 302 Moved Temporarily while through Apache is: HTTP/1.1 Moved Temporarily Nevertheless, in access.log of Apache the status code for my request is correctly set to 302. Same behaviour if I do a sendRedirect from within a servlet or jsp, redirecting to another servlet (no static content at all). Can anybody help me? TIA, Carlo -- 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] Carlo Montanari Sysadm Unix office T-Systems Italia debis IT Services Italia S.p.A. Via degli Ontani, 25 36100 - Vicenza Phone: +39 0444 558355 Fax: +39 0444 558352 Mobile: +39 348 4530249 e-mail: [EMAIL PROTECTED] Internet: http://www.t-systems.it -- 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]
[TC4.0.4] MAPPING configuration error for request URI message in logs, but request processed okay
Hello, I've seen the following message appear in my logs (Tomcat's main servlet log): StandardHost[localhost]: MAPPING configuration error for request URI I'm testing stuff on localhost (I'm the only user, and I'm trying one message at a time), and this error is reported, yet nothing seems to be going wrong. Am I missing something that I should be correcting? Thanks - Chris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jsp:forward to a different context
Thanks that did the trick. At 15:25 18/09/2002, you wrote: Say you wish to forward from Context A to Context B. You need to do two things: 1) Turn the crossContext attribute to true in server.xml 2) In your code: % ServletContext ctxB = application.getContext(/B); RequestDispatcher rdB = ctxB.getRequestDispatcher (file_name_relative_to_context_B); rdB.forward(request, response); % RS William Wragg william@datapro.To: Tomcat Users List co.uk [EMAIL PROTECTED] cc: 09/18/02 09:14 AMSubject: jsp:forward to a different context Please respond to Tomcat Users List Hi, Is there any way to forward to a different context(webapp) from within a JSP? I am running Tomcat 4.0.4 Regards, Wm. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 -- 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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
yes, you are right, I have installed and tested apache/tomcat on each box individually. When they both work, then just changed my apache-side workers.properties to point at the right host(tomcat box IP). Tomcat is not running on apache box now, I have stopped it. Raj [EMAIL PROTECTED] 09/18/02 11:00AM You have specify that in your httpd.conf: JkWorkersFile /opt/tomcat4/conf/jk/workers.properties JkLogFile /opt/tomcat4/logs/mod_jk.log you have another tomcat installed on your apache server? -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj
Re: Problem invoking CGIs that are EXE files
It doesn't appear that any file extensions are checked by the CGI servlet, and I cannot find any code that explicitly 'allows' or 'denies' certain file extensions. As far as I can tell, the request for /cgi-bin/whatever.exe is not being handled by the CGIServlet at all. When CGIServlet is invoked, it tries to find the cgi file, and prints logs so you can tell this is happening. A request for an .exe file does not cause this log to get printed. So this tells me that the request is never getting sent to the CGIServlet, even though it matches the /cgi-bin/* pattern, which the CGIServlet is supposed to handle. --jason Turner, John wrote: .exe may not be explicitly excluded as an extension, but are other file extensions explicitly included? Like .sh, .pl, .cgi? John -Original Message- From: Jason Young [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:00 AM To: [EMAIL PROTECTED] Subject: Problem invoking CGIs that are EXE files ...snip... Are there just some file extensions that Tomcat will not try to execute? I looked at the source code, and couldn't find any reference to .exe files that would exclude them from execution... Thanks for any help or insight into this matter! Jason Young Inet Technologies, Inc. 1500 N Greenville Ave Richardson, TX 75081 -- 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]
RE: Apache2 and Tomcat4 on different boxes
When you test, you enter this URL? http://10.103.2.4/examples -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But still, apache does not talk to tomcat. They work fine when they are on the same box, also, do I need to stutdown port
missing tomcat-apache.conf mod_jk.conf-auto
Hi All. I am new to this forum and I would like to get Apache collaborating with Tomcat . My Problems (so far) (1) Doco's suggested that whenever I do startup.sh, Tomcat will generate 2 files for me : tomcat-apache.conf and mod_jk.conf-auto. No, it didn't ! How do I get Tomcat to generate them ??? (2) I downloaded the bin mod_jk-01.so which I renamed to /usr/lib/mod_jk.so, where RH7.1 keeps all its Apache .so files : is mod_jk-01.so the correct version for my environment (see below) and is Apache /usr/lib the correct directory ??? (3) I did not compile Apache from scratch, the default RH7.1 installation works well sofar. However it seems to lack utilities e.g. $APACHE_HOME/bin/apachectl configtest. Do I have to download and compile Apache over th default RH7.1/Apache1.3 ??? Environment : = RedHat7.1 kernel 2.4.2 (installed out of the box); Apache 1.3.19; Tomcat 4.0.4 listening on port 80 Apache and Tomcat live on seperate boxes. What's been done sofar == Successfully compiled and invoked packaged servlets in container using internal browsers and http://box-name/name-in-server.xml/name-in-web.xml or http://localhost/name/name but need to get Apache talking to Tomcat. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
yes, I have tried both( name and Ip) http://10.103.2.4/examples and http://morpheus.broward.edu/exampels , for both of them I am getting http 400 - Bad Request(it's not 404) Raj [EMAIL PROTECTED] 09/18/02 11:41AM When you test, you enter this URL? http://10.103.2.4/examples -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi,
RE: missing tomcat-apache.conf mod_jk.conf-auto
comments inline -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 9:40 PM To: [EMAIL PROTECTED] Subject: missing tomcat-apache.conf mod_jk.conf-auto Hi All. I am new to this forum and I would like to get Apache collaborating with Tomcat . My Problems (so far) (1) Doco's suggested that whenever I do startup.sh, Tomcat will generate 2 files for me : tomcat-apache.conf and mod_jk.conf-auto. No, it didn't ! How do I get Tomcat to generate them ??? You must insert Listener elements into Tomcat's server.xml file. Autogeneration does not happen by default. See the Tomcat documentation for how to do this, or step 3 of my Redhat HOWTO at http://www.johnturner.com/howto/apache1-tomcat404-howto.html (2) I downloaded the bin mod_jk-01.so which I renamed to /usr/lib/mod_jk.so, where RH7.1 keeps all its Apache .so files : is mod_jk-01.so the correct version for my environment (see below) and is Apache /usr/lib the correct directory ??? Apache 1.3.x uses the APACHE_HOME/libexec directory for DSO modules. There's no way to know if you have the correct version unless you tell us where you got it. (3) I did not compile Apache from scratch, the default RH7.1 installation works well sofar. However it seems to lack utilities e.g. $APACHE_HOME/bin/apachectl configtest. Do I have to download and compile Apache over th default RH7.1/Apache1.3 ??? You should most definitely upgrade your Apache. 1.3.19 is very old, relatively speaking, and there have been a number of security fixes since then. The current Apache 1 version is 1.3.26. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
Ho, yes 400 error. And what does your mod_jk.log say? -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 17:44 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes yes, I have tried both( name and Ip) http://10.103.2.4/examples and http://morpheus.broward.edu/exampels , for both of them I am getting http 400 - Bad Request(it's not 404) Raj [EMAIL PROTECTED] 09/18/02 11:41AM When you test, you enter this URL? http://10.103.2.4/examples -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha
SOLVED: [TC4.0.4] MAPPING configuration error for request URI message in logs, but request processed okay
I had defined three servlets in web.xml I called one, it worked, yet I saw the error message being logged (read my original message, below). It appeared due to a one-letter spelling mistake in another servlet definition. My mistake, but the error message wasn't too clear. - Chris - Original Message - From: Chris Brown [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 5:16 PM Subject: [TC4.0.4] MAPPING configuration error for request URI message in logs, but request processed okay Hello, I've seen the following message appear in my logs (Tomcat's main servlet log): StandardHost[localhost]: MAPPING configuration error for request URI I'm testing stuff on localhost (I'm the only user, and I'm trying one message at a time), and this error is reported, yet nothing seems to be going wrong. Am I missing something that I should be correcting? Thanks - Chris -- 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]
Problems in deploying my WAR in tomcat 4.1.10
I am getting the following error when I deploy my WAR file in tomcat 4.1.10. type Status report message /pir3Servlet/logging description The requested resource (/pir3Servlet/logging) is not available. I setup the servlet name/url pattern correctly in my web.xml file and seup the correct context in my server.xml file. Could someone please tell me how to fix this? thanks a lot. My web.xml file: web-app listener listener-classContextListener/listener-class /listener servlet servlet-nameMainServletName/servlet-name servlet-classMainServlet /servlet-class /servlet servlet servlet-nameLoggingServletName/servlet-name servlet-classLoggingServlet /servlet-class /servlet servlet-mapping servlet-nameMainServletName/servlet-name url-pattern /main /url-pattern /servlet-mapping servlet-mapping servlet-nameLoggingServletName/servlet-name url-pattern /logging /url-pattern /servlet-mapping /web-app And I add this to my server.xml Context path=/pir3Servlet docBase=C:\eclipseworkspace\workspace\pir3Servlet workDir=C:\eclipseworkspace\workspace\pir3Servlet\work\org\apache\jsp Loader className=org.apache.catalina.loader.DevLoader reloadable=true debug=0//Context __ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: missing tomcat-apache.conf mod_jk.conf-auto
Apache 1.3.x uses the APACHE_HOME/libexec directory for DSO modules. There's no way to know if you have the correct version unless you tell us where you got it. Hi John, I got mod_jk-01.so from here : http://jakarta.apache.or/builds/jakarta-tomcat-4.0/archives/v4.0.3/bin/linux/i386/mod_jk-01.so Also : there is no equivalent to APACHE_HOME/libexec on the standard out-of-the-box installation for RH7.1 - I guess I have to bite the bullet and install a new Apache ??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: missing tomcat-apache.conf mod_jk.conf-auto
Not really...Apache doesn't care where the modules are, as long as it can find them. The convention is to put them in apache/libexec for Apache 1 and apache/modules for Apache 2. That mod_jk.so file should be OK. I would still upgrade your Apache, though. .19 is pretty old. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 10:03 PM To: Tomcat Users List Subject: Re: missing tomcat-apache.conf mod_jk.conf-auto Apache 1.3.x uses the APACHE_HOME/libexec directory for DSO modules. There's no way to know if you have the correct version unless you tell us where you got it. Hi John, I got mod_jk-01.so from here : http://jakarta.apache.or/builds/jakarta-tomcat-4.0/archives/v4 .0.3/bin/linux/i386/mod_jk-01.so Also : there is no equivalent to APACHE_HOME/libexec on the standard out-of-the-box installation for RH7.1 - I guess I have to bite the bullet and install a new Apache ??? -- 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: missing tomcat-apache.conf mod_jk.conf-auto
Hi again. Forgot to add : I have j2sdk1.4.0-01 installed as well. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ISAPI Redirector SSL Question
Can anyone offer some advice I am using - successfully - ISAPI redirector to serve JSP/servlet resources through IIS I would like some contexts to _require_ SSL (https) to be used, and leave others free to use http. I can see how to require _all_ contexts to use SSL by setting 'require secure channel' for the jakarta virtual directory under IIS. (And it works!) But is there anyway I can achieve the same thing at a _context_ level using workers.properties or uriworkermap.properties or the like? Or will I have to test isSecure() at every page in the context that I want the constraint applied to? An idea I had was to have more than one 'jakarta' virtual directory, one requiring SSL, the other not, but then I'm guessing the ISAPI filter uses the same Registry entry, so I couldn't specify a different extension_uri to get to it ?? Is this the right thinking?? Is there a way round this? Any other general advice - except don't use IIS (I have no choice for this project!) - would be welcome. Christopher -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_asis for Tomcat?
Hello, I want to send files from Tomcat the same way mod_asis allows in Apache. The file I want to send would contain the headers at the top, an empty line, then the contents. Is there a way to do this? Thanks, Curt _ Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com _ Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by Everyone.net http://www.everyone.net/?btn=tag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.11
Does anyone know how/where I can find the latest source for Tomcat 4.1.11? Thanks in advance. , Josh. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.11
On Wed, 18 Sep 2002, Fenlason, Josh wrote: Date: Wed, 18 Sep 2002 12:31:43 -0400 From: Fenlason, Josh [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat 4.1.11 Does anyone know how/where I can find the latest source for Tomcat 4.1.11? Thanks in advance. , Josh. It hasn't been tagged yet. Just use the latest and greatest code from the relevant Tomcat CVS repositories to get a preview of what will be included. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Un-tarring jakarta-tomcat-4.0.4.tar.gz
Hi, I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache 1.3.26. I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz which I am trying to un-tar on the Solaris machine but I keep getting a checksum error each time I try. And though a lot of folders are created, most of them are emtpy without the files in them. I am running the following commands : $gunzip jakarta-tomcat-4.0.4.tar.gz $tar -xvf jakarta-tomcat-4.0.4.tar However, if I unzip on a Win 2K machine, I am able to get a complete expanded directory. Also the size of the downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667 bytes) - or 4,134 KB. Has anyone faced a similar problem or can someone please point out what I may be doing wrong. Thanks, Amit -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Question
I can't seem to connect apache to tomcat inspite of the include file in the httpd.conf file. I can get http://xxx.xxx.com:8080/nn/prm or something come up just fine but I cannot seem to get http://xxx.xxx.com to come up. I have configured Document Root in the httpd.conf file to point to .../nn/prm Please help. Thanks Jai Durgam -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Forward vrs redirect to a welcome-file
Hi! when i specify a welcome file, and hit the root of a webapp, i'm automatically redirected to the welcome file- ie, i see in the browser address bar http://www.domain.com/index.jsp; does anyone know how to make it so that tomcat will forward to the welcome-file, so in the browser address bar it'll show http://www.domain.com/; ?? the last thing I want to do is to override the default servlet. please help! thanks so much! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I get a HttpServlet not found error wth 4.1.10 under Win2000
This is probably some stupid config thing, but I installed 4.1.10 (I've got 4.0.4 running fine on various machines) and when I try to run the servlet examples I get a: root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet exception error. I've got TOMCAT_HOME and CATALINA_HOME both set to my base directory (c:\tomcat41) my jdk is 1.4 I tried adding jsdk.jar into the classpath, but that causes other errors on startup before I can even access the examples. What stupid thing am I doing wrong??? KAC Kenny A. Chaffin KAC Website Design - http://www.kacweb.com Custom/Contract Programming, Graphics, Design Poetry Page: http://www.kacweb.com/poems/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DBCP on Tomcat 4.1: DBCP borrowObject failed: null
I am trying to get DBCP working in my app on Tomcat 4.1.10. I have had success with Tyrex 0.9.7 on TC 4.0.4, but no luck with DBCP. I am able to establish a connection and it works for a few roundtrips to the database, and then I get DBCP borrowObject failed: null. I tried adding removeAbandoned as a parameter, and setting it to true, but I get the same error. Any ideas? My server.xml relevant information is below. Thanks, Matt ResourceParams name=jdbc/onpoint parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/onpoint?autoReconnect=true/value /parameter !-- Recover abandoned connections -- !--parameter nameremoveAbandoned/name valuetrue/value /parameter-- /ResourceParams -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Un-tarring jakarta-tomcat-4.0.4.tar.gz
Hi, I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache 1.3.26. I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz which I am trying to un-tar on the Solaris machine but I keep getting a checksum error each time I try. And though a lot of folders are created, most of them are emtpy without the files in them. I am running the following commands : $gunzip jakarta-tomcat-4.0.4.tar.gz $tar -xvf jakarta-tomcat-4.0.4.tar However, if I unzip on a Win 2K machine, I am able to get a complete expanded directory. Also the size of the downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667 bytes) - or 4,134 KB. Has anyone faced a similar problem or can someone please point out what I may be doing wrong. Please reply to [EMAIL PROTECTED] since I am not a member of this mailing list. Thanks, Amit -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ClassNotFoundException JMX related?
I'm trying to create an MBean from within a Servlet with Tomcat 4.1.10 and I keep getting a ClassNotFoundException. The class in question is in the classpath and it's visible from the Servlet trying make the createMBean call. I've tried putting the the jar which has the MBean .class file in these places: a.. webapps/webapp_name/web-inf/lib b.. shared/lib c.. common/lib None of them worked. Creating this same MBean worked fine in Tomcat 4.0.x when I included the jmxri.jar in the webapp classpath. Does anyone know how to modify the classpath used by the JMX component of Tomcat 4.1.x? Here's the log entry showing the exception: 2002-09-17 17:33:23 agent: AgentServlet init()2002-09-17 17:33:24 agent: initalizing local server instance: mx4j.server.MBeanServerImpl@1a611722002-09-17 17:33:24 agent: OBJECT NAME: Adaptor:name=html,port=80832002-09-17 17:33:24 agent: OBJECT NAME: MBeanInfo:name=SimpleStandard2002-09-17 17:33:24 agent: MBean class: class org.jfa.example.SimpleStandard2002-09-17 17:33:24 agent: !!! Could not create the HTML adaptor !!!2002-09-17 17:33:24 javax.management.ReflectionException: nested exception is java.lang.ClassNotFoundException: org.jfa.example.SimpleStandardjava.lang.ClassNotFoundException: org.jfa.example.SimpleStandard at mx4j.server.DefaultClassLoaderRepository.loadClassWithout(DefaultClassLoaderRepository.java:43) at mx4j.server.DefaultClassLoaderRepository.loadClass(DefaultClassLoaderRepository.java:26) at mx4j.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:464) at mx4j.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:456) at org.jfa.example.AgentServlet.doInit(Unknown Source) at org.jfa.example.AgentServlet.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3342) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2191) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
RE: Question
You'll need to provide a lot more information than that, and get a lot more specific, before anyone can help you. Platform, versions, what you've done so far, what you've changed, etc. John -Original Message- From: Jai Durgam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 6:30 PM To: [EMAIL PROTECTED] Subject: Question I can't seem to connect apache to tomcat inspite of the include file in the httpd.conf file. I can get http://xxx.xxx.com:8080/nn/prm or something come up just fine but I cannot seem to get http://xxx.xxx.com to come up. I have configured Document Root in the httpd.conf file to point to .../nn/prm Please help. Thanks Jai Durgam -- 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: Un-tarring jakarta-tomcat-4.0.4.tar.gz
You are using Sun Solaris tar and not GNU tar. Download GNU tar from http://www.sunfreeware.com and make sure it is first in your PATH, ahead of the Solaris tar. John -Original Message- From: amit_mahajan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: Un-tarring jakarta-tomcat-4.0.4.tar.gz Importance: High Hi, I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache 1.3.26. I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz which I am trying to un-tar on the Solaris machine but I keep getting a checksum error each time I try. And though a lot of folders are created, most of them are emtpy without the files in them. I am running the following commands : $gunzip jakarta-tomcat-4.0.4.tar.gz $tar -xvf jakarta-tomcat-4.0.4.tar However, if I unzip on a Win 2K machine, I am able to get a complete expanded directory. Also the size of the downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667 bytes) - or 4,134 KB. Has anyone faced a similar problem or can someone please point out what I may be doing wrong. Thanks, Amit -- 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: Un-tarring jakarta-tomcat-4.0.4.tar.gz
Use GNU tar. Craig On Tue, 17 Sep 2002, amit_mahajan wrote: Date: Tue, 17 Sep 2002 19:12:31 +0530 From: amit_mahajan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Un-tarring jakarta-tomcat-4.0.4.tar.gz Hi, I need to install Tomcat 4.0.4 on a Sun Solaris 8 machine which has Apache 1.3.26. I have downloaded from the Tomcat site the file jakarta-tomcat-4.0.4.tar.gz which I am trying to un-tar on the Solaris machine but I keep getting a checksum error each time I try. And though a lot of folders are created, most of them are emtpy without the files in them. I am running the following commands : $gunzip jakarta-tomcat-4.0.4.tar.gz $tar -xvf jakarta-tomcat-4.0.4.tar However, if I unzip on a Win 2K machine, I am able to get a complete expanded directory. Also the size of the downloaded jakarta-tomcat-4.0.4.tar.gz file I have is 4.04 MB (4,241,667 bytes) - or 4,134 KB. Has anyone faced a similar problem or can someone please point out what I may be doing wrong. Thanks, Amit -- 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]
Connecting IPlanet and Tomcat
I've tried connecting IPlanet to Tomcat and I cannot find a binary copy of the redirector for Solaris 8. I do not have a compiler on the Sun box. Does anyone have any ideas where I might find this file? Thanks, Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]