HttpRequest.addHeader() doesn't work?

2004-05-15 Thread Rui Zhang
Hi there,

  I tried to use HttpRequest.addHeader() in a tomcat valve to add an
additional header to the request. Right afert this, I printed out the
request headers, by mapping the reqeust to HttpServletRequest.  But the
new header was not there.

  I'm using tomcat 4.1.30.

  Any help would be greatly apperciated.

Best regards,

Rui




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



*.jspx Question

2004-05-15 Thread Sergio
Hello! Its me again:) What should I install / configure to run *.jspx pages on my
Tomcat? Because with applets and jsp pages I have no problem, but this
example from webapps/jsp-examples/jsp2/jspx doesnt work for me.
Tomcat is running on Win 2003EES. Thanks!


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



What is jk_jni?

2004-05-15 Thread Sergio
Hello ALL! I have a question. What is jk_jni, lib jkjni etc? Should I
use it and for what? My specialization so far from this. Anyway I need
Tomcat to run some apps and I cant understand should I use these files
with mod_jk and what for. I have this common trouble with Apr not
loaded. So I reconfigure jk2.propertes to use mod_jk2 instead, but
its hard to understand these dependencies. Or at least - help me to
find some info/articles etc about these things. Thanks.

BTW, new Tomcat 24 - its awesome!!! Untill now - without any trouble.
And new documentation with mod_jk - i dont have even words... Thanks
for thinking about us - people with low IQ :D
My Tomcat is running on Win 2003EES.



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



Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?

2004-05-15 Thread Andrew Clute
Sounds like we are on to something
I used the following for my configure:
./configure --with-apxs2=/usr/sbin/apxs 
--with-tomcat41=/usr/local/tomcat-4.1.30 --with-jni

Also here is the output for ldd:
[EMAIL PROTECTED] root]# cd /etc/httpd/modules/
[EMAIL PROTECTED] modules]# ldd libjkjni.so
libcrypt.so.1 = /lib/libcrypt.so.1 (0xb759f000)
libapr-0.so.0 = /usr/lib/libapr-0.so.0 (0xb758)
libc.so.6 = /lib/tls/libc.so.6 (0xb7448000)
librt.so.1 = /lib/tls/librt.so.1 (0xb7434000)
libm.so.6 = /lib/tls/libm.so.6 (0xb7412000)
libnsl.so.1 = /lib/libnsl.so.1 (0xb73fd000)
libdl.so.2 = /lib/libdl.so.2 (0xb73f9000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0xb73e9000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)
There is no libaprutil-0.so.0 attached to it. Wonder I get that.
BTW, I do have a libaprutil in /usr/lib/libaprutil-0.so.0
Thanks for all the help!
On May 15, 2004, at 1:06 AM, Chong Yu Meng wrote:
Further to my previous message:
This is what you should expect to see with ldd jkjni.so after you 
build it:

[EMAIL PROTECTED] apache2]# ldd jkjni.so
libcrypt.so.1 =  /lib/libcrypt.so.1 (0x008e3000)
libapr-0.so.0 =  /usr/lib/libapr-0.so.0 (0x00179000)
libpcre.so.0 =  /lib/libpcre.so.0 (0x00bb5000)
libpcreposix.so.0 =  /usr/lib/libpcreposix.so.0 (0x00713000)
libaprutil-0.so.0 =  /usr/lib/libaprutil-0.so.0 (0x00342000)
libc.so.6 =  /lib/tls/libc.so.6 (0x00e65000)
librt.so.1 =  /lib/tls/librt.so.1 (0x00686000)
libm.so.6 =  /lib/tls/libm.so.6 (0x005a3000)
libnsl.so.1 =  /lib/libnsl.so.1 (0x00839000)
libdl.so.2 =  /lib/libdl.so.2 (0x00615000)
libldap.so.2 =  /usr/lib/libldap.so.2 (0x002f6000)
liblber.so.2 =  /usr/lib/liblber.so.2 (0x00111000)
libgdbm.so.2 =  /usr/lib/libgdbm.so.2 (0x00361000)
libdb-4.1.so =  /usr/lib/tls/libdb-4.1.so (0x00199000)
libexpat.so.0 =  /usr/lib/libexpat.so.0 (0x00571000)
/lib/ld-linux.so.2 =  /lib/ld-linux.so.2 (0x00b29000)
libpthread.so.0 =  /lib/tls/libpthread.so.0 (0x0011d000)
libresolv.so.2 =  /lib/libresolv.so.2 (0x0012d000)
libsasl2.so.2 =  /usr/lib/libsasl2.so.2 (0x00d99000)
libssl.so.4 =  /lib/libssl.so.4 (0x0013f000)
libcrypto.so.4 =  /lib/libcrypto.so.4 (0x003fb000)
libgssapi_krb5.so.2 =  /usr/lib/libgssapi_krb5.so.2 (0x0055d000)
libkrb5.so.3 =  /usr/lib/libkrb5.so.3 (0x00723000)
libcom_err.so.2 =  /lib/libcom_err.so.2 (0x00174000)
libk5crypto.so.3 =  /usr/lib/libk5crypto.so.3 (0x0025a000)
libz.so.1 =  /usr/lib/libz.so.1 (0x0027c000)
Or something similar. Do you see this ?
Regards,
pascal chong
Andrew Clute wrote:
I originally used the RPM's I found somewhere, but I didn't see the  
libjkjni.so in it, so I built from source then.

