Re: Apache as front-end for several tomcat

2005-03-30 Thread Dan Barron
If you are running multiple instances of Tomcat, from what I understand and 
from my configuration (i run two Tomcat/mod_jk2 with Apache) you would then 
need each of them to listen on a different port.  Right now the only 
instance that will receive requests via the worker is the instance that is 
using port 8009.

At 01:33 PM 3/30/2005, Christophe Lemaire wrote:
Not sure. I have seen several config of name based virtual hosts that 
listen on the same port.

On 30-mars-05, at 23:02, Didier McGillis wrote:
would it be the fact that your sending the requests through the same port 
number?

From: Christophe Lemaire <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: tomcat-user@jakarta.apache.org
Subject: Apache as front-end for several tomcat
Date: Wed, 30 Mar 2005 22:12:27 +0200
Hello,
I would like to setup a Apache 2.0.53 as front-end for several Tomcat 
5.0.19. I use JK1.2.8 as connector.

I have defined one worker per tomcat server. I use three name based 
virtual hosts in the apache config.

The problem is only the first virtual host works. In the mod_jk.log, I 
can see that every request sent to the apache are checked with the 
JkMount from the first virtual host only.

Here are my config files :
 workers.properties ---
worker.list=demo1,demo2,demo3,stat
worker.demo1.type=ajp13
worker.demo1.host=192.168.0.1
worker.demo1.port=8009
worker.demo2.type=ajp13
worker.demo2.host=192.168.0.2
worker.demo2.port=8009
worker.demo3.type=ajp13
worker.demo3.host=192.168.0.3
worker.demo3.port=8009
worker.stat.type=ajp13
worker.stat.host=192.168.0.3
worker.stat.port=7201
- end of  workers.properties ---
In the httpd.conf file, I include the file mod_jk.conf (no other virtual 
hosts are defined in httpd.conf):

 mod_jk.conf ---
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel debug
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
NameVirtualHost *:81

   ServerName demo1.myweb.org
   JkMount /*/tracking/* stat
   JkMount /tracking/* stat
   JkMount /web/* demo1
   JkMount /ald/* demo1
   JkMount /htmleditor/* demo1
   JkMount /* demo1


   ServerName demo2.myweb.org
   JkMount /*/tracking/* stat
   JkMount /* demo2


   ServerName demo3.myweb.org
   JkMount /*/tracking/* stat
   JkMount /* demo3

- end of mod_jk.conf ---
Extract from mod_jk.log :
URL typed in the browser : http://demo3.myweb.org:81/
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' 
from 6 maps
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/*/tracking/*'
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/tracking/*'
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/web/*'
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/ald/*'
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/htmleditor/*'
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context 
URI '/*'
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match demo1 -> /
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] jk_handler::mod_jk.c 
(1715): Into handler jakarta-servlet worker=demo1 r->proxyreq=0
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
wc_get_worker_for_name::jk_worker.c (92): found a worker demo1
[Wed Mar 30 22:15:46 2005] [12762:8192] [debug] 
init_ws_service::mod_jk.c (479): agsp=81 agsn=demo3.myweb.org 
hostn=demo3.myweb.org shostn=demo1.myweb.org cbsport=0 sport=0 claport=81

But I get the homepage of demo1.myweb.org...
Any idea why this happen?
Thanks in advance,
Christophe
-
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]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command

Re: Serious Tomcat Question

2005-03-17 Thread Dan Barron
Not sure what your need or frequency is for routine adding/deleting of a 
virtual host is, but have you considered running multiple instances of 
Tomcat and connecting them each over different jk port?  Perhaps, one 
instance runs your stable virtual hosts - another runs your dynamic set of 
virtual hosts?  I have experienced that Tomcat tends to startup more slowly 
the more virtual hosts you have in the config.  I run with multiple 
instances of Tomcat and when I do need to restart Tomcat, it is relatively 
quick. Doesn't address your session issue though.

btw I run FC2/Apache 2.0/JK2/Tomcat 5.0.28
At 05:33 PM 3/17/2005, Bernard wrote:
Hi,
I would like to hear opinions from users or developers who have a
little more experience with mod-jk/Tomcat then me.
With multiple virtual hosts, I would like to add and delete virtual
hosts on a routine basis.
This is achieved by re-starting both httpd and tomcat after
re-configuration (I don't know any other way).
Surprisingly, Apache immediately returns a server error 500 response
while Tomcat is re-starting.
IMHO this renders almost useless the init() and destroy() servlet
logic that is used to make user sessions persistent before and after a
server restart.
If, for example, the expected servlet response is JavaScript that is
embedded in a web page, then the whole web application gets broken
without even showing an error by this.
This is so because there is no way that I can catch this error in
JavaScript.
The error 500 response is HTML and and the script engine cannot read
it.
This is just a special case but I think an error 500 response for a
server re-start could be considered a disaster in most other cases as
well.
What can be done about this?
I have filed a bug:
http://issues.apache.org/bugzilla/show_bug.cgi?id=34050
Do you agree with my view?
How long would a thing like this take to fix?
Many thanks,
Bernard
-
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 disable directory listing

2005-01-11 Thread Dan Barron
Have a look at your /conf/web.xml file - you can turn off 
listings in here for all servlets by setting  the "listings"  
to "false" in the default servlet section.

Dan
At 06:28 PM 1/11/2005, Garret Wilson wrote:
You can't do it in your app's web.xml---unless you install another servlet 
(which can be the Tomcat default servlet) mapped to root in your own 
web.xml. But then you have to cart around all the Tomcat servlet jars in 
your webapp, because the one that is really the default was loaded by 
another classloader.

Garret
Phillip Qin wrote:
Do it in your app's web.xml
-Original Message-
From: Lee Chin Khiong [mailto:[EMAIL PROTECTED] Sent: November 24, 2004 
1:29 AM
To: 'Tomcat Users List'
Subject: RE: How to disable directory listing

Is there any better way to configure Tomcat 5 to no Directory listing just
like IIS ?
-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:19 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: How to disable directory listing
On Wednesday 24 November 2004 08:09, Lee Chin Khiong wrote:
How to disable directory listing under Tomcat 5 ?
I use a blank index.html file and put it in all the directories that I don't
want to have listed. :)
Q
-
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]


JNI, tomcat & thread safety

2004-11-19 Thread Dan Barron
Hello,
I'm loading a native library within tomcat - the library is loaded with the 
System.loadLibrary() via a static object so that it is only loaded once - 
will tomcat manage any threading issues for calls to the library from the 
JNI wrapper class?

Thanks,
Dan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to tell if JNI Library Loaded at Tomcat Startup?

2004-11-10 Thread Dan Barron
Hello,
How can you determine in Tomcat if a JNI library has been loaded as a 
shared resource for web applications?  I have a Wrapper class and the 
library both living /shared/lib.

Thanks.
Dan 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


JNI Error with Tomcat

2004-11-09 Thread Dan Barron
Hello,
I am having trouble loading a native library for use within Tomcat web 
applications.  I read the wiki entry and found the latest JNI posts - but I 
still don't quite get it and still have an error.  I'm hoping someone out 
there has been through this and has some suggestions.

My environment is Tomcat 5.0.28, Fedora Core 2, JDK 1.5.0, Apache 2.0.52 
connecting to Tomcat with jk2.

I created a wrapper class to load the library libmpascript.so and placed 
the class file into the /shared/classes directory so it would 
load with the built in tomcat shared classloader and be available for all 
web applications.  This sound correct?

 public class MapScriptWrapper {
   static { System.loadLibrary("mapscript"); }
   native void load();
 }
The library lives in /usr/local/lib/special and when starting up tomcat I 
set JAVA_OPTS=-Djava.library.path=/usr/local/lib/special in the 
/etc/init.d/tomcat script.  Does this need to be in 
/bin/catalina.sh?  I could also make it a global variable in 
/etc/profile but have not tried that yet.

  excerpt from /etc/init.d/tomcat
  ...
  start() {
echo -n "Starting tomcat: "
JAVA_OPTS='-Djava.library.path=/usr/local/lib/special'
export JAVA_OPTS
set | grep JAVA
chown -R $TOMCAT_USER:$TOMCAT_USER /usr/local/tomcat/*
su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/startup.sh'
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
return $RETVAL
  }
  ...
There is a correpsonding mapscript.jar file which maps obejcts to the 
library that is available via the CLASSPATH and when I create a jsp file 
and try to create an object that points to the library I get the dreaded 
UnsatisfiedLinkError - which tells me the library is not loaded and available.

java.lang.UnsatisfiedLinkError: new_mapObj 
edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(NativeMethod)
edu.umn.gis.mapscript.mapObj.(mapObj.java:334)
org.apache.jsp.mapscript_002dtest_jsp._jspService(mapscript_002dtest_jsp.java:52)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
Any ideas would be appreciated!  Thanks!

Dan Barron 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: strange error when processing stylesheets: tomcat, jdk1.4, windows, xalan

2004-07-01 Thread Dan Barron
Have you tried just testing (title) instead of (./title)?  The added "./" 
seems unneceassry.

At 02:25 AM 7/1/2004, you wrote:
Hi *,
I get the following error when trying to transform a xml document with
a XSLT stylesheet:
; SystemID: jndi:/localhost/ipas/xsl/minutes_pdf.xsl; Line#: 298; 
Column#: 66
javax.xml.transform.TransformerException: Unknown error in XPath
at org.apache.xpath.XPath.bool(XPath.java:411)
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:198)
...

In the stylesheet, I test for an empty string:

The error occurs:
- with ANY test condition that tests for an empty string
  (e.g. with "string-length(./entry) = 0"
- with having xalan.jar, xml-apis.jar and xercesImpl.jar in my
  WEB-INF/lib from any xalan versions of 2.5.0, 2.5.2, 2.6.0
- with Tomcat 4.1.29 on Windows 2000 and JDK 1.4x
- NOT with JDK 1.3
- NOT on Linux
- NOT with resin
It's these kind of errors that makes being a programmer a real fun!
Does anyone have a tip on what to do?
--
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Toimcat / Apache / Modjk

2004-06-24 Thread Dan Barron
jk file mod_jk.conf it is like this
JkMount /*.jsp worker
JkMount /*.htm worker
JkMount /*.
or
jk2 file workers2.properties you would do something like
[uri:/*.jsp]
[uri:/*.htm]
[uri:/*.]
hope this helps.

At 08:25 AM 6/24/2004, James Sherwood wrote:
Hello,
I have posted this problem before to no avail and thought I would try
again
I have apache 2.049 in front of tomcat 5.025 and they are linked with modjk
1.2
I want everything for a site such as www.mydomain.com to go through tomcat
EXCEPT
for any php pages.
Is there a way I can JkMount everything BUT something?
Basically I want to mount everything EXCEPT url's ending in .php
Thanks in advance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple Tomcat Instances with Linux

2004-06-21 Thread Dan Barron
Jon,
I have used the CATALINA_HOME/common/lib to share jar files among different 
 instances.  Not sure if that answers your question though.

Dan
At 10:54 AM 6/21/2004, you wrote:
Dan,
Thanks for the post, good ideas I'm going to try them.
 One thing I'm still not clear on.  My application is
configured to deploy shared modules (jar files) under
CATALINA_HOME/shared/lib.
If I create multiple instances, how do I configure the
apps to share the correct version of
CATALINA_HOME/shared/lib?
Do you create a separate document root that contains a
shared/lib for each  entry in the server.xml
configuration?
Jon
--- Dan Barron <[EMAIL PROTECTED]> wrote:
> Jon,
>
> I run multiple tomcat services on a Linux box with
> Apache for various
> development and distributions.  The way I went about
> it is to setup
> multiple  configurations within the
> server.xml file. Each service
> has it own port for connectivity and its own worker
> for mod_jk.  I create a
> virtual host entry in mod_jk.conf file which mounts
> the assigned worker
> which in turn points to the specific tomcat service.
>  Here's the three
> files I touch to make it work and an example entry.
> My environment is
> Tomcat 4.1.29, mod_jk, and Apache 1.3.27.
>
> Hope this helps.
>
> Dan
>
> *FILE:mod_jk.conf
>
#~~~
> # domain.com Virtual Host Definition
>
#~~~
>
> 
>  ServerName www.domain.com
>  DocumentRoot /usr/www/domain.com
>  ErrorLog logs/domain.com/error_log
>  CustomLog logs/domain.com/access_log common
>
> ScriptAlias /cgi-bin/
> "/usr/www/domain.com/cgi-bin/"
>
> 
>  AllowOverride None
>  Options None
>  Order allow,deny
>  Allow from all
>  
>
> JkMount /servlet/* domain_worker
> JkMount /alpha/*.jsp domain_worker
> JkMount /*.jsp domain_worker
>
> 
>
> **FILE: workers.properties
>
> worker.list=ajp13, domain_worker
>
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
> worker.ajp13.lbfactor=20
> worker.ajp13.cachesize=20
>
> worker.domain_worker.port=8010
> worker.domain_worker.host=localhost
> worker.domain_worker.type=ajp13
>
> worker.domain_worker.lbfactor=20
> worker.domain_worker.cachesize=20
>
>
> *FILE:server.xml
>
> 
>  ...
>
>
>
>   
>  
className="org.apache.catalina.connector.http.HttpConnector"
> port="8081" minProcessors="5"
> maxProcessors="75"
> enableLookups="true"
> redirectPort="8443"
> acceptCount="10" debug="0"
> connectionTimeout="6"/>
>
>  
>   className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8010" minProcessors="5"
> maxProcessors="75"
> acceptCount="10" debug="0"/>
>
> 
>   defaultHost="www.domain.com" debug="0">
>
>
> className="org.apache.catalina.logger.FileLogger"
>prefix="catalina_domain_log."
> suffix=".txt"
>timestamp="true"/>
>
>
> className="org.apache.catalina.realm.MemoryRealm" />
>
>
> appBase="webapps/domain.com"
> unpackWARs="true" autoDeploy="true">
>
>  
className="org.apache.catalina.valves.AccessLogValve"
>   directory="logs"
> prefix="domain_access_log." suffix=".txt"
>   pattern="common"/>
>
>   className="org.apache.catalina.logger.FileLogger"
>   directory="logs"
> prefix="domain_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>  
>
>
>
>  
>
>
>
>
> 
>
>
> At 05:26 PM 6/18/2004, Jon Feauto wrote:
> >I see this question posted quite often, but rarely
> >answers abound.  Is it because this is too complex
> a
> >topic to explain in a user group?
> >
> >I would think it is fairly common, anyone have
> ideas?
> >
> >Jon
> >
> >
> >--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I'm certain I am behind the curve on this one,

Re: Multiple Tomcat Instances with Linux

2004-06-18 Thread Dan Barron
Jon,
I run multiple tomcat services on a Linux box with Apache for various 
development and distributions.  The way I went about it is to setup 
multiple  configurations within the server.xml file. Each service 
has it own port for connectivity and its own worker for mod_jk.  I create a 
virtual host entry in mod_jk.conf file which mounts the assigned worker 
which in turn points to the specific tomcat service.  Here's the three 
files I touch to make it work and an example entry.  My environment is 
Tomcat 4.1.29, mod_jk, and Apache 1.3.27.

Hope this helps.
Dan
*FILE:mod_jk.conf
#~~~
# domain.com Virtual Host Definition
#~~~

ServerName www.domain.com
DocumentRoot /usr/www/domain.com
ErrorLog logs/domain.com/error_log
CustomLog logs/domain.com/access_log common
   ScriptAlias /cgi-bin/ "/usr/www/domain.com/cgi-bin/"
   
AllowOverride None
Options None
Order allow,deny
Allow from all

   JkMount /servlet/* domain_worker
   JkMount /alpha/*.jsp domain_worker
   JkMount /*.jsp domain_worker

**FILE: workers.properties
worker.list=ajp13, domain_worker
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=20
worker.ajp13.cachesize=20
worker.domain_worker.port=8010
worker.domain_worker.host=localhost
worker.domain_worker.type=ajp13
worker.domain_worker.lbfactor=20
worker.domain_worker.cachesize=20
*FILE:server.xml

...
  
 



   

  
  
  
  
  
  




  

  

At 05:26 PM 6/18/2004, Jon Feauto wrote:
I see this question posted quite often, but rarely
answers abound.  Is it because this is too complex a
topic to explain in a user group?
I would think it is fairly common, anyone have ideas?
Jon
--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm certain I am behind the curve on this one, but
> I've been looking around for several days now and
> haven't found the answers I need.
>
> I'm looking to setup multiple environments for
> Tomcat
> 4x on a single linux server.  One for each developer
> and several others for different versions of test.
>
> From the mail list archives I've come to understand
> that CATALINA_BASE can be used to configure multiple
> instances.  However, most examples I've seen use
> this
> in coordination with multiple server.xml files.
>
> I'm hoping there is a trick to this that I'm
> missing.
> I don't mind the extra configuration as long as that
> is the recommended approach.
>
> For an installation supporting a linux service, does
> the /etc/init.d/tomcat4 script need to be modified
> to
> set the CATALINA_BASE for each instance started?
>
> Do I need to use different port numbers to access
> those instances?
>
> Is the CATALINA_HOME/shared/lib actually "shared"
> across instances or can it be unique to an instance
> according to CATALINA_BASE?
>
> Is virtual hosting required to support this type of
> environment?
>
> Any help is appreciated.
>
> Thanks,
> Jon
>
> __
> 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]
>
>

__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_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]


Allow user to change password in JDBCRealm

2004-06-18 Thread Dan Barron
Hello,
I've looked around for some time now for a clear answer on this topic, but 
have not had much luck.

I have user authentication setup using JDBCRealm w/ MySQL and am able to 
login/logout and authenticate users just fine.  My question is, once a user 
is logged in, is the user's login information (uname/pass) available 
somewhere where I can easily grab it and modify it so I can allow my users 
to change their password?

Thanks,
Dan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems building mod_jk2 (aclocal)

2004-05-28 Thread Dan Barron
I just recently successfully built mod_jk2 v2.0.4 under Fedora Core 2 Test 
3.  I first had to rebuild Apache - I used v2.0.49 - for apxs to work 
properly when compiling jk2.  I then brought down the latest src for jk2 - 
v2.0.4.  Here are the configure scripts I used for httpd and jk2. They are 
based off the relevant information in the Tomcat wiki links 
http://www.reliablepenguin.com/clients/misc/tomcat/ and 
http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html.

myconfigure-jk.sh
#! /bin/sh
./configure --with-apxs2=/usr/sbin/apxs \
   --with-apr-lib=/usr/lib \
   --with-tomcat-41=/usr/local/tomcat \
   --with-java-home=/usr/local/java/ \
   --with-jni
myconfigure-httpd.sh file:
#! /bin/sh
./configure -C \
   --prefix=/etc \
   --exec-prefix=/etc \
   --bindir=/usr/bin \
   --sbindir=/usr/sbin \
   --mandir=/usr/share/man \
   --libdir=/usr/lib \
   --sysconfdir=/etc/httpd/conf \
   --includedir=/usr/include/httpd \
   --libexecdir=/usr/lib/httpd/modules \
   --datadir=/usr/www \
   --enable-suexec \
   --with-suexec \
   --with-suexec-caller=apache \
   --with-suexec-docroot=/usr/www \
   --with-suexec-logfile=/var/log/httpd/suexec.log \
   --with-suexec-bin=/usr/sbin/suexec \
   --with-suexec-uidmin=500 \
   --with-suexec-gidmin=500 \
   --with-devrandom \
   --enable-cache=shared \
   --enable-disk-cache=shared \
   --enable-mem-cache=shared \
   --enable-ssl=shared \
   --with-ssl \
   --enable-deflate \
   --enable-access=shared \
   --enable-auth=shared \
   --enable-include=shared \
   --enable-deflate=shared \
   --enable-log-config=shared \
   --enable-env=shared \
   --enable-setenvif=shared \
   --enable-mime=shared \
   --enable-auth-anon=shared \
   --enable-status=shared \
   --enable-autoindex=shared \
   --enable-asis=shared \
   --enable-suexec=shared \
   --enable-auth-dbm=shared \
   --enable-cgi=shared \
   --enable-negotiation=shared \
   --enable-dir=shared \
   --enable-auth-digest=shared \
   --enable-imap=shared \
   --enable-actions=shared \
   --enable-userdir=shared \
   --enable-mime-magic=shared \
   --enable-alias=shared \
   --enable-cern-meta=shared \
   --enable-expires=shared \
   --enable-headers=shared \
   --enable-unique-id=shared \
   --enable-usertrack=shared \
   --enable-dav=shared \
   --enable-info=shared \
   --enable-dav-fs=shared \
   --enable-vhost-alias=shared \
   --enable-speling=shared \
   --enable-rewrite=shared \
   --enable-proxy=shared \
   --enable-proxy-http=shared \
   --enable-proxy-ftp=shared \
   --enable-proxy-connect=shared
At 12:38 AM 5/28/2004, Lars Nielsen Lind wrote:
I have problems building mod_jk2 with Fedora Core 2. It seems to a
problem with the mod_jk2 aclocal script???
Anyone that has successfully build mod_jk2 with Fedora Core 2?
Here are the output:

/Lars Nielsen Lind
-
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: Looking for sample config files mod_jk2.

2004-05-28 Thread Dan Barron

I need to integrate Tomcat 3.3 with Apache 2.0.48. Does any body sample 
configuration files for mod_jk2 to go with this configuration. I will be 
happy, even if the files for a different configuration.
Here's basic jk2.properties file and workers2.properties for a fresh Tomcat 
5.0.24, Apache 2.0.49 and jk2 2.0.4 install on Linux

workers2.properties file:
# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/jsp-examples/*]
info=Map the whole webapp
jk2.properties file:
# Set the desired handler list
handler.list=request,channelSocket


  

jakarta-tomcat-5.0.24.tar.gz really a Windows Dist?

2004-05-21 Thread Dan Barron
Maybe a silly question.  Seems the jakarta-tomcat-5.0.24.tar.gz is really a 
Windows binary distribution.  And then the jakarta-tomcat-5.0.24.zip 
contains both Windows and Unix distribution.  Am I out of my mind here or 
can someone please confirm what I'm seeing is true?

Thanks.
Dan Barron
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Definitive Documentation for RH9, mod_jk2, Apache2 & Tomcat 5?

2004-05-12 Thread Dan Barron
Thanks.

I came across a link that is the best I have seen so far:

http://www.reliablepenguin.com/clients/misc/tomcat/

At 06:02 AM 5/12/2004, Shapira, Yoav wrote:

Hi,
Definitive in the true sense of the word, no.  Helpful docs are aplenty,
though, on the tomcat wiki (http://wiki.apache.org/jakarta-tomcat)
UsefulLinks page.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Dan Barron [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 11, 2004 6:32 PM
>To: Tomcat Users List
>Subject: Definitive Documentation for RH9, mod_jk2, Apache2 & Tomcat 5?
>
>Hello,
>
>Is anyone aware of any definitive documentation for compiling,
installing,
>and configuring mod_jk2 on Red Hat9 with Apache2 and Tomcat5?
>
>Thank you,
>
>Dan Barron
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
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]


Definitive Documentation for RH9, mod_jk2, Apache2 & Tomcat 5?

2004-05-11 Thread Dan Barron
Hello,

Is anyone aware of any definitive documentation for compiling, installing, 
and configuring mod_jk2 on Red Hat9 with Apache2 and Tomcat5?

Thank you,

Dan Barron

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-07 Thread Dan Barron
Certainly one understands the costs of adding processing in the pipeline, 
but AccessLogValve seems to come with a large price to performance even 
with DNS lookups turned off and minimal fields being saved in the 
output.  We have turned it off for now and tomcat performance is 
significantly improved.

Any other methods to get access logs out of Tomcat w/o using 
AccessLogValve?  I suppose I could write my own, but would prefer a known 
solution.

Dan Barron
Destination Software LLC
[EMAIL PROTECTED]
At 05:57 AM 4/7/2004, Shapira, Yoav wrote:

Hi,
How can you expect the addition of ANY component to the processing
pipeline NOT to cause a performance hit?  Of course AccessLogValve adds
something, nothing comes for free.  You can control the hit by modifying
what you're logging and disabling DNS lookups, as others have suggested.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Dan Barron [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 07, 2004 2:09 AM
>To: Tomcat Users List
>Cc: Dan Anderson
>Subject: Can AccessLogValve Cause Tomcat Performance Hit?
>
>Hello,
>
>We are seeing a performance hit to our server whenever we turn on
>AccessLogValve for a virtual host in tomcat. Is this common or has
anyone
>else experienced this?  Any suggestions on how to configure for optimal
>performance?
>
>Below is the virtual host entry in server.xml - tomcat is running stand
>alone on a Red Hat 9 Linux box - the box is dedicated to running tomcat
-
>there are two virtual hosts configured for the server, and only one has
any
>real traffic.
>
>   unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>  
>  directory="logs"  prefix="mysite.net." suffix=".txt"
>   timestamp="true"/>
> directory="logs/mysite.net-acesslogs"
>      pattern="%t %a %A %h %m %p %U"
>  prefix="access_log." suffix=".txt"
> timestamp="true"/>
>   
>   
>
>Thanks in advance!
>
>Dan Barron
>[EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
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]


Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-06 Thread Dan Barron
Hello,

We are seeing a performance hit to our server whenever we turn on 
AccessLogValve for a virtual host in tomcat. Is this common or has anyone 
else experienced this?  Any suggestions on how to configure for optimal 
performance?

Below is the virtual host entry in server.xml - tomcat is running stand 
alone on a Red Hat 9 Linux box - the box is dedicated to running tomcat - 
there are two virtual hosts configured for the server, and only one has any 
real traffic.

 
 
  
  
  
  
Thanks in advance!

Dan Barron
[EMAIL PROTECTED] 

XSL Transform Problem: Seeing "SAXParseException: Content is not allowed in prolog"

2003-11-12 Thread Dan Barron
Hello,

I'm seeing an SAXParseException when I am trying to do a simple xml 
transform inside a simple jsp file.  I see the exception:

"SAXParseException: Content is not allowed in prolog"

I have checked the prolog in both the xml and xsl files and there are no 
extra characters.  I can run the transform from the command line with no 
errors and it works fine.

Any one have any clues on this problem they would like share?

Included below is my environment, test.xml file, test.xsl file, test.jsp 
file, the command line transform, and the tomcat log otput of the exception.

Thanks!

Dan Barron
[EMAIL PROTECTED]
*** environment ***

redhat 7.3
apache 1.3
tomcat 4.1.29
mod_jk 1.2
Java 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
*** test.xml file ***



  Hello World - xml to xsl test

*** test.xsl file ***


http://www.w3.org/1999/XSL/Transform"; 
version="1.0">


 



*** test.jsp file ***

<%@ page import="java.io.*"%>
<%@ page import="javax.xml.transform.stream.*"%>
<%@ page import="javax.xml.transform.*"%>
<%
out.print("barronfamily.net - /charlineanddan/jsp/test.jsp");
try {
   //~~~ get Transformer object & stylesheet to use for transformation ~~~
   TransformerFactory tFactory = TransformerFactory.newInstance();
   StreamSource xslFile = new 
StreamSource("/usr/www/barronfamily.net/charlineanddan/xsl/test.xsl");
   Transformer transformer = tFactory.newTransformer( xslFile );

   //~~~ setup stream reader and writer ~~~
   StringReader stream = new 
StringReader("/usr/www/barronfamily.net/charlineanddan/xml/test.xml");
   StringWriter writer = new StringWriter( );

   //~~~ transform the xml via the stylesheet ~~~
   transformer.transform(new StreamSource(stream), new 
StreamResult(writer));

   out.print(writer.toString());

} catch(Exception e ) {
  out.print("ERROR: XML Tansformation was unsuccessful:\n");
  e.printStackTrace();
}
%>
*** Run at Command Line ***

[EMAIL PROTECTED] java org.apache.xalan.xslt.Process -in 
./xml/test.xml -xsl ./xsl/test.xsl

Hello World - xml to xsl test
[EMAIL PROTECTED]

*** Catalina/Tomcat Log of javax.xml.transform.TransformerException ***

javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: 
Content is not allowed in prolog.
   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:686)
   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1088)
   at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1066)
   at org.apache.jsp.test_jsp._jspService(test_jsp.java:64)
   ...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]