apache -- tomcat (mod_jk) works on localhost but not other hosts
I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, although I can connect to apache. As follows: These work on localhost: http://localhost --apache http://localhost/servlets-examples --tomcat (So do these of course: http://localhost:8080/ --tomcat http://localhost:8080/servlets-examples --tomcat) And this is what happens on another host: http://hostname --apache http://hostname/servlets-examples --404 file not found http://hostname:8080/servlets-examples --tomcat OS = RHEL 4 Apache 2.0.52-19.ent (Red Hat RPM) Tomcat 5.5.9-1jpp_5rh (Red Hat RPM) mod_jk-ap20-1.2.6-3jpp_7rh (Red Hat RPM) (Red Hat apparently doesn't offer a mod_jk2) It was setup according to Pro Jakarta Tomcat 5 (Moodie, 2005), although I'm sure it's not the book's fault. Basically I modified server.xml to autogen mod_jk.conf and added listener to Host, modified workers.properties, and httpd.conf. I have a feeling this is something simple, and I have tried to find an answer with no luck. If anyone has any suggestions I would be greatly appreciative. Scott __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
On Mon, 10 Oct 2005 09:01:04 -0700 (PDT) tomcat-user@jakarta.apache.org wrote: I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, Please send us your workers.properties and httpd.conf. -- Lyndon Tiu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
--- Lyndon Tiu [EMAIL PROTECTED] wrote: On Mon, 10 Oct 2005 09:01:04 -0700 (PDT) tomcat-user@jakarta.apache.org wrote: I'm very new to tomcat and apache. I've set up apache to forward to tomcat using mod_jk. It works fine on the localhost, but if I try to connect through to tomcat from any other host I get 404 file not found, Please send us your workers.properties and httpd.conf. attached, tia, scott __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache -- tomcat (mod_jk) works on localhost but not other hosts
Thanks for the tip Lyndon. It took a few tries, but I finally got it right, I think! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Apache Tomcat Web Root Path Disclosure Vulnerability
Hello, One of our customers running Apache Tomcat version 4.1.29 ran some type of a vulnerability scanner which detected an "Apache Tomcat Web Root Path Disclosure Vulnerability". Did some research on the net and many sites mentioned that this vulnerability only affected 4.0.3. But I want to get confirmation from this forum. Thanks. Vineet BhatiaTechnical Support Engineering MailFrontier, Inc.http://www.MailFrontier.com Please leave original e-mail in place when replying.
Re: Apache Tomcat Virtual Host question
Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Thanks in advance. Aria. On Wed, 05 Oct 05 13:25:38 -0400 Aria Bamdad said: Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I am not really interested in the host name part of the URL, I am more interested in the port number. I have 3 different document roots depending on the port. One for port 80 http requests, one for port 443 https requests and another for port 88 http. Each document root has it's set of subdirectories. The subdirectories contain static and jsp content and you **CAN** have the same directory name under each of the three different document roots. For example: I can have /www/port80/project1 and /www/port443/project1 but they contain different information. How do I configure Apache and Tomcat so that when Apache receives a request on a specific port, it will pass that along to Tomcat, AND, how do I configure Tomcat so that it servs the correct 'project1' application under the correct document root? Thanks inadvance. Aria. - 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: Apache Tomcat Virtual Host question
Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Well, having different presentations by using different port numbers is not a common practice these days, since Apache has Name-based VHosts. Similarely, Tomcat supports Name-based VHosts only (unless I am greatly mistaken). So, it would appear that your solution is the only applicable one. The best choice is, of course, to go for name based VHosts, since it integrates very well and makes your URLs look nice. BTW, 443 is HTTPS port, which is different story. So, save yourself a lot of trouble and go for unified VHosts. One observation, though - with multiple instances of TC you have greater robustness. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat Virtual Host question
Nikola, Thank you very much for you good comments. I agree that port based servers are not common. The reason we use them is for separating for example internal web sites and external public web sites. Using host name based virtual hosting, you have to give a different host name to each port. For example if you were serving http and https on the same host www.company.com, you now have to use secure.company.com for your port 443 and www.company.com for your port 80. I just wanted to see if there is a way to just use www.company.com and have Tomcat see the port too. Thanks again. Aria On Thu, 06 Oct 2005 15:33:15 +0200 you said: Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Well, having different presentations by using different port numbers is not a common practice these days, since Apache has Name-based VHosts. Similarely, Tomcat supports Name-based VHosts only (unless I am greatly mistaken). So, it would appear that your solution is the only applicable one. The best choice is, of course, to go for name based VHosts, since it integrates very well and makes your URLs look nice. BTW, 443 is HTTPS port, which is different story. So, save yourself a lot of trouble and go for unified VHosts. One observation, though - with multiple instances of TC you have greater robustness. Nix. - 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 Tomcat Virtual Host question
Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I am not really interested in the host name part of the URL, I am more interested in the port number. I have 3 different document roots depending on the port. One for port 80 http requests, one for port 443 https requests and another for port 88 http. Each document root has it's set of subdirectories. The subdirectories contain static and jsp content and you **CAN** have the same directory name under each of the three different document roots. For example: I can have /www/port80/project1 and /www/port443/project1 but they contain different information. How do I configure Apache and Tomcat so that when Apache receives a request on a specific port, it will pass that along to Tomcat, AND, how do I configure Tomcat so that it servs the correct 'project1' application under the correct document root? Thanks inadvance. Aria. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring https on apache tomcat 5.5.9
Hi all, I am trying to configure tomcat 5.5.9 with SSL support.I followed the instructions from apache site. But the problem is I can use the server ay 8080 but at 8443 it's not workin with https. I am not getting any exception.Everything is showing fine.but the port is not open.I think some one can help me. thanks in advance vineesh
[ANN] Apache Tomcat 5.5.12-alpha Released
23 September 2005 - Apache Tomcat 5.5.12-alpha Released The Apache Tomcat team is proud to announce the immediate availability of Tomcat 5.5.12-alpha. This version contains several bug fixes, including an import change to session attribute storage concurrency that is required by the upcoming Servlet Specification v2.5. In addition to these changes, this release is a significant milestone for two reasons: This release is the last one to be done using the CVS repository at Apache. The Tomcat team is moving to the Subversion (SVN) repository as part of the overall Apache initiative to do so. Access instructions for the SVN repository are available at http://www.apache.org/dev/version-control.html. The move is expected to be complete within the next week. This release is also likely the last one to use the Jakarta pages. As part of Tomcat's move to a top-level project (TLP) at Apache, we will be migrating our content to http://tomcat.apache.org, which is still under construction at this time. That site will have its own download pages and related information. We will keep the key jakarta URLs intact with redirection, but please keep an eye out and update your bookmarks to http://tomcat.apache.org as/when appropriate. As part of the TLP move, distribution names have changed from jakarta-tomcat-* to apache-tomcat-*, and similar minor branding changes will gradually become visible in the web site and documentation. We thank the Jakarta project for its support over the years, and we will continue collaborating on projects and issues of common interest. The Release notes are available at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES Please refer to the change log for the list of changes: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html Downloads: Binaries: http://jakarta.apache.org/site/binindex.cgi#tomcat-5.5 Sources: http://jakarta.apache.org/site/sourceindex.cgi#tomcat-5.5 The Apache Tomcat Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RES: Problems with gzip compression with Apache/Tomcat cluster and Firefox
You need mod_gzip or mod_deflate(?) if your using apache in front of tomcat (via jk) -Tim Acácio Furtado Costa wrote: Hi We're having problems to configure gzip using TC559/Apache Cluster... We moved the compression=on and others gzip declarations from connector 80 to 8009 in all Tomcat Servers but it seems that Apache isn't serving gzipped html... Do we also need to make any gzip configurations (mod_gzip?) in the Apache Server itself? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Problems with gzip compression with Apache/Tomcat cluster and Firefox
Hi We're having problems to configure gzip using TC559/Apache Cluster... We moved the compression=on and others gzip declarations from connector 80 to 8009 in all Tomcat Servers but it seems that Apache isn't serving gzipped html... Do we also need to make any gzip configurations (mod_gzip?) in the Apache Server itself? Thanks in advance! Acacio Furtado Costa Pesquisa e Tecnologia GIA - Magnesita S/A ((0xx31) 3368-1349 * [EMAIL PROTECTED] -Mensagem original- De: B.J. Guillot [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 20 de maio de 2005 13:15 Para: tomcat-user@jakarta.apache.org Assunto: Problems with gzip compression with Apache/Tomcat cluster and Firefox We have recently been experimenting with enabling gzip/deflate compression via our Apache/Tomcat cluster, but have encountered some problems with the way the compression works with the Firebox browser. When Firefox brings up a compressed page for the first time, it looks fine. If they reload a static html page, bizarre things start to happen. In some cases, garbage just gets displayed on screen (looks like the actual gzip encoded stream), and other times Firefox displays a dialog box asking if you want to download the html files. When IE is used, it works fine. Some background: Running two-node Tomcat 5.5.4 cluster using JK2 2.0.4 protocol to communicate back to Apache2 2.0.52 for load balancing. Browsers tried were Firefox 1.0.3 and Internet Explorer 6.0. If I use Tomcat's gzip compression alone with Firefox, it works fine. It's only when we through in Apache and JK2 into the mix with the cluster that Firefox displays charged. It seems to be an issue related to the way that compressed pages get cached. I'm not sure if the problem lies with Tomcat, Apache, JK2, or Firefox itself. Can anyone provide some pointers? Thanks. Regards, B.J. Guillot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Apache tomcat
I need help to configure jakarta-tomcat to send a high volume of packet sockets trhought a servlet application. It should send aprox 5000 sockets in a short time Can someone recommend me a configuration of maxThreads etc, at the web.xml file. I think what you are looking for is an application to excercise your Tomcat setup. Try looking at Apache JMeter, which is a good all round testing tool. As for the recommendation of settings, this is something that you are going to have to find out for yourself. Since your test is to only over 15 minutes, then it should be easy for you to setup a set of benchmarks, adjusting values each time to observe the 'cause-n-effect'. The key thing to this sort of testing, is changing only one variable at a time. And remember, this is only ever going to be a general performance tune for that given application. As soon as you move to another servlet or JSP page, you will have to start the profiling all over again. Hope this helps, alan -- Alan Williamson, Technology Evangelist SpikeSource Inc. Daily OS News @ http://compiledby.spikesource.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Apache tomcat
Hi all, I'm new at the list, my name is Raul. I need help to configure jakarta-tomcat to send a high volume of packet sockets trhought a servlet application. The server is dual processor Intel 3.4Ghz 4 Gb RAM. It should send aprox 5000 sockets in a short time (About 15 minutes max) Can someone recommend me a configuration of maxThreads etc, at the web.xml file. Thanks on advance Raúl.
[ANN] Apache Tomcat v5.5.11-alpha Released
The Apache Tomcat team is proud to announce the immediate availability of Apache Tomcat 5.5.11-alpha, which includes bugfixes over Apache Tomcat 5.5.10-alpha. The Release notes are available at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES Please refer to the change log for the list of changes: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html Downloads: Binaries: http://jakarta.apache.org/site/binindex.cgi#tomcat-5.5 Sources: http://jakarta.apache.org/site/sourceindex.cgi#tomcat-5.5 The Apache Tomcat Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't start tomcat: java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler
Hello! I've been searching on the web for someone with a similar problem, but I had no success. I hope someone of you can help! I have a Mandriva Linux system, running the latest Java VM (JDK 1.5). I downloaded Tomcat 5.5.9, and it works fine when executed from a local account. Nevertheless, when trying to run it from a (NIS) remote account, which actually acceses its home directory via NFS, I get the following error: java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler at java.lang.Class.getDeclaredConstructors0 (Native Method) at java.lang.Class.privateGetDeclaredConstructors (Class.java:2328) at java.lang.Class.getConstructor0 (Class.java:2640) at java.lang.Class.newInstance0 (Class.java:321) at java.lang.Class.newInstance (Class.java:303) at org.apache.catalina.startup.Bootstrap.init (Bootstrap.java:201) at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:386) I don't know if the problem lies on the environment variables, or file permissions, or what! Can anyone of you help me on this? Thanx Carlos F. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache-tomcat front/backend problems
Hi there first time mailing to this list so apologies if this is not the place to ask this question. if so, please tell me where to go. (yes, I know. whole heap of dodgy replies to that last sentence. :) I've recently configured an apache front end with virtual hosting on port 8000 to relay to port 8009 etc on tomcat. This set of errors keeps appearing when I try to access the host:8000. Any ideas please anyone? all and any help appreciated deeply. thanks v. much Steve (errors from apache log follow) [Thu Aug 18 17:36:57 2005] [notice] channelApr.open(): create tcp socket 135599344 [Thu Aug 18 17:36:57 2005] [error] channelApr.open() attempt to connect to xxx.xxx.xxx.xxx:8009 (tchost) failed 111 [Thu Aug 18 17:36:57 2005] [error] ajp13.connect() failed ajp13:tchost:8009 [Thu Aug 18 17:36:57 2005] [error] ajp13.service() failed to connect endpoint errno=9 Bad file descriptor [Thu Aug 18 17:36:57 2005] [error] ajp13.service() Error forwarding ajp13:tchost:8009 1 1 [Thu Aug 18 17:36:57 2005] [notice] ajp13.done() close endpoint ajp13:tchost:8009 error_state 1 [Thu Aug 18 17:36:57 2005] [error] mod_jk.handler() Error connecting to tomcat 12 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache-tomcat front/backend problems
Hi there first time mailing to this list so apologies if this is not the place to ask this question. if so, please tell me where to go. (yes, I know. whole heap of dodgy replies to that last sentence. :) I've recently configured an apache front end with virtual hosting on port 8000 to relay to port 8009 etc on tomcat. This set of errors keeps appearing when I try to access the host:8000. Any ideas please anyone? all and any help appreciated deeply. thanks v. much Steve (errors from apache log follow) [Thu Aug 18 17:36:57 2005] [notice] channelApr.open(): create tcp socket 135599344 [Thu Aug 18 17:36:57 2005] [error] channelApr.open() attempt to connect to xxx.xxx.xxx.xxx:8009 (tchost) failed 111 [Thu Aug 18 17:36:57 2005] [error] ajp13.connect() failed ajp13:tchost:8009 [Thu Aug 18 17:36:57 2005] [error] ajp13.service() failed to connect endpoint errno=9 Bad file descriptor [Thu Aug 18 17:36:57 2005] [error] ajp13.service() Error forwarding ajp13:tchost:8009 1 1 [Thu Aug 18 17:36:57 2005] [notice] ajp13.done() close endpoint ajp13:tchost:8009 error_state 1 [Thu Aug 18 17:36:57 2005] [error] mod_jk.handler() Error connecting to tomcat 12 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache/Tomcat integration - What am I doing wrong?
Hi, I really hope you folk can help me, cause I'm tearing my hair out. Apache 2.0.54 Tomcat 5.5.9 JK 1.2.14.1 I have Apache serving multiple VHosts. I want to (eventually) integrate different versions of Tomcat into different VHosts, but for now, I'd settle for just 5.5.9 working with my default Apache VHost. Apache works dandy alone on :80. Tomcat works just fine on :8080. I have the jsp-examples and servlets-examples pages displaying from host.domain.com/.. But I have not yet managed to get www.host.domain.com/prefix-examples/this_or_that_example to work without returning a 500 Error. Likewise, I am unable to get the host.domain.com/admin, host.domain.com/manager/html or host.domain.com/manager/status to display over :80 Various errors I am seeing are; File does not exist /opt/www/root/jsp-examples/this_or_that_example File does not exist /opt/www/root/admin or /admin just displays the index. Files look like this; httpd.conf == ServerName host.domain.com:80 UseCanonicalName Off DocumentRoot /opt/www/root .. .. VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName host.domain.com ErrorLog logs/host-defaulthost-error_log CustomLog logs/host-defaulthost-access_log common Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf-hostname /VirtualHost -- server.xml == . Connector port=8009 enableLookups=false protocol=AJP/1.3/ Engine name=Catalina defaultHost=host.domain.com Host name=host.domain.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaslocalhost/Alias /Host Listener className=org.apache.jk.config.ApacheConfig modJk=/opt/httpd/modules/mod_jk.so workersConfig=/opt/jakarta-tomcat-5.5.9/conf/workers.properties forwardAll=false jkLog=/var/log/httpd/mod_jk.log jkDebug=info jkWorker=ajp13Wkr/ /Engine /Service /Server -- workers.properties == workers.tomcat_home=/opt/jakarta-tomcat-5.5.9 #workers.tomcat_home=/opt/tomcat workers.java_home=/opt/java ps=/ # The workers that your plugins should create and work with # worker.list=ajp13Wkr, inprocess worker.ajp13Wkr.port=8009 worker.ajp13Wkr.host=host.domain.com worker.ajp13Wkr.type=ajp13 worker.ajp13Wkr.lbfactor=1 worker.ajp13Wkr.cachesize=30 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13Wkr worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)client$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) - and the included file in the httpd.conf VHost above mod-jk.conf-hostname JkWorkersFile /opt/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %d %b %Y %H:%M:%S] JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories JkRequestLogFormat %w %V %T # Static files Alias /admin /opt/jakarta-tomcat-5.5.9/server/webapps/admin Directory /opt/jakarta-tomcat-5.5.9/server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm Order allow,deny Allow from All /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None deny from all /Location Location /admin/META-INF/* AllowOverride None deny from all /Location JkMount /admin/j_security_check ajp13Wkr JkMount /admin/index.jsp ajp13Wkr JkMount /admin/host/hosts.jsp ajp13Wkr JkMount /admin/saved.jsp ajp13Wkr JkMount /admin/server/server.jsp ajp13Wkr JkMount /admin/resources/dataSource.jsp ajp13Wkr .. ### # with lots more mappings as generated by tomcat. # ### # Static files Alias /jsp-examples /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples Directory /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm Order allow,deny Allow from all /Directory # Deny direct access to WEB-INF and META-INF # Location /jsp-examples/WEB-INF/* AllowOverride None deny from all /Location
Re: Apache/Tomcat integration - What am I doing wrong?
Kyle wrote: I have Apache serving multiple VHosts. I want to (eventually) integrate different versions of Tomcat into different VHosts, but for now, I'd settle for just 5.5.9 working with my default Apache VHost. Apache works dandy alone on :80. Tomcat works just fine on :8080. I have the jsp-examples and servlets-examples pages displaying from host.domain.com/.. But I have not yet managed to get www.host.domain.com/prefix-examples/this_or_that_example to work without returning a 500 Error. First is it apache or tomcat that is returning the 500 ? This might be easiest found setting up logging of your specific VHost in apache to a different file than the default apache logs (that are in apache/logs/). Then breaking the ServerName and ServerAlias configuration in apache (restarting apache inbetween) and checking to see that the request you put through with say wget is being directed by apache to the correct Apache VHost logfile. I would revise your JkMount to look like: JkMount /admin/* ajp13Wkr This will pass-thru apache everything for the webapp to TC. I would also remove inprocess from the worker.list settings. Once you have that established you can then work on your JkMount settings and Tomcat. Have you checked out, understood and implement the information in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases ? I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. Likewise, I am unable to get the host.domain.com/admin, host.domain.com/manager/html or host.domain.com/manager/status to display over :80 Various errors I am seeing are; File does not exist /opt/www/root/jsp-examples/this_or_that_example File does not exist /opt/www/root/admin or /admin just displays the index. Files look like this; httpd.conf == ServerName host.domain.com:80 UseCanonicalName Off DocumentRoot /opt/www/root .. .. VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName host.domain.com ErrorLog logs/host-defaulthost-error_log CustomLog logs/host-defaulthost-access_log common Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf-hostname /VirtualHost -- server.xml == . Connector port=8009 enableLookups=false protocol=AJP/1.3/ Engine name=Catalina defaultHost=host.domain.com Host name=host.domain.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaslocalhost/Alias /Host Listener className=org.apache.jk.config.ApacheConfig modJk=/opt/httpd/modules/mod_jk.so workersConfig=/opt/jakarta-tomcat-5.5.9/conf/workers.properties forwardAll=false jkLog=/var/log/httpd/mod_jk.log jkDebug=info jkWorker=ajp13Wkr/ /Engine /Service /Server -- workers.properties == workers.tomcat_home=/opt/jakarta-tomcat-5.5.9 #workers.tomcat_home=/opt/tomcat workers.java_home=/opt/java ps=/ # The workers that your plugins should create and work with # worker.list=ajp13Wkr, inprocess worker.ajp13Wkr.port=8009 worker.ajp13Wkr.host=host.domain.com worker.ajp13Wkr.type=ajp13 worker.ajp13Wkr.lbfactor=1 worker.ajp13Wkr.cachesize=30 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13Wkr worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)client$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) - and the included file in the httpd.conf VHost above mod-jk.conf-hostname JkWorkersFile /opt/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %d %b %Y %H:%M:%S] JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories JkRequestLogFormat %w %V %T # Static files Alias /admin /opt/jakarta-tomcat-5.5.9/server/webapps/admin Directory /opt/jakarta-tomcat-5.5.9/server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm Order allow,deny Allow from All /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None
Re: Apache/Tomcat integration - What am I doing wrong?
Darryl, thanks the reply. Responses inline Darryl L. Miles wrote: Kyle wrote: I have Apache serving multiple VHosts. I want to (eventually) integrate different versions of Tomcat into different VHosts, but for now, I'd settle for just 5.5.9 working with my default Apache VHost. Apache works dandy alone on :80. Tomcat works just fine on :8080. I have the jsp-examples and servlets-examples pages displaying from host.domain.com/.. But I have not yet managed to get www.host.domain.com/prefix-examples/this_or_that_example to work without returning a 500 Error. First is it apache or tomcat that is returning the 500 ? I'll leave the 500 question till I can be certain of the answer. I thought it could only be Apache. Will however ensure now. Then breaking the ServerName and ServerAlias configuration in apache (restarting apache inbetween) Not certain I understand what you mean here. Break them ... ?? Do you simply mean give the default VHost a diff. name to the general ServerName directive above? I would revise your JkMount to look like: JkMount /admin/* ajp13Wkr This will pass-thru apache everything for the webapp to TC. The multiple jkMount Directives are auto-generated by Tomcat. I could revise. I just thought it best to just leave them. I suspect they are so that IF I were to put any static content in those directories, Apache would pick it up instead. Once you have that established you can then work on your JkMount settings and Tomcat. Have you checked out, understood and implement the information in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases ? Interesting question. Read it, I have. It is not however clear to me as to whether or not TC _MUST_ have a _Different_ VirtualHost Name than the default VHost name in Apache or whether it should be the same. And then whether or not an Alias can or cannot be the same as some other name for that same machine. Does this mean effectively there should be 3 different names for the same machine to function in this manner? I.e. The ServerName directive in httpd.conf The ServerName for the default VHost AND yet ANother different defaultHost/Host name for Tomcat I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. So far, I am only trying to view the examples and default admin app.s that come bundled with TC. If I understand you correctly here, you are effectively saying that the auto-conf file generated by TC is not up to the job and I should dump it in favour of manual inline config. MTiA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - What am I doing wrong?
Kyle wrote: But I have not yet managed to get www.host.domain.com/prefix-examples/this_or_that_example to work without returning a 500 Error. First is it apache or tomcat that is returning the 500 ? I'll leave the 500 question till I can be certain of the answer. I thought it could only be Apache. Will however ensure now. Then breaking the ServerName and ServerAlias configuration in apache (restarting apache inbetween) Not certain I understand what you mean here. Break them ... ?? Do you simply mean give the default VHost a diff. name to the general ServerName directive above? I mean when you are stuck and don't know. Somethings are easier to deliberatly break the configuration and observe the result (i.e. where the error shows up now). Since you are trying to work out if the 500 is being produced directly from Apache or is a response apache is just relaying that really came from Tomcat. It smells like apache to me, but until you can prove it you wont really know. You need to confirm that requests for the vhost are being correctly routed into the VirtualHost section of the apache config. If they are not then there is no sense looking at the JkMount configuration yet. So if you have logging setup in apache both in the global config /usr/local/apache/log/access_log and in the VirtualHost ... section to /tmp/foobar/someother/file/access_log then depending upon which file the request gets logged will confirm to you that Apache is correctly configured and working for vhost operation and the VirtualHost ... section your JkMount's are in it indeed coming into play. JkMount /admin/* ajp13Wkr This will pass-thru apache everything for the webapp to TC. I would revise your JkMount to look like: The multiple jkMount Directives are auto-generated by Tomcat. I could revise. I just thought it best to just leave them. I suspect they are so that IF I were to put any static content in those directories, Apache would pick it up instead. Yes. But in the situation you are in, setting up /admin/* should make Apache bounce the request off Tomcat if it was not table to serve the content itself. I am not at all sure what the order of preceedence is with mixing Alias, JkMount or if the file itself it found in the document root. Once you have that established you can then work on your JkMount settings and Tomcat. Have you checked out, understood and implement the information in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases ? Interesting question. Read it, I have. It is not however clear to me as to whether or not TC _MUST_ have a _Different_ VirtualHost Name than the default VHost name in Apache or whether it should be the same. And then whether or not an Alias can or cannot be the same as some other name for that same machine. Does this mean effectively there should be 3 different names for the same machine to function in this manner? I.e. The ServerName directive in httpd.conf The ServerName for the default VHost AND yet ANother different defaultHost/Host name for Tomcat Different No. The idea is that you can service some content via Apache directly (maybe this is also PHP or Perl) and other content via Apache+Tomcat. Apache is always in control, if the request is not forwarded to Tomcat then you will see the usual Apache like responses (404). So if you want to a single hostname in the URL then you need to configure both Apache (ServerName/ServerAlias) and Tomcat (Host / Alias) to responsd to the same hostname. I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. So far, I am only trying to view the examples and default admin app.s that come bundled with TC. If I understand you correctly here, you are effectively saying that the auto-conf file generated by TC is not up to the job and I should dump it in favour of manual inline config. No... I'm not saying that I have no idea your Apache configuration was auto-generated by TC. I'm just offering you a methodoligy to observe some change in behaviour so you can work through the problem yourself. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - Update
Ok, One step at a time. Thanks so far Darryl. I now have it working across the internal network, but not externally. The next step is what do I now need to do so that I can see the jsp/servlets-examples pages externally?? Also, as I understand it, this format means that TC 5.5.9 will be the only one available to ALL VHosts. I need to set up different Tomcat versions with the different VHosts. Another day's question for now. {For reference, I have included the changes made to my originally mailed config at the bottom.} As follow up to earlier questions; You need to confirm that requests for the vhost are being correctly routed into the VirtualHost section of the apache config. If they are not then there is no sense looking at the JkMount configuration yet. ... logging is set up differently for the global config and the default VHost. It is the VHost error log which is displaying the File does not exist errors. This file registered these internally initially and it is now still this file which is registering the same error for external calls. So if you want to a single hostname in the URL then you need to configure both Apache (ServerName/ServerAlias) and Tomcat (Host / Alias) to responsd to the same hostname. it is precisely this combo which didn't work. Engine defaultHost=same_as_Apache_ServerName__Default_VHost Host name=same_as_Apache_ServerName__Default_VHost Aliaslocalhost/Alias I have now switched them (see below) and it appears to work. I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. How do you mean TC can and will delete the directory from under Apache? Which directory do you mean? At this point, I am only trying to view the WARs bundled with TC. I am starting TC before Apache with the apps already deployed (so far). Thanks again. Kyle == httpd.conf now looks like; -- ServerName host.domain.com:80 . VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName host.domain.com ErrorLog logs/host-defaulthost-error_log CustomLog logs/host-defaulthost-access_log common /VirtualHost Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf JkLogStampFormat [%a %d %b %Y %H:%M:%S] JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories JkRequestLogFormat %w %V %T server.xml has been switched (localhost now defaultHost - surely this can't be right) -- Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliashost.domain.com/Alias and mod_jk.conf is almost the std. auto-generated file from TC with the minor additions of; Directory /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp ADDED IN Order allow,deny Allow from all /ADDED IN /Directory And JkMount /jsp-examples/* ajp13Wkr Also del'd the JNI worker in workers.properties as suggested. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - Update
Do you have a line in Apache: NameVirtualHost *:80 I dont think ServerName should have the port number after it. This and ServerAlias are Host: header matching values. I suspect your only remaining problem now is to get Apache and Tomcat to see the same website document roots for the same URLs. This maybe a problem if you are using deployed WARs since tomcat can and will delete the directory from under apache during the deployment process. How do you mean TC can and will delete the directory from under Apache? Which directory do you mean? At this point, I am only trying to view the WARs bundled with TC. I am starting TC before Apache with the apps already deployed (so far). I suggest you learn more about the exact nature of the deployment procedure from an packed WAR to an unpacked WAR that goes in within TC. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache/Tomcat integration - Update
Darryl L. Miles wrote: Do you have a line in Apache: NameVirtualHost *:80 I dont think ServerName should have the port number after it. This and ServerAlias are Host: header matching values. Darryl, yes I do. However the ServerName directive I have been referring to in all msgs is the global ServerName directive that comes in much further up the file (example file anyway). The actual Hostname of the machine. It is this name I have been putting into the VirtualHost tag as the default VHost. I.e. It is this name I want the machine to respond with rather than www as a default. I'm beginning to wonder whether this is the right thing to be doing. -- Kind Regards Kyle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Hi, I've been following this thread for a bit and can offer some of my painfully gained insights. I have Apache, tomcat 5.0.28, mod_jk and SSL. This is not a real fix, just my workarounds. It drove me nuts forever until I figured out that Apache webserver does not successful apply rewrite rules to the JkMount directive. In my httpd.conf: #tomcat worker JkWorkersFile conf/workers.properties JkLogFile logs/jk.log JkLogLevel info JkMount /*.jsp jkworker Under my virtual host port 80 I tested a few rewrite rules(the first was to the 'admin' directory, the second was for all requests): RewriteRule ^/admin/(.*)$ https://server.name.com/$1 [R] RewriteRule ^.*$ https://server.name.com%{REQUEST_URI} [R] The rewrite would work for non JkMount items, but the behavior seemed to show apache just handing off the transaction to tomcat via the mount BEFORE applying the rewrite. (please check this for yourself, if you use a rewrite rule to a non JkMount directory Apache should redirect it successfully) Tomcat would not bounce it to port 443 because the rewrite rule was not in the tomcat layer. Our java programer ended up writing a custom jsp that redirected the transaction to a SSL port. I then made the redirect directory forbidden under non-SSL. I suspect there maybe a more graceful way to do this please let me know if you find it. -Kiarna
Apache + Tomcat + Mod_JK + SSL How to?
I know this has been asked, but the all the emails and on-line docs don't seem to make sense to me. What I have is this. Apache, Tomcat, Mod_JK all running and working on my server. The SSL on Apache is working as well. All I want to do is have certain urls use SSL on Apache. So when you go to /site it's non-ssl, which works now, but when you access /admin it redirects to SSL, this is not working now. How do I get this working? -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Well, maybe I've just make a mistake somewhere. I looked at my jsp-examples/ url work with ssl and without in mod_jk. Where should I look to see why this one works but my app doesn't? Stanczak Group wrote: I know this has been asked, but the all the emails and on-line docs don't seem to make sense to me. What I have is this. Apache, Tomcat, Mod_JK all running and working on my server. The SSL on Apache is working as well. All I want to do is have certain urls use SSL on Apache. So when you go to /site it's non-ssl, which works now, but when you access /admin it redirects to SSL, this is not working now. How do I get this working? -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Stanczak Group wrote: Well, maybe I've just make a mistake somewhere. I looked at my jsp-examples/ url work with ssl and without in mod_jk. Where should I look to see why this one works but my app doesn't? Stanczak Group wrote: I know this has been asked, but the all the emails and on-line docs don't seem to make sense to me. What I have is this. Apache, Tomcat, Mod_JK all running and working on my server. The SSL on Apache is working as well. All I want to do is have certain urls use SSL on Apache. So when you go to /site it's non-ssl, which works now, but when you access /admin it redirects to SSL, this is not working now. How do I get this working? Hi, Your question is a little bit unclear. If you need a redirection from http://site/admin/ to https://site/admin/ look at the mod_rewrite, or simply make a absolute link to https page. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. But the real issue is when I access the url for example http://www.myapp.com/thisapp it works, but when I add https://www.myapp.com/thisapp it fails saying The requested URL /MemCarQue/cars was not found on this server.. But the default jsp-examples/ url works with SSL and without. Once this works then I'll want to make it so the /thisapp/secure part works like Tomcat stand alone and redirects based on the security constraint in web.xml of the app. I'm guessing this can be done by setting the Tomcat to redirect to SSL port. Mladen Turk wrote: Stanczak Group wrote: Well, maybe I've just make a mistake somewhere. I looked at my jsp-examples/ url work with ssl and without in mod_jk. Where should I look to see why this one works but my app doesn't? Stanczak Group wrote: I know this has been asked, but the all the emails and on-line docs don't seem to make sense to me. What I have is this. Apache, Tomcat, Mod_JK all running and working on my server. The SSL on Apache is working as well. All I want to do is have certain urls use SSL on Apache. So when you go to /site it's non-ssl, which works now, but when you access /admin it redirects to SSL, this is not working now. How do I get this working? Hi, Your question is a little bit unclear. If you need a redirection from http://site/admin/ to https://site/admin/ look at the mod_rewrite, or simply make a absolute link to https page. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? Also, adjust your clock. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? yes that is correct. Also, adjust your clock. ? What do you mean? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
test time Stanczak Group wrote: Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? yes that is correct. Also, adjust your clock. ? What do you mean? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? Also, adjust your clock. That fix it? I didn't even see it was off. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to? Got it.
It was something simple. I didn't have to mod_jk directive setup on the virtual host with ssl. Stanczak Group wrote: Mladen Turk wrote: Stanczak Group wrote: I'm not familiar with mod_jk, but in Tomcat when using SSL I can put in a security constraint and it will redirect to a secure connection, so that's why I'm making it sound like a redirect. Hmm. You are still unclear. Seems to me that you are saying that you can access your application with http via mod_jk but not via https, and you can access jsp-examples both with http and https? Is this correct? Also, adjust your clock. That fix it? I didn't even see it was off. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enable SSL stack trace within Apache Tomcat service
Hi all, I am trying to log the handshaking process of SSL. I have added in the Java debug options (-Djavax.net.debug=all) in the Apache Tomcat Service configuration window; however i can't see any SSL handshaking msg in the log files. I am running Tomcat as services. My tomcat version is 5.5.7, JRE 1.5, Window 2000 NT. i have startup tomcat server using command prompt and i also enable the SSL debug option. Using this way, i am able to see the SSL handshaking msg. Do somebody know how to do it in order to have the SSL exchanging msg in the log files if i run the tomcat as services ? Thanks for your help yang
apache/tomcat/mysql cluster info request
Good Morning, I'm looking for suggestions on a large scale tomcat cluster for one deployed app. I currently run our app happily with all server apps smushed on one server. Apache webserver 2.0.52/mod_jk/tomcat5.0.28/mysql 4.1.7 on Fedora Core 3. My company wants to deploy a site that would generate a huge amount of traffic. Lots of huge files, lot's of CPU use. I've been reading the online resources for cluster set ups but I still have some questions I'm hoping someone who has a successful cluster can help with. I'd like a set up that has redundant pipes, so a horizontal cluster on all tiers is important for growth and fail over. I'm trying to find information about a setup that uses a hardware loadbalancer in front of multiple apache webservers that are in front of mutliple tomcat app servers with a MySQL master/slave at the back. I'm thinking the tomcat servers may need to be connected to the application data filesystem via a NAS. I'm not sure about the performance hit, but it is critical that the data served is shared. I've read a bunch of great articles on using the apache webserver as the loadbalancer for the tomcat cluster, but I'm concerned about the webserver failing. Plus I use the webserver tier for rewrite flexibility. I think I want to start with two of each tier(web server, application server, database server), with multiple tomcat engines running on the application servers on some memory rich hardware. From my current setup my load tests have always shown the bottleneck to be java memory use (jdk 1.5) Thank you for your time. -Kiarna
Error while deploying a web application in Apache/Tomcat
Hi, We have Apache and Tomcat installed in Sun OS 5.8. When i am trying to deploy a new web application in the server , i am getting the following error.--2005-07-18 05:13:43 ContextConfig[/struts-blank] Exception processing JAR at resourcepath /WEB-INF/lib/jakarta-oro.jarjavax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/jakarta-oro.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)...- Root Cause -java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1294)...-The same application is deployed successfully and working fine in WebLogic8.1. Looks to me that is some configuration problem which i am missing. Made the following changes. 1)Created a new deployable exploded directory in "/futures/struts-blank". From the same exploded directory was able to deploy in WebLogic.2)Added the following lines in the Tomcat configuration file "server.xml" !--Struts-Blank web -- Context path="/struts-blank" docBase="/futures/struts-blank" crossContext="false" debug="0" reloadable="true" /Context3)Added the following lines in the Apache configuration file "httpsd-local.conf"JkMount /struts-blank/* ajp13JkMount /struts-blank/*.jsp ajp13 4)Restarted Apache and then Tomcat. Please help me.Any questions or if you require any additional info please inform me. Thanks,Ravi ** Please be aware that, notwithstanding the fact that the person sending this communication has an address in Bear Stearns' e-mail system, this person is not an employee, agent or representative of Bear Stearns. Accordingly, this person has no power or authority to represent, make any recommendation, solicitation, offer or statements or disclose information on behalf of or in any way bind Bear Stearns or any of its affiliates. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to configure apache, tomcat and mod_jk
Thanks to Paul Constantine and Alan Chandler for their responses. I've managed to get it all working (eventually!). I think there were two stumbling blocks: 1. I had rebuild Apache but was accidentally running the old version, so the httpd.conf was not being picked up. 2. Paul's blog clarified which settings I should be using in server.xml. I've tried to record exactly what I did here: http://philoxenic.blogspot.com/2005/07/setting-up-tomcat.html. This might be particularly useful for anyone else trying to set up Tomcat on a Go Daddy virtual dedicated server. I set things up considerably different, though. For example, I was just trying to serve jsp's from the $CATALINA_HOME\webapps directory. I'm not entirely sure, but I think the JkMount directive only points to that directory. I think the JkMounts are just telling JK to try to pass on the request to Tomcat if the URL fits a particular pattern. I've JkMounted all of the directories I need, and Tomcat is happy to look for the files in a different directory from Apache. It looks like you're defining more workers in your workers.properties than you're actually using in httpd.conf. I don't think you need the ajp12 worker. Yes, you're right. Thanks. Another thing is that you have not defined a JkShmFile (a shared memory file). This is required for connectors 1.2.10 and later (although 1.2.13 might set one up on its own). I didn't need this with 1.2.13. Just a quick look at your server.xml file seems to be missing the engine jvmroute= ... that I have. I still don't have an engine jvmroute= However, my workers.properties sets up the paths for Java and Tomcat. I don't know whether this is the same thing. Computers -- don't you just love em! ;-) Thanks again Matthew -- Matthew Strawbridge http://www.philoxenic.com Bespoke software development and freelance technical copy editing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat with Mod_jk
Hi Justin, Thanks for the reply ... I have already downloaded all the files from the location you suggested ( i.e. the Linux Version ). But its giving me the following error ... Syntax error on line 235 of /etc/httpd/conf/httpd.conf: Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Steve has suggested not to use the PPC module. I'm gng to try with i386 and will get back to you. Thanks a lot again ... Shailendra -Original Message- From: Justin Crabtree [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 7:37 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Apache + Tomcat with Mod_jk Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ And here for docs. http://jakarta.apache.org/tomcat/connectors-doc/ -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache + Tomcat with Mod_jk
Hi Steve, Thanks for your reply ... I WAS using the PPC Module. I'll change it to I386, check once again and get back ... Thanks a lot again ... Regards, Shailendra -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 10:10 PM To: Tomcat Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Apache + Tomcat with Mod_jk Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr efork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo rker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32 / Those are for windows, he is running linux (for the webserver at least). http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/ If you are not running a ppc (power pc) architecture based machine don't use the ppc module. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trying to configure apache, tomcat and mod_jk
Hi After spending several days trying to set this up from the documentation, I've finally decided I need some expert help. I have a server set up with several domains sharing an IP address. I want to be able to have JSP files in amongst my static files, and have apache serve the static ones and to forward the requests for *.jsp to tomcat using mod_jk. At present: http://www.philoxenic.com:8080/test.jsp correctly serves up /home/httpd/vhosts/philoxenic.com/jsp/test.jsp through tomcat. (I would rather have these files in ../httpdocs/, but thought it might be easier if apache couldn't find the files itself). http://www.philoxenic.com/test.jsp comes up with a 'Not Found' error. This is what I want to get working. If I copy test.jsp from 'jsp' to 'httpdocs' then http://www.philoxenic.com/test.jsp serves it up as plain HTML (i.e. bypassing Tomcat). Please can someone point me in the right direction. To get this far I've had to recompile apache, compile tomcat and mod_jk, and think I have been going round in circles following out-of-date documents on the Web. I feel I'm close, but perhaps can't see the wood for the trees. Thanks Matthew VERSIONS: Red Hat Linux 9 Apache 2.0.40 Tomcat 5.5.9 jakarta-tomcat-connectors-1.2.13 FILES: /usr/local/jakarta-tomcat-5/conf/server.xml: Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=www.philoxenic.com Context path= docBase=/home/httpd/vhosts/philoxenic.com/jsp debug=1 reloadable=true/ /Host /Engine /Service /Server /usr/local/apache2/conf/httpd.conf: [SNIP] LoadModulejk_module /usr/local/apache2/modules/mod_jk.so JkWorkersFile /usr/local/apache2/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLeveldebug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /*.jsp ajp13 JkMount /examples/* ajp13 /usr/local/apache2/conf/workers.properties: workers.tomcat_home=/usr/local/jakarta-tomcat-5 workers.java_home=/usr/java/jdk1.5.0_04 ps=/ worker.list=ajp12, ajp13 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr LOGS: /var/log/httpd/mod_jk.log: [Mon Jul 11 06:26:32 2005] [10660:16384] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/test.jsp' from 1 maps [Mon Jul 11 06:26:32 2005] [10660:16384] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/home/httpd/vhosts/philoxenic.com/httpdocs/*.jsp' [Mon Jul 11 06:26:32 2005] [10660:16384] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map
Re: Trying to configure apache, tomcat and mod_jk
Hey Matthew, I'm no expert, but I can tell you what I did to get it running. I'm running Apache 2.0 on Fedora Core 4. I basically ended up just rolling back my versions to get things to work. I rolled back to Tomcat 5.0.28 with mod_jk 1.2.10. It's true. The documentation on the web is out of date and very confusing. I set things up considerably different, though. For example, I was just trying to serve jsp's from the $CATALINA_HOME\webapps directory. I'm not entirely sure, but I think the JkMount directive only points to that directory. It looks like you're defining more workers in your workers.properties than you're actually using in httpd.conf. I don't think you need the ajp12 worker. Another thing is that you have not defined a JkShmFile (a shared memory file). This is required for connectors 1.2.10 and later (although 1.2.13 might set one up on its own). Here's a link to the relevant lines in my config files. I got this working this weekend, so you can be sure they're fresh. http://ill-conditioned.stanford.edu/JSPWiki/Wiki.jsp?page=Fedora If the wiki link doesn't work, then you know I'm still having problems. :) Hope this helps, Paul Quoting Matthew Strawbridge [EMAIL PROTECTED]: Hi After spending several days trying to set this up from the documentation, I've finally decided I need some expert help. I have a server set up with several domains sharing an IP address. I want to be able to have JSP files in amongst my static files, and have apache serve the static ones and to forward the requests for *.jsp to tomcat using mod_jk. At present: http://www.philoxenic.com:8080/test.jsp correctly serves up /home/httpd/vhosts/philoxenic.com/jsp/test.jsp through tomcat. (I would rather have these files in ../httpdocs/, but thought it might be easier if apache couldn't find the files itself). http://www.philoxenic.com/test.jsp comes up with a 'Not Found' error. This is what I want to get working. If I copy test.jsp from 'jsp' to 'httpdocs' then http://www.philoxenic.com/test.jsp serves it up as plain HTML (i.e. bypassing Tomcat). Please can someone point me in the right direction. To get this far I've had to recompile apache, compile tomcat and mod_jk, and think I have been going round in circles following out-of-date documents on the Web. I feel I'm close, but perhaps can't see the wood for the trees. Thanks Matthew VERSIONS: Red Hat Linux 9 Apache 2.0.40 Tomcat 5.5.9 jakarta-tomcat-connectors-1.2.13 FILES: /usr/local/jakarta-tomcat-5/conf/server.xml: Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=www.philoxenic.com Context path= docBase=/home/httpd/vhosts/philoxenic.com/jsp debug=1 reloadable=true/ /Host /Engine /Service /Server /usr/local/apache2/conf/httpd.conf: [SNIP] LoadModulejk_module /usr/local/apache2/modules/mod_jk.so JkWorkersFile /usr/local/apache2/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLeveldebug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /*.jsp ajp13 JkMount /examples/* ajp13
Re: Trying to configure apache, tomcat and mod_jk
On Monday 11 July 2005 14:54, Matthew Strawbridge wrote: Hi After spending several days trying to set this up from the documentation, I've finally decided I need some expert help. I am no expert, but I got it to work See my blog on http://home.chandlerfamily.org.uk/archive/21/taking-the-java-plunge---setting-up-apache-and-tomcat Just a quick look at your server.xml file seems to be missing the engine jvmroute= ... that I have. -- Alan Chandler http://www.chandlerfamily.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat with Mod_jk
Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ And here for docs. http://jakarta.apache.org/tomcat/connectors-doc/ -- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat with Mod_jk
Shailendra Gatade wrote: Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr efork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo rker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra Try here. http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32 / Those are for windows, he is running linux (for the webserver at least). http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/ If you are not running a ppc (power pc) architecture based machine don't use the ppc module. -Steve O. «¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤» Education is what remains after one has forgotten everything he learned in school. -Albert Einstein Steve O. http://www.steveo.us - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache + Tomcat with Mod_jk
Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra
RE: Apache + Tomcat with Mod_jk
Hi Shailendra, What your Apache MPM are you using? I think you should use JK_module that accord with Apcahe MPM. Thanks, -Toshio -Original Message- From: Shailendra Gatade [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 11:25 PM To: tomcat-user@jakarta.apache.org Subject: Apache + Tomcat with Mod_jk Hi All, I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using mod_jk. I'm facing several problems regarding this ... Initially i was using mod_jk2.so which is deprecated and also not recomended for Production Environment. I am not able to find the proper mod_jk.so for Apache. I downloaded ... jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53- prefork.so and jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53- worker.so Which file should i rename to mod_jk.so ? When i rename the first one and use it, i am getting the following error ... Cannot load /usr/local/apache2/lib/mod_jk.so into server: /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian. Can somebody point me to a location where i can find the proper mod_jk.so for my setup ? Also there is no extensive tutorial available on the same issue ... Is anyone aware of a tutorial which guides you step by step in configuring Apache 2 + Tomcat 5.0 using mod_jk.so ? Thanks in advance ... Shailendra __ Save the earth http://pr.mail.yahoo.co.jp/ondanka/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SLL on Apache Tomcat 4.1
I am trying to register at Verisign for an SSL certificate. We are running Tomcat 4.1 on our server. In order to obtain a CSR on the server, I must specify whether I want the Apache SSL or the Mod SSL. Can you please tell me which option I need to choose? Thanks Marilyn Marilyn Belcher World Travel Service, LLC 918-743-8856 800-324-4987 918-747-7480 - fax Visit us at www.WorldTravelToday.com http://www.WorldTravelToday.com
Re: SLL on Apache Tomcat 4.1
Hi, You can get the SSL for tomcat only. Now thawte and verisign supports ssl for tomcat itself. and Now if you are using Tomcat integrated with Apache, go for Apache SSL. But you can implement SSL only for tomcat. Regards Raj On 6/29/05, Marilyn Belcher [EMAIL PROTECTED] wrote: I am trying to register at Verisign for an SSL certificate. We are running Tomcat 4.1 on our server. In order to obtain a CSR on the server, I must specify whether I want the Apache SSL or the Mod SSL. Can you please tell me which option I need to choose? Thanks Marilyn Marilyn Belcher World Travel Service, LLC 918-743-8856 800-324-4987 918-747-7480 - fax Visit us at www.WorldTravelToday.com http://www.WorldTravelToday.com http://www.WorldTravelToday.com -- Rajasekar V.R #489, Amar Jyothi Layout, Domlur IInd Stage, Bangalore - 560 071 Ph: 080-51151565 / 64
Apache-Tomcat Servlet Mapping Issues
System: Solaris SunOS 5.9 Apache: 2.0.52 Tomcat: 4.1.31 Mod JK: 1.2.6 The problem: Apache/mod_jk cannot resolve servlet URL mappings When Tomcat is running stand-alone, it can resolve servlet mappings without any problems; so that a page with this form definition: FORM name=login method=POST action=loginhandler correctly invokes the com.company.LoginHandler servlet (which suggests there's nothing syntactically wrong with the servlet and servlet-mapping entries in web.xml); When Tomcat stand-alone is turned off and Apache is turned on, that same page always throws a 404 error for site/loginhandler; these are the error messages in mod_jk.log: [Wed Jun 22 09:04:08 2005] [mod_jk.c (2313)]: mod_jk::jk_translate, check alias_dir: /usr/apache/tomcat/webapps [Wed Jun 22 09:04:08 2005] [mod_jk.c (2337)]: mod_jk::jk_translate, AutoAlias child_dir: loginhandler [Wed Jun 22 09:04:08 2005] [mod_jk.c (2363)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/apache/tomcat/webapps/aiwosc/loginhandler [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (459)]: Attempting to map URI '/aiwosc/loginhandler' [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match What terribly simple configuration error have I made here? These are the web.xml entries for this servlet: servlet servlet-nameloginhandler/servlet-name servlet-classcom.company.aiwosc.LoginHandler/servlet-class /servlet servlet-mapping servlet-nameloginhandler/servlet-name url-pattern/loginhandler/url-pattern /servlet-mapping This is the workers.properties file: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=server.org worker.ajp13.type=ajp13 This is the app section from mod_jk.conf: server.org:/aiwosc # Static files Alias /aiwosc /var/apache/tomcat/webapps/aiwosc Directory /var/apache/tomcat/webapps/aiwosc Options Indexes FollowSymLinks DirectoryIndex index.html /Directory # Deny direct access to WEB-INF and META-INF # Location /aiwosc/WEB-INF/* AllowOverride None deny from all /Location Location /aiwosc/META-INF/* AllowOverride None deny from all /Location JkMount /aiwosc/addtitleservlet ajp13 JkMount /aiwosc/submittitleservlet ajp13 JkMount /aiwosc/transfertitleservlet ajp13 JkMount /aiwosc/saveoscservlet ajp13 JkMount /aiwosc/reordercastservlet ajp13 JkMount /aiwosc/loginhandler ajp13 JkMount /aiwosc/editcategoryservlet ajp13 JkMount /aiwosc/edittitleservlet ajp13 JkMount /aiwosc/addaddendumservlet ajp13 JkMount /aiwosc/*.jsp ajp13 JkMount /aiwosc/addcategoryservlet ajp13 This is the Context entry for the app in server.xml: !-- Oscars OSC Context -- Context path=/aiwosc docBase=aiwosc debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=aiwosc_log. suffix=.txt timestamp=true/ Resource name=jdbc/oscars auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/oscars parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACAD/value /parameter parameter nameusername/name valueIMPC_ADMIN/value /parameter parameter namepassword/name valuePIRANHA/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context And these are the mod_jk load/configuration entries from httpd.conf: IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule Include /usr/apache/tomcat/conf/auto/mod_jk.conf JkWorkersFile /usr/apache/tomcat/conf/workers.properties JkLogFile /usr/apache/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkAutoAlias /usr/apache/tomcat/webapps JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13 -- David Rickard Software Engineer TechBooks/GTS Your Single Source Solution! Los Angeles CA * York, PA * Boston,MA * New Delhi, India Visit
Re: Apache-Tomcat Servlet Mapping Issues
Hi David: An alternate to using mod_JK is to proxy http (or https) request to the Tomcat from Apache. i.e: ProxyPass /path http://localhost:port/path ProxyPassReverse /path http://localhost/path There are valid reasons for using mod_JK - above just an alternate suggestion if you can do without mod_JK regards, Hari Mailvaganam On 6/22/05, David Rickard [EMAIL PROTECTED] wrote: System: Solaris SunOS 5.9 Apache: 2.0.52 Tomcat: 4.1.31 Mod JK: 1.2.6 The problem: Apache/mod_jk cannot resolve servlet URL mappings When Tomcat is running stand-alone, it can resolve servlet mappings without any problems; so that a page with this form definition: FORM name=login method=POST action=loginhandler correctly invokes the com.company.LoginHandler servlet (which suggests there's nothing syntactically wrong with the servlet and servlet-mapping entries in web.xml); When Tomcat stand-alone is turned off and Apache is turned on, that same page always throws a 404 error for site/loginhandler; these are the error messages in mod_jk.log: [Wed Jun 22 09:04:08 2005] [mod_jk.c (2313)]: mod_jk::jk_translate, check alias_dir: /usr/apache/tomcat/webapps [Wed Jun 22 09:04:08 2005] [mod_jk.c (2337)]: mod_jk::jk_translate, AutoAlias child_dir: loginhandler [Wed Jun 22 09:04:08 2005] [mod_jk.c (2363)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/apache/tomcat/webapps/aiwosc/loginhandler [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (459)]: Attempting to map URI '/aiwosc/loginhandler' [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match What terribly simple configuration error have I made here? These are the web.xml entries for this servlet: servlet servlet-nameloginhandler/servlet-name servlet-classcom.company.aiwosc.LoginHandler/servlet-class /servlet servlet-mapping servlet-nameloginhandler/servlet-name url-pattern/loginhandler/url-pattern /servlet-mapping This is the workers.properties file: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=server.org worker.ajp13.type=ajp13 This is the app section from mod_jk.conf: server.org:/aiwosc # Static files Alias /aiwosc /var/apache/tomcat/webapps/aiwosc Directory /var/apache/tomcat/webapps/aiwosc Options Indexes FollowSymLinks DirectoryIndex index.html /Directory # Deny direct access to WEB-INF and META-INF # Location /aiwosc/WEB-INF/* AllowOverride None deny from all /Location Location /aiwosc/META-INF/* AllowOverride None deny from all /Location JkMount /aiwosc/addtitleservlet ajp13 JkMount /aiwosc/submittitleservlet ajp13 JkMount /aiwosc/transfertitleservlet ajp13 JkMount /aiwosc/saveoscservlet ajp13 JkMount /aiwosc/reordercastservlet ajp13 JkMount /aiwosc/loginhandler ajp13 JkMount /aiwosc/editcategoryservlet ajp13 JkMount /aiwosc/edittitleservlet ajp13 JkMount /aiwosc/addaddendumservlet ajp13 JkMount /aiwosc/*.jsp ajp13 JkMount /aiwosc/addcategoryservlet ajp13 This is the Context entry for the app in server.xml: !-- Oscars OSC Context -- Context path=/aiwosc docBase=aiwosc debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=aiwosc_log. suffix=.txt timestamp=true/ Resource name=jdbc/oscars auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/oscars parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACAD/value /parameter parameter nameusername/name valueIMPC_ADMIN/value /parameter parameter namepassword/name valuePIRANHA/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context And these are the mod_jk load/configuration entries from httpd.conf: IfModule !mod_jk.c
Re: Apache-Tomcat Servlet Mapping Issues
Hi, As you test, can you load a servlet through apache httpd? Such as http://www.xyz.com/testservlet You should make a simple servlet that just has the doGet method to test. -Steve O. System: Solaris SunOS 5.9 Apache: 2.0.52 Tomcat: 4.1.31 Mod JK: 1.2.6 The problem: Apache/mod_jk cannot resolve servlet URL mappings When Tomcat is running stand-alone, it can resolve servlet mappings without any problems; so that a page with this form definition: FORM name=login method=POST action=loginhandler correctly invokes the com.company.LoginHandler servlet (which suggests there's nothing syntactically wrong with the servlet and servlet-mapping entries in web.xml); When Tomcat stand-alone is turned off and Apache is turned on, that same page always throws a 404 error for site/loginhandler; these are the error messages in mod_jk.log: [Wed Jun 22 09:04:08 2005] [mod_jk.c (2313)]: mod_jk::jk_translate, check alias_dir: /usr/apache/tomcat/webapps [Wed Jun 22 09:04:08 2005] [mod_jk.c (2337)]: mod_jk::jk_translate, AutoAlias child_dir: loginhandler [Wed Jun 22 09:04:08 2005] [mod_jk.c (2363)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/apache/tomcat/webapps/aiwosc/loginhandler [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (459)]: Attempting to map URI '/aiwosc/loginhandler' [Wed Jun 22 09:04:08 2005] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match What terribly simple configuration error have I made here? These are the web.xml entries for this servlet: servlet servlet-nameloginhandler/servlet-name servlet-classcom.company.aiwosc.LoginHandler/servlet-class /servlet servlet-mapping servlet-nameloginhandler/servlet-name url-pattern/loginhandler/url-pattern /servlet-mapping This is the workers.properties file: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=server.org worker.ajp13.type=ajp13 This is the app section from mod_jk.conf: server.org:/aiwosc # Static files Alias /aiwosc /var/apache/tomcat/webapps/aiwosc Directory /var/apache/tomcat/webapps/aiwosc Options Indexes FollowSymLinks DirectoryIndex index.html /Directory # Deny direct access to WEB-INF and META-INF # Location /aiwosc/WEB-INF/* AllowOverride None deny from all /Location Location /aiwosc/META-INF/* AllowOverride None deny from all /Location JkMount /aiwosc/addtitleservlet ajp13 JkMount /aiwosc/submittitleservlet ajp13 JkMount /aiwosc/transfertitleservlet ajp13 JkMount /aiwosc/saveoscservlet ajp13 JkMount /aiwosc/reordercastservlet ajp13 JkMount /aiwosc/loginhandler ajp13 JkMount /aiwosc/editcategoryservlet ajp13 JkMount /aiwosc/edittitleservlet ajp13 JkMount /aiwosc/addaddendumservlet ajp13 JkMount /aiwosc/*.jsp ajp13 JkMount /aiwosc/addcategoryservlet ajp13 This is the Context entry for the app in server.xml: !-- Oscars OSC Context -- Context path=/aiwosc docBase=aiwosc debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=aiwosc_log. suffix=.txt timestamp=true/ Resource name=jdbc/oscars auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/oscars parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/va lue /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACA D/value /parameter parameter nameusername/name valueIMPC_ADMIN/value /parameter parameter namepassword/name valuePIRANHA/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /Context And these are the mod_jk load/configuration entries from httpd.conf: IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule Include /usr/apache/tomcat/conf/auto/mod_jk.conf JkWorkersFile /usr/apache/tomcat/conf
Utilizing Port 81 for Apache/Tomcat
I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Re: Utilizing Port 81 for Apache/Tomcat
U need to configure that in httpd.conf of new apapche instance change directive port regards Vijay [EMAIL PROTECTED] said the following on 21/06/2005 5:32 PM: I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Utilizing Port 81 for Apache/Tomcat
And also the port for ajp13 listener and worker.properties and server.xml .. Make sure that they don't clash with each other -Original Message- From: Anand Vijay [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:08 To: Tomcat Users List Subject: Re: Utilizing Port 81 for Apache/Tomcat U need to configure that in httpd.conf of new apapche instance change directive port regards Vijay [EMAIL PROTECTED] said the following on 21/06/2005 5:32 PM: I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - 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: Utilizing Port 81 for Apache/Tomcat
In addition to the answers u have got!! IMO - it would be best (and safe) if you use ports 1024 and up. ports lesser than 1024 are used for system level tasks and there is a greater possibility of clashing with them. U have 1025 until 64000 (I think) ports to choose from.. -Anoop On 6/21/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: And also the port for ajp13 listener and worker.properties and server.xml .. Make sure that they don't clash with each other -Original Message- From: Anand Vijay [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:08 To: Tomcat Users List Subject: Re: Utilizing Port 81 for Apache/Tomcat U need to configure that in httpd.conf of new apapche instance change directive port regards Vijay [EMAIL PROTECTED] said the following on 21/06/2005 5:32 PM: I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - 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] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache/Tomcat in-process
hi, Anybody knows how to make apache and tomcat are running in the same process? I read somewhere and said that it can be done but it is not easy. Anyone tried it? if so, please give me some pointers. thanks, Christine __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat JK1.2 Connector
Darrell Bechtel wrote: Both workers are setup to communicate to the localhost using port 8009?? Perhaps your /etc/hosts file has a entry that resolves the 'localhost' to that IP address. Anyhow use 127.0.0.1 instead localhost to be sure. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat JK1.2 Connector
I have connected these 2 servers previously, but I am now running into problems getting apache 2.0.5 to communicate with tomcat 5.5.9 using the jk1.2 connector on the Fedora Core 3 test 4. From looking through the jk log file it appears that apache is trying to communicate to 66.103.44.3:8009. I have no idea where this ip is coming from since both apache and tomcat are installed locally and there is only 1 nic with an internal ip of 192.168.50.5. If anyone can shed light on where I should be looking to resolve this conflict it would be much appreciated. Thanks, Darrell Bechtel
RE: Apache Tomcat JK1.2 Connector
Look in the Apache2\conf\workers.properties file. -Original Message- From: Darrell Bechtel [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 5:41 PM To: tomcat-user@jakarta.apache.org Subject: Apache Tomcat JK1.2 Connector I have connected these 2 servers previously, but I am now running into problems getting apache 2.0.5 to communicate with tomcat 5.5.9 using the jk1.2 connector on the Fedora Core 3 test 4. From looking through the jk log file it appears that apache is trying to communicate to 66.103.44.3:8009. I have no idea where this ip is coming from since both apache and tomcat are installed locally and there is only 1 nic with an internal ip of 192.168.50.5. If anyone can shed light on where I should be looking to resolve this conflict it would be much appreciated. Thanks, Darrell Bechtel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Tomcat JK1.2 Connector
Both workers are setup to communicate to the localhost using port 8009?? Darrell -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 9:11 PM To: 'Tomcat Users List' Subject: RE: Apache Tomcat JK1.2 Connector Look in the Apache2\conf\workers.properties file. -Original Message- From: Darrell Bechtel [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 5:41 PM To: tomcat-user@jakarta.apache.org Subject: Apache Tomcat JK1.2 Connector I have connected these 2 servers previously, but I am now running into problems getting apache 2.0.5 to communicate with tomcat 5.5.9 using the jk1.2 connector on the Fedora Core 3 test 4. From looking through the jk log file it appears that apache is trying to communicate to 66.103.44.3:8009. I have no idea where this ip is coming from since both apache and tomcat are installed locally and there is only 1 nic with an internal ip of 192.168.50.5. If anyone can shed light on where I should be looking to resolve this conflict it would be much appreciated. Thanks, Darrell Bechtel - 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-tomcat-mod_jk-ssl
hi guyz i ve just configured to use my tomcat 5.5.x running on win2k machine with apache web server 2.0.49 running on fedora core 2 machine. my application are running perfectly well. infact i m noticing a certain level of increase in performance. however, i get into troubles as soon as i take my login page to SSL. i get the error The connection was refused when attempting to contact myserver:8443. i will appreciate any help or any pointer to any thread. P.S. i did try to search through those hundreds of threads. Thanx in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache-tomcat-mod_jk-ssl
I have Tomcat 5.5.9 and Apache 2.0.54 running on Windows 2000, connecting them with mod_jk (not jk2). The only thing I want to do now is have Apache run Tomcat in-process like I did with jk2, is this possible? And if it is, what files do I need to update and configure? Thanks. Tom faisal wrote: hi guyz i ve just configured to use my tomcat 5.5.x running on win2k machine with apache web server 2.0.49 running on fedora core 2 machine. my application are running perfectly well. infact i m noticing a certain level of increase in performance. however, i get into troubles as soon as i take my login page to SSL. i get the error The connection was refused when attempting to contact myserver:8443. i will appreciate any help or any pointer to any thread. P.S. i did try to search through those hundreds of threads. Thanx in advance - 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]
Problems with gzip compression with Apache/Tomcat cluster and Firefox
We have recently been experimenting with enabling gzip/deflate compression via our Apache/Tomcat cluster, but have encountered some problems with the way the compression works with the Firebox browser. When Firefox brings up a compressed page for the first time, it looks fine. If they reload a static html page, bizarre things start to happen. In some cases, garbage just gets displayed on screen (looks like the actual gzip encoded stream), and other times Firefox displays a dialog box asking if you want to download the html files. When IE is used, it works fine. Some background: Running two-node Tomcat 5.5.4 cluster using JK2 2.0.4 protocol to communicate back to Apache2 2.0.52 for load balancing. Browsers tried were Firefox 1.0.3 and Internet Explorer 6.0. If I use Tomcat's gzip compression alone with Firefox, it works fine. It's only when we through in Apache and JK2 into the mix with the cluster that Firefox displays charged. It seems to be an issue related to the way that compressed pages get cached. I'm not sure if the problem lies with Tomcat, Apache, JK2, or Firefox itself. Can anyone provide some pointers? Thanks. Regards, B.J. Guillot
Re: How to do Downtime with a Apache/Tomcat webapp
I had a similar requirement in my app... We had a two-hour window per day when the app was unavailable because background tasks were processing. The server was still up, and so was the app technically, but it was not available. I wrote a filter to take care of this. I had a flag in application context to tell if the app was up or not too, so that if I had to make the app unavailable during a time when it normally was available, I just set the flag. I also defined a single user that was still allowed to get in (another context parameter). This works out great. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Len Popp wrote: I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - 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: How to do Downtime with a Apache/Tomcat webapp
I believe this link has the info you are looking for. It discusses displaying error messages by Apache when the app server is down. http://wiki.apache.org/cocoon/ApacheModProxy Ed On Mon, 2005-05-16 at 11:33 -0400, Len Popp wrote: I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to do Downtime with a Apache/Tomcat webapp
Len, Sounds simple - but maybe I'm missing something. How do I do maintenance on the site context (under webapp) if the context is being used to show this simple page? It may end up being simplest to alter (or swap in) the Apache config file and do a reload. On my site the reload is pretty quick and I do not think it disrupts active Tomcat sessions (in other contexts). Thanks - Richard -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 8:33 AM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Len Popp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to do Downtime with a Apache/Tomcat webapp
Len, Sounds simple - but maybe I'm missing something. How do I do maintenance on the site context (under webapp) if the context is being used to show this simple page? It may end up being simplest to alter (or swap in) the Apache config file and do a reload. On my site the reload is pretty quick and I do not think it disrupts active Tomcat sessions (in other contexts). Thanks - Richard -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 8:33 AM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Len Popp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to do Downtime with a Apache/Tomcat webapp
From: Richard Mixon (qwest) [EMAIL PROTECTED] Sent: Sunday, May 15, 2005 8:57 PM I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We have an alternate httpd.conf file for Apache that is configured to send everybody to site down come back later static site, then we simply bounce Apache with the new config. It's is not particularly subtle, but we're not a 24x7 site so much, and it's more to let folks coming in know what's happening. But it's simple and quick. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to do Downtime with a Apache/Tomcat webapp
Will, Thanks - that may be the simplest solution. It just seems errors prone (i.e. updating one of the httpd.conf files, but not the other). Still its appealing for my situation. I am going to better check out the reference Ed sent in an earlier post - that seems to have some potential. - Richard -Original Message- From: Will Hartung [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 4:43 PM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp From: Richard Mixon (qwest) [EMAIL PROTECTED] Sent: Sunday, May 15, 2005 8:57 PM I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We have an alternate httpd.conf file for Apache that is configured to send everybody to site down come back later static site, then we simply bounce Apache with the new config. It's is not particularly subtle, but we're not a 24x7 site so much, and it's more to let folks coming in know what's happening. But it's simple and quick. Regards, Will Hartung ([EMAIL PROTECTED]) - 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: How to do Downtime with a Apache/Tomcat webapp
Will, Thanks - that may be the simplest solution. It just seems errors prone (i.e. updating one of the httpd.conf files, but not the other). Still its appealing for my situation. I am going to better check out the reference Ed sent in an earlier post - that seems to have some potential. - Richard -Original Message- From: Will Hartung [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 4:43 PM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp From: Richard Mixon (qwest) [EMAIL PROTECTED] Sent: Sunday, May 15, 2005 8:57 PM I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We have an alternate httpd.conf file for Apache that is configured to send everybody to site down come back later static site, then we simply bounce Apache with the new config. It's is not particularly subtle, but we're not a 24x7 site so much, and it's more to let folks coming in know what's happening. But it's simple and quick. Regards, Will Hartung ([EMAIL PROTECTED]) - 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: How to do Downtime with a Apache/Tomcat webapp
Filters work great for this. Also, if you have a cluster, you probably have a load balancer in front of the cluster. If you do, then you could have the load balancer direct all your traffic to a server that runs Apache and only served up a 'Sorry the site is down' page. When the site is back up you can redirect the traffic back to the servers. This will allow you to do maintenance on the DB, Application, Tomcat etc. Subir -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 12:36 PM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I had a similar requirement in my app... We had a two-hour window per day when the app was unavailable because background tasks were processing. The server was still up, and so was the app technically, but it was not available. I wrote a filter to take care of this. I had a flag in application context to tell if the app was up or not too, so that if I had to make the app unavailable during a time when it normally was available, I just set the flag. I also defined a single user that was still allowed to get in (another context parameter). This works out great. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Len Popp wrote: I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to do Downtime with a Apache/Tomcat webapp
From: Richard Mixon (qwest) [EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 7:53 AM Will, Thanks - that may be the simplest solution. It just seems errors prone (i.e. updating one of the httpd.conf files, but not the other). Still its appealing for my situation. I am going to better check out the reference Ed sent in an earlier post - that seems to have some potential. To be clear, you don't update the httpd.conf file, rather you have two versions (up version and down version), then you simply restart Apache with the correct version as appropriate. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to do Downtime with a Apache/Tomcat webapp
Frank, Thanks - that's a neat feature to add. It does not work for my current requirement (the entire webapp is down at the time), but there are definite times when I want the webapp up and only limited access (e.g. checking out a just installed/upgraded application). - Richard -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 12:36 PM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I had a similar requirement in my app... We had a two-hour window per day when the app was unavailable because background tasks were processing. The server was still up, and so was the app technically, but it was not available. I wrote a filter to take care of this. I had a flag in application context to tell if the app was up or not too, so that if I had to make the app unavailable during a time when it normally was available, I just set the flag. I also defined a single user that was still allowed to get in (another context parameter). This works out great. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Len Popp wrote: I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to do Downtime with a Apache/Tomcat webapp
Frank, Thanks - that's a neat feature to add. It does not work for my current requirement (the entire webapp is down at the time), but there are definite times when I want the webapp up and only limited access (e.g. checking out a just installed/upgraded application). - Richard -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 12:36 PM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I had a similar requirement in my app... We had a two-hour window per day when the app was unavailable because background tasks were processing. The server was still up, and so was the app technically, but it was not available. I wrote a filter to take care of this. I had a flag in application context to tell if the app was up or not too, so that if I had to make the app unavailable during a time when it normally was available, I just set the flag. I also defined a single user that was still allowed to get in (another context parameter). This works out great. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Len Popp wrote: I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to do Downtime with a Apache/Tomcat webapp
Ed, Thank you - a very cool reference with a number of tricks/knowledge. - Richard -Original Message- From: Gmail User [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 1:23 PM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I believe this link has the info you are looking for. It discusses displaying error messages by Apache when the app server is down. http://wiki.apache.org/cocoon/ApacheModProxy Ed On Mon, 2005-05-16 at 11:33 -0400, Len Popp wrote: I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. - 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: How to do Downtime with a Apache/Tomcat webapp
Ed, Thank you - a very cool reference with a number of tricks/knowledge. - Richard -Original Message- From: Gmail User [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 1:23 PM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I believe this link has the info you are looking for. It discusses displaying error messages by Apache when the app server is down. http://wiki.apache.org/cocoon/ApacheModProxy Ed On Mon, 2005-05-16 at 11:33 -0400, Len Popp wrote: I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. - 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: How to do Downtime with a Apache/Tomcat webapp
Hey, maybe *I'm* missing something. :-) I haven't tried this yet. I guess it only works if the web app is unpacked, not in a war file. (That's how my site is currently.) When the site is down it's running a minimal web app that is only using two files - web.xml and the jsp or servlet that's returning the site-down page. All other files and the database are not in use and can be munged at will. The original question mentioned database maintenance in particular. In that case it doesn't really matter what the web app is doing, as long as it's not accessing the database. The idea of using a filter to turn off the app sounds good for this. On 5/16/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: Len, Sounds simple - but maybe I'm missing something. How do I do maintenance on the site context (under webapp) if the context is being used to show this simple page? It may end up being simplest to alter (or swap in) the Apache config file and do a reload. On my site the reload is pretty quick and I do not think it disrupts active Tomcat sessions (in other contexts). Thanks - Richard -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 8:33 AM To: Tomcat Users List Subject: Re: How to do Downtime with a Apache/Tomcat webapp I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Len Popp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to do Downtime with a Apache/Tomcat webapp
I've been thinking about the same problem, but I haven't gotten around to working on it seriously. How about this: Instead of fiddling with the JkMount directives in Apache, swap the web.xml in your Tomcat app so it points to a minimal servlet that returns the Out of service page for all requests. Does that sound like it would work? It would be less disruptive because you don't have to restart Apache (if there's more to the web site than the one Tomcat app). Plus this will work with stand-alone Tomcat. On 5/15/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Len Popp
How to do Downtime with a Apache/Tomcat webapp
I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to do Downtime with a Apache/Tomcat webapp
I'm curious how folks handle letting users know that their webapp is down when doing maintenance. We've got a pretty standard setup. Our informational/static site is served by Apache 2.0.x. We use mod_jk to link to a page in our webapplications, triggering CMA for authentication and login. We run Tomcat 5.5.x. Although we actually have Tomcat clustered, there are still times when we need to make the application unavailable. (i.e. doing database schema changes, etc.). I would like for a page to be displayed that says the application is temporarily not available. So, what's the best way to do this? One way I can think of is to modify the JkMount directives so that may context name was not mapped to Tomcat, but instead to a static page - the just do a restart. Trouble is some of our users have bookmarks into various pages/actions in the application - we would somehow have to mapp all pages that began with the context name to this single page. This sounds a bit messy. Is there a more straightforward way of doing this? Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free reporting s/w that works with apache+tomcat
Thank you for the suggestion. Laxmi --- Gurumoorthy [EMAIL PROTECTED] wrote: use jasper reports with ireports ( GUI ) for jasper ... very nice :o) - Original Message - From: U K Laxmi [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, May 11, 2005 3:47 AM Subject: Re: Free reporting s/w that works with apache+tomcat Guess, this is more suiting to my problem. Thanks for the information. Laxmi --- Joe Plautz [EMAIL PROTECTED] wrote: Sorry I'm late to the party. I've been working with jasperreports from sourceforge the last couple of weeks to create reports in PDF. It also has the ability to create an excel spreadsheet as well, although I haven't used it yet. Using it in conjunction with iReports, also from sourceforge, you can have a report in minutes. I would recommend using it to anyone. Joe Mike Curwen wrote: you should consider using POI, if you need Excel-only features like footer repeated on every page. Specifically: http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 9:53 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Free reporting s/w that works with apache+tomcat Thank you for the information. What i mean by header footer is, column headers and some information like model number, date and approval signature columns etc.. to appear in every page when they take hard copy of the report. Is such a thing possible? Pls inform. The end user of the application doesn't want any manual intervention. When he click on 'Export to Excel' button in the web application HTML report, he want the excel file get downloded (file dialog box appears he save it to his local disk) which has all header footer information set. Currently my application can provide header once at the top of the report and footer (approval columns date) at the very bottom of the report. THe column headings approval columns doesn't appear on every page. I'm unable to ahcieve this in web (HTML). It i cna do it in web, when i download that in excel, it will show. Do you know any work around for this? Pls inform. Thank you. Laxmi --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi, CSV files don't generally contain header and footer information... you can get column headers in the first row, that's about it. I don't believe DataVision will export to Excel natively, but check the docs in case I'm wrong. Do you really mean header and footer in the sense of a Word document? It's a bit unusual to have such a thing in an Excel document (although not at all unheard of), so I'm wondering if maybe you mean something a little different, i.e., maybe just column headers and some sort of totals? Frank U K Laxmi wrote: Thank you for the information. I read your report and it looks interesting. I went to DataVision web site and found that it can export comma separated files ie. CSV file. Will it be possible to retain header and footer information with a .CSV file? I basically want excel files as the report output. B'coz the end user needs to send to those reports to it's vendors. Excel is the most desired format for them. Pls give your feedback on this before i start implementing on this. Thank you. --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it === message truncated === Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache+Tomcat
Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? Scenario 2 is easier to implement, there are fewer things that can break and less config files to maintain. Scenario 1 gives you a unified setting of your web space. You just simply know that you have one front-end, Apache. In that case Apache receives the initial HTTP request and can handle parts of it. The most interesting aspect of such a setup are authentication and redirection. While Tomcat has some rudimentary aliasing, Apache is superrior when it comes to URL rewriting, redirections and proxying. On the field of authentication, Tomcat supports HTTP-Basic, HTTP-Digest and SSL-based authentication. Apache can add to that SPNEGO (Kerberos5, read Microsoft Active Directory Service), plus several backend mechs for the Basic and Digest (LDAP, MySQL, PostgreSQL,...). Tomcat can only benefit from that. My advice to you, if you're learning or experimenting, use Tomcat StandAlone. If you're thinking production, gather your requrements and see what fits you best. It could again very well be TC standalone. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free reporting s/w that works with apache+tomcat
They are unlikely to ever look exactly alike. But, you can use a java-ActiveX bridge (there are several) to build and manipulate an excel spreadsheet as an object. I have successfully used a library from IBM AlphaWorks to do exactly this. Sadly, the library I used was a precursor to a commercial product so it is no longer free. Good luck! On Mon, 2005-05-09 at 23:57 -0700, U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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: Apache+Tomcat
We use tomcat standalone on production - most of our pages are dynamic (95%) and the user load is ~7000 and it has been behaving awesome - we use 4.1.31. hth, Anoop On 5/11/05, Nikola Milutinovic [EMAIL PROTECTED] wrote: Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? Scenario 2 is easier to implement, there are fewer things that can break and less config files to maintain. Scenario 1 gives you a unified setting of your web space. You just simply know that you have one front-end, Apache. In that case Apache receives the initial HTTP request and can handle parts of it. The most interesting aspect of such a setup are authentication and redirection. While Tomcat has some rudimentary aliasing, Apache is superrior when it comes to URL rewriting, redirections and proxying. On the field of authentication, Tomcat supports HTTP-Basic, HTTP-Digest and SSL-based authentication. Apache can add to that SPNEGO (Kerberos5, read Microsoft Active Directory Service), plus several backend mechs for the Basic and Digest (LDAP, MySQL, PostgreSQL,...). Tomcat can only benefit from that. My advice to you, if you're learning or experimenting, use Tomcat StandAlone. If you're thinking production, gather your requrements and see what fits you best. It could again very well be TC standalone. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop
Re: Apache+Tomcat
Yoo, If you need PHP than standalone tomcat is not an option you want, to my opinion! Greetings O. On 5/11/05, Anoop kumar V [EMAIL PROTECTED] wrote: We use tomcat standalone on production - most of our pages are dynamic (95%) and the user load is ~7000 and it has been behaving awesome - we use 4.1.31. hth, Anoop On 5/11/05, Nikola Milutinovic [EMAIL PROTECTED] wrote: Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? Scenario 2 is easier to implement, there are fewer things that can break and less config files to maintain. Scenario 1 gives you a unified setting of your web space. You just simply know that you have one front-end, Apache. In that case Apache receives the initial HTTP request and can handle parts of it. The most interesting aspect of such a setup are authentication and redirection. While Tomcat has some rudimentary aliasing, Apache is superrior when it comes to URL rewriting, redirections and proxying. On the field of authentication, Tomcat supports HTTP-Basic, HTTP-Digest and SSL-based authentication. Apache can add to that SPNEGO (Kerberos5, read Microsoft Active Directory Service), plus several backend mechs for the Basic and Digest (LDAP, MySQL, PostgreSQL,...). Tomcat can only benefit from that. My advice to you, if you're learning or experimenting, use Tomcat StandAlone. If you're thinking production, gather your requrements and see what fits you best. It could again very well be TC standalone. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache+Tomcat
Scenario two will be less hassle - unless you need a feature of Apache HTTP Server. If you plan to only use Apache HTTP Server as a listener for http request - it will be better off with the Tomcat alone. If, for any particular reason, you absolutely wish to use the Apache HTTP server as the http listener only - you can proxy the request in Apache to Tomcat. And not bother with mod-jk2. regards, Hari Mailvaganam On 5/10/05, Praveen KUMAR [EMAIL PROTECTED] wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by tomcat) What would be difference in both the scenarios in terms of performance and reliability? -- With best regards, Praveen Soni - 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: Free reporting s/w that works with apache+tomcat
Thanks for your information. I got one open source product called jasper reports adviced by one of the active member in this list. I'm planning to use it for my project. Thanks, Laxmi --- David Johnson [EMAIL PROTECTED] wrote: They are unlikely to ever look exactly alike. But, you can use a java-ActiveX bridge (there are several) to build and manipulate an excel spreadsheet as an object. I have successfully used a library from IBM AlphaWorks to do exactly this. Sadly, the library I used was a precursor to a commercial product so it is no longer free. Good luck! On Mon, 2005-05-09 at 23:57 -0700, U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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] Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Free reporting s/w that works with apache+tomcat
I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Free reporting s/w that works with apache+tomcat
--- U K Laxmi [EMAIL PROTECTED] wrote: Date: Mon, 9 May 2005 23:57:41 -0700 (PDT) From: U K Laxmi [EMAIL PROTECTED] Subject: Free reporting s/w that works with apache+tomcat To: Tomcat Users List tomcat-user@jakarta.apache.org I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free reporting s/w that works with apache+tomcat
May be DisplayTag and its export functionality can help you with formating. http://displaytag.sourceforge.net/ regards, Marco http://www.druckerpatronen--preisvergleich.de http://www.tuxoo.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free reporting s/w that works with apache+tomcat
Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it in web applications. Although the article uses servlets and you say your using JSPs (just JSP's?) it should still be applicable. http://www.omnytex.com/articles Feel free to ping me if you decide to use it and need some help getting going beyond the article and included documentation. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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: Free reporting s/w that works with apache+tomcat
Thank you for the information. I read your report and it looks interesting. I went to DataVision web site and found that it can export comma separated files ie. CSV file. Will it be possible to retain header and footer information with a .CSV file? I basically want excel files as the report output. B'coz the end user needs to send to those reports to it's vendors. Excel is the most desired format for them. Pls give your feedback on this before i start implementing on this. Thank you. --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it in web applications. Although the article uses servlets and you say your using JSPs (just JSP's?) it should still be applicable. http://www.omnytex.com/articles Feel free to ping me if you decide to use it and need some help getting going beyond the article and included documentation. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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] Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free reporting s/w that works with apache+tomcat
Hi, CSV files don't generally contain header and footer information... you can get column headers in the first row, that's about it. I don't believe DataVision will export to Excel natively, but check the docs in case I'm wrong. Do you really mean header and footer in the sense of a Word document? It's a bit unusual to have such a thing in an Excel document (although not at all unheard of), so I'm wondering if maybe you mean something a little different, i.e., maybe just column headers and some sort of totals? Frank U K Laxmi wrote: Thank you for the information. I read your report and it looks interesting. I went to DataVision web site and found that it can export comma separated files ie. CSV file. Will it be possible to retain header and footer information with a .CSV file? I basically want excel files as the report output. B'coz the end user needs to send to those reports to it's vendors. Excel is the most desired format for them. Pls give your feedback on this before i start implementing on this. Thank you. --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it in web applications. Although the article uses servlets and you say your using JSPs (just JSP's?) it should still be applicable. http://www.omnytex.com/articles Feel free to ping me if you decide to use it and need some help getting going beyond the article and included documentation. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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] Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Free reporting s/w that works with apache+tomcat
Thank you for the information. What i mean by header footer is, column headers and some information like model number, date and approval signature columns etc.. to appear in every page when they take hard copy of the report. Is such a thing possible? Pls inform. The end user of the application doesn't want any manual intervention. When he click on 'Export to Excel' button in the web application HTML report, he want the excel file get downloded (file dialog box appears he save it to his local disk) which has all header footer information set. Currently my application can provide header once at the top of the report and footer (approval columns date) at the very bottom of the report. THe column headings approval columns doesn't appear on every page. I'm unable to ahcieve this in web (HTML). It i cna do it in web, when i download that in excel, it will show. Do you know any work around for this? Pls inform. Thank you. Laxmi --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi, CSV files don't generally contain header and footer information... you can get column headers in the first row, that's about it. I don't believe DataVision will export to Excel natively, but check the docs in case I'm wrong. Do you really mean header and footer in the sense of a Word document? It's a bit unusual to have such a thing in an Excel document (although not at all unheard of), so I'm wondering if maybe you mean something a little different, i.e., maybe just column headers and some sort of totals? Frank U K Laxmi wrote: Thank you for the information. I read your report and it looks interesting. I went to DataVision web site and found that it can export comma separated files ie. CSV file. Will it be possible to retain header and footer information with a .CSV file? I basically want excel files as the report output. B'coz the end user needs to send to those reports to it's vendors. Excel is the most desired format for them. Pls give your feedback on this before i start implementing on this. Thank you. --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it in web applications. Although the article uses servlets and you say your using JSPs (just JSP's?) it should still be applicable. http://www.omnytex.com/articles Feel free to ping me if you decide to use it and need some help getting going beyond the article and included documentation. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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] Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Free reporting s/w that works with apache+tomcat
you should consider using POI, if you need Excel-only features like footer repeated on every page. Specifically: http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 9:53 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Free reporting s/w that works with apache+tomcat Thank you for the information. What i mean by header footer is, column headers and some information like model number, date and approval signature columns etc.. to appear in every page when they take hard copy of the report. Is such a thing possible? Pls inform. The end user of the application doesn't want any manual intervention. When he click on 'Export to Excel' button in the web application HTML report, he want the excel file get downloded (file dialog box appears he save it to his local disk) which has all header footer information set. Currently my application can provide header once at the top of the report and footer (approval columns date) at the very bottom of the report. THe column headings approval columns doesn't appear on every page. I'm unable to ahcieve this in web (HTML). It i cna do it in web, when i download that in excel, it will show. Do you know any work around for this? Pls inform. Thank you. Laxmi --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi, CSV files don't generally contain header and footer information... you can get column headers in the first row, that's about it. I don't believe DataVision will export to Excel natively, but check the docs in case I'm wrong. Do you really mean header and footer in the sense of a Word document? It's a bit unusual to have such a thing in an Excel document (although not at all unheard of), so I'm wondering if maybe you mean something a little different, i.e., maybe just column headers and some sort of totals? Frank U K Laxmi wrote: Thank you for the information. I read your report and it looks interesting. I went to DataVision web site and found that it can export comma separated files ie. CSV file. Will it be possible to retain header and footer information with a .CSV file? I basically want excel files as the report output. B'coz the end user needs to send to those reports to it's vendors. Excel is the most desired format for them. Pls give your feedback on this before i start implementing on this. Thank you. --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it in web applications. Although the article uses servlets and you say your using JSPs (just JSP's?) it should still be applicable. http://www.omnytex.com/articles Feel free to ping me if you decide to use it and need some help getting going beyond the article and included documentation. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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] Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail
Re: Free reporting s/w that works with apache+tomcat
Sorry I'm late to the party. I've been working with jasperreports from sourceforge the last couple of weeks to create reports in PDF. It also has the ability to create an excel spreadsheet as well, although I haven't used it yet. Using it in conjunction with iReports, also from sourceforge, you can have a report in minutes. I would recommend using it to anyone. Joe Mike Curwen wrote: you should consider using POI, if you need Excel-only features like footer repeated on every page. Specifically: http://jakarta.apache.org/poi/hssf/quick-guide.html#HeaderFooter -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 9:53 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Free reporting s/w that works with apache+tomcat Thank you for the information. What i mean by header footer is, column headers and some information like model number, date and approval signature columns etc.. to appear in every page when they take hard copy of the report. Is such a thing possible? Pls inform. The end user of the application doesn't want any manual intervention. When he click on 'Export to Excel' button in the web application HTML report, he want the excel file get downloded (file dialog box appears he save it to his local disk) which has all header footer information set. Currently my application can provide header once at the top of the report and footer (approval columns date) at the very bottom of the report. THe column headings approval columns doesn't appear on every page. I'm unable to ahcieve this in web (HTML). It i cna do it in web, when i download that in excel, it will show. Do you know any work around for this? Pls inform. Thank you. Laxmi --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi, CSV files don't generally contain header and footer information... you can get column headers in the first row, that's about it. I don't believe DataVision will export to Excel natively, but check the docs in case I'm wrong. Do you really mean header and footer in the sense of a Word document? It's a bit unusual to have such a thing in an Excel document (although not at all unheard of), so I'm wondering if maybe you mean something a little different, i.e., maybe just column headers and some sort of totals? Frank U K Laxmi wrote: Thank you for the information. I read your report and it looks interesting. I went to DataVision web site and found that it can export comma separated files ie. CSV file. Will it be possible to retain header and footer information with a .CSV file? I basically want excel files as the report output. B'coz the end user needs to send to those reports to it's vendors. Excel is the most desired format for them. Pls give your feedback on this before i start implementing on this. Thank you. --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Take a look at DataVision. I think you'll like it. I wrote an article a while back specifically dealing with using it in web applications. Although the article uses servlets and you say your using JSPs (just JSP's?) it should still be applicable. http://www.omnytex.com/articles Feel free to ping me if you decide to use it and need some help getting going beyond the article and included documentation. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com U K Laxmi wrote: I'm developing a web application using apache+tomcat on windows 2000 machine. I'm using Ms Access 2003 as the backend. I'm using JSP for developing web application. I'm developing some web based reports in HTML. But when i export them to Excel, it doesn't look exactly same as that of HTML report. Moreover i need some header and footer information appear in the report. That i'm unable to achieve using JSP and HTML. So, i'm looking for a free reporting software that can meet above functionality and can work with apache+tomcat. If anyone know any work worunds for my problem, pls inform me. It will be a great help to me. Thank you. __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - 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] Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Discover Yahoo! Find restaurants, movies, travel and more
Re: Free reporting s/w that works with apache+tomcat
This is not a solution - but a recommendation. If you output your Excel files in the XML format - then you can specify whatever you like (excluding charts). A simple way to determine what XML you need is to create a test Excel file 1st and then save it as XML and paramterise it. You can set Page size, document headers, footers, hide gridlines, define styles - anything you want. There is a Perl module (Spreadsheet::WriteExcelXML) which I use for this - rather than writing the XML myself. But the Excel XML is reasonably simple. I'm afraid I don't know if there are any corresponding Java utilities. HTH Mike U K Laxmi wrote: Thank you for the information. What i mean by header footer is, column headers and some information like model number, date and approval signature columns etc.. to appear in every page when they take hard copy of the report. Is such a thing possible? Pls inform. The end user of the application doesn't want any manual intervention. When he click on 'Export to Excel' button in the web application HTML report, he want the excel file get downloded (file dialog box appears he save it to his local disk) which has all header footer information set. Currently my application can provide header once at the top of the report and footer (approval columns date) at the very bottom of the report. THe column headings approval columns doesn't appear on every page. I'm unable to ahcieve this in web (HTML). It i cna do it in web, when i download that in excel, it will show. Do you know any work around for this? Pls inform. Thank you. Laxmi --- Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi, -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]