On May 14, 2004, at 11:35 PM, Chong Yu Meng wrote:
Are you using mod_jk2 binaries (RPM packages) or source ?
Clute, Andrew wrote:
Yeah, I have the file:
[EMAIL PROTECTED] /]# find -name libaprutil-0.so.0
./usr/lib/libaprutil-0.so.0
Does that help? I tried following directions on that site to no 
avail.

Just so I can understand better, is this unresolved symbol error  
because
the libjkjni.so was built missing a static references, or because at
runtime that library cannot be found?

-Andrew

-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Friday, 
May  14, 2004 11:43 AM
To: Tomcat Users List
Subject: Re: Tomcat and HTTPD on the same box: What's the best 
mod_jk2
protocol?

Hi Andrew,
See this :  
http://archives.real-time.com/pipermail/tomcat-devel/2003-June/ 
052811.ht
ml

Can you locate this file : libaprutil-0.so.0 ? It may be named
differently.
Regards,
pascal chong


-
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 commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?

2004-05-15 Thread Chong Yu Meng
Hi Andrew !
Ok, I need to tell you something : it's getting really HOT in Singapore 
now, and I'm having a little difficulty focusing. And my wife turned on 
the lamp that is like Kenny Roger's rotisserie machine oven (I think I 
should just pull out the bulb or something).So I'll try to make this 
really brief :

Try this:
./configure --with-apxs2=/usr/sbin/apxs \
 --with-apr-lib=/usr/lib \
 --with-tomcat-41=/opt/jakarta-tomcat-4.1.30 \
 --with-java-home=/usr/java \
 --with-jni
Notice that I specified with-apr-lib, pointing to the location of 
libaprutil.* Also, please substitute your JAVA_HOME in with-java-home

Ok, I gotta go open the fridge or something. Tell me how it goes. How 
hot is it where you are ?

Regards,
pascal chong

Andrew Clute wrote:
Sounds like we are on to something
I used the following for my configure:
./configure --with-apxs2=/usr/sbin/apxs 
--with-tomcat41=/usr/local/tomcat-4.1.30 --with-jni

Also here is the output for ldd:
[EMAIL PROTECTED] root]# cd /etc/httpd/modules/
[EMAIL PROTECTED] modules]# ldd libjkjni.so
libcrypt.so.1 = /lib/libcrypt.so.1 (0xb759f000)
libapr-0.so.0 = /usr/lib/libapr-0.so.0 (0xb758)
libc.so.6 = /lib/tls/libc.so.6 (0xb7448000)
librt.so.1 = /lib/tls/librt.so.1 (0xb7434000)
libm.so.6 = /lib/tls/libm.so.6 (0xb7412000)
libnsl.so.1 = /lib/libnsl.so.1 (0xb73fd000)
libdl.so.2 = /lib/libdl.so.2 (0xb73f9000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0xb73e9000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)
There is no libaprutil-0.so.0 attached to it. Wonder I get that.
BTW, I do have a libaprutil in /usr/lib/libaprutil-0.so.0
Thanks for all the help!
On May 15, 2004, at 1:06 AM, Chong Yu Meng wrote:
Further to my previous message:
This is what you should expect to see with ldd jkjni.so after you 
build it:

