RFI.
Hi Is there a digest version of this list.. getting 200 mails every two days is very hard to read AND my mail admin is giving me some dirty looks. (I'm on Servlet Interest and PHP DB list also) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
RE: [tomcat-user] Re: Request for clarification - I.E. Tomcat mod_jkinstalled in Apache
Hi I seem to be having a problem with the documents. I've read the mod_jk HOW TO, Tomcat UG and the workers.properties Document. I seem to be under the understanding that I DO have Tomcat configured to talk to apache, it just may not be doing it very well. :) I've added the following lines in httpd.conf # Tomcat module LoadModule jk_modulemodules/mod_jk.so # Tomcat module AddModule mod_jk.c and finally Include /usr/local/tomcat/conf/mod_jk.conf-aut I've checked the configuraton file (mod_jk.conf-auto) # # The following line instructs Apache to load the jk module # LoadModule jk_module libexec/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /var/log/httpd/apache-tomcat.log # # Log level to be used by mod_jk # JkLogLevel error Plus, I've got the /Servlets context installed in the above file also. # # Auto configuration for the /Servlets context starts. # # # The following line makes apache aware of the location of the /Servlets context # Alias /Servlets "/home/john/public_html/Servlets" Directory "/home/john/public_html/Servlets" Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /Servlets/servlet/* ajp12 JkMount /Servlets/*.jsp ajp12 # # The following line prohibits users from directly accessing WEB-INF # Location "/Servlets/WEB-INF/" AllowOverride None deny from all /Location # # The following line prohibits users from directly accessing META-INF # Location "/Servlets/META-INF/" AllowOverride None deny from all /Location ### # Auto configuration for the /Servlets context ends. ### Am I potentially missing something here? Oh yeah, I restarted BOTH apache and tomcat after the install/configuration with Tomcat starting up first as instructed. After all this I I get the aforementioned problems. I also have support/references in the server.xml file for both the Apache apjv12 (on port 8007) and apjv13 (on port 8009) protocols. I also was hoping that the 'talking' between Apache and Tomcat would be seamless maybe this is just not possible with it's current implementation? Thank you very much for your response. -Original Message- From: kenneth topp [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 6:01 PM To: John Bateman Cc: Tomcat-User (E-mail) Subject: [tomcat-user] Re: Request for clarification - I.E. Tomcat mod_jkinstalled in Apache You haven't configured apache to talk to tomcat.
map_uri_to_worker problems?
Hi I've running Tomcat 3.2b6 with the mod_jk installed into apache as a work and I'm getting this error in my 'apache-tomcat' log not the /use/locla/tomcat/log/tomcat.log but the one I setup in /var/log/httpd/apache-tomcat.log [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match Anyone know what it means? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
Request for clarification - I.E. Tomcat mod_jk installed in Apache
Hi I've installed the mod_jk module into Apache, everything 'seems' to work fine. I've also configured a new App called "Servlets" just to test stuff. When I issue http://serverIP/Servlets/servlet/SampleCode The server says "404 cannot find file" and the logs claim "Cannot find file /path_to_this_context/Servlets/servlet/SampleCode When I issue: http://serverIP:8080/Servlets/servlet/SampleCode The Servlet runs fine. Why would I need to put the module 'inside' apache, if I'm required to run Tomcat as a process AND access my servlets on another port? Can I not just run it all off Tomcat standalone? I understand that Apache is more 'configurable' and handles static content better, but, I don't understand why I would add Tomcat into apache if I just access the same URL as I would if it was stand alone. Could I not get the same results leaving NOTHING extra inside Apache and referencing my Servlet files on the 8080 port (as tomcat stand alone)? Hope this wasn't too confusing. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
RE: talking to MS SQL server from Tomcat?
Hi Your best bet is to check out the sun DB site at http://industry.java.sun.com/products/jdbc/drivers I like JDataConnect and Jssql myself but, they aren't free. -Original Message- From: Rick Castello [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 2:59 PM To: [EMAIL PROTECTED] Subject: talking to MS SQL server from Tomcat? Is anyone talking to a MS SQL server database with Tomcat? I'm looking for a JDBC-OBDC bridge, and EasySoft's offering has been problematic. Does anyone have any other suggestions? -Rick [EMAIL PROTECTED]
RE: confusion on running Stand alone
I'm actually putting in the IP address of the server. -Original Message- From: Stephen Adkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 5:13 PM To: [EMAIL PROTECTED] Subject: RE: confusion on running Stand alone Hi, Are you really entering something like http://192.9.2.200:8080/index.html or are you literally entering http://serverip:8080/index.html ? If you are doing the second, you are misunderstanding that "serverip" should be replaced with the IP address of your server as in the first example. At 05:05 PM 10/24/00 -0400, you wrote: Hi Yeah, weird eh? The browser (IE) tells me "DNS Error or Cannot Find Server". As an aside I'm running apache on Port 80 and it serves up the web pages fine (for other websites, NOT the ones Tomcat points to). I appreciate your help. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 5:03 PM To: [EMAIL PROTECTED] Subject: Re: confusion on running Stand alone You're getting DNS errors when you enter the "IP" number? - Original Message - From: Jagannathan, Giri (c) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 4:51 PM Subject: RE: confusion on running Stand alone jus try accessing http://serverip:8080 without the file index.html!! It worked for me.. -Original Message- From: John Bateman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 4:53 PM To: Tomcat-User (E-mail) Subject: confusion on running Stand alone Hi I'm a bit confused over all the documentation I've been reading. It tells me to run the tomcat server in stand alone mode and verify that I can get the servlets working before I try running it in or out of process with another webserver. This I understand, but I can't seem to find an example on how to verify that my stand alone configuration works. The tomcat seems to start fine and when I telnet to the IP address of my server on port 8080 (or even port 8007) there's a response from something sitting there waiting for a connection, but, when I try accessing http://serverip:8080/index.html OR http://serverip:8080/test/index.html I always get DNS can't locate server errors. The log files seem to be happy with the exception that I occasionally see this error message in the tomcat.log file. the error is marked by *'s, I've just included the whole log file as it's quite small and maybe the insight will help. (FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat) Starting tomcat install="/usr/local/tomcat" home="/usr/local/jakarta-tomcat" classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/l ocal/tomcat/lib /test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/class es.zip:/classes :/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l ib/jconn2.jar" Context log: path="/admin" Automatic context load docBase="/usr/local/jakarta-tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/jakarta-tomcat/webapps/admin" Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler" Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler" Error reading request connection reset Thanks a million. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
RE: confusion on running Stand alone
I ask for HEAD / HTTP/1.0 and this is returned HTTP/1.0 500 Internal Server Error Date: Wed, 25 Oct 2000 15:17:26 GMT Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.2.2; Linux 2.2.14-5.0 i386; java.vendor=Sun Microsystems Inc.) Content-Language: en Content-Type: text/html Status: 500 h1Error: 500/h1 h2Location: //h2bInternal Servlet Error:/bbr pre java.lang.ClassCastException: javax.servlet.http.NoBodyResponse at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j ava:126) at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:187) at javax.servlet.http.HttpServlet.doHead(HttpServlet.java:313) at javax.servlet.http.HttpServlet.service(HttpServlet.java:757) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:475) /pre So, I beleive I am halfway there?!?
RE: confusion on running Stand alone
I get nothing 'registered' as running on Port 8080, but, here' what I did find. more /etc/services | grep 8080 webcache8080/tcp# WWW caching service webcache8080/udp# WWW caching service AND.. netstat -a | grep web tcp0 0 *:webcache *:* LISTEN Now in addition to all this. Asking for the "request" headers from the telnet connection on 'telnet 207.139.81.136 8080' I ask for HEAD / HTTP/1.0 and this is returned: HTTP/1.0 500 Internal Server Error Date: Wed, 25 Oct 2000 15:17:26 GMT Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.2.2; Linux 2.2.14-5.0 i386; java.vendor=Sun Microsystems Inc.) Content-Language: en Content-Type: text/html Status: 500 h1Error: 500/h1 h2Location: //h2bInternal Servlet Error:/bbr pre java.lang.ClassCastException: javax.servlet.http.NoBodyResponse at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j ava:126) at org.apache.tomcat.servlets.DefaultServlet.doGet(DefaultServlet.java:187) at javax.servlet.http.HttpServlet.doHead(HttpServlet.java:313) at javax.servlet.http.HttpServlet.service(HttpServlet.java:757) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:475) /pre So, I beleive I am halfway there as the Tomcat servlet engine IS running?!? -Original Message- From: Jagannathan, Giri (c) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 25, 2000 10:18 AM To: '[EMAIL PROTECTED]' Subject: RE: confusion on running Stand alone try this on unix: at the prompt, type netstat -a |grep PORTNO -Original Message----- From: John Bateman [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Wednesday, October 25, 2000 10:08 AM To: [EMAIL PROTECTED] Subject: RE: confusion on running Stand alone I'm actually putting in the IP address of the server. -Original Message- From: Stephen Adkins [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, October 24, 2000 5:13 PM To: [EMAIL PROTECTED] Subject: RE: confusion on running Stand alone Hi, Are you really entering something like http://192.9.2.200:8080/index.html http://192.9.2.200:8080/index.html or are you literally entering http://serverip:8080/index.html http://serverip:8080/index.html ? If you are doing the second, you are misunderstanding that "serverip" should be replaced with the IP address of your server as in the first example. At 05:05 PM 10/24/00 -0400, you wrote: Hi Yeah, weird eh? The browser (IE) tells me "DNS Error or Cannot Find Server". As an aside I'm running apache on Port 80 and it serves up the web pages fine (for other websites, NOT the ones Tomcat points to). I appreciate your help. -Original Message- From: Ben Souther [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, October 24, 2000 5:03 PM To: [EMAIL PROTECTED] Subject: Re: confusion on running Stand alone You're getting DNS errors when you enter the "IP" number? - Original Message - From: Jagannathan, Giri (c) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 4:51 PM Subject: RE: confusion on running Stand alone jus try accessing http://serverip:8080 http://serverip:8080 without the file index.html!! It worked for me.. -----Original Message- From: John Bateman [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, October 24, 2000 4:53 PM To: Tomcat-User (E-mail) Subject: confusion on running Stand alone Hi I'm a bit confused over all the documentation I've been reading. It tells me to run the tomcat server in stand alone mode and verify that I can get the servlets working before I try running it in or out of process with another webserver. This I understand, but I can't seem to find an example on how to verify that my stand alone configuration works. The tomcat seems to start fine and when I telnet to the IP address of my server on port 8080 (or even port 8007) there's a response from something sitting there waiting for a connection, but, when I try accessing http://serverip:8080/index.html http://serverip:8080/index.html OR http://serverip:8080/test/index.html http://serverip:8080/test/index.html I a
confusion on running Stand alone
Hi I'm a bit confused over all the documentation I've been reading. It tells me to run the tomcat server in stand alone mode and verify that I can get the servlets working before I try running it in or out of process with another webserver. This I understand, but I can't seem to find an example on how to verify that my stand alone configuration works. The tomcat seems to start fine and when I telnet to the IP address of my server on port 8080 (or even port 8007) there's a response from something sitting there waiting for a connection, but, when I try accessing http://serverip:8080/index.html OR http://serverip:8080/test/index.html I always get DNS can't locate server errors. The log files seem to be happy with the exception that I occasionally see this error message in the tomcat.log file. the error is marked by *'s, I've just included the whole log file as it's quite small and maybe the insight will help. (FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat) Starting tomcat install="/usr/local/tomcat" home="/usr/local/jakarta-tomcat" classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib /test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/classes.zip:/classes :/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l ib/jconn2.jar" Context log: path="/admin" Automatic context load docBase="/usr/local/jakarta-tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/jakarta-tomcat/webapps/admin" Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler" Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler" Error reading request connection reset Thanks a million. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.
RE: confusion on running Stand alone
Hi Thanks for the reply. I tried that also, and since there's a connector entry , as seen below, for 'root' I put an index.html file (verified all permissions on it) and called http://serverIpd:8080/index.html also nothing. Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" /Context Very strange but then again it is the holloween season over here. :) -Original Message- From: Jagannathan, Giri (c) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 4:52 PM To: '[EMAIL PROTECTED]' Subject: RE: confusion on running Stand alone jus try accessing http://serverip:8080 without the file index.html!! It worked for me.. -Original Message- From: John Bateman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 4:53 PM To: Tomcat-User (E-mail) Subject: confusion on running Stand alone Hi I'm a bit confused over all the documentation I've been reading. It tells me to run the tomcat server in stand alone mode and verify that I can get the servlets working before I try running it in or out of process with another webserver. This I understand, but I can't seem to find an example on how to verify that my stand alone configuration works. The tomcat seems to start fine and when I telnet to the IP address of my server on port 8080 (or even port 8007) there's a response from something sitting there waiting for a connection, but, when I try accessing http://serverip:8080/index.html OR http://serverip:8080/test/index.html I always get DNS can't locate server errors. The log files seem to be happy with the exception that I occasionally see this error message in the tomcat.log file. the error is marked by *'s, I've just included the whole log file as it's quite small and maybe the insight will help. (FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat) Starting tomcat install="/usr/local/tomcat" home="/usr/local/jakarta-tomcat" classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib /test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/classes.zip:/classes :/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l ib/jconn2.jar" Context log: path="/admin" Automatic context load docBase="/usr/local/jakarta-tomcat/webapps/admin" Context log: path="/admin" Adding context path="/admin" docBase="/usr/local/jakarta-tomcat/webapps/admin" Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler" Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler" Error reading request connection reset Thanks a million. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.