About environment entries
Question number one : I've noticed that Tomcat 5.5.X includes environment entries definition possibility in the admin webapp. Are those of any use in a Struts framework webapp ? I would like to access their value to configure my webapps built on Struts so I could deploy them on various environments without trouble. Is it the right way ? Question number two : What's the correct and practical way to get the Tomcat path from a webapp ?? Luc Boudreau SID - Université du Québec [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
Hi fellas, I'm working on Tomcat 5.5.7 on a webapp compiled by Ant using shared and common libraries in their respective tomcat folders. My mysql driver (mysql-connector-java-3.1.10-bin.jar) is in the $CATALINA_HOME/common/lib/ folder and I still get the following message : Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' It happens when the dataSourceVariable.getConnection() method of type org.apache.commons.dbcp.BasicDataSource is called in my program. The thing is, it works fine when I put all my libraries in the wabapp/application/WEB-INF/lib/ folder but I need to share (for production purposes) the mysql driver. My Ant build.xml file includes the following directives, which include the libraries in a path variable : path id=compile.classpath pathelement location=${tomcat.home}/common/classes/ fileset dir=${tomcat.home}/common/endorsed include name=*.jar/ /fileset fileset dir=${tomcat.home}/common/lib include name=*.jar/ /fileset pathelement location=${tomcat.home}/shared/classes/ fileset dir=${tomcat.home}/shared/lib include name=*.jar/ /fileset /path And my compile target is as follows : target name=compile depends=prepare description=Compiler les sources Java mkdir dir=${build.home}/WEB-INF/classes/ javac srcdir=${src.dir} destdir=${build.dir} debug=${compile.debug} deprecation=${compile.deprecation} optimize=${compile.optimize} classpath refid=compile.classpath/ /javac !-- Copy application resources -- copy todir=${build.home}/WEB-INF/classes fileset dir=${build.dir} excludes=**/*.java/ /copy copy todir=${build.home}/WEB-INF/ fileset dir=${basedir}/WEB-INF/ includes=**/*.xml, **/*.tld, **/*.dtd/ /copy copy todir=${build.home}/WEB-INF/lib fileset dir=${basedir}/WEB-INF/lib includes=*.jar / /copy /target I've been working for over a week on this one and I'm out of ideas... if anyone has a flash, feel free to express it, who knows, it might help. Luc Boudreau SID - Université du Québec [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 classloader log4j vs JCL issue
I'm having the same issue and after trying to follow the instructions given by Paul Austin, I've got stuck on the part that says to add a listener. There's no place for a listener in web.xml according to the dtd validation file. Am I wrong ? (I'm using Tomcat 5.5.9 with the struts framework) Everything else went fine. I've created a jar file with your source code. BTW, where am I supposed to put this jar anyways ? in common/lib/ ?? And just to double check, is this log4j.xml file valid ? : --- ?xml version=1.0 encoding=UTF-8 ? !-- !DOCTYPE log4j:configuration SYSTEM log4j.dtd -- log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; appender name=ConsoleAppender class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.SimpleLayout/ /appender root priority value =debug / appender-ref ref=ConsoleAppender/ /root /log4j:configuration --- Thanks a lot Luc Boudreau SID - Université du Québec [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache-like Deny/Allow directives
The deny directives in the httpd.conf are not respected when it comes to pages ending with either of the .jsp or .do extensions, and are therefore relayed to Tomcat which then gives the response to the browser. The Deny directives are not respected for these requests. But I know that Apache still respects those directives, because all I can access from outside of my .company.com domain is the plain html, without any images or any style sheet. This behavior is confirmed by the Apache access.log and error.log Finaly, to answer your question, my problem is not that I can't restrict access to areas, it is that my restrictions defined in httpd.conf are not respected when it comes to dynamic content. Luc Boudreau Université du Québec Canada -Message d'origine- De : Justin Crabtree [mailto:[EMAIL PROTECTED] Envoyé : 15 juillet 2005 10:02 À : Tomcat Users List Objet : Re: Apache-like Deny/Allow directives [EMAIL PROTECTED] wrote: Is there any way, with Tomcat, to block connections from domains and allow only certain ones, just like the Apache directive : Order Deny,Allow Deny from all Allow from .company.com I've setup my Apache server to do this, but since all the dynamic content is relayed to tomcat (jsp's), it is still accessible to the internet. Luc Boudreau Université du Québec Canada Is there a reason you can't use Apache directives on the areas you wish to restrict? -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TR: Apache-like Deny/Allow directives
It seems that the Location directive is the right one to use. I've been using the Directory directive and it didn't block the dynamic content. Now that I've added the Location directive, it works and more, it adds a supplemental security barrier. Thanks a lot for your ideas, it really helped Luc Boudreau Université du Québec Canada -Message d'origine- De : Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Envoyé : 18 juillet 2005 10:02 À : 'Tomcat Users List' Objet : RE: Apache-like Deny/Allow directives Cant you use Location /my_secured_resource Order Deny,Allow Deny from all Allow from .company.com /Location Regards Guru -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 18 July 2005 14:30 To: tomcat-user@jakarta.apache.org Subject: Re: Apache-like Deny/Allow directives The deny directives in the httpd.conf are not respected when it comes to pages ending with either of the .jsp or .do extensions, and are therefore relayed to Tomcat which then gives the response to the browser. The Deny directives are not respected for these requests. But I know that Apache still respects those directives, because all I can access from outside of my .company.com domain is the plain html, without any images or any style sheet. This behavior is confirmed by the Apache access.log and error.log Finaly, to answer your question, my problem is not that I can't restrict access to areas, it is that my restrictions defined in httpd.conf are not respected when it comes to dynamic content. Luc Boudreau Université du Québec Canada -Message d'origine- De : Justin Crabtree [mailto:[EMAIL PROTECTED] Envoyé : 15 juillet 2005 10:02 À : Tomcat Users List Objet : Re: Apache-like Deny/Allow directives [EMAIL PROTECTED] wrote: Is there any way, with Tomcat, to block connections from domains and allow only certain ones, just like the Apache directive : Order Deny,Allow Deny from all Allow from .company.com I've setup my Apache server to do this, but since all the dynamic content is relayed to tomcat (jsp's), it is still accessible to the internet. Luc Boudreau Université du Québec Canada Is there a reason you can't use Apache directives on the areas you wish to restrict? -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache-like Deny/Allow directives
Is there any way, with Tomcat, to block connections from domains and allow only certain ones, just like the Apache directive : Order Deny,Allow Deny from all Allow from .company.com I've setup my Apache server to do this, but since all the dynamic content is relayed to tomcat (jsp's), it is still accessible to the internet. Luc Boudreau Université du Québec Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connector for apache and tomcat
Please verify first that you did not added a secont connector on port 8009 in tomcat/conf/server.xml for they cannot listen both on the same port. Second, the instructions i've provided are for mod_jk.so version 1 minor 13. Please make sure you've got the right module library. It seems to me that your module is expecting something that I didn't configure and This particular configuration works fine for me. Luc Boudreau Universit du Qubec Canada -Message d'origine- De: Christine Ho [mailto:[EMAIL PROTECTED] Envoy: 15 juin 2005 20:15 : Tomcat Users List Objet: RE: Connector for apache and tomcat Thanks. I have tried it and I still cant make it work. But it is better than before. I got HTTP status 404 - /jsp-eg/index.html. In error.log in apache, I got the following: [Wed Jun 15 15:33:04 2005] [emerg] No JkShmFile defined in httpd.conf. LoadBalancer will not function properly! No JkShmFile defined in httpd.conf. LoadBalancer will not function properly! [Wed Jun 15 15:33:08 2005] [emerg] No JkShmFile defined in httpd.conf. LoadBalancer will not function properly! In mod_jk.log in apache, I got the following: [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13 pos=0 len=96 max=8192 [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_unmarshal_response::jk_ajp_common.c (606): status = 404 [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_unmarshal_response::jk_ajp_common.c (613): Number of headers is = 2 [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[0] [Content-Type] = [text/html;charset=utf-8] [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Content-Length] = [1019] [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13 pos=0 len=1023 max=8192 [Wed Jun 15 16:42:34 2005] [3800:] [debug] ws_write::mod_jk.c (380): writing 1019 (1019) out of 1019 [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13 pos=0 len=2 max=8192 [Wed Jun 15 16:42:34 2005] [3800:] [debug] ajp_done::jk_ajp_common.c (2046): recycling connection cache slot=0 for worker ajp13 [Wed Jun 15 16:42:34 2005] [3800:] [debug] jk_handler::mod_jk.c (1959): Service finished with status=404 for worker=ajp13 I am not sure what went wrong. In httpd.conf in apache, I added/modified the following lines: ServerRoot /export/chrisho/apache2 LoadModule jk_module libexec/mod_jk.so Directory /export/chrisho/jakarta-tomcat-5.5.9/webapps/jsp-examples/WEB-INF Options -Indexes FollowSymLinks Deny from all /Directory JkWorkersFile conf/workers.properties JkLogfile logs/mod_jk.log JkLogLevel debug Alias /jsp-eg /export/chrisho/jakarta-tomcat-5.5.9/webapps/jsp-examples Alias /servlets-eg /export/chrisho/jakarta-tomcat-5.5.9/webapps/servlets-examples JkMount /jsp-eg/*.jsp ajp13 JkMount /jsp-eg/*.html ajp13 JkMount /servlets-eg/*.html ajp13 The workers.properties in apache2 looks like the following: workers.tomcat_home=/export/chrisho/jakarta-tomcat-5.5.9 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 In server.xml in tomcat 5.5.9, I added/modified the following lines: Listener className=org.apache.jk.config.ApacheConfig configHome=/export/chrisho/jakarta-tomcat-5.5.9 modJk=/export/chrisho/apache2/libexec/mod_jk.so jkWorker=ajp13 forwardAll=False jkLog=/export/chrisho/apache2/logs/jk-tomcat.log jkDebug=debug noRoot=False workersConfig=/export/chrisho/apache2/conf/workers.properties / Connector port=8009 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 protocol=AJP/1.3 / Then I restart the tomcat and apache respectively. I have no problem to go to the following link through tomcat: http://localhost:8080/jsp-examples/index.html But I have problem to go to the following link through apache: http://localhost/jsp-eg/index.html Can somebody please help me. thanks, Christine --- [EMAIL PROTECTED] wrote: Please refer to message 128209 for a complete howto. Request it by sending an email to : [EMAIL PROTECTED] __ Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't find workers file
Fedora Core 3 uses a special security system called [something I've forgot...] which runs the Apache process a it's own user name/group and prevents it from accessing files that doesn't belong to him. Search in that direction and you should find what you are looking for. Consider placing the workers.properties file in the Apache2/conf/ directory and chown and chmod it. It seems like a good old permission problem... Luc Boudreau Universit du Qubec Canada -Message d'origine- De: naidim [mailto:[EMAIL PROTECTED] Envoy: 16 juin 2005 11:08 : tomcat-user@jakarta.apache.org Objet: Can't find workers file I'm running Apache 2.0.52 and Tomcat 5.5.9 on Fedora Core 3. Both are working properly. I installed mod_jk, but when I edit httpd.conf to add JkWorkersFile I get an error starting Apache: Can't find workers file. I've checked the path, tried changing locations, nothing seems to work. Anyone seen this error before? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connector for apache and tomcat
Please refer to message 128209 for a complete howto. Request it by sending an email to : [EMAIL PROTECTED]
RE: Paths for JkMount
Hi, Well, I never made any research on Jk with Virtual Hosting, but I think this might help. It's a reply I gave to someone who asked for configuration instructions with Tomcat 5.5, Apache 2 and Jk. Hope it helps ! First, in httpd.conf, load your module : LoadModule jk_module modules/mod_jk.so Then, protect your WEB-INF directories : Directory c:/Tomcat5/webapps/exampleApp/WEB-INF Options -Indexes FollowSymLinks Deny from all /Directory Then, between section 2 and 3 of httpd.conf, add the jk configuration : JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkLogStampFormat %a %b %d %Y - %H:%M:%S -=- Create an alias : Alias /exampleApp c:/Tomcat5/webapps/exampleApp Define which files are to be served by Tomcat : JkMount / exampleApp/*.jsp tomcat5 JkMount / exampleApp/*.do tomcat5 (Note that here, tomcat5 refers to the name of the worker as defined in the workers.properties file. See below for details) Create two empty log files within the conf directory of apache with 777 rights : mod_jk.log and jk-tomcat5.log Create a workers.properties file in your Apache/conf directory and add this : ps=/ worker.list=tomcat5 worker.tomcat5.port=8008 worker.tomcat5.host=localhost worker.tomcat5.type=ajp13 worker.tomcat5.lbfactor=1 (This is a VERY simple configuration file. Refer to the Apache Jakarta webpage for details on how to configure this file.) In your Tomcat server.xml file, under the line : Server port=8005 shutdown=SHUTDOWN debug=1\ Add the following : Listener className=org.apache.jk.config.ApacheConfig configHome=c:\Tomcat5\ modJk=c:\Apache2\modules\mod_jk.so jkWorker=tomcat5 forwardAll=False jkLog=c:\Apache2\logs\jk-tomcat5.log jkDebug=debug noRoot=False workersConfig=c:\Apache2\conf\workers.properties / At last, inside the Service (...) tag, add: Connector port=8008 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector There you are ! It took me three days to figure that out, hope it serves you well !
RE: Paths for JkMount
Hi, I used relative path to mount files to Tomcat with the JkMount directive so I don't think your problem comes from that. First. Be sure that : - Aliasses have been created in httpd.conf - Your JkMount directives are placed between section 2 And 3 of httpd.conf - Your JkMount directives are placed AFTER the Alias Directives If that doesn't work, let us know. Luc Boudreau Université du Québec Canada -Message d'origine- De : Greg Scott [mailto:[EMAIL PROTECTED] Envoyé : 11 juin 2005 23:41 À : tomcat-user@jakarta.apache.org Cc : [EMAIL PROTECTED]; Joan Kinnischtzke; Michael R Ponicki Objet : Paths for JkMount Hello - I am working on a proof of concept application, porting from tomcat 3.n and Apache 1.3 to Tomcat 5.5.9 and Apache 2.0.52. The problem - every time this app would try to execute a .jsp file, Apache would return an error. After a bunch of troubleshooting in httpd.conf, I found the problem. It was these JkMount directives: JkMount /servlets/* worker1 JkMount /*.jsp worker1 JkMount /*.do worker1 I was assuming these paths were all really relative to my DocumentRoot - but noo! The path evidently needs to be a real, absolute path. These directives work: JkMount /var/www/html/{approot}/servlets/* worker1 JkMount /var/www/html/{approot}/*.jsp worker1 JkMount /var/www/html/{approot}/*.do worker1 (where {approot} is the directory with all the html, jsp, and other files.) And now the app seems to behave properly. But this bothers me - aren't all these supposed to be relative to DocumentRoot? Am I missing something or are JkMount directives supposed to point to an absolute path? Thanks - Greg Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - Apache - Jk
Is it normal that Apache configured to relay jsp's to Tomcat doesn't write the contents of the page (jpeg, gif, css and others) in it's access log ? I've configured Apache to relay only .jsp and .do requests, how is it that the images don't show up in the access log ??? Luc Boudreau Université du Québec Canada
RE: Module jk2 and jk Connectormodules
Hi, Jk suse 9.1 binary? Yes, you need a binary module suitable for your OS. Or, you still can try tom compile it for your system, but it's not recommended since it's too long for not so many more advantages. Same: /, \ for suse? Of course, you have adapt the paths to match your OS logical structure. On *nix, use /, and on window$, use \. After the loaded modules? Well, just insert your directives right before section three. (Therefore after section 2...) In the httpd.conf, too? Yes, we're still in the httpd.conf file. Hope it helps ! And thanks for the link !! Luc Boudreau Université du Québec Canada -Message d'origine- De : Andreas Bauer [mailto:[EMAIL PROTECTED] Envoyé : 7 juin 2005 09:49 À : 'Tomcat Users List' Objet : Re: Module jk2 and jk Connectormodules Hello! Btw, here is another link: http://www.dynamicobjects.com/d2r/archives/002574.html After doing this script, jk2 works for me in win xp, but not in Suse 9.2. I hope, it helps you anyway and you can use it somehow. I have still questions. LoadModule jk_module modules/mod_jk.so Jk suse 9.1 binary? Then, protect your WEB-INF directories : Directory c:/Tomcat5/webapps/exampleApp/WEB-INF Options -Indexes FollowSymLinks Deny from all /Directory Same: /, \ for suse? Then, between section 2 and 3 of httpd.conf, add the jk configuration : After the loaded modules? Create an alias : Alias /exampleApp c:/Tomcat5/webapps/exampleApp Define which files are to be served by Tomcat : JkMount / exampleApp/*.jsp tomcat5 JkMount / exampleApp/*.do tomcat5 In the httpd.conf, too? Best regards and many thanks Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Module jk2 and jk Connectormodules
I've configured lately such a configuration. I first tried to use the jk2 module, but soon discovered that it was deprecated and much more complex to use. I really recommend using jk. There are big differences in the configuration directives required in the httpd.conf by jk and jk2. Since I've never succeded in installing jk2, I'll provide you with instructions regarding jk. First, in httpd.conf, load your module : LoadModule jk_module modules/mod_jk.so Then, protect your WEB-INF directories : Directory c:/Tomcat5/webapps/exampleApp/WEB-INF Options -Indexes FollowSymLinks Deny from all /Directory Then, between section 2 and 3 of httpd.conf, add the jk configuration : JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkLogStampFormat %a %b %d %Y - %H:%M:%S -=- Create an alias : Alias /exampleApp c:/Tomcat5/webapps/exampleApp Define which files are to be served by Tomcat : JkMount / exampleApp/*.jsp tomcat5 JkMount / exampleApp/*.do tomcat5 (Note that here, tomcat5 refers to the name of the worker as defined in the workers.properties file. See below for details) Create two empty log files within the conf directory of apache with 777 rights : mod_jk.log and jk-tomcat5.log Create a workers.properties file in your Apache/conf directory and add this : ps=/ worker.list=tomcat5 worker.tomcat5.port=8008 worker.tomcat5.host=localhost worker.tomcat5.type=ajp13 worker.tomcat5.lbfactor=1 (This is a VERY simple configuration file. Refer to the Apache Jakarta webpage for details on how to configure this file.) In your Tomcat server.xml file, under the line : Server port=8005 shutdown=SHUTDOWN debug=1\ Add the following : Listener className=org.apache.jk.config.ApacheConfig configHome=c:\Tomcat5\ modJk=c:\Apache2\modules\mod_jk.so jkWorker=tomcat5 forwardAll=False jkLog=c:\Apache2\logs\jk-tomcat5.log jkDebug=debug noRoot=False workersConfig=c:\Apache2\conf\workers.properties / At last, inside the Service (...) tag, add: Connector port=8008 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector There you are ! It took me three days to figure that out, hope it serves you well ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Integration
After the whole day searching for answers in the Jakarta docs, I've come up with something. I made a whole howto which I'll publish right after I test it. It turns out that many docs published by people about Tomcat/Apache integration are wrong and make big mistakes. A lot of them mix-up jk and jk2 configuration or get confused with the (not so) numerous configuration files. For example, a lot of people added a path to tomcat in the workers.properties file. The only concern I have for the moment is how will react a machine with two Tomcat installations running at the same time. I'll be fixed on that today. After a lot of reading and sorting things out, once it's all tested, I will publish this guide. Is there any already well known website on which I can publish ? Luc Boudreau Université du Québec Canada -Message d'origine- De : QM [mailto:[EMAIL PROTECTED] Envoyé : 30 mai 2005 09:06 À : Tomcat Users List Objet : Re: Apache Integration On Mon, May 30, 2005 at 08:28:32AM -0400, [EMAIL PROTECTED] wrote: : connect both Tomcat 4 and Tomcat 5 to the httpd server. : : If I use mod_jk, I have to specify the path to a tomcat installation in the : workers.properties in the Apache2/conf/httpd.conf file. So, there's no way to : connect both and relay to the right server using the appropriate folder : alias. Are you using JK1 (supported) or JK2 (deprecated)? I use JK1 and there's no explicit path to the Tomcat install in the config file. Tomcat isn't even installed on the Apache/httpd machine. =) So what do you mean by path to a tomcat installation? -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Integration
Well, things got a bit more complicated lately. Now, my bos wants me to connect both Tomcat 4 and Tomcat 5 to the httpd server. If I use mod_jk, I have to specify the path to a tomcat installation in the workers.properties in the Apache2/conf/httpd.conf file. So, there's no way to connect both and relay to the right server using the appropriate folder alias. Is there any other connector which could support two tomcat installation ? I've read about mod_jk, mod_jk2 but I remember seeing a third connector module. Does anyone ever succeeded in installing such a configuration ?? Luc Boudreau Université du Québec Canada
Apache Integration
I'm trying to setup an Apache 2.X server to relay JSP's to a Tomcat 5.5 server. So far, the information I've found is fragmented and out of date. It concerns Tomcat 3.2 and the libraries used by this « hot-to » are deprecated. For example, it says to install the mod_jserv module, which is not suitable for Apache 2. The best document I've found so far is « Tomcat - A minimalist user's guide ». I will have to proceed to an installation on a production server. I cannot fail this installation and it has to succeed the first time. Is there anyone who came upon a complete guide on how to proceed ?? Does anyone ever installed those two versions together and has valuable advice ? Luc Boudreau Université du Québec Canada
Context Class with Tomcat 5.5.7
I'm developping on Tomcat 5.5.7 and I want to use the Environment Entries with my servers. To access those entries, it seems like I need to use the Context class located in the package org.apache.tomcat.core.Context. I cannot find this package or the source code for this class. Is there : 1. Another way to access the entrie's value; 2. A precompiled package available; 3. Source code available; Thanks ! Luc Boudreau Université du Québec Canada