[EMAIL PROTECTED] apache2]# ldd jkjni.so
libcrypt.so.1 =  /lib/libcrypt.so.1 (0x008e3000)
libapr-0.so.0 =  /usr/lib/libapr-0.so.0 (0x00179000)
libpcre.so.0 =  /lib/libpcre.so.0 (0x00bb5000)
libpcreposix.so.0 =  /usr/lib/libpcreposix.so.0 (0x00713000)
libaprutil-0.so.0 =  /usr/lib/libaprutil-0.so.0 (0x00342000)
libc.so.6 =  /lib/tls/libc.so.6 (0x00e65000)
librt.so.1 =  /lib/tls/librt.so.1 (0x00686000)
libm.so.6 =  /lib/tls/libm.so.6 (0x005a3000)
libnsl.so.1 =  /lib/libnsl.so.1 (0x00839000)
libdl.so.2 =  /lib/libdl.so.2 (0x00615000)
libldap.so.2 =  /usr/lib/libldap.so.2 (0x002f6000)
liblber.so.2 =  /usr/lib/liblber.so.2 (0x00111000)
libgdbm.so.2 =  /usr/lib/libgdbm.so.2 (0x00361000)
libdb-4.1.so =  /usr/lib/tls/libdb-4.1.so (0x00199000)
libexpat.so.0 =  /usr/lib/libexpat.so.0 (0x00571000)
/lib/ld-linux.so.2 =  /lib/ld-linux.so.2 (0x00b29000)
libpthread.so.0 =  /lib/tls/libpthread.so.0 (0x0011d000)
libresolv.so.2 =  /lib/libresolv.so.2 (0x0012d000)
libsasl2.so.2 =  /usr/lib/libsasl2.so.2 (0x00d99000)
libssl.so.4 =  /lib/libssl.so.4 (0x0013f000)
libcrypto.so.4 =  /lib/libcrypto.so.4 (0x003fb000)
libgssapi_krb5.so.2 =  /usr/lib/libgssapi_krb5.so.2 (0x0055d000)
libkrb5.so.3 =  /usr/lib/libkrb5.so.3 (0x00723000)
libcom_err.so.2 =  /lib/libcom_err.so.2 (0x00174000)
libk5crypto.so.3 =  /usr/lib/libk5crypto.so.3 (0x0025a000)
libz.so.1 =  /usr/lib/libz.so.1 (0x0027c000)
Or something similar. Do you see this ?
Regards,
pascal chong

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


Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?

2004-05-15 Thread Andrew Clute
Not hot here at all in Ohio.
Anyways, I tried your suggestion and it did not include the libaprutil.
Here is my configure statement:
[EMAIL PROTECTED] native2]# ./configure --with-apxs2=/usr/sbin/apxs 
--with-apr-lib=/usr/lib 
--with-tomcat-41=/usr/local/jakarta-tomcat-4.1.30 
--with-java-home=/usr/java/j2sdk1.4.2_04 --with-jni

here is the output from configure:
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag CXX to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... 
(cached) yes
appending configuration tag F77 to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared 
libraries... yes
checking how to hardcode library paths into programs... immediate

How to get mod_jk2.so

2004-05-15 Thread Software
Hi, who know how to get or create the mod_jk2.so for linux redhat 8.0 
and Apache 1.3.24

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


Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?

2004-05-15 Thread Chong Yu Meng
Hmm... you have another problem :
no apxs given
Can you check if you have /usr/sbin/apxs ? I don't know what RHEL names 
it, apxs or apxs2.

Also, there is an additional step, if you are using version 2.0.4 for 
mod_jk2 :

After you have finished configure and make, assuming that your download 
directory is /downloads, you need to execute this:

[EMAIL PROTECTED] downloads]# cd 
jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build/jk2/apache2
[EMAIL PROTECTED] apache2]# /usr/sbin/apxs -n jk2 -i mod_jk2.so

You should not need libaprutil sources, I don't think. I never had to 
download them.

Regards,
pascal chong

Andrew Clute wrote:
Not hot here at all in Ohio.
Anyways, I tried your suggestion and it did not include the libaprutil.
Here is my configure statement:
[EMAIL PROTECTED] native2]# ./configure --with-apxs2=/usr/sbin/apxs 
--with-apr-lib=/usr/lib 
--with-tomcat-41=/usr/local/jakarta-tomcat-4.1.30 
--with-java-home=/usr/java/j2sdk1.4.2_04 --with-jni

here is the output from configure:
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag CXX to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in 

Changing the 'ROOT' webapp (newbie question)

2004-05-15 Thread Barnet Wagman
By default, when Tomcat gets a request for something like
http://www.some_domain_name.com/
or
http://www.some_domain_name.com
it serves the file webapps/ROOT/index.jsp
What is the preferred way of getting it return the index file of a
different wep app?  I haven't found anything in the conf xml files, the
documentation, or the archives about this (which doesn't mean it isn't
there, just that I didn't see it).  Of course I could just change the
contents of webapps/ROOT, but I suspect there's a better way.
Thanks,
bw

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


Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?

2004-05-15 Thread Andrew Clute
/usr/sbin/apxs exist -- as I have used it to do the second statement 
you talked about. Although I am not sure how running apxs against 
mod_jk2.so will change libjkjni.so

-Andrew
On May 15, 2004, at 1:00 PM, Chong Yu Meng wrote:
Hmm... you have another problem :
no apxs given
Can you check if you have /usr/sbin/apxs ? I don't know what RHEL 
names it, apxs or apxs2.

Also, there is an additional step, if you are using version 2.0.4 for 
mod_jk2 :

After you have finished configure and make, assuming that your 
download directory is /downloads, you need to execute this:

[EMAIL PROTECTED] downloads]# cd 
jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build/jk2/apache2
[EMAIL PROTECTED] apache2]# /usr/sbin/apxs -n jk2 -i mod_jk2.so

