need a working mod_jk2 for RH Apache 2.0.40
I am kind of in a catch 22 I just upgraded my RH server to version 9 this installs a backported httpd server that is 2.0.40 and I believe has the latest patches that would have been 2.0.43 Every time I try to update the rpm from redhat it says it is up-to-date but LoadModule fails saying the mod_jk is the wrong version and needs apache 2.0.43 how can I fix this issue I think one way is to remove the rpm from redhat and install the httpd server from apache.org and not use package management . But I was hoping to avoid if I can . Thoughts ... suggestions -- Rob Cartier - Yahoo [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help: Error while opening the workers, jk will not work - (solved)
I found the problem while it worked before it wasnt working anymore after upgrading to 4.1.24 from 4.1.18 I needed to add the modJk directive in the following lines as defined in John Turners HowTo.. Thanks John === Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / in the Host container add the following Listener directive (yes, it looks very similar to the one above): Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / -Original Message- From: Rob Cartier [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 10:49 AM To: '[EMAIL PROTECTED]' Subject: Help: Error while opening the workers, jk will not work Recently I have been seeing 'Error while opening the workers, jk will not work' show up in my httpd/error_log. And when that happens I get Error 500 codes and have to reboot my server. Stop and restarting tomcat or httpd doesnt help I have running rh 7.2 tomcat 4.1.24 apache 1.3.27 I just upgraded the mod_jk connector to mod_jk.so.ap1.3.27-eapi.rh72 thinking that was the problem . But that didnt help either. This system has been working flawlessly until recently. Is there anything else I can turn on in order to see a more verbose mod_jk error Also I have noticed that I can re-create the problem . If I shut down the apache server and restart it. Also after viewing the logs in mod_jk.log and catalina.out that it appears robots looking for files on my server has caused this problem as well :( here is an excerpt from my error_log file: [Sun Jun 1 08:44:52 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl/1.26 mod_jk/1.2.1 configured -- resuming normal operations [Sun Jun 1 08:44:52 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Jun 1 08:44:52 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) [Sun Jun 1 08:50:34 2003] [notice] caught SIGTERM, shutting down [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work Thanks in advance Rob Cartier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: Error while opening the workers, jk will not work
Recently I have been seeing 'Error while opening the workers, jk will not work' show up in my httpd/error_log. And when that happens I get Error 500 codes and have to reboot my server. Stop and restarting tomcat or httpd doesnt help I have running rh 7.2 tomcat 4.1.24 apache 1.3.27 I just upgraded the mod_jk connector to mod_jk.so.ap1.3.27-eapi.rh72 thinking that was the problem . But that didnt help either. This system has been working flawlessly until recently. Is there anything else I can turn on in order to see a more verbose mod_jk error Also I have noticed that I can re-create the problem . If I shut down the apache server and restart it. Also after viewing the logs in mod_jk.log and catalina.out that it appears robots looking for files on my server has caused this problem as well :( here is an excerpt from my error_log file: [Sun Jun 1 08:44:52 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl/1.26 mod_jk/1.2.1 configured -- resuming normal operations [Sun Jun 1 08:44:52 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Jun 1 08:44:52 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) [Sun Jun 1 08:50:34 2003] [notice] caught SIGTERM, shutting down [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work Thanks in advance Rob Cartier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: Error while opening the workers, jk will not work
Recently I have been seeing 'Error while opening the workers, jk will not work' show up in my httpd/error_log. And when that happens I get Error 500 codes and have to reboot my server. Stop and restarting tomcat or httpd doesnt help I have running rh 7.2 tomcat 4.1.24 apache 1.3.27 I just upgraded the mod_jk connector to mod_jk.so.ap1.3.27-eapi.rh72 thinking that was the problem . But that didnt help either. This system has been working flawlessly until recently. Is there anything else I can turn on in order to see a more verbose mod_jk error Also I have noticed that I can re-create the problem . If I shut down the apache server and restart it. Also after viewing the logs in mod_jk.log and catalina.out that it appears robots looking for files on my server has caused this problem as well :( here is an excerpt from my error_log file: [Sun Jun 1 08:44:52 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.1.2 mod_perl/1.26 mod_jk/1.2.1 configured -- resuming normal operations [Sun Jun 1 08:44:52 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Jun 1 08:44:52 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) [Sun Jun 1 08:50:34 2003] [notice] caught SIGTERM, shutting down [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Sun Jun 1 08:50:36 2003] [error] (2)No such file or directory: Error while opening the workers, jk will not work Thanks in advance Rob Cartier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help: mod_jk fails after restart of apache
I have a strange thing happening to my installation. I have had apache 1.3.27 and tomcat 4.1.18 working fine using mod_jk for months. However I noticed after the last reboot something strange happened. Apache and Tomcat work with mod_jk fine but any restarts of apache generate an error message [error](2)No such file or directory: Error while opening the workers, jk will not work I am then forced to reboot the system. Then all works fine once again I am using localhost in my httpd.conf workers.properties and serverl.xml files. I am using virtual hosting in my httpd.conf file since I am connected via adsl and have a dynamic ip that is resolved using dyndns.org all this worked until this last week I was always able to stop httpd and then restart tomcat and then start httpd and this always worked all logs at boot time seem ok and tomcat on a restart shows no errors. Only Apache complains on a restart any ideas would be greatly appreciated Rob Cartier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help: mod_jk fails after restart of apache - admin tool
I think I found the problem -- maybe . After comparing a saved version of a server.xml and one generated from the admin tool. It would appear that the one from the admin tool generates a server.xml file that creates the error for mod_jk. When I put the old version back in all is ok Is there a known problem with the admin tool or is there some updates to mod_jk that is causing the problem. Also when updating the tomcat-user.xml file directly it appears that these changes are over-written when using the admin tool and once used you can only keep changes using the admin tool for userid and passwords thanks in advance for any help you can provide Rob -Original Message- From: Rob Cartier [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:13 AM To: '[EMAIL PROTECTED]' Subject: help: mod_jk fails after restart of apache I have a strange thing happening to my installation. I have had apache 1.3.27 and tomcat 4.1.18 working fine using mod_jk for months. However I noticed after the last reboot something strange happened. Apache and Tomcat work with mod_jk fine but any restarts of apache generate an error message [error](2)No such file or directory: Error while opening the workers, jk will not work I am then forced to reboot the system. Then all works fine once again I am using localhost in my httpd.conf workers.properties and server.xml files. I am using virtual hosting in my httpd.conf file since I am connected via adsl and have a dynamic ip that is resolved using dyndns.org all this worked until this last week I was always able to stop httpd and then restart tomcat and then start httpd and this always worked all logs at boot time seem ok and tomcat on a restart shows no errors. Only Apache complains on a restart any ideas would be greatly appreciated Rob Cartier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: invalid web.xml
I am having a tough time trying to create a valid web.xml using taglib Is there a document that I can follow that will show me to hiearchy of a properly formatted document I am supplying my current web.xml for anyones review and correction. XMLWriter says the taglib declaration I am usng is invalid. I am confused . It looks ok thanks in advance Rob ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-name Farmington Sports Arena /display-name description Farmington Sports Arena /description context-param param-namebase_href/param-name param-valuehttp://www.fsasports.com/fsa//param-value /context-param servlet servlet-nameSendMailServlet/servlet-name display-nameSendMailServlet/display-name servlet-classSendMailServlet/servlet-class init-param param-namebase_href/param-name param-valuehttp://www.fsasports.com/fsa//param-value /init-param init-param param-namemailhost/param-name param-valueapollo.homeip.net/param-value /init-param init-param param-namemailfrom/param-name param-value[EMAIL PROTECTED]/param-value /init-param init-param param-nameenvelope_from/param-name param-value[EMAIL PROTECTED]/param-value /init-param /servlet servlet servlet-nameMailPremierApplication/servlet-name display-nameMailPremierApplication/display-name servlet-classMailPremierApplication/servlet-class init-param param-namemailhost/param-name param-valueapollo.homeip.net/param-value /init-param /servlet servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping taglib taglib-urihttp://jakarta.apache.org/taglibs/dbtags/taglib-uri taglib-location/WEB-INF/dbtags.tld/taglib-location /taglib welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list error-page error-code404/error-code location/error404.jsp/location /error-page /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERROR: Receiving from Tomcat failed recoverable operation, err=0
[ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [ Wed Jan 01 22:15:32 2003 ]HTTP/1.1 GET 200 /fsa/index.jsp [ Wed Jan 01 22:15:32 2003 ] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. I am seeing many of these in my mod_jk.log file but I am able to render all links and pages what is wrong I am running tomcat 4.1.18 with apache 1.3.22-6 with mod_jk-1.3-eapi.so thanks Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ERROR: Receiving from Tomcat failed recoverable operation, err=0
Found it:) !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ -Original Message- From: Rob Cartier [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 11:28 AM To: '[EMAIL PROTECTED]' Subject: ERROR: Receiving from Tomcat failed recoverable operation, err=0 [ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [ Wed Jan 01 22:15:32 2003 ]HTTP/1.1 GET 200 /fsa/index.jsp [ Wed Jan 01 22:15:32 2003 ] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. I am seeing many of these in my mod_jk.log file but I am able to render all links and pages what is wrong I am running tomcat 4.1.18 with apache 1.3.22-6 with mod_jk-1.3-eapi.so thanks Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
upgrading to 4.1.18 -- where is the rpm
I am stumped. I was able to install 4.1.12 using an rpm tomcat4-admin-webapp-4.1.12-full.2jpp tomcat4-4.1.12-full.2jpp tomcat4-webapps-4.1.12-full.2jpp but so far have been unable to locate one for 4.1.18 Otherwise what is the best way to upgrade using the existing binaries that are available from the mirror sites. Thanks in advance. Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Warning: messages in catalina.out
I am little concerned about Warning messages I see in my catalina.out file. The pages appear to be fine but I get these messages quite a bit. Are these session timeout and restart messages? Dec 29, 2002 6:33:10 PM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) Dec 29, 2002 6:33:10 PM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) Also during startup the following entry is in the file INFO: Initializing Coyote HTTP/1.1 on port 8080 mod_jk location: libexec/mod_jk.so Make sure it is installed corectly or set the config location Using ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL / Is this because it is inccorectly configured? Thanks in advance Rob Cartier -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help: logging fails under mod_jk
I have a very simple peice of code that is in my jsp % System.out.println(JSP== + request.getRemoteUser() + | + request.getRequestURI() + | + request.getRemoteAddr() + | + new java.util.Date().toString() + | + request.getHeader(User-Agent) ); % This worked fine under mod_webapp but no generates some really weird results when I switched over to mod_jk I get JSP== null|ml PUBLIC -//W3C//DTD HTML 4.01|ansitional/|Sun Dec 29 13:50:10 EST 2002| tr td width=100% colspan=2 height=95 == I used to get JSP== null|/fsa/index.jsp|192.168.1.2|Thu Dec 26 18:35:43 EST 2002|Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461) any ideas would be really helpful Otherwise it appears my mod_jk is working ?? Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help: Simple example to use tomcat 4.1.12 / Apache 1.3 and mod_jk ??
I having looking for a very simple howto on how to get on RH 7.2 Tomcat 4.1.12 Apache 1.3 Mod_jk or mod_jk2 working together possibly using the /examples that are included with tomcat as a test bed. I am confused on how to configure tomcat. I see Coyote/AJP13 and ajp13 in the server.xml file but I am unsure which one to use. There is also a discussion of jk2.properties file but that one is all commented out and there seems to be no clear example of what needs to be done in the server.xml and jk2.properties if anything that needs to be adjusted. On the Apache side I have tried both mod_jk and mod_jk2 but the examples in the how to are either for mod_jk.so or mod_jk2.so cant tell . It is very fustrating. Does anyone have a very simple docs I can follow == Here are some of my files I added this to my httpd.conf in the beginning LoadModule jk2_module modules/mod_jk2.so ADDModule mod_jk2.c -- at the bottom I added so that it would at least start LoadModule jk2_module libexec/mod_jk2.so AddModule mod_jk2.c IfModule mod_jk2.c Jk2WorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk2.log JkLogLevel info JkLogStampFormat (%a %b %d %H:%M:%S %Y) JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /examples/servlet/* worker1 JkMount /examples/*.jsp worker1 /IfModule my worker2.properties file # Define 1 real worker using ajp13worker.list=worker1 # Set properties for worker1 (ajp13)worker.worker1.type=ajp13 worker.list=worker1 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 What I wind up is protocol errors in my catalina.out file Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === BAD packet 256 In: : [B@958bf9 4/843 01 00 03 47 00 00 00 00 00 00 00 00 00 00 00 00 | ...G 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help: logging j_username
ok .. I am interested any ideas how to implement it thanks in advance --Rob -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 7:09 PM To: Tomcat Users List Subject: RE: help: logging j_username Is there a way besides using session cookies to log invalid logon attempts from a form based logon jsp Have you considered a session bean? --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help: Errors in catalina.out
I am running 4.1.12 but am seeing errors at startup. They say severe but all my applications seem to work ok I am also unable to tell which web.xml is causing the errors it would appear there are 2 differnet ones involved. any ideas would be heplful. I turned debug up to a 1 on my application logs but see no errors there. I wonder if the admin or manager web.xml files are causing me grief. ;( Thanks in advance --Rob Error 1: Dec 13, 2002 11:18:01 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Dec 13, 2002 11:18:02 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Dec 13, 2002 11:18:03 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Dec 13, 2002 11:18:06 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1 Dec 13, 2002 11:18:07 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 106 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ... Error 2: Dec 13, 2002 11:18:10 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 57 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help: Upgrading to 4.1.12 frrom 4.0.1
I am having a heck of a time getting my servlets to be available from tomcat 4.1.12 I copied the directory from under webapps to the new installion and updated the server.xml with the same settings from the previous version. But everytime my jsp tries to call the servlet . I get Servlet is unavailable. I am at a loss and would like to convert but until I get this simple process fixed. I guess I am stuck at 4.0.1 Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
help: logging j_username
Is there a way besides using session cookies to log invalid logon attempts from a form based logon jsp I was using cookies before but I would like to find another way from within this jsp !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html HEAD META name=GENERATOR content=IBM WebSphere Studio /HEAD body %@ page session=true % %@ page contentType=text/html% table border=0 cell= padding=0 size=480 width=640 body onload=document.login.j_username.focus()/body % System.out.println(JSP== + request.getRemoteUser() + | + request.getRequestURI() + | + request.getRemoteAddr() + | + new java.util.Date().toString() + | + request.getHeader(User-Agent) ); % % String url = j_security_check; % h2Login page /h2 form action='%= response.encodeURL(url) %' name=login table border=0 cell padding=0 width=480 tr td nowrapfont face=FixedsysUsername:/font/td td input type=text name=j_username/td /tr tr td nowrapfont face=FixedsysPassword:/font/td td input type=password name=j_password/td tr tr td /td tdinput type=submit value=Login/td /tr br /table /form /body /html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help: Upgrading from 4.0.2 to 4.1.12
I am currently running tomcat 4.0.2 with a mod_webapp connector for apache version 1.3.22 do I need to upgrade the mod_webapp connector That was a real bear the first time around It took sometime to find a binary that would work with my Redhat 7.2 system. I tried various to recompile a working version but was never succesful. ;( I would like to upgrade to 4.1.12 but I am a little concerned about problems I might encounter . I currently have tomcat in /usr/local/jakarta-tomcat-4.0.2 and see that installing from the rpm puts it into /var/tomcat4 so that is ok. I am assuming that once I make the necessary changes to server.xml and tomcat-users.xml . I should be good to go Just shut down the running version and startup the new one Seems to easy. Am I missing something :) Thanks in advance Rob Cartier -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where do I have to put classes?
You should also review the web.xml file that is there. Without it you wont go very far -Original Message- From: Daniel Hinojosa [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 16, 2002 11:26 PM To: Tomcat Users List Subject: Re: Where do I have to put classes? Ryuji Yokoyama wrote: Hello All! I am a new to Tomcat and have a question. I downloaded and installed Tomcat 4. I think it is working correctly. I can see the welcome page and I can execute the sample Servlets. However, I can't figure out where I should put my Servlet classes. I tired $CATALINA_HOME/web-apps, but I just got an error. Where do I have to put classes? And how can I change the directory? Thanks in advance. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Take a look at the sample files that your Tomcat comes with. You will find them in the /WEB-INF/classes directory . -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: IE 5 on Mac is incompatible with TC 4?
How would you do that if you are using Form authentication and the web.xml file directs them to a loginpage before they access the index.jsp Have the same problem and found that If they accept session cookies then all is ok Your help would be greatly appreciated. -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 7:04 AM To: Tomcat Users List Subject: SSL: IE 5 on Mac is incompatible with TC 4? Now i have digged a little bit further in this. The IE 5 Mac missing session cookie problem only occurs when using SSL. Too bad our app needs SSL. Anders - Original Message - From: Anders Rundgren [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 08, 2002 11:27 Subject: IE 5 on Mac is incompatible with TC 4? Hi, I have a Tomcat app using sessions based on cookies (i.e. std way) that works with a huge set of browsers and OSes. But on Mac using IE 5 it does not. The culprit seems to be that session cookies are not compatible in some way as they are not visible in TC. Is this a known problem? BTW, the configuration is Apache on Linux, using ajp1.3 and TC 4.0.2 cheers, Anders R -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Keep-Alive. Was: IE 5 on Mac is incompatible with TC 4?
I am trying to use encodeURL for all my href's and login page but I get: Apache Tomcat/4.0.2 - HTTP Status 400 - Invalid direct reference to form login page type Status report message Invalid direct reference to form login page description The request sent by the client was syntactically incorrect (Invalid direct reference to form login page). If session cookies are off. Any ideas how to fix this mess ? loginpage.jsp html body table border=0 cell= padding=0 size=480 width=640 tbody tr td nowrap= width=150p align=Centerimg src=../marslogo.gif height=150 width=150/p/td td nowrap= width=420h2 align=Leftfont face=Trebuchet MSSouthern New England Army Mars/fontbr font face=Trebuchet MSSecure Site/font/h2 /td /tr /tbody /table % System.out.println(JSP== + request.getRemoteUser() + | + request.getRequestURI() + | + request.getRemoteAddr() + | + new java.util.Date().toString() + | + request.getHeader(User-Agent) ); % % String url = j_security_check;jsessionid= + session.getId(); % h2Login page /h2 form method=POST action='%= response.encodeURL(url) %' table border=0 cell padding=0 width=480 tr td nowrapfont face=FixedsysUsername:/font/td td input type=text name=j_username/td /tr tr td nowrapfont face=FixedsysPassword:/font/td td input type=password name=j_password/td tr tr td /td tdinput type=submit value=Login/td /tr br /table /form /body /html -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 11:22 AM To: Tomcat Users List Subject: Keep-Alive. Was: IE 5 on Mac is incompatible with TC 4? Rob, I'm not sure I understand what you want, but regarding session cookies, IE5/Mac and SSL, I think that the problem is that TC 4 does not seem to automatically support persistant TCP-connections which both gives bad performance, and confuses at least one browser to the extent that it stops sending cookie data. Anders - Original Message - From: Rob Cartier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, March 10, 2002 13:14 Subject: RE: IE 5 on Mac is incompatible with TC 4? How would you do that if you are using Form authentication and the web.xml file directs them to a loginpage before they access the index.jsp Have the same problem and found that If they accept session cookies then all is ok Your help would be greatly appreciated. -Original Message- From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 7:04 AM To: Tomcat Users List Subject: SSL: IE 5 on Mac is incompatible with TC 4? Now i have digged a little bit further in this. The IE 5 Mac missing session cookie problem only occurs when using SSL. Too bad our app needs SSL. Anders - Original Message - From: Anders Rundgren [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 08, 2002 11:27 Subject: IE 5 on Mac is incompatible with TC 4? Hi, I have a Tomcat app using sessions based on cookies (i.e. std way) that works with a huge set of browsers and OSes. But on Mac using IE 5 it does not. The culprit seems to be that session cookies are not compatible in some way as they are not visible in TC. Is this a known problem? BTW, the configuration is Apache on Linux, using ajp1.3 and TC 4.0.2 cheers, Anders R -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: help: logging failed login attempts
I am using the j_security_check class and dont know where I can grab the j_username value attached are the parts that I am using for my loginpage The errorpage just returns a null when doing a getRemoteUser() loginpage.jsp h2Login page /h2 form method=POST action=j_security_check table border=0 cell padding=0 width=480 tr td nowrapfont face=FixedsysUsername:/font/td td input type=text name=j_username/td /tr tr td nowrapfont face=FixedsysPassword:/font/td td input type=password name=j_password/td tr tr td /td tdinput type=submit value=Login/td /tr br web.xml snippet !-- Define the Login Configuration for this Application -- !-- Define the Login Configuration for this Application -- login-config auth-methodFORM/auth-method realm-nametest app/realm-name form-login-config form-login-page/loginpage.jsp/form-login-page form-error-page/errorpage.jsp/form-error-page /form-login-config /login-config -Original Message- From: Scott Shorter [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 09, 2002 7:49 AM To: 'Tomcat Users List' Subject: RE: help: logging failed login attempts This may not be the answer you are looking for, but if you implement the login form yourself, you can log failed login attempts however you want to... - Scott -Original Message- From: Rob Cartier [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 10:36 PM To: 'Tomcat Users List' Subject: help: logging failed login attempts Importance: High I have been searching high and low trying to find a way to catch failed login attempts after form authentication fails. Currently in my web.xml file it just gets re-directed to the errorpage but I want to record it All I want to capture is the username (j_username) that was attempted so I can log it and keep track of the failures to lock the account. everything else is available from the cgi variable getRequest..etc... methods. Posted this a few times but nobody as responded is this even available Rob Cartier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
help: logging failed login attempts
I have been searching high and low trying to find a way to catch failed login attempts after form authentication fails. Currently in my web.xml file it just gets re-directed to the errorpage but I want to record it All I want to capture is the username (j_username) that was attempted so I can log it and keep track of the failures to lock the account. everything else is available from the cgi variable getRequest..etc... methods. Posted this a few times but nobody as responded is this even available Rob Cartier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Help: Logging username (j_username) during login attempt
I got my login working with SSL and for now the use of the tomcat-users.xml file I would like to log all login attempts both success and failure. What is the best way to capture the information I only need the username from the j_username attempt I am able to get the rest that I want from the cgi variables Any and all help would be appreciated Robert Cartier 112 Fieldbrook Rd Middletown, Ct. 06457-1746 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Help: Logging username (j_username) during login attempt
I got my login working with SSL and for now the use of the tomcat-users.xml file I would like to log all login failed attempts . What is the best way to capture the information I only need the username from the j_username failed attempts succesful logins are loaded into the cgi variables but failed ones are lost :( I am able to get the rest that I want from the cgi variables Any and all help would be appreciated Robert Cartier 112 Fieldbrook Rd Middletown, Ct. 06457-1746 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat: can I use .htaccess files to protect html files
I was looking through and trying to apply minimal security to a directory like I do in apache . But so far I am not able to get it to work on tomcat 4.0 any pointers .htaccess file is stored in the directory I am trying to secure AuthUserFile /var/www/passfile* AuthGroupFile /dev/null AuthName Protected Area AuthType Basic Limit GET POST require valid-user /Limit Any ideas ?? Rob
Help: Where is the latest mod_webapp.so
Binary and source distributions of the mod_webapp connector will be posted on Wednesday, September 19, 2001. If you wish to build the connector in the mean time, you can check out the jakarta-tomcat-connectors CVS repository, and follw the directions in the README.txt file in the webapp subdirectory. Craig McClanahan Can't find them Please help. I need them for RH 7.1 and tomcat 4.0 with Apache 1.3 Rob
Help: Can't build mod_jserv.so for tomcat
I have downloaded the source for tomcat 3.2.3 and am trying to build the mod_jserv.so module. But no matter what I do I get the following error: apxs:Error: @sbindir@httpd not found or executable or apxs: Error @LIBEXECDIR@ not found or executable any ideas or does someone have a generic module for use with tomcat 3.2.3 and apache 1.3.19-5 (RH 7.1 distribution) Rob
RE: tomcat-user Digest 5 Mar 2001 06:58:17 -0000 Issue 744
I have reviewed the mod_jk how-to and still am stuck I get the following error during httpd shutdown [Sun Mar 4 08:40:28 2001] [notice] caught SIGTERM, shutting down [Sun Mar 4 08:40:28 2001] [error] Cannot remove module mod_jk.c: n found in module list [Sun Mar 4 08:40:51 2001] [error] Cannot remove module mod_jk.c: not found in module list This would lend me to believe that mod_jk isnt loaded. I am unable to view a jsp page directly and must include port 8080 in the url. below is my code for my httpd.conf I have a link to libexec that points to modules since I never had a libexec and placed the mod_jk.so into modules #include tomcat support LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /apps/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /apps/jakarta-tomcat-3.2.1/logs/mod_jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Include /apps/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto Any ideas would be helpful - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Getting mod_jk to work with Apache
I have reviewed the mod_jk howto and still am stuck I get the following error during httpd shutdown [Sun Mar 4 08:40:28 2001] [notice] caught SIGTERM, shutting down [Sun Mar 4 08:40:28 2001] [error] Cannot remove module mod_jk.c: not found in module list [Sun Mar 4 08:40:51 2001] [error] Cannot remove module mod_jk.c: not found in module list This would lend me to believe that mod_jk isnt loaded. I am unable = to=3D20 view a jsp page directly and must include port 8080 in the url. I have a link to libexec that points to modules since I never had a libexec and placed the mod_jk.so into modules below is my code that is in my httpd.conf #include tomcat support LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /apps/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /apps/jakarta-tomcat-3.2.1/logs/mod_jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Include /apps/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto Any ideas would be helpful - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Help: Getting mod_jk to work with Apache
I have reviewed the mod_jk howto and still am stuck I get the following error during httpd shutdown [Sun Mar 4 08:40:28 2001] [notice] caught SIGTERM, shutting down [Sun Mar 4 08:40:28 2001] [error] Cannot remove module mod_jk.c: not = found in module list [Sun Mar 4 08:40:51 2001] [error] Cannot remove module mod_jk.c: not = found in module list This would lend me to believe that mod_jk isnt loaded. I am unable to=20 view a jsp page directly and must include port 8080 in the url. below is my code for my httpd.conf I have a link to libexec that points to modules since I never had a = libexec and placed the mod_jk.so into modules #include tomcat support LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /apps/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /apps/jakarta-tomcat-3.2.1/logs/mod_jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Include /apps/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto Any ideas would be helpful -- Robert E. Cartier 112 Fieldbrook Rd Middletown, CT. 06457-1746 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]