Re: Apache 2, Tomcat 4 and mod_jk2
On Sun, 28 Apr 2002, Michael Delamere wrote: I think another point of confusion is what future mod_jk is going to have. I´ve read a lot about the future of this connector lately and it appears that a lot of work is taking place right now in order to get mod_jk2 running stable and to improve the configuration. On the other hand I´ve also heard that mod_webapp is to play the major role in the future, possibly replacing mod_jk one day. I doubt it... Costin I can´t imagine the latter happening because otherwise all the work would be a waste of time, but could you perhaps share your thoughts on the future of mod_jk/mod_jk2. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache+tomcat Integration....Confused....
I am running Apache on Win2k and trying to use Apache with Tomcat. What should I choose mod_jk, mod_webapp or mod_proxy? And what are the advantages/disadvantages of these implementation?
Urgent (SecurityManager and Tomcat services and Runtime.getRuntime().exec ) ??
Hi, i installed Tomcat4.03 on windows 2000 advanced server. if i have in my jsp code : % Process p=Runtime.getRuntime().exec(Myexe) or Process p=Runtime.getRuntime().exec(cmd Myexe) or Process p=Runtime.getRuntime().exec(c:\\winnt\\system32\\cmd Myexe) % when i used the Apache Tomcat services, this command did not worked if i stoped this services and started the startup batch file from tomcat_dir/bin the command worked properly and my idea to : SecurityManager and Tomcat i don't know how can i pass an parameter to apache tomcat nt services to get my securityManager file in dirctory : tomcat_home/bin because the security manager include : java.io.FilePermission(ALL FILES, execute)) and java.lang.RuntimePermission this class permit to execute Runtime.exec() from jsp file i think so any help ? thx _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Configuring Apache 2.0.35 and TomCat 4 under WinXP Server
Hi, Continuing the saga... Extract of my httpd.conf: ... LoadModule webapp_module D:/Server/Apache Group/Apache2/modules/mod_webapp.so ... Here is the debug error I get: Syntax error on line 174 ... LoadModule takes two arguments, ... It seems to me I have two arguments, am I missing something? Beeing under Windows, I have a file called libapr.dll I was supposed to move along with mod_webapp.so should I load it somewhere or just place in the same folder? Any help would be appreciate? In private or to the list, it doesn¹t matter to me... Sincerely, Frederick --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' ---
Re: Configuring Apache 2.0.35 and TomCat 4 under WinXP Server
You actually have three arguments ;-) Get rid of the whitespace in your module path and try again. jeff Frederick Aubert wrote: Hi, Continuing the saga... Extract of my httpd.conf: ... LoadModule webapp_module D:/Server/Apache Group/Apache2/modules/mod_webapp.so ... Here is the debug error I get: Syntax error on line 174 ... LoadModule takes two arguments, ... It seems to me I have two arguments, am I missing something? Beeing under Windows, I have a file called libapr.dll I was supposed to move along with mod_webapp.so should I load it somewhere or just place in the same folder? Any help would be appreciate? In private or to the list, it doesn¹t matter to me... Sincerely, Frederick --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuring Apache 2.0.35 and TomCat 4 under WinXP Server
Frederick, One thing i've found by trial and error is that most Tomcat and Apache config files don't like paths with spaces in them. This is somewhat confusing since the win32 installers create directories with spaces in them by default. You're probably much futher along than I am, but in my process of trying to get Apache2 and Tomcat 4.x to work i've started using the following directory structures... d:/apache/http d:/apache/tomcat4.x d:/apache/ant d:/apache/xml-xindice1.x etc since the paths are shorter and do not include spaces, it has made creating config files much easier and hopefully upgrades as well. ~Scott Frederick Aubert wrote: Hi, Continuing the saga... Extract of my httpd.conf: ... LoadModule webapp_module D:/Server/Apache Group/Apache2/modules/mod_webapp.so ... Here is the debug error I get: Syntax error on line 174 ... LoadModule takes two arguments, ... It seems to me I have two arguments, am I missing something? Beeing under Windows, I have a file called libapr.dll I was supposed to move along with mod_webapp.so should I load it somewhere or just place in the same folder? Any help would be appreciate? In private or to the list, it doesn¹t matter to me... Sincerely, Frederick --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
installation: jsp/servlet version check
Hi there! I would like to install Tomcat on Linux redhat 6.2 . Does anybody know how to check out if I have the JSP and Servlet engine already installed on my system? And how can I check out the version number? What if I install Tomcat version 4.0.3 onto a 2.2/1.1 Servlet/JSP Implementation? Could there be problems? Thanks in advance, Melampo.
Tomcat 4??? and Apache2
For the best integration results with Apache2 using mod_jk?/mod_webapp and jdk1.4, what drop/realease of Tomcat 4.0x-4.1 is recommended? Thank You, Anthony -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Which Connectors?
I'm confused with the state of the connectors available for Apache2/Tomcat integration. Could someone, please, shed some light on this. The following is some of what I've read/interpreted from messages on this list: mod_jk: Unstable mod_jk2:Bleeding edge for development purposes only mod_webapp: Next generation integration module for Apache/Tomcat that will eventually replace mod_jk's. However, performance hit since even static pages will have to go through Tomcat before being served by Apache. coyote: ??? Thank You, Anthony -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Which Connectors?
Hi! As far as I have heard mod_jk appears to be unstable with apache2 and as you said mod_jk2 is heavily in development. That leaves us with mod_webapp (for now). From what I gather from the last posts (especially from Costin who amongst others is developing the mod_jk2 connector), it doesn´t look like as if mod_webapp is really going to be replacing mod_jk in the near future. I can´t imagine them putting so much energy into it if it´s going to get dropped soon! It appears though until there is a stable mod_jk connector for apache2 we will have to use mod_webapp. bye Michael Delamere p.s. Coyote: as far as I know it´s a new HTTP connecor which you can replace with the deafult one. I'm confused with the state of the connectors available for Apache2/Tomcat integration. Could someone, please, shed some light on this. The following is some of what I've read/interpreted from messages on this list: mod_jk: Unstable mod_jk2: Bleeding edge for development purposes only mod_webapp: Next generation integration module for Apache/Tomcat that will eventually replace mod_jk's. However, performance hit since even static pages will have to go through Tomcat before being served by Apache. coyote: ??? Thank You, Anthony -- 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]
is not a servlet problem
Hi, I have looked at many places but I could not solve my problem. I have migrated from tomcat 3.3 to tomcat 4.0.3 But my servlets which are working under tomcat 3.3 do not work under tomcat 4.0.3 The example servlets under tomcat 4.0.3 are working properly by the way. The following error is reported. Can anybody help? Thanks in advance. type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Class monline.SessionManager.SessionManager is not a Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88 8) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.ClassCastException: monline.SessionManager.SessionManager at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88 4) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at
Tomcat 4.04b2 and Poolman2.04
Hi, I have a problem with using poolman and tomcat. I already put all = the jar files into my classpath, but poolman still can't find my db2 = jdbc driver. Where I need to put the db2jdbc driver? Louis -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Role bug in form based login: bug 8607.
I have found what I think is a bug in form based login. A user who is in the user database attempts a valid login, but the role of the user does not match one of the roles of the protected area. This has been mentioned a couple of times before in e-mails on this list, but has never been filed as a bug as far as I can see. To reproduce: 1.Install Tomcat 4.0.3 right from the box. 2.Add the user: user name=fred password=flint roles=standard,manager to the tomcat-users.xml file in conf. 3.Start tomcat, and access the examples/jsp/security/protected example. 4.Try to login as tomcat/tomcat. Works fine. 5.Logout and login as fred/flint and you DON'T get the error page, instead you get message 403. 6.All subsequent attempts to login, even with valid tomcat/tomcat ids get message 404 about j_security_check. Now I am somewhat of an amatuer on Tomcat, so I am willing to believe it is a configuration problem, but the only thing I changed was the addition of the user fred. Anyone else have this problem? I could find only one other bug along these lines, but it didn't seem related. Others with a similar problem: From: Christopher Pennock Subject: FORM login with wrong role gets 404, not error page - bug? Date: Tue, 5 Feb 2002 12:21:49 -0500 From: Victoria Einarsson Subject: wrong user role = Error 403 instead of redirecting to Form-Error-Page Date: Thu, 10 Jan 2002 11:34:00 +0100 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servelt Contexts handled differently when using HttpConnector and WarpConnector
I have noticed a difference between the HttpConnector and the WarpConnector while using tomcat 4.0.2. From the 2.3 spec: SRV.3.6 Multiple Hosts and Servlet Contexts Web servers may support multiple logical hosts sharing one IP address on a server. This capability is sometimes referred to as virtual hosting. In this case, each logical host must have its own servlet context or set of servlet contexts. Servlet contexts can not be shared across virtual hosts. This seems to be true when using the WarpConnector but not true when using the HttpConnector. While using the HttpConnector on Windows I have one subdirectory under work, which is localhost. I can connect to this server from multiple host names however I always just have one directory - localhost. Static variables are also shared between hostnames. While using the WarpConnector on Linux I have multiple directories under my work directory - one for each host that I navigate to. Static variables are not shared between hostnames. I saw this article: http://faqchest.dynhost.com/prgm/tomcat-l/tmct-01/tmct-0108/tmct-010850/ tmct01082322_32599.html which looks like the user is experiencing different contexts on Linux but not on Windows - It could be because the user is using the WarpConnector on Linux but not on Windows... Has anyone had any experience with this? Thank you all for your help! I have been a reader of this list for a long time and I appreciate all of the help that I have received! Abraham Fathman
MYsql mm driver and Tomcat 4.0.4
I am using the mm JDBC driver to connect to a mysql from Tomcat. I receive no errors bu also no results. The servlet has privilleges because I can use the mysql client as servlet to connect. The jar file is in my classpath , and I added it to the Tomcat directory under lib/ then I tried it under common/lib , and also under server/lib anyone have any ideas as to what I`m doing wrong ? I`ve checked the Tomcat logs for errors to no avail. Any help appreciated. I`m using mm.mysql-2.0.13. I`m trying the examples from chapter 13 in the JSPs Servlets, and MySQL book. adrian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.04b2 and Poolman2.04
Subject: Re: Tomcat 4.04b2 and Poolman2.04 From: Vic Cekvenich [EMAIL PROTECTED] === Put all the jar files in lib folder of your web app. Put the poolman.xml in classes folder. Vic Louis Voo wrote: Hi, I have a problem with using poolman and tomcat. I already put all = the jar files into my classpath, but poolman still can't find my db2 = jdbc driver. Where I need to put the db2jdbc driver? Louis -- 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: is not a servlet problem
I have installed tomcat-4.0.1 No problems. There should be something wrong with tomcat-4.0.3 TA. -Original Message- From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 28, 2002 10:19 PM To: [EMAIL PROTECTED] Subject: is not a servlet problem Hi, I have looked at many places but I could not solve my problem. I have migrated from tomcat 3.3 to tomcat 4.0.3 But my servlets which are working under tomcat 3.3 do not work under tomcat 4.0.3 The example servlets under tomcat 4.0.3 are working properly by the way. The following error is reported. Can anybody help? Thanks in advance. type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Class monline.SessionManager.SessionManager is not a Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88 8) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) root cause java.lang.ClassCastException: monline.SessionManager.SessionManager at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88 4) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at
Connection pool behaviour
Hi, I am using tomcat401 and PoolMan21b1 and it works all fine, except that the ResultSet is not refreshed even when cacheEnabled is put to false. If I delete all data from the table (Database=InterBase,Driver=InterClient) externally with isql (sort of sqlplus in Oracle) all rows get written back into the table when my webapp should only write one row to the table. And the deleted rows never disappear from my webapp (JSP/Struts). Has anybody faced that behaviour and found a solution? Thanks in advace Wolfgang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[Fwd: Object Not Found.. Tomcat won't connect]
-Forwarded Message- From: David A. Bartmess [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Object Not Found.. Tomcat won't connect Date: 28 Apr 2002 10:36:06 -0600 I've setup Tomcat 4.0.3 on top of Apache 2.0.35, and modified the httpd.conf as the documentation says. I downloaded mod_webapps-0.5 from rpmfind, and installed it, and modified the httpd.conf to match with LoadModule mod_webapp modules/mod_webapp.so, and AddModule mod_webapp.c. But when I try to hit the site examples (the webapps directory was copied from the original Tomcat installation), it says Object Not Found. What am I doing wrong? I've checked all the FAQs, and I can bring up Tomcat as standalone and it works fine. But the Apache integration docs leave MUCH to be desired... TIA! -- David A. Bartmess Sr. Software Configuration Manager http://eDingo.net - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David A. Bartmess Sr. Software Configuration Manager eDingo Enterprises http://eDingo.net -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How do you use j_security within in a servlet?
Dear Tomcat Guru's All the references on j-security_check I can find is from the Servlet 2.3 Specification and here is all I found: form method=POST action=j_security_check input type=text name=j_username input type=password name=j_password /form How do you use j_security in a servlet? The user enters in a form his/her username and password, and then posts the response to a servlet. The servlet then passes the user's username and password internally to j_security_check and get's back if the authentication is correct. If the authentication is correct the servlet sends the user to the next page and if not the user is sent to an error page. How do you pass the username and password to j_security_check within a servlet? Thanks for any help Hillel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: [Fwd: Object Not Found.. Tomcat won't connect]
David A. Bartmess wrote: -Forwarded Message- From: David A. Bartmess [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Object Not Found.. Tomcat won't connect Date: 28 Apr 2002 10:36:06 -0600 I've setup Tomcat 4.0.3 on top of Apache 2.0.35, and modified the httpd.conf as the documentation says. I downloaded mod_webapps-0.5 from rpmfind, and installed it, and modified the httpd.conf to match with LoadModule mod_webapp modules/mod_webapp.so, and AddModule mod_webapp.c. But when I try to hit the site examples (the webapps directory was copied from the original Tomcat installation), it says Object Not Found. What am I doing wrong? I've checked all the FAQs, and I can bring up Tomcat as standalone and it works fine. But the Apache integration docs leave MUCH to be desired... TIA! What did you add to httpd.conf ? did you add port 80 to the servername ? Did you edit the server.xml file to include the name of the apache server on the webapp connector ? Adrian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Which Connectors?
What about the performance issues with mod_webapp? Is it best that we either use Apache 1.3x/TC4/mod_jk or TC4x standalone for the best performing solution? Anthony Hi! As far as I have heard mod_jk appears to be unstable with apache2 and as you said mod_jk2 is heavily in development. That leaves us with mod_webapp (for now). From what I gather from the last posts (especially from Costin who amongst others is developing the mod_jk2 connector), it doesn´t look like as if mod_webapp is really going to be replacing mod_jk in the near future. I can´t imagine them putting so much energy into it if it´s going to get dropped soon! It appears though until there is a stable mod_jk connector for apache2 we will have to use mod_webapp. bye Michael Delamere p.s. Coyote: as far as I know it´s a new HTTP connecor which you can replace with the deafult one. I'm confused with the state of the connectors available for Apache2/Tomcat integration. Could someone, please, shed some light on this. The following is some of what I've read/interpreted from messages on this list: mod_jk: Unstable mod_jk2: Bleeding edge for development purposes only mod_webapp: Next generation integration module for Apache/Tomcat that will eventually replace mod_jk's. However, performance hit since even static pages will have to go through Tomcat before being served by Apache. coyote: ??? Thank You, Anthony -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Anthony W. Marino Pres./CTO, AWM Objects email: [EMAIL PROTECTED] phone: (732) 610-2441 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_jk1.2.0 with Apache2.0.35 on Solaris8
Hello, I have changed those configuration files to the same as yours. But still don't work. Don't know will it because that my mod_jk.so has problem or not. I use ant to make the mod_jk.so from the jakarta-tomcat-connectors-4.0.2-01-src When making, everything is fine except that I need to do two things manually: 1. the libtool always want to use cc to compile but I have no cc in my machine. So I copy it from gcc 2. the include directory of JNI for solaris not exist. So I add it in the build.xml Can you please send your mod_jk.so to me, So that I can have a try for it? You can send to [EMAIL PROTECTED](Thank You Very Much) Thx. and Regards. Steve. -Original Message- From: adrianthiele [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 9:22 PM To: Tomcat Users List Subject: Re: mod_jk1.2.0 with Apache2.0.35 on Solaris8 Here`s my worker.properties file workers.tomcat_home=$CATALINA_HOME workers.java_home=$JAVA_HOME ps=/ worker.list=ajp12, ajp13 worker.ajp13.port8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I think maybe your ajc13 declarations may be a little funky, why the s108 ? LoadModule jk_module libexec/apache/mod_jk.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 /IfModule Everything is the same except the ajp13. I am much happier with mod_webapp. Suggest you give it a try. Adrian Steve Wong wrote: I have successfully installed Apache2.0.35 and installed mod_jk.so from source. However, I can't access tomcat's jsp from Apache. After investigation from the log and the source code of mod_jk, it is quite strange. It is clear that mod_jk knows there is one rule and one worker at startup. After tracing for the code, there seems to have no problem. However, when there is a hit from Apache. The return of wc_get_worker_for_name returns worker did not found. * error_log of Apache2.0 * [Fri Apr 26 19:46:34 2002] [notice] Apache/2.0.35 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Fri Apr 26 19:46:41 2002] [warn] [client 192.168.2.249] handler jakarta-servlet not found for: start.jsp ** jk.log of mod_jk [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (170)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (362)]: Into jk_uri_worker_map_t::uri_worker_map_open [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (383)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /sso/.jsp=ajp13s108 was added [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (395)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (409)]: jk_uri_worker_map_t::uri_worker_map_open, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (88)]: Into wc_open [Fri Apr 26 19:46:34 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Fri Apr 26 19:46:34 2002] [jk_worker.c (228)]: build_worker_map, creating worker ajp13s108 [Fri Apr 26 19:46:34 2002] [jk_worker.c (148)]: Into wc_create_worker [Fri Apr 26 19:46:34 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp13s108 of ajp13 [Fri Apr 26 19:46:34 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Fri Apr 26 19:46:34 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp13s108 [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1174)]: Into jk_worker_t::validate [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1194)]: In jk_worker_t::validate for worker ajp13s108 contact is 192.168.1.108:8009 [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1222)]: Into jk_worker_t::init [Fri Apr 26 19:46:34 2002] [jk_worker.c (187)]: wc_create_worker, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (238)]: build_worker_map, removing old ajp13s108 worker [Fri Apr 26 19:46:34 2002] [jk_worker.c (250)]: build_worker_map, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (111)]: wc_open, done 1 [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/sso/start.jsp' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (529)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13s108 - *.jsp [Fri Apr 26 19:46:41 2002] [mod_jk.c (1222)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=1279808 worker=ajp13s108 [Fri Apr 26 19:46:41 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13s108 [Fri Apr 26 19:46:41 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into
RE: Tomcat, Postgres, JDBC, Blackdown 1.3.1, IE: No impact, no idea!
Hello Colin: My hypothesis in this case would be that the servlet is encountering some error during processing of the query or the output processing (which may not be actually associated with Postgres, hence the query works when you hardcode it), which causes the servlet to throw an exception, which Tomcat catches and displays the Error 500 (I think) page. However, by the time it sends the error page, the browser has read your content-disposition/mime-type headers and is attempting to download the file. Since the error page does not match the file-download format, the browser never realizes that the page is finished, so appears to hang, and to make matters worse, you never see the error. Of course, that's not rocket science; I'm sure you got that far. The task, I suspect is to track down the error. Here's what I would do: 1- Download and install Log4J from the Jakarta site. You'll be glad you did, regardless of solving this bug. (Note: Personally I found it had a bit of a learning curve, probably 1-2 days to figure out your prototype installation, but once you get past that it's a lifesaver). 2- Add the appropriate cat.debug(...) statements liberally throughout your servlet code. Don't worry about overdoing it - the neat thing about Log4J is that unlike System.out.println statements, when you're done debugging, you just change the Category's priority level and the statements pretty much turn into no-ops. 3- In particular, make sure you catch any exceptions thrown from your doPost method and log them. That'll give you the visibility you need on the error. The download will still fail, but at least you'll have a useful log of what happened. I've seen similar errors when I've had Cocoon set up wrong, causing a request to show an error page when I had set headers to download a file, so I know that's at least one possible cause. Cheers, Greg Trasuk, President StratusCom Manufacturing Systems Inc. - We use information technology to solve business problems on your plant floor. http://stratuscom.ca -Original Message- From: Colin Freas [mailto:[EMAIL PROTECTED]] Sent: April 26, 2002 16:06 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Tomcat, Postgres, JDBC, Blackdown 1.3.1, IE: No impact, no idea! My application, in a nutshell, allows you to click within a series of HTML table data cells, and this dynamically creates hidden input boxes on a form, which when submitted, the server processes into SQL, and returns the result of. The problem: 'selecting' too many data cells causes the site to skip the lengthy db query (which normally takes at least 3 minutes,) and it immediately returns the results as a downloadable file (set up using res.setContentType setHeader.) It then churns away downloading this file indefinitely. Select only a few data cells, and you get a nicely formatted comma-delimited set of data in a text file, after 3-10 minutes... the table has tens of millions of rows. The log files haven't helped me much. The servlet I believe to be causing the problem is called from a form's post action (Is there a limit on header sizes with post?,) but there is no record of a call to it in the access log when this error occurs. It is clearly being run at least partially, though. I can see a log entry I submit from within the offending servlet to localhost_log for the final SQL statement that it should be submitting to the Postgres database, and also a localhost_log entry for representing the number of cells that have been selected. The error is reproducable, but it doesn't appear to be an absolute number of cells selected, or an inherent problem with the SQL statement, or the length of the SQL statement. If you're familar with Postgres, I've used psql to run the generated SQL, and it works perfectly, although the statement takes something like 8 to 10 minutes to run. And I've set up Postgres to log all queries, and it definitely starts processing the query; but when the error occurs I get a response immediately, and it's empty. Thinking it might be a JDBC error, I wrote a simple test page which submits a SQL statement I know causes this error as a string directly through a Statement.executeQuery. Alas, after the correct amount of time, it presents a page with the correct results. myWitsI'm I don't suspect this is a bug, and I realize it could be Tomcat, Postgres, JDBC, or IE for all that, but I figure I'd start here. Any ideas or thoughts are welcome and appreciated. Colin Freas Systems Analyst Center for Population and Health Georgetown University -- 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: Stopping directory indexing
Allen, There should be a tag called ContextManager. I have not seen Linux version of server.xml but if you find this tag insert the child tag RequestInterceptor as shown in following lines - ContextManager debug=0 workDir=work showDebugInfo=false RequestInterceptor className=org.apache.tomcat.request.StaticInterceptor debug=0 suppress=true / ContextManager/ Let me know if this helped you Allen. Good luck ! Vinay -Original Message- From: Allen Harper [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 12:51 AM To: [EMAIL PROTECTED] Subject: Re: Stopping directory indexing Vinay, Sorry, Using Tomcat 4.0 standalone on linux. that tag is not in my server.xml, where does it go... Also, another person suggested that I do the following: init-param param-namelistings/param-name param-valuetrue/param-value /init-param I tried that, it did not work. What is the difference between your technique and his... allen - Original Message - From: Vinay Singh To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 5:48 AM Subject: RE: Stopping directory indexing -For Stopping directory listing look for following in server.xml of tomcat *** RequestInterceptor className=org.apache.tomcat.request.StaticInterceptor debug=0 suppress=false / *** Change to suppress=true -If you jar are lying in /WEB-INF/lib/ users cannot brows to that -Please provide context as what are you working with. tomcat ! apache ! solaris ! linux ! visual basic :) -Original Message- From: Allen Harper [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 5:52 PM To: [EMAIL PROTECTED] Subject: Stopping directory indexing How do I stop directory indexing? In other words, how do I stop the user from typing a URL pointing to a directory and getting the directory listing. Also, by default, if a user types the URL pointing to a .jar file, they can retrieve that .jar file... How can you stop that? Allen
RE: Loadbalancer connector Question
what platform I could get sticky session loadbalancing working with following - 1) Sun Solaris 8 2) Tomcat 3.2.3 3) Apache 1.3.20 with DSO 4) mod_jk Let me know if I can help you !! Vinay -Original Message- From: Gabriel Maffia [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 7:48 AM To: Tomcat Users List Subject: Loadbalancer connector Question Hi: I've finally made my Tomcat loadbalancing work, but the problem is that sessions are not sticky (For example, when I log in to my application, the connector redirects me to the other server, instead of maintaining the other through the session). Is there a way to solve this?. Thanks in advance Gabriel,.
RE: Apache+tomcat Integration....Confused....
As far as I know - 1) mod_webapp is latest and will continue to evolve 2) mod_jk will not see any future enhancements and will have only bug fixes 3) sticky session load balancing works fantastically on solaris (8) with mod_jk (BIG PLUS) 4) for load balancing with mod_webapp you have to use external s/w piece like mod_backhand etc Vinay -Original Message- From: Zineddine Reggani [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 28, 2002 1:35 PM To: '[EMAIL PROTECTED]' Subject: Apache+tomcat IntegrationConfused I am running Apache on Win2k and trying to use Apache with Tomcat. What should I choose mod_jk, mod_webapp or mod_proxy? And what are the advantages/disadvantages of these implementation?