You should not need libaprutil sources, I don't think. I never had to 
download them.

Regards,
pascal chong

Andrew Clute wrote:
Not hot here at all in Ohio.
Anyways, I tried your suggestion and it did not include the 
libaprutil.

Here is my configure statement:
[EMAIL PROTECTED] native2]# ./configure --with-apxs2=/usr/sbin/apxs 
--with-apr-lib=/usr/lib 
--with-tomcat-41=/usr/local/jakarta-tomcat-4.1.30 
--with-java-home=/usr/java/j2sdk1.4.2_04 --with-jni

here is the output from configure:
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag CXX to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping 

Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?

2004-05-15 Thread Chong Yu Meng
Andrew Clute wrote:
/usr/sbin/apxs exist -- as I have used it to do the second statement 
you talked about. Although I am not sure how running apxs against 
mod_jk2.so will change libjkjni.so

Err, it won't. Just reminding you that you have to run it. One last 
attempt : did you run buildconfig before configure ? I understand from 
someone else running RHEL that you need to run that.

Regards,
pascal chong

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


java.lang.IncompatibleClassChangeError

2004-05-15 Thread Dave Ford
I am getting this error everytime I attempt to invoke:

bodyJspFragment.invoke(stringWriter);

Any idea what could be causing the error?

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com


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



Re: Tomcat reboot runtime

2004-05-15 Thread Kevin D. Offet
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
a daemon thread is just an ordinary thread that has been set as a
daemon. their purpose is to be servant threads. when there are only
daemon threads left a program will exit.
as such, it executes in the same jvm instance as it's parent.
parent spawns daemon,
daemon spawns shell,
shell runs command to kill parent
which kills daemon
which kills shell which kills command.
just a big circle.
i don't know about other OS, but the process control features of the
bash shell on linux would allow what i think you are trying to achieve.
don't worry about needing a thread. just try something like
String command = /where/your/script/lives/scriptname restart disown;
getRuntime().exec(command);
regards,
Kevin
QM wrote:
| It just hit me --
| what about a (protected) servlet that spawns a daemon thread, which in
| turn calls Runtime.exec( tomcat stop / start script)?
|
| Admittedly, I'm hazy on my Java threading right now, but if that would
| work then it's something that's completley within the container, and no
| more than a few lines of code.
|
| -or am I off my rocker? ;)
|
| -QM
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFApmyuJ7Xd6MyEGu4RAkNEAJ4qwRZp5bln3yilMmONhN9BHlEp4ACfdc8Y
lgmuKMq/TdyWn4ECzYNP1iM=
=/mzN
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and HTTPD on the same box: What's the best mod_jk2 protocol?

2004-05-15 Thread Andrew Clute
On May 15, 2004, at 1:50 PM, Chong Yu Meng wrote:
Andrew Clute wrote:
/usr/sbin/apxs exist -- as I have used it to do the second statement 
you talked about. Although I am not sure how running apxs against 
mod_jk2.so will change libjkjni.so

Err, it won't. Just reminding you that you have to run it. One last 
attempt : did you run buildconfig before configure ? I understand from 
someone else running RHEL that you need to run that.

Regards,
pascal chong

Nope, no luck! libaprutil is still not linked, and I still get the 
apr_md5_final error.

Well, thanks for all your help!
-Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat reboot runtime

2004-05-15 Thread QM

On Sat, May 15, 2004 at 03:17:02PM -0400, Kevin D. Offet wrote:
: i don't know about other OS, but the process control features of the
: bash shell on linux would allow what i think you are trying to achieve.

Yes, shortly after I posted that message I did more digging on Java
threads and realized the flaw. ;)  Back to the ListenExec idea...


: String command = /where/your/script/lives/scriptname restart disown;
: getRuntime().exec(command);

Called from the container, that may cause other problems: Runtime.exec()
forks a process from the parent JVM.

Solaris, for one, implements COW for fork()'d processes but still
requires there be enough memory for the new process to have a full copy
should it need it.  On a dedicated machine, when the JVM holds most of
the RAM, that would make the fork() impossible.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: web.xml deployment Problem

2004-05-15 Thread Haroon Chaudhry
Hi ,

changing /servlet/* to /* might help

Haroon

 
 His web.xml is defined as follows:
-
 servlet-mapping
 servlet-name
 invoker
 /servlet-name
 url-pattern
 /servlet/*
 /url-pattern
 /servlet-mapping


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