Re: Tomcat in Win2k with IIS
To answer you question about if there is a difference between the JRE and the J2SDK, the answer is a definite yes. The difference is that the JRE does not come with the Java byte-code compiler and you need that in order to run Tomcat. Also, if you are not sure how to set environment variables in NT I would suggest getting a book on how to run NT. Aaron [EMAIL PROTECTED] 06/05/01 04:03PM I am currently trying to install Tomcat 3.2.2 on a windows 2000 box with IIS. I am really confused. Can Tomcat be run standalone as its own web server? Or does it have to have a webserver installed (like IIS). I tried to follow the tomcat_ug.htm file for installation. I went through the How do I Install the Binary Version of Tomcat and when I got down to set environment variable JAVA_HOME. I started to loose it. I don't have JDK installed but I do have JRE1.3 installed (Is there a difference?) And what is the Java interpreter, and where do I find that? So then I moved on. I saw that I could use scrips to setup Tomcat. I tried Tomcat env and I guess it didn't work. Next I tried the Tomcat IIS How To. I followed the Installation. I downloaded the DLL and put it in \bin\win32\i386 I went through and did minor changes to workers.properties. Then I went through the painful task of adding the key and strings into the registry. It is a new web server so I made the root directory the dir with the DLL file. (Does it have to be a virtual dir?) I then added the filter and restarted IIS. There is still a Red arrow next to the filter. That is when I put everything down. (BIG HEADACH) Thank you for your time! Matthew Winer
RE: IIS and Tomcat
Thank you very much for that information. This is just what I needed to know to fix one of the last problems I was having. I have Tomcat installed on a development box that has several Web servers running on it, one on port 8080 of the default IP. The Tomcat server would crash every time I tried to start it when this server was running, by commenting out those lines from the server.xml file, the two now live in harmony. Aaron [EMAIL PROTECTED] 06/06/01 01:27AM Hi, If you want to stop tomcat acting as a standalone web server just delete these lines in server.xml: !-- Normal HTTP -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8080/ /Connector This works for 3.2.1 and 3.2.2 . Don't know about other versions though. hope this helps, Kenneth Westelinck From: Chris Faulkner [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: IIS and Tomcat Date: Tue, 5 Jun 2001 07:13:03 +0100 Hi Thanks, this pretty much confirms what I thought. The crucial question, though, is whether I can have Tomcat functioning in harness with IIS to serve my servlets but not have it operation as a web server. When its running in support of IIS, I also have the Tomcat web server running on port 8080. Maybe I've overdone my install ! The other bit I'm stuck on is how to install a jar and access the classes in it. Thanks very much Chris -Original Message- From: Todd Sussman [mailto:[EMAIL PROTECTED]] Sent: 06 June 2001 07:36 To: [EMAIL PROTECTED] Subject: RE: IIS and Tomcat The messages show you are running IIS as the webserver and it is redirecting the servlets to tomcat. When you shutdown tomcat, IIS can no longer redirect the servlets to tomcat and therefor you get an error. I have never set Tomcat as a stand alone server, but it can be done. Todd -Original Message- From: Chris Faulkner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 12:50 AM To: [EMAIL PROTECTED] Subject: IIS and Tomcat Hi I am just trying to get my servlets tested on IIS (windows 2000) and Tomcat. I have done all the set-up steps, the isapi_redirect stuff seems to be functioning. I have IIS on W2K with Tomcat 3.2.2 and JDK 1.3.0_02. IIS is on the usual port 80. If I start up tomcat run, tomcat starts and initialises everything (IIS is also running at this time) http://localhost:8080/examples/servlet/SnoopServlet I can see that its coming from Tomcat. If I hit http://localhost/examples/servlet/SnoopServlet This also works and it tells me that the port is 80 and the server is Tomcat. However, I know that the port 80 is being served by IIS and I can see the request in the IIS logs, being redirected to /jakarta/isapi_redirect.dll. Why is it telling me that the web server is Tomcat ? So it all looks good, except that if I do a tomcat stop, then the servlet requests to IIS start to fail. Is this expected ? If so, can I run tomcat without opening up that 8080 port ? Maybe I'm a bit confused but I'd like to have tomcat managing my servlets without essentially having a second web server running. Secondly, how do I get a jar loaded and get access to the classes within that jar ? Where do I put it and how can classes in it be aliased ? Thirdly, and probably related, how can I use the servlet tag in my .shtml web pages. I was using Apache JSSI previously. Thanks very much Chris Faulkner _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Netscape and Tomcat
I know a lot of the time Netscape 4.76 on Windows tends to become a zombie process if you push it to much. When this happens the browser starts behaving erratically. Exit out of Netscape and check you task manager. If you see netscape.exe in the task list kill it then relaunch Netscape. That usually works for me, anyway. Aaron [EMAIL PROTECTED] 05/31/01 10:46PM Does anybody know of any reason why Tomcat would not work properly with Netscape? When I try to access my server, using http://localhost:8080, it correctly returns the Tomcat default page. However, none of the links work, and I cannot access any of my own applications (JSPs) under Tomcat. I have observed this behaviour on Windows 2000 and on Linux with Netscape 4.75. Netscape 6 is OK, as is IE. Any ideas? Stephen Oakes senior developer - [EMAIL PROTECTED] - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 phone +61 3 9695 5700 fax - www.atomicmedia.com -
RE: Problems with isapi_redirect.dll
I won't send the entire registry, but here is the Apache key: [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=D:\\jakarta-tomcat-3.2.2\\logs\\isapi.log log_level=debug worker_file=D:\\jakarta-tomcat-3.2.2\\conf\\workers.properties worker_mount_file=D:\\jakarta-tomcat-3.2.2\\conf\\uriworkermap.properties Do you see anything wrong with this? The directories are correct for my setup. I also set the log level to debug, and this is what I got: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 788 [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 768 [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done Any ideas? Aaron [EMAIL PROTECTED] 05/27/01 07:58PM i also encountered several problems while configuring tomcat work IIS and after 3 days i have it working perfectly with the same config as yours. can you send me your registry file? maybe theres something wrong with it. -Original Message- From: Aaron Nance [mailto:[EMAIL PROTECTED]] Sent: Saturday, 26 May 2001 8:33 AM To: Subject: Problems with isapi_redirect.dll Everyone, I am having problems getting isapi_redirect.dll to work. Here's my configuration info: Win NT Server: SP 6a IIS 4 Java 1.3.0-c Tomcat 3.2.1 I have no problem running Tomcat in stand alone mode. I am 99.9 % certain I have the registry entries right. When I try to access http://localhost/examples/jsp/index.html IIS throws a 500 at me. I get the following information in the isapi.log: [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed I'm running with the configuration files as they were installed by Tomcat except for the workers.tomcat_home and workers.java_home properties in the workers.properties file. If you can tell me what I'm doing wrong here I'd appreciate it. Thanks, Aaron
RE: Problems with isapi_redirect.dll
Nope, the ajp12 port is set to 8007 in both files. I'd have to learn more about the ajp12 protocol, but it looks like it is opening the next available socket to do it's communication and for whatever reason, my machine won't let it. I've tried this on a couple of machines here at work (one NT server and one NT workstation) and get the same results (with different ports failing each time). I'm beginning to wonder if is has anything to do with our LAN being NetWare. I'm going to try this on my home machine tonight to see if it makes a difference. Aaron [EMAIL PROTECTED] 05/30/01 02:21PM If I had to guess, I would say that Tomcat is not listening on the correct port (the jk_open_socket fails). I would check that you have AJP12 configured in your server.xml file and that matches the workers.properties file. Randy -Original Message- From: Aaron Nance [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 3:17 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Problems with isapi_redirect.dll I won't send the entire registry, but here is the Apache key: [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=D:\\jakarta-tomcat-3.2.2\\logs\\isapi.log log_level=debug worker_file=D:\\jakarta-tomcat-3.2.2\\conf\\workers.properties worker_mount_file=D:\\jakarta-tomcat-3.2.2\\conf\\uriworker map.properties Do you see anything wrong with this? The directories are correct for my setup. I also set the log level to debug, and this is what I got: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 788 [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory [jk_isapi_plugin.c (517)]: HttpExtensionProc started [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 768 [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done Any ideas? Aaron [EMAIL PROTECTED] 05/27/01 07:58PM i also encountered several problems while configuring tomcat work IIS and after 3 days i have it working perfectly with the same config as yours. can you send me your registry file? maybe theres something wrong with it. -Original Message- From: Aaron Nance [mailto:[EMAIL PROTECTED]] Sent: Saturday, 26 May 2001 8:33 AM To: Subject: Problems with isapi_redirect.dll Everyone, I am having problems getting isapi_redirect.dll to work. Here's my configuration info
Problems with isapi_redirect.dll
Everyone, I am having problems getting isapi_redirect.dll to work. Here's my configuration info: Win NT Server: SP 6a IIS 4 Java 1.3.0-c Tomcat 3.2.1 I have no problem running Tomcat in stand alone mode. I am 99.9 % certain I have the registry entries right. When I try to access http://localhost/examples/jsp/index.html IIS throws a 500 at me. I get the following information in the isapi.log: [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed I'm running with the configuration files as they were installed by Tomcat except for the workers.tomcat_home and workers.java_home properties in the workers.properties file. If you can tell me what I'm doing wrong here I'd appreciate it. Thanks, Aaron