Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jarda,

On 4/18/2011 1:12 AM, Jaroslav Fikker wrote:
 Thank you very much for your tip. I had tried to run command
 
 CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure --with-apr=/usr
 --prefix=/opt/tomcat_6_0
 
 but I still was unsuccessful. I check log file and I think that cause
 of problem is in /usr/bin/apr-1-config file. One command inside this
 file is:
 
 pkg-config --variable=libdir apr-1
 
 Output of this command is /usr/lib64. I have installed both 32bit
 (/usr/lib) and 64bit (/usr/lib64) version of APR. Does exist any way
 to force configure command to use 32bit path of APR?

Your tcnative build must match your apr and openssl architectures. If
you have 64-bit APR, you must use 64-bit tcnative and therefore 64-bit Java.

I'm not sure if it's possible to use your package manager to install
both 32- and 64-bit APR libraries so you can choose.

You might want to simplify things and build everything x64.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2spq8ACgkQ9CaO5/Lv0PBZBACgmRGS8cmw1fDCL2BfJShkVx89
fsAAoLCixJfNpgKrSlur1yEQ8Hff/siY
=TUda
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-17 Thread Jaroslav Fikker

Hi Konstantin,

Thank you very much for your tip. I had tried to run command

CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure --with-apr=/usr 
--prefix=/opt/tomcat_6_0

but I still was unsuccessful. I check log file and I think that cause of 
problem is in /usr/bin/apr-1-config file. One command inside this file is:

pkg-config --variable=libdir apr-1

Output of this command is /usr/lib64. I have installed both 32bit (/usr/lib) 
and 64bit (/usr/lib64) version of APR. Does exist any way to force configure 
command to use 32bit path of APR?

Best regards,

Jarda F.
__
 Od: Konstantin Kolinko knst.koli...@gmail.com
 Komu: Tomcat Users List users@tomcat.apache.org
 Datum: 15.04.2011 16:48
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
 for Tomcat

2011/4/13 Jaroslav Fikker fik...@atlas.cz:

 You are right - my java is 32bit. So that is the probelm in compilation of 
 APR?


Java byte code is agnostic to CPU architecture, but native code should
be for the same architecture as the Java runtime that loads it.

You should either use 64-bit JRE with 64-bit library, or recompile the
library as 32-bit. (*)

Whether there are benefits in using 64-bit Java is a separate question.


(*) I have never tried to build 32-bit apps on 64-bit Linux. Looking
at what is written elsewhere my guess would be:

CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-15 Thread Konstantin Kolinko
2011/4/13 Jaroslav Fikker fik...@atlas.cz:

 You are right - my java is 32bit. So that is the probelm in compilation of 
 APR?


Java byte code is agnostic to CPU architecture, but native code should
be for the same architecture as the Java runtime that loads it.

You should either use 64-bit JRE with 64-bit library, or recompile the
library as 32-bit. (*)

Whether there are benefits in using 64-bit Java is a separate question.


(*) I have never tried to build 32-bit apps on 64-bit Linux. Looking
at what is written elsewhere my guess would be:

CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 ./configure


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-14 Thread Jaroslav Fikker

Hi,

I apologize for my stupid question but I am not Linux specialist.

Is there some recommendation for using 32bit java (and APR) on 64bit RedHat?

JF

__
 Od: Mladen Turk mt...@apache.org
 Komu: users@tomcat.apache.org
 Datum: 13.04.2011 14:38
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
 for Tomcat

On 04/13/2011 02:29 PM, Jaroslav Fikker wrote:


 So that is the probelm in compilation of APR?


LOL. Nope. It's in your java cause you have 64-bit OS, right?


Regards
-- 
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-14 Thread André Warnier

Jaroslav Fikker wrote:

Hi,

I apologize for my stupid question but I am not Linux specialist.

Is there some recommendation for using 32bit java (and APR) on 64bit RedHat?



It is not a stupid question.  Proof : I have the same question. :-)

If you allow me to hijack your post, my question is :

If my server has a 64-bit capable CPU, a 64-bit Linux O.S., and 8 GB of RAM,
and I have a tomcat which runs only one or two small webapps, and is unlikely to ever need 
more than e.g. 1 GB of RAM,

is there any advantage (or inconvenient) in running this Tomcat in a 64-bit (or 
32-bit) JVM ?

From previous posts on this list, I gather that basically the only advantage of using a 
64-bit JVM, is that one can allocate more than 2-3 GB of RAM to the JVM.
But on the other hand, for the same workload, a 64-bit JVM will use a significantly larger 
amount of RAM, without immediate benefits.  True/false ?


So for the above Tomcat, I would use less resources, without sacrificing performance, by 
running it in a 32-bit JVM.  True/false ?


And if for some other Java application on the same server, I needed more than 2 GB or RAM, 
I could always run that one in a separate 64-bit JVM. True/false ?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-14 Thread Mladen Turk

On 04/14/2011 12:10 PM, André Warnier wrote:

Jaroslav Fikker wrote:


I apologize for my stupid question but I am not Linux specialist.

Is there some recommendation for using 32bit java (and APR) on 64bit RedHat?



It is not a stupid question. Proof : I have the same question. :-)
If you allow me to hijack your post, my question is :

If my server has a 64-bit capable CPU, a 64-bit Linux O.S., and 8 GB of RAM,
and I have a tomcat which runs only one or two small webapps, and is unlikely 
to ever need more than e.g. 1 GB of RAM,
is there any advantage (or inconvenient) in running this Tomcat in a 64-bit (or 
32-bit) JVM ?



I totally agree with you. If you don't need huge memory use 32-bit JVM
It is as well more then 30% memory efficient for the same application.
I have a simple MemoryTest.java that can prove that easily.

However not all 64-bit linux boxes have 32-bit JVM support,
so not a general solution. Also neither -d32/-d64 works
(Although I'm working on a OpenJDK patches for that, but the
 OpenJDK community, is well ... fill in the gaps :)



Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-13 Thread Mladen Turk

On 04/13/2011 07:14 AM, Jaroslav Fikker wrote:


Hi,

I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
export LD_LIBRARY_PATH

But when I start server with startup.sh script I can find next warning 
incatalina.out file (but Tomcat application server runs and works):
Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows 
optimalperformance in production environments was not found on the 
java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
6::/opt/tomcat_6_0/lib:/usr/lib

Where could be a problem? Thank you very much for your help.

What is the output of ls /opt/tomcat_6_0/lib ?



$ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH
$ ldd /opt/tomcat_6_0/lib/libtcnative-1.so

Make sure there are no unresolved references.


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-13 Thread Jaroslav Fikker

Hi,

There is output of ldd command:

ldd /opt/tomcat_6_0/lib/libtcnative-1.so
linux-vdso.so.1 =  (0x7fff4a5d9000)
libssl.so.6 = /lib64/libssl.so.6 (0x2ad6f40ad000)
libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2ad6f42fa000)
libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2ad6f464b000)
libpthread.so.0 = /lib64/libpthread.so.0 (0x2ad6f4872000)
libdl.so.2 = /lib64/libdl.so.2 (0x2ad6f4a8e000)
libc.so.6 = /lib64/libc.so.6 (0x2ad6f4c92000)
libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 
(0x2ad6f4fea000)
libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2ad6f5219000)
libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2ad6f54ae000)
libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2ad6f56b)
libz.so.1 = /usr/lib64/libz.so.1 (0x2ad6f58d6000)
libuuid.so.1 = /lib64/libuuid.so.1 (0x2ad6f5aea000)
libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2ad6f5cee000)
/lib64/ld-linux-x86-64.so.2 (0x00349dc0)
libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 
(0x2ad6f5f27000)
libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2ad6f612f000)
libresolv.so.2 = /lib64/libresolv.so.2 (0x2ad6f6331000)
libselinux.so.1 = /lib64/libselinux.so.1 (0x2ad6f6547000)
libsepol.so.1 = /lib64/libsepol.so.1 (0x2ad6f675f000)

It seems that all is OK.

Jarda

__
 Od: Mladen Turk mt...@apache.org
 Komu: Tomcat Users List users@tomcat.apache.org
 Datum: 13.04.2011 09:18
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
 for Tomcat

On 04/13/2011 07:14 AM, Jaroslav Fikker wrote:

 Hi,

 I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
 export LD_LIBRARY_PATH

 But when I start server with startup.sh script I can find next warning 
 incatalina.out file (but Tomcat application server runs and works):
 Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows 
 optimalperformance in production environments was not found on the 
 java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
 6::/opt/tomcat_6_0/lib:/usr/lib

 Where could be a problem? Thank you very much for your help.

 What is the output of ls /opt/tomcat_6_0/lib ?


$ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH
$ ldd /opt/tomcat_6_0/lib/libtcnative-1.so

Make sure there are no unresolved references.


Regards
-- 
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-13 Thread Konstantin Kolinko
/lib64/* -- is your Java 64-bit as well?

I guess yours is 32-bit, because version.sh printed
Architecture:   x86

2011/4/13 Jaroslav Fikker fik...@atlas.cz:

 Hi,

 There is output of ldd command:

 ldd /opt/tomcat_6_0/lib/libtcnative-1.so
        linux-vdso.so.1 =  (0x7fff4a5d9000)
        libssl.so.6 = /lib64/libssl.so.6 (0x2ad6f40ad000)
        libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2ad6f42fa000)
        libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2ad6f464b000)
        libpthread.so.0 = /lib64/libpthread.so.0 (0x2ad6f4872000)
        libdl.so.2 = /lib64/libdl.so.2 (0x2ad6f4a8e000)
        libc.so.6 = /lib64/libc.so.6 (0x2ad6f4c92000)
        libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 
 (0x2ad6f4fea000)
        libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2ad6f5219000)
        libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2ad6f54ae000)
        libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2ad6f56b)
        libz.so.1 = /usr/lib64/libz.so.1 (0x2ad6f58d6000)
        libuuid.so.1 = /lib64/libuuid.so.1 (0x2ad6f5aea000)
        libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2ad6f5cee000)
        /lib64/ld-linux-x86-64.so.2 (0x00349dc0)
        libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 
 (0x2ad6f5f27000)
        libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2ad6f612f000)
        libresolv.so.2 = /lib64/libresolv.so.2 (0x2ad6f6331000)
        libselinux.so.1 = /lib64/libselinux.so.1 (0x2ad6f6547000)
        libsepol.so.1 = /lib64/libsepol.so.1 (0x2ad6f675f000)

 It seems that all is OK.

 Jarda

 __
 Od: Mladen Turk mt...@apache.org
 Komu: Tomcat Users List users@tomcat.apache.org
 Datum: 13.04.2011 09:18
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
 for Tomcat

On 04/13/2011 07:14 AM, Jaroslav Fikker wrote:

 Hi,

 I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
 export LD_LIBRARY_PATH

 But when I start server with startup.sh script I can find next warning 
 incatalina.out file (but Tomcat application server runs and works):
 Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows 
 optimalperformance in production environments was not found on the 
 java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
 6::/opt/tomcat_6_0/lib:/usr/lib

 Where could be a problem? Thank you very much for your help.

 What is the output of ls /opt/tomcat_6_0/lib ?


$ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH
$ ldd /opt/tomcat_6_0/lib/libtcnative-1.so

Make sure there are no unresolved references.


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-13 Thread Jaroslav Fikker

Hi Konstantin,

You are right - my java is 32bit. So that is the probelm in compilation of APR?

JF
__
 Od: Konstantin Kolinko knst.koli...@gmail.com
 Komu: Tomcat Users List users@tomcat.apache.org
 Datum: 13.04.2011 14:15
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
 for Tomcat

/lib64/* -- is your Java 64-bit as well?

I guess yours is 32-bit, because version.sh printed
Architecture:   x86

2011/4/13 Jaroslav Fikker fik...@atlas.cz:

 Hi,

 There is output of ldd command:

 ldd /opt/tomcat_6_0/lib/libtcnative-1.so
        linux-vdso.so.1 =  (0x7fff4a5d9000)
        libssl.so.6 = /lib64/libssl.so.6 (0x2ad6f40ad000)
        libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2ad6f42fa000)
        libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2ad6f464b000)
        libpthread.so.0 = /lib64/libpthread.so.0 (0x2ad6f4872000)
        libdl.so.2 = /lib64/libdl.so.2 (0x2ad6f4a8e000)
        libc.so.6 = /lib64/libc.so.6 (0x2ad6f4c92000)
        libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 
 (0x2ad6f4fea000)
        libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2ad6f5219000)
        libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2ad6f54ae000)
        libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2ad6f56b)
        libz.so.1 = /usr/lib64/libz.so.1 (0x2ad6f58d6000)
        libuuid.so.1 = /lib64/libuuid.so.1 (0x2ad6f5aea000)
        libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2ad6f5cee000)
        /lib64/ld-linux-x86-64.so.2 (0x00349dc0)
        libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 
 (0x2ad6f5f27000)
        libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2ad6f612f000)
        libresolv.so.2 = /lib64/libresolv.so.2 (0x2ad6f6331000)
        libselinux.so.1 = /lib64/libselinux.so.1 (0x2ad6f6547000)
        libsepol.so.1 = /lib64/libsepol.so.1 (0x2ad6f675f000)

 It seems that all is OK.

 Jarda

 __
 Od: Mladen Turk mt...@apache.org
 Komu: Tomcat Users List users@tomcat.apache.org
 Datum: 13.04.2011 09:18
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native 
 library for Tomcat

On 04/13/2011 07:14 AM, Jaroslav Fikker wrote:

 Hi,

 I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
 export LD_LIBRARY_PATH

 But when I start server with startup.sh script I can find next warning 
 incatalina.out file (but Tomcat application server runs and works):
 Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows 
 optimalperformance in production environments was not found on the 
 java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
 6::/opt/tomcat_6_0/lib:/usr/lib

 Where could be a problem? Thank you very much for your help.

 What is the output of ls /opt/tomcat_6_0/lib ?


$ LD_LIBRARY_PATH=$CATALINA_HOME/lib:$LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH
$ ldd /opt/tomcat_6_0/lib/libtcnative-1.so

Make sure there are no unresolved references.


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-13 Thread Mladen Turk

On 04/13/2011 02:29 PM, Jaroslav Fikker wrote:



So that is the probelm in compilation of APR?



LOL. Nope. It's in your java cause you have 64-bit OS, right?


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-12 Thread Jaroslav Fikker

Hi,

Do you have somebody some tip where could be a problem? Thanks in advance.

J. Fikker

-

Hello Konstantin,

There is output of ls command:

ls -la /opt/tomcat_6_0/lib/
total 9484
drwxr-x---  3 wasadmin wasadmin4096 Apr 11 07:30 .
drwxr-x--- 11 wasadmin wasadmin4096 Apr 11 07:30 ..
-rwxr-x---  1 wasadmin wasadmin5881 Sep 11  2009 AMTomcatValve.jar
-rwxr-x---  1 wasadmin wasadmin   15239 Feb  2 20:04 annotations-api.jar
-rwxr-x---  1 wasadmin wasadmin   53756 Feb  2 20:04 catalina-ant.jar
-rwxr-x---  1 wasadmin wasadmin  129895 Feb  2 20:04 catalina-ha.jar
-rwxr-x---  1 wasadmin wasadmin 1216210 Feb  2 20:04 catalina.jar
-rwxr-x---  1 wasadmin wasadmin  237317 Feb  2 20:04 catalina-tribes.jar
-rwxr-x---  1 wasadmin wasadmin 1563059 Feb  2 20:04 ecj-3.3.1.jar
-rwxr-x---  1 wasadmin wasadmin   33410 Feb  2 20:04 el-api.jar
-rwxr-x---  1 wasadmin wasadmin  112550 Feb  2 20:04 jasper-el.jar
-rwxr-x---  1 wasadmin wasadmin  526946 Feb  2 20:04 jasper.jar
-rwxr-x---  1 wasadmin wasadmin   76692 Feb  2 20:04 jsp-api.jar
-rwxr-xr--  1 wasadmin wasadmin 156 Apr 11 07:30 libtcnative-1.a
-rwxr-xr-x  1 wasadmin wasadmin 893 Apr 11 07:30 libtcnative-1.la
lrwxrwxrwx  1 wasadmin wasadmin  23 Apr 11 07:30 libtcnative-1.so 
-libtcnative-1.so.0.1.20
lrwxrwxrwx  1 wasadmin wasadmin  23 Apr 11 07:30 libtcnative-1.so.0 
-libtcnative-1.so.0.1.20
-rwxr-xr-x  1 wasadmin wasadmin  874046 Apr 11 07:30 libtcnative-1.so.0.1.20
-rwxr-x---  1 wasadmin wasadmin 1890499 Sep 11  2009 ojdbc5.jar
drwxr-xr-x  2 wasadmin wasadmin4096 Apr 11 07:30 pkgconfig
-rwxr-x---  1 wasadmin wasadmin   88210 Feb  2 20:04 servlet-api.jar
-rwxr-x---  1 wasadmin wasadmin  764743 Feb  2 20:04 tomcat-coyote.jar
-rwxr-x---  1 wasadmin wasadmin  253526 Feb  2 20:04 tomcat-dbcp.jar
-rwxr-x---  1 wasadmin wasadmin   70034 Feb  2 20:04 tomcat-i18n-es.jar
-rwxr-x---  1 wasadmin wasadmin   51971 Feb  2 20:04 tomcat-i18n-fr.jar
-rwxr-x---  1 wasadmin wasadmin   55036 Feb  2 20:04 tomcat-i18n-ja.jar

J. Fikker
__
Od: Konstantin Kolinko knst...@gmail.com
Komu: Tomcat Users List use...@tomcat.apache.org
Datum: 11.04.2011 09:09
Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
forTomcat

2011/4/11 Jaroslav Fikker fik...@atlas.cz:

I installed APR library with these commands:
./configure --with-apr=/usr --prefix=/opt/tomcat_6_0
make
make install

I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
export LD_LIBRARY_PATH

But when I start server with startup.sh script I can find next warning 
incatalina.out file (but Tomcat application server runs and works):
Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows 
optimalperformance in production environments was not found on the 
java.library.path:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
6::/opt/tomcat_6_0/lib:/usr/lib

Where could be a problem? Thank you very much for your help.

What is the output of ls /opt/tomcat_6_0/lib ?

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-11 Thread Jaroslav Fikker

Hello everybody.

I need help with installation of Apache Portable Runtime (APR) based Native 
library for Tomcat. I use Tomcat 6.0.32.0 on Red Hat Enterprise Linux Server 
release 5.6 (Tikanga). There is output from version.sh:

Using CATALINA_BASE:   /opt/tomcat_6_0/servers/ITCAMREP_TT01S01_CL01
Using CATALINA_HOME:   /opt/tomcat_6_0
Using CATALINA_TMPDIR: /opt/tomcat_6_0/servers/ITCAMREP_TT01S01_CL01/temp
Using JRE_HOME:/usr/lib/jvm/java-1.6.0-ibm
Using CLASSPATH:   /opt/tomcat_6_0/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.32
Server built:   February 2 2011 2003
Server number:  6.0.32.0
OS Name:Linux
OS Version: 2.6.18-238.5.1.el5
Architecture:   x86
JVM Version:pxi3260sr9fp1-20110208_03 (SR9 FP1)
JVM Vendor: IBM Corporation

I installed APR library with these commands:
./configure --with-apr=/usr --prefix=/opt/tomcat_6_0
make
make install

I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
export LD_LIBRARY_PATH

But when I start server with startup.sh script I can find next warning in 
catalina.out file (but Tomcat application server runs and works):
Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
/usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
6::/opt/tomcat_6_0/lib:/usr/lib

Where could be a problem? Thank you very much for your help.

Best regards,
J. Fikker.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-11 Thread Konstantin Kolinko
2011/4/11 Jaroslav Fikker fik...@atlas.cz:

 I installed APR library with these commands:
 ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0
 make
 make install

 I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
 export LD_LIBRARY_PATH

 But when I start server with startup.sh script I can find next warning in 
 catalina.out file (but Tomcat application server runs and works):
 Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the 
 java.library.path: /usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
 6::/opt/tomcat_6_0/lib:/usr/lib

 Where could be a problem? Thank you very much for your help.

What is the output of ls /opt/tomcat_6_0/lib ?

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-11 Thread Jaroslav Fikker

Hello Konstantin,

There is output of ls command:

ls -la /opt/tomcat_6_0/lib/
total 9484
drwxr-x---  3 wasadmin wasadmin4096 Apr 11 07:30 .
drwxr-x--- 11 wasadmin wasadmin4096 Apr 11 07:30 ..
-rwxr-x---  1 wasadmin wasadmin5881 Sep 11  2009 AMTomcatValve.jar
-rwxr-x---  1 wasadmin wasadmin   15239 Feb  2 20:04 annotations-api.jar
-rwxr-x---  1 wasadmin wasadmin   53756 Feb  2 20:04 catalina-ant.jar
-rwxr-x---  1 wasadmin wasadmin  129895 Feb  2 20:04 catalina-ha.jar
-rwxr-x---  1 wasadmin wasadmin 1216210 Feb  2 20:04 catalina.jar
-rwxr-x---  1 wasadmin wasadmin  237317 Feb  2 20:04 catalina-tribes.jar
-rwxr-x---  1 wasadmin wasadmin 1563059 Feb  2 20:04 ecj-3.3.1.jar
-rwxr-x---  1 wasadmin wasadmin   33410 Feb  2 20:04 el-api.jar
-rwxr-x---  1 wasadmin wasadmin  112550 Feb  2 20:04 jasper-el.jar
-rwxr-x---  1 wasadmin wasadmin  526946 Feb  2 20:04 jasper.jar
-rwxr-x---  1 wasadmin wasadmin   76692 Feb  2 20:04 jsp-api.jar
-rwxr-xr--  1 wasadmin wasadmin 156 Apr 11 07:30 libtcnative-1.a
-rwxr-xr-x  1 wasadmin wasadmin 893 Apr 11 07:30 libtcnative-1.la
lrwxrwxrwx  1 wasadmin wasadmin  23 Apr 11 07:30 libtcnative-1.so - 
libtcnative-1.so.0.1.20
lrwxrwxrwx  1 wasadmin wasadmin  23 Apr 11 07:30 libtcnative-1.so.0 - 
libtcnative-1.so.0.1.20
-rwxr-xr-x  1 wasadmin wasadmin  874046 Apr 11 07:30 libtcnative-1.so.0.1.20
-rwxr-x---  1 wasadmin wasadmin 1890499 Sep 11  2009 ojdbc5.jar
drwxr-xr-x  2 wasadmin wasadmin4096 Apr 11 07:30 pkgconfig
-rwxr-x---  1 wasadmin wasadmin   88210 Feb  2 20:04 servlet-api.jar
-rwxr-x---  1 wasadmin wasadmin  764743 Feb  2 20:04 tomcat-coyote.jar
-rwxr-x---  1 wasadmin wasadmin  253526 Feb  2 20:04 tomcat-dbcp.jar
-rwxr-x---  1 wasadmin wasadmin   70034 Feb  2 20:04 tomcat-i18n-es.jar
-rwxr-x---  1 wasadmin wasadmin   51971 Feb  2 20:04 tomcat-i18n-fr.jar
-rwxr-x---  1 wasadmin wasadmin   55036 Feb  2 20:04 tomcat-i18n-ja.jar

J. Fikker
__
 Od: Konstantin Kolinko knst.koli...@gmail.com
 Komu: Tomcat Users List users@tomcat.apache.org
 Datum: 11.04.2011 09:09
 Předmět: Re: Problem with Apache Portable Runtime (APR) based Native library 
 for Tomcat

2011/4/11 Jaroslav Fikker fik...@atlas.cz:

 I installed APR library with these commands:
 ./configure --with-apr=/usr --prefix=/opt/tomcat_6_0
 make
 make install

 I also create /opt/tomcat_6_0/bin/setenv.sh file with this content:
 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
 export LD_LIBRARY_PATH

 But when I start server with startup.sh script I can find next warning in 
 catalina.out file (but Tomcat application server runs and works):
 Apr 11, 2011 8:44:15 AM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the 
 java.library.path: /usr/lib/jvm/java-1.6.0-ibm-1.6.0.9.1/jre/lib/i38
 6::/opt/tomcat_6_0/lib:/usr/lib

 Where could be a problem? Thank you very much for your help.

What is the output of ls /opt/tomcat_6_0/lib ?

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Apache Portable Runtime (APR) based Native library for Tomcat

2011-01-12 Thread Peter Sparkes

Hello,

I have a number of Tomcat6 instances, using mod_jk, each of which runs a separate website  (linux 
debian lenny).


My catalina.out files contain:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production 
environments was not found on the java.library.path:

/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server:
/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64:
/usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/amd64:
/usr/java/packages/lib/amd64:/usr/lib64:
/lib64:
/lib:/usr/lib

Please do you believe that in the above case installing APR would lead to a 
performance improvement.

Regards

Peter




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Portable Runtime (APR) based Native library for Tomcat

2011-01-12 Thread Pid
On 1/12/11 2:51 PM, Peter Sparkes wrote:
 Hello,
 
 I have a number of Tomcat6 instances, using mod_jk, each of which runs a
 separate website  (linux debian lenny).
 
 My catalina.out files contain:
 
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:
 /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server:
 /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64:
 /usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/amd64:
 /usr/java/packages/lib/amd64:/usr/lib64:
 /lib64:
 /lib:/usr/lib
 
 Please do you believe that in the above case installing APR would lead
 to a performance improvement.

APR improves performance when sending static files or performing SSL.

Are your Tomcat instances doing this?

What are the limiting performance factors for your apps at present?



p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Portable

2010-03-24 Thread Asangansi
Hi all,
Thanks alot for your contributions.
What other file should i reconfigure to permanently connect the tomcat
to a particular mysql server? Say, mysql server running on port 3308?
And can i make it automatically start the mysql database?

Thank you in anticipation for your collaboration.

CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire



On Mon, Mar 22, 2010 at 7:03 PM, Dan Armbrust
daniel.armbrust.l...@gmail.com wrote:
 and  what specific files do i need to reconfigure withe the new port
 address say, 8088?

 conf/server.xml



 Don't forget to change these other ports (in the same file) as well to
 something non-default:

 port=8005
 port=8009
 port=8443

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/21/2010 9:16 AM, David Kerber wrote:
 If you can find one.  I've been looking for 2GB ones, and they're tough
 to find.  The smallest I can easily find is 8.

I don't know about the stock availability, but MicroCenter (in the US)
still advertise 2GiB sticks. I'll bet there are some 1GiB sticks laying
around.

 And taking this a bit OT, how do you make a big (16GB) memory stick
 bootable?  I haven't found a package yet that will work for this size,
 even though they work fine for 4GB and smaller ones.

Ubuntu and some other Linux distros ship with an install-to-USB program
that will put a bootable Linux OS on the stick. I have no idea about how
to get Microsoft Windows to boot on something like that.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkunrSsACgkQ9CaO5/Lv0PC4VACeLUx7Q7r9Ysp58WyPIaE7BCiT
NogAnA4IHQhoKS1VppRQzjfcBCsPFb84
=wyCg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-22 Thread Dan Armbrust
 and  what specific files do i need to reconfigure withe the new port
 address say, 8088?

 conf/server.xml



Don't forget to change these other ports (in the same file) as well to
something non-default:

port=8005
port=8009
port=8443

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



OT: Bootable USB sticks (was Re: Portable)

2010-03-22 Thread David kerber

On 3/22/2010 1:47 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 3/21/2010 9:16 AM, David Kerber wrote:

If you can find one.  I've been looking for 2GB ones, and they're tough
to find.  The smallest I can easily find is 8.


I don't know about the stock availability, but MicroCenter (in the US)
still advertise 2GiB sticks. I'll bet there are some 1GiB sticks laying
around.


And taking this a bit OT, how do you make a big (16GB) memory stick
bootable?  I haven't found a package yet that will work for this size,
even though they work fine for 4GB and smaller ones.


Ubuntu and some other Linux distros ship with an install-to-USB program
that will put a bootable Linux OS on the stick. I have no idea about how
to get Microsoft Windows to boot on something like that.


I'm actually trying to boot freedos for the purposes of burning in new 
machines.  The package I use for the 4GB sticks (unetbootin) uses a 
syslinux kernel, and it works great on the smaller ones (= 4GiB).  I've 
sent e-mail to the project mailing list, but haven't heard back.


D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-21 Thread David Kerber

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Asangansi,

On 3/20/2010 9:31 AM, Asangansi wrote:
  

can i reduce the file size i.e. are ther files i wounldn't need?



Tomcat is the smallest component you are trying to get working, here. I
think the JVM will be the largest-sized component you have to install,
and it's only about 90MiB installed.

Get yourself a 1GiB memory stick (they're like $3 these days) and just
put it all on there.
  
If you can find one.  I've been looking for 2GB ones, and they're tough 
to find.  The smallest I can easily find is 8. 

And taking this a bit OT, how do you make a big (16GB) memory stick 
bootable?  I haven't found a package yet that will work for this size, 
even though they work fine for 4GB and smaller ones.


D


  

and  what specific files do i need to reconfigure withe the new port
address say, 8088?



conf/server.xml

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkulmZMACgkQ9CaO5/Lv0PDG+QCgn6gLh8kOmw7ikn9K9+bLSUnI
3gAAnA8lIinJUjNeNtJkdKlyAKiDC2wl
=QK9M
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



  




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-20 Thread Asangansi
Thanks Electron...

Please how can i avoid setting up each time i plug my usb stick into
another host?

I think xampp is actually the best option but i'm asking, can i reduce
the file size i.e. are ther files i wounldn't need? and  what specific
files do i need to reconfigure withe the new port address say, 8088?

Thank you all.



CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire



On Thu, Mar 18, 2010 at 8:41 PM, Electronjockey
electronjoc...@hotmail.com wrote:
 Asangansi,

 I'm all for VM's and I use ESXi at home myself. I can't speak to Xen or
  other virtualization tech. And I don't think you can make a bootable VM,
  but I'll admit if I'm wrong. You can check the VMWare forums.
 I've just found that often times it's easier to sell the client on just
 letting me plug in my 16Gb USB thumb drive than it is to either let me
 either install vmware, or boot up their hardware with my own OS. I come from
 a Gov't contracting background, so commercial sector policies may have a
 little more flexibility. Just my experience.
 As far as Xampp goes, I've not had that problem. I set it up once and
 haven't had to touch it since (I did have to make some changes to the
 mod_jk.conf, but if you don't need it connected to appache then you can
 disable that with the Xampp_cli. Xampp also comes with port checker that you
 can run before you start Tomcat, so you can change your config if need.
 Of course the alternative to all this is just host it.

 -Original Message-
 From: Asangansi asangansi.enyen...@gmail.com
 To : Tomcat Users List users@tomcat.apache.org
 Sent: Thu Mar 18 8:17:56 2010
 Subject: Re: Portable

 Thanks alot Chris and Todd,

 Yes, i want to avoid conflicts with the host computer's default tomcat
 ports.

 From what you said about using a virtualized server, if i used VM Ware
 could it be made bootable? I'd like to try the option

 I have actually tried xampp Todd mentioned, but the problem i had with
 xampp is that it asks me to setup each time i take it to another pc.
 However, i had another tomcat installation before using the
 xampp(tomcat) option.



 On 3/16/10, Todd Hicks electronjoc...@hotmail.com wrote:
 I'm currently working on a portable development environment for a client. I
 have Tomcat 6.0.20 running portably as part of Xampp. I have successfully
 configured it to run with the JDK (non-installed) on the same USB device, so
 it can be done.

 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Sent: Monday, March 15, 2010 12:26 PM
 To: Tomcat Users List
 Subject: Re: Portable

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Asangansi,

 On 3/12/2010 4:18 AM, Asangansi wrote:
 I have a webapp that runs on tomcat 6.0.2 with a mysql database.
 6.0.20?

 I'm looking at creating a portable version of my server for
 demonstration purposes, which will run on a different port other than
 the default.
 Do you want to avoid port conflicts when running on a client's machine?

 So, [I'd] like to know what configuration files i need to [reconfigure]
 and files [I wouldn't] need so it could be lighter.
 I think you need to ask yourself what is most important: portability and
 being self-contained, or running the fastest.

 If you want it to run fast, you'll want to run natively /and/ avoid
 installing anything on the client's computer: I certainly wouldn't let
 you install something on my computer for a quickie demonstration. That
 will limit your options to those architectures that are supported by
 MySQL (currently Microsoft Windows, most *NIX platforms, and Mac OS X).

 Tomcat itself is trivial to run in a portable way, since Tomcata
 figures out its own installation directory at start-up and runs
 everything relative to that.

 The problem might be the JVM: I've never tried to run a non-installed
 JVM on Microsoft Windows, but it runs perfectly well on a *NIX machine
 without any formal installation.

 If you want a foolproof environment, go for a virtualized server:
 install everything you need, including your webapp, and then just fire
 up the VM when doing demonstrations. You could even put a web browser, X
 environment, etc. all on your USB memory stick and make the thing
 bootable: simply insert the stick and reboot the client's computer: no
 interference (aside from the reboot, of course) and you know your
 environment will be sane.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkueX5UACgkQ9CaO5/Lv0PDPRwCeJcRjkGVZUwYdSgCSKuxNAbAt
 6YQAnjDWTR5J7/Rm7rQmlgobMj3Qh46f
 =bkdp
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 -
 To unsubscribe, e-mail

Re: Portable

2010-03-20 Thread Asangansi
Hi,

Whats the problem with MySQL? with my.inf or my.cnf you can configure
its parameters i think?

CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire



On Fri, Mar 19, 2010 at 2:24 AM, Todd Hicks electronjoc...@hotmail.com wrote:
 I also run MySQL off the thumb drive. Though I honestly don't use it much. I
 use db4o for rapid prototyping.

 -Original Message-
 From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com]
 On Behalf Of Peter Crowther
 Sent: Thursday, March 18, 2010 1:19 PM
 To: Tomcat Users List
 Subject: Re: Portable

 On 18 March 2010 16:59, Christopher Schultz
 ch...@christopherschultz.netwrote:

 If, as Todd reports, the JVM can be installed to a USB stick, Id just go
 with that: pick a port that's unlikely to be used by the host machine
 (like 80801) and use that for your setup. Avoid using anything other
 than Tomcat and I think you can get Tomcat to auto-adjust the port
 number by finding the next-highest available port if the one you specify
 if already taken: your demo-launch procedure should take care to detect
 the port number chosen, and configure itself accordingly.

 The hard part then is MySQL.  Is there any way you can go for a pure Java
 database that runs in the same JVM?

 - Peter


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Portable

2010-03-20 Thread Caldarale, Charles R
 From: Asangansi [mailto:asangansi.enyen...@gmail.com]
 Subject: Re: Portable
 
 Whats the problem with MySQL?

It's platform-specific; you need different versions for Windows, Linux, MAC, 
and various flavors of UNIX.  A Java-based DB doesn't have that issue.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-20 Thread Asangansi
ok


CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire



On Sat, Mar 20, 2010 at 3:50 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Asangansi [mailto:asangansi.enyen...@gmail.com]
 Subject: Re: Portable

 Whats the problem with MySQL?

 It's platform-specific; you need different versions for Windows, Linux, MAC, 
 and various flavors of UNIX.  A Java-based DB doesn't have that issue.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Asangansi,

On 3/20/2010 9:31 AM, Asangansi wrote:
 can i reduce the file size i.e. are ther files i wounldn't need?

Tomcat is the smallest component you are trying to get working, here. I
think the JVM will be the largest-sized component you have to install,
and it's only about 90MiB installed.

Get yourself a 1GiB memory stick (they're like $3 these days) and just
put it all on there.

 and  what specific files do i need to reconfigure withe the new port
 address say, 8088?

conf/server.xml

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkulmZMACgkQ9CaO5/Lv0PDG+QCgn6gLh8kOmw7ikn9K9+bLSUnI
3gAAnA8lIinJUjNeNtJkdKlyAKiDC2wl
=QK9M
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Asangansi,

On 3/18/2010 8:17 AM, Asangansi wrote:
 Yes, i want to avoid conflicts with the host computer's default tomcat ports.
 
 From what you said about using a virtualized server, if i used VM Ware
 could it be made bootable? I'd like to try the option

With VMWare Player, you just need a virtual disk which is a file that
contains a (potentially bootable) filesystem. Unfortunately, with VMWare
Player, you need to install the player on the host machine in order to
get it to work. You might look into other virtualization and/or
emulation options like Bochs to see if you can get something working
that does not require drivers to be installed on the host before
launching the guest.

If, as Todd reports, the JVM can be installed to a USB stick, Id just go
with that: pick a port that's unlikely to be used by the host machine
(like 80801) and use that for your setup. Avoid using anything other
than Tomcat and I think you can get Tomcat to auto-adjust the port
number by finding the next-highest available port if the one you specify
if already taken: your demo-launch procedure should take care to detect
the port number chosen, and configure itself accordingly.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuiXAoACgkQ9CaO5/Lv0PBORgCgsM5XwhFRVB0zGDLn3MW0usFD
ktsAn0l0hNgO1oPuCxAm9kq5i61DmHJl
=TJL7
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-18 Thread Peter Crowther
On 18 March 2010 16:59, Christopher Schultz ch...@christopherschultz.netwrote:

 If, as Todd reports, the JVM can be installed to a USB stick, Id just go
 with that: pick a port that's unlikely to be used by the host machine
 (like 80801) and use that for your setup. Avoid using anything other
 than Tomcat and I think you can get Tomcat to auto-adjust the port
 number by finding the next-highest available port if the one you specify
 if already taken: your demo-launch procedure should take care to detect
 the port number chosen, and configure itself accordingly.

 The hard part then is MySQL.  Is there any way you can go for a pure Java
database that runs in the same JVM?

- Peter


Re: Portable

2010-03-18 Thread David kerber

On 3/18/2010 12:59 PM, Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Asangansi,

On 3/18/2010 8:17 AM, Asangansi wrote:

Yes, i want to avoid conflicts with the host computer's default tomcat ports.

 From what you said about using a virtualized server, if i used VM Ware
could it be made bootable? I'd like to try the option




...




If, as Todd reports, the JVM can be installed to a USB stick, Id just go
with that: pick a port that's unlikely to be used by the host machine
(like 80801) and use that for your setup. Avoid using anything other


That particular port is invalid; you're limited to 65535, but the 
recommendation is still a good one; maybe 55080...


D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-18 Thread Electronjockey

Asangansi,

I'm all for VM's and I use ESXi at home myself. I can't speak to Xen or 
 other virtualization tech. And I don't think you can make a bootable 
VM,  but I'll admit if I'm wrong. You can check the VMWare forums.
I've just found that often times it's easier to sell the client on just 
letting me plug in my 16Gb USB thumb drive than it is to either let me 
either install vmware, or boot up their hardware with my own OS. I come 
from a Gov't contracting background, so commercial sector policies may 
have a little more flexibility. Just my experience.
As far as Xampp goes, I've not had that problem. I set it up once and 
haven't had to touch it since (I did have to make some changes to the 
mod_jk.conf, but if you don't need it connected to appache then you can 
disable that with the Xampp_cli. Xampp also comes with port checker that 
you can run before you start Tomcat, so you can change your config if need.

Of course the alternative to all this is just host it.

-Original Message-
From: Asangansi asangansi.enyen...@gmail.com
To : Tomcat Users List users@tomcat.apache.org
Sent: Thu Mar 18 8:17:56 2010
Subject: Re: Portable

Thanks alot Chris and Todd,

Yes, i want to avoid conflicts with the host computer's default tomcat 
ports.


From what you said about using a virtualized server, if i used VM Ware
could it be made bootable? I'd like to try the option

I have actually tried xampp Todd mentioned, but the problem i had with
xampp is that it asks me to setup each time i take it to another pc.
However, i had another tomcat installation before using the
xampp(tomcat) option.



On 3/16/10, Todd Hicks electronjoc...@hotmail.com wrote:
I'm currently working on a portable development environment for a client. I
have Tomcat 6.0.20 running portably as part of Xampp. I have successfully
configured it to run with the JDK (non-installed) on the same USB device, so
it can be done.

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Monday, March 15, 2010 12:26 PM
To: Tomcat Users List
Subject: Re: Portable

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Asangansi,

On 3/12/2010 4:18 AM, Asangansi wrote:
I have a webapp that runs on tomcat 6.0.2 with a mysql database.
6.0.20?

I'm looking at creating a portable version of my server for
demonstration purposes, which will run on a different port other than
the default.
Do you want to avoid port conflicts when running on a client's machine?

So, [I'd] like to know what configuration files i need to [reconfigure]
and files [I wouldn't] need so it could be lighter.
I think you need to ask yourself what is most important: portability and
being self-contained, or running the fastest.

If you want it to run fast, you'll want to run natively /and/ avoid
installing anything on the client's computer: I certainly wouldn't let
you install something on my computer for a quickie demonstration. That
will limit your options to those architectures that are supported by
MySQL (currently Microsoft Windows, most *NIX platforms, and Mac OS X).

Tomcat itself is trivial to run in a portable way, since Tomcata
figures out its own installation directory at start-up and runs
everything relative to that.

The problem might be the JVM: I've never tried to run a non-installed
JVM on Microsoft Windows, but it runs perfectly well on a *NIX machine
without any formal installation.

If you want a foolproof environment, go for a virtualized server:
install everything you need, including your webapp, and then just fire
up the VM when doing demonstrations. You could even put a web browser, X
environment, etc. all on your USB memory stick and make the thing
bootable: simply insert the stick and reboot the client's computer: no
interference (aside from the reboot, of course) and you know your
environment will be sane.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkueX5UACgkQ9CaO5/Lv0PDPRwCeJcRjkGVZUwYdSgCSKuxNAbAt
6YQAnjDWTR5J7/Rm7rQmlgobMj3Qh46f
=bkdp
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Portable

2010-03-18 Thread Todd Hicks
I also run MySQL off the thumb drive. Though I honestly don't use it much. I
use db4o for rapid prototyping.

-Original Message-
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com]
On Behalf Of Peter Crowther
Sent: Thursday, March 18, 2010 1:19 PM
To: Tomcat Users List
Subject: Re: Portable

On 18 March 2010 16:59, Christopher Schultz
ch...@christopherschultz.netwrote:

 If, as Todd reports, the JVM can be installed to a USB stick, Id just go
 with that: pick a port that's unlikely to be used by the host machine
 (like 80801) and use that for your setup. Avoid using anything other
 than Tomcat and I think you can get Tomcat to auto-adjust the port
 number by finding the next-highest available port if the one you specify
 if already taken: your demo-launch procedure should take care to detect
 the port number chosen, and configure itself accordingly.

 The hard part then is MySQL.  Is there any way you can go for a pure Java
database that runs in the same JVM?

- Peter


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Asangansi,

On 3/12/2010 4:18 AM, Asangansi wrote:
 I have a webapp that runs on tomcat 6.0.2 with a mysql database.

6.0.20?

 I'm looking at creating a portable version of my server for
 demonstration purposes, which will run on a different port other than
 the default.

Do you want to avoid port conflicts when running on a client's machine?

 So, [I'd] like to know what configuration files i need to [reconfigure]
 and files [I wouldn't] need so it could be lighter.

I think you need to ask yourself what is most important: portability and
being self-contained, or running the fastest.

If you want it to run fast, you'll want to run natively /and/ avoid
installing anything on the client's computer: I certainly wouldn't let
you install something on my computer for a quickie demonstration. That
will limit your options to those architectures that are supported by
MySQL (currently Microsoft Windows, most *NIX platforms, and Mac OS X).

Tomcat itself is trivial to run in a portable way, since Tomcata
figures out its own installation directory at start-up and runs
everything relative to that.

The problem might be the JVM: I've never tried to run a non-installed
JVM on Microsoft Windows, but it runs perfectly well on a *NIX machine
without any formal installation.

If you want a foolproof environment, go for a virtualized server:
install everything you need, including your webapp, and then just fire
up the VM when doing demonstrations. You could even put a web browser, X
environment, etc. all on your USB memory stick and make the thing
bootable: simply insert the stick and reboot the client's computer: no
interference (aside from the reboot, of course) and you know your
environment will be sane.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkueX5UACgkQ9CaO5/Lv0PDPRwCeJcRjkGVZUwYdSgCSKuxNAbAt
6YQAnjDWTR5J7/Rm7rQmlgobMj3Qh46f
=bkdp
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Portable

2010-03-15 Thread Todd Hicks

 I'm currently working on a portable development environment for a client. I 
have Tomcat 6.0.20 running portably as part of Xampp. I have successfully 
configured it to run with the JDK (non-installed) on the same USB device, so it 
can be done.

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, March 15, 2010 12:26 PM
To: Tomcat Users List
Subject: Re: Portable

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Asangansi,

On 3/12/2010 4:18 AM, Asangansi wrote:
 I have a webapp that runs on tomcat 6.0.2 with a mysql database.

6.0.20?

 I'm looking at creating a portable version of my server for
 demonstration purposes, which will run on a different port other than
 the default.

Do you want to avoid port conflicts when running on a client's machine?

 So, [I'd] like to know what configuration files i need to [reconfigure]
 and files [I wouldn't] need so it could be lighter.

I think you need to ask yourself what is most important: portability and
being self-contained, or running the fastest.

If you want it to run fast, you'll want to run natively /and/ avoid
installing anything on the client's computer: I certainly wouldn't let
you install something on my computer for a quickie demonstration. That
will limit your options to those architectures that are supported by
MySQL (currently Microsoft Windows, most *NIX platforms, and Mac OS X).

Tomcat itself is trivial to run in a portable way, since Tomcata
figures out its own installation directory at start-up and runs
everything relative to that.

The problem might be the JVM: I've never tried to run a non-installed
JVM on Microsoft Windows, but it runs perfectly well on a *NIX machine
without any formal installation.

If you want a foolproof environment, go for a virtualized server:
install everything you need, including your webapp, and then just fire
up the VM when doing demonstrations. You could even put a web browser, X
environment, etc. all on your USB memory stick and make the thing
bootable: simply insert the stick and reboot the client's computer: no
interference (aside from the reboot, of course) and you know your
environment will be sane.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkueX5UACgkQ9CaO5/Lv0PDPRwCeJcRjkGVZUwYdSgCSKuxNAbAt
6YQAnjDWTR5J7/Rm7rQmlgobMj3Qh46f
=bkdp
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-12 Thread Asangansi
Hi,
I'm really sorry for that.
I have a webapp that runs on tomcat 6.0.2 with a mysql database.
I'm looking at creating a portable version of my server for
demonstration purposes, which will run on a different port other than
the default.
So, i'll like to know what configuration files i need to recofigure
and files i wouldnt need so it could be lighter.
Thanks.

-- 
CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Portable

2010-03-12 Thread Josef Pullicino
Dear All,

I would like to setup a tomcat cluster with 2 nodes. The configuration
must be in a horizontal alignment, meaning that the two nodes are going
to reside on two different machines. Any idea of how to set it up since
the default tomcat help guide does not provide any configuration
examples.

Any help would be greatly appreciated.

Thanks for your support,

Regards,

Josef Pullicino

Systems Administrator

GO

 

GO Mobile, Fra Diego Street, Marsa, MRS 1501, Malta.

t  +356 2594 6827 f  +356 2124 0112

w www.go.com.mt

 

This email and any files or content transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they
are addressed. This message contains confidential information and is
intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. If you are
not the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited. The Company and the originator of
this email accept no liability for the content of this email, or for the
consequences of any actions taken on the basis of the information
provided, unless that information is subsequently confirmed in writing.
If you are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents
of this information is strictly prohibited.


Warning: Although the Company and the originator  have taken reasonable
precautions to ensure no viruses are present in this email, the company
cannot accept responsibility for any loss or damage arising from the use
of this email or attachments.


-Original Message-
From: Asangansi [mailto:asangansi.enyen...@gmail.com] 
Sent: 12 March 2010 10:18
To: Tomcat Users List
Subject: Re: Portable

Hi,
I'm really sorry for that.
I have a webapp that runs on tomcat 6.0.2 with a mysql database.
I'm looking at creating a portable version of my server for
demonstration purposes, which will run on a different port other than
the default.
So, i'll like to know what configuration files i need to recofigure
and files i wouldnt need so it could be lighter.
Thanks.

-- 
CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-12 Thread André Warnier

Please do not hijack threads.
Do not just hit reply on an existing message, and then replace the 
text or whatever.

Start a new message.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-12 Thread Pid

On 12/03/2010 10:18, André Warnier wrote:

Please do not hijack threads.
Do not just hit reply on an existing message, and then replace the
text or whatever.


Twice.


Start a new message.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Portable

2010-03-11 Thread Asangansi
Sup guyz, i want to create a portable and mobile version of my webapp
on a usb stick, so like to hav the gurus advice me on configuration
options, files i wouldn't need so it could be lighter and so i wont
have to config it when i move 2 another pc. And i'll to ask 'On what
platform does Tomcat run fastest'
Tanx guys, waitin on ya.

-- 
CTO - Thinkwizer Limited,
+234 703 5358949
+234 805 7590042
skype: asangansi.ini
yahoo: inionfire

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Portable

2010-03-11 Thread André Warnier

Asangansi wrote:

Sup guyz, i want to create a portable and mobile version of my webapp
on a usb stick, so like to hav the gurus advice me on configuration
options, files i wouldn't need so it could be lighter and so i wont
have to config it when i move 2 another pc. And i'll to ask 'On what
platform does Tomcat run fastest'
Tanx guys, waitin on ya.

You may have a better chance posting in English and adding some 
punctuation.  This kind of cutesy jargon may be appropriate between 
teenies chatting on mobiles, but does not make understanding your 
question very easy.  If there is actually a question.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat with Netscape Portable Runtime (NSPR)

2009-10-13 Thread G S
Is it possible to configure Tomcat to use NSPR similar to the way you can
configure Tomcat to use the Apache Portable Runtime (APR)?

I have been successful in configuring Tomcat to use the APR and modifying
the server.xml. THe same config does not seem to work with the NSPR and I
have been unable to find any documentation.


Re: Tomcat with Netscape Portable Runtime (NSPR)

2009-10-13 Thread Peter Crowther
2009/10/13 G S skis...@gmail.com:
 Is it possible to configure Tomcat to use NSPR similar to the way you can
 configure Tomcat to use the Apache Portable Runtime (APR)?

No.  In the same way, it's not possible to configure Mozilla to use
the Apache Portable Runtime.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat with Netscape Portable Runtime (NSPR)

2009-10-13 Thread G S
Peter,

Thank you for the response.

My ultimate goal is to use the Netscape encryption modules through JSS on a
Tomcat Server.
I have JSS installed as a Security Provider on my system now but I have been
unable to get Tomcat to use it for SSL connections.

Do you have any suggestions on how I might accomplish that?



On Tue, Oct 13, 2009 at 2:38 PM, Peter Crowther peter.crowt...@melandra.com
 wrote:

 2009/10/13 G S skis...@gmail.com:
  Is it possible to configure Tomcat to use NSPR similar to the way you can
  configure Tomcat to use the Apache Portable Runtime (APR)?

 No.  In the same way, it's not possible to configure Mozilla to use
 the Apache Portable Runtime.

 - Peter

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Apache Portable Runtime ?

2009-05-29 Thread johnrock

I am running a standalone tomcat 6.0.18 on a centOS 5.3 system. Is it a good
idea to install the Apache Portable Runtime? Would I see performance
increase? And, are there any drawbacks/cons to doing so?

Thanks for any advice you might have on this - 

John
-- 
View this message in context: 
http://www.nabble.com/Apache-Portable-Runtime---tp23786125p23786125.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Portable Runtime ?

2009-05-29 Thread johnrock

I wanted to add a little clarity to my question: I am not using SSL or
serving any significant amount of static content - just good ol fashioned
Jsp/Jstl's with a standalone tomcat (no Apache). A very svelt and simple web
app that I am designing for performance.

Given that, is it still a preferred idea to install APR? Is installing the
APR considered a 'must do' for anyone looking to maximize the performance of
Tomcat in production? Or is this something in the category of 'not
neccessary/adviseable unless you need it'?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Apache-Portable-Runtime---tp23786125p23786703.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache Portable Runtime ?

2009-05-29 Thread Caldarale, Charles R
 From: johnrock [mailto:johnpi...@yahoo.com]
 Subject: Re: Apache Portable Runtime ?
 
 Given that, is it still a preferred idea to install APR?

Your best bet is to measure the performance of your webapp with and without 
APR.  Since you're not using SSL and have limited static content, I suspect you 
won't see much of a difference.

 Is installing the APR considered a 'must do' for anyone
 looking to maximize the performance of Tomcat in production?
 Or is this something in the category of 'not neccessary/
 adviseable unless you need it'?

I'd put it in the latter category, unless you measure a noticeable throughput 
gain with it.  Including APR does reduce portability, since you'll need a 
different native library for each platform, including just going from a 32- to 
64-bit JVM.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Portable Runtime ?

2009-05-29 Thread Bill Barker

Caldarale, Charles R chuck.caldar...@unisys.com wrote in message 
news:0aae5ab84b013e45a7b61cb66943c17228f1795...@usea-exch7.na.uis.unisys.com...
 From: johnrock [mailto:johnpi...@yahoo.com]
 Subject: Re: Apache Portable Runtime ?

 Given that, is it still a preferred idea to install APR?

Your best bet is to measure the performance of your webapp with and without 
APR.  Since you're not using SSL and have limited static content, I 
suspect you won't see much of a difference.


I agree with Chuck.  The performance of APR against the other connectors 
varies a lot depending on the OS (e.g. last time I saw numbers, which was a 
while ago, APR for dynamic content was slower on Windows).  If you don't 
expect to be handling a lot of concurrent connections with HTTP only than 
APR doesn't offer a lot of benifits.

 Is installing the APR considered a 'must do' for anyone
 looking to maximize the performance of Tomcat in production?
 Or is this something in the category of 'not neccessary/
 adviseable unless you need it'?

I'd put it in the latter category, unless you measure a noticeable 
throughput gain with it.  Including APR does reduce portability, since 
you'll need a different native library for each platform, including just 
going from a 32- to 64-bit JVM.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers. 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Portable Runtime ?

2009-05-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John,

On 5/29/2009 4:38 PM, johnrock wrote:
 I wanted to add a little clarity to my question: I am not using SSL or
 serving any significant amount of static content - just good ol fashioned
 Jsp/Jstl's with a standalone tomcat (no Apache). A very svelt and simple web
 app that I am designing for performance.

Aah... I read your messages out-of-order. APR will get you the biggest
performance increase with static files and sendFile=true set on your
connector.

Still, any performance decisions made without actually doing some tests
would be silly, so go ahead and benchmark your application and see what
the difference is.

Setting up APR is pretty trivial, so it's not like it will take too much
effort to make an informed decision.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkogqqMACgkQ9CaO5/Lv0PAPPQCgwQPSbfPh2JljNRTkCG86hMNm
+QYAnAonTQ4XbdhmGxFFo0SPV9QLfWVq
=iDmt
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache Portable Runtime and Tomcat?

2008-01-04 Thread Jim Brikman (ybrikman)
Hi Rainer,

Thanks for the quick response! A couple more questions: if we grab the
code for APR, OpenSSL and tcnative, and compile them (yes, we are on
Windows), what will we get? Several dll's? And if so, do we just replace
the tcnative-1.dll with these dll's or is there some other configuration
that is necessary?

Thanks,
Jim


-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 04, 2008 4:34 PM
To: Tomcat Users List
Subject: Re: Apache Portable Runtime and Tomcat?

Hi Jim,

APR and OpenSSL are maintained by other projects (apr.apache.org resp.
www.openssl.org).

The tcnative source can be obtained from

http://www.apache.org/dist/tomcat/tomcat-connectors/native/

The download contain a dsp file for Visual Studio (supposing you are
talking about WIN platform because you mentioned DLL), and a configure
script for Unix/Linux. The configure script of the most recent version
is 1.1.12 is broken (see mail on this list today), but the library code
is fine.

Regards,

Rainer

Jim Brikman (ybrikman) schrieb:
 The User Guide for the Apache Portable Runtime with Tomcat
 (http://tomcat.apache.org/tomcat-5.5-doc/apr.html) states the
following:
  
 Windows binaries are provided for tcnative-1, which is a statically 
 compiled .dll which includes OpenSSL and APR. It can be downloaded 
 from here http://tomcat.heanet.ie/native/ as 32bit or AMD x86-64
binaries.
 In security conscious production environments, it is recommended to 
 use separate shared dlls for OpenSSL, APR, and libtcnative-1, and 
 update them as needed according to security bulletins.
  
 It may be obvious, but does anyone have step-by-step instructions on 
 where/how to download/build these shared dlls for OpenSSL, APR and 
 libtcnative-1 and configure Tomcat to use them?
  
 Thanks,
 Jim
  
 
 *Yevgeniy (Jim) Brikman*
 *Software Engineer*
 **Voice Technology Group*
 *
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone :*978-936-0510* 
 Mobile :*617-538-2632*
 
   
 
 **
 500 Beaver Brook Road
 Boxborough, MA 01719
 United States
 www.cisco.com http://www.cisco.com/

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache Portable Runtime and Tomcat?

2008-01-04 Thread Rainer Jung
Hi Jim,

APR and OpenSSL are maintained by other projects (apr.apache.org resp.
www.openssl.org).

The tcnative source can be obtained from

http://www.apache.org/dist/tomcat/tomcat-connectors/native/

The download contain a dsp file for Visual Studio (supposing you are
talking about WIN platform because you mentioned DLL), and a configure
script for Unix/Linux. The configure script of the most recent version
is 1.1.12 is broken (see mail on this list today), but the library code
is fine.

Regards,

Rainer

Jim Brikman (ybrikman) schrieb:
 The User Guide for the Apache Portable Runtime with Tomcat
 (http://tomcat.apache.org/tomcat-5.5-doc/apr.html) states the following:
  
 Windows binaries are provided for tcnative-1, which is a statically
 compiled .dll which includes OpenSSL and APR. It can be downloaded from
 here http://tomcat.heanet.ie/native/ as 32bit or AMD x86-64 binaries.
 In security conscious production environments, it is recommended to use
 separate shared dlls for OpenSSL, APR, and libtcnative-1, and update
 them as needed according to security bulletins.
  
 It may be obvious, but does anyone have step-by-step instructions on
 where/how to download/build these shared dlls for OpenSSL, APR and
 libtcnative-1 and configure Tomcat to use them?
  
 Thanks,
 Jim
  
 
 *Yevgeniy (Jim) Brikman*
 *Software Engineer*
 **Voice Technology Group*
 *
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 Phone :*978-936-0510*
 Mobile :*617-538-2632*
 
   
 
 **
 500 Beaver Brook Road
 Boxborough, MA 01719
 United States
 www.cisco.com http://www.cisco.com/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache Portable Runtime and Tomcat?

2008-01-04 Thread Jim Brikman (ybrikman)
The User Guide for the Apache Portable Runtime with Tomcat (
http://tomcat.apache.org/tomcat-5.5-doc/apr.html) states the following:
 
Windows binaries are provided for tcnative-1, which is a statically
compiled .dll which includes OpenSSL and APR. It can be downloaded from 
here http://tomcat.heanet.ie/native/  as 32bit or AMD x86-64 binaries.
In security conscious production environments, it is recommended to use
separate shared dlls for OpenSSL, APR, and libtcnative-1, and update
them as needed according to security bulletins.
 
It may be obvious, but does anyone have step-by-step instructions on
where/how to download/build these shared dlls for OpenSSL, APR and
libtcnative-1 and configure Tomcat to use them?
 
Thanks,
Jim
 

Yevgeniy (Jim) Brikman
Software Engineer
Voice Technology Group

[EMAIL PROTECTED]
Phone :978-936-0510
Mobile :617-538-2632



500 Beaver Brook Road
Boxborough, MA 01719
United States
www.cisco.com http://www.cisco.com/ 




 


Re: Apache Portable Runtime and Tomcat?

2008-01-04 Thread Rainer Jung
Hi Jim,

to make it work, you need all three of them. I never used it in Windows,
so I can only judge from the download and the docs page. The docs page

http://tomcat.apache.org/tomcat-6.0-doc/apr.html

says, that the precompiled binaries include openssl, apr and tcnative in
one combined DLL. The source download contains two slightly different
.dsp files, so I assume, one of them is for keeping the three DLLs
separate, one for producing a single combined DLL.

Regards,

Rainer


Jim Brikman (ybrikman) schrieb:
 Hi Rainer,
 
 Thanks for the quick response! A couple more questions: if we grab the
 code for APR, OpenSSL and tcnative, and compile them (yes, we are on
 Windows), what will we get? Several dll's? And if so, do we just replace
 the tcnative-1.dll with these dll's or is there some other configuration
 that is necessary?
 
 Thanks,
 Jim
 
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Friday, January 04, 2008 4:34 PM
 To: Tomcat Users List
 Subject: Re: Apache Portable Runtime and Tomcat?
 
 Hi Jim,
 
 APR and OpenSSL are maintained by other projects (apr.apache.org resp.
 www.openssl.org).
 
 The tcnative source can be obtained from
 
 http://www.apache.org/dist/tomcat/tomcat-connectors/native/
 
 The download contain a dsp file for Visual Studio (supposing you are
 talking about WIN platform because you mentioned DLL), and a configure
 script for Unix/Linux. The configure script of the most recent version
 is 1.1.12 is broken (see mail on this list today), but the library code
 is fine.
 
 Regards,
 
 Rainer
 
 Jim Brikman (ybrikman) schrieb:
 The User Guide for the Apache Portable Runtime with Tomcat
 (http://tomcat.apache.org/tomcat-5.5-doc/apr.html) states the
 following:
  
 Windows binaries are provided for tcnative-1, which is a statically 
 compiled .dll which includes OpenSSL and APR. It can be downloaded 
 from here http://tomcat.heanet.ie/native/ as 32bit or AMD x86-64
 binaries.
 In security conscious production environments, it is recommended to 
 use separate shared dlls for OpenSSL, APR, and libtcnative-1, and 
 update them as needed according to security bulletins.
  
 It may be obvious, but does anyone have step-by-step instructions on 
 where/how to download/build these shared dlls for OpenSSL, APR and 
 libtcnative-1 and configure Tomcat to use them?
  
 Thanks,
 Jim
  

 *Yevgeniy (Jim) Brikman*
 *Software Engineer*
 **Voice Technology Group*
 *
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone :*978-936-0510* 
 Mobile :*617-538-2632*

  

 **
 500 Beaver Brook Road
 Boxborough, MA 01719
 United States
 www.cisco.com http://www.cisco.com/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache Portable Runtime 1.1.4 on Debian Etch?

2007-09-27 Thread Daniel M Garland

Hi again,

In my catalina.out I see the following INFO on a server startup:

INFO: An older version 1.1.3 of the Apache Tomcat Native library is 
installed, while Tomcat recommends version greater than 1.1.4


I installed libapr1 and libapr1-dev using apt on Debain etch 64-bit 
version, and am up-to-date, any Debian users out there who know if there 
is a debain package for apr that is greater than 1.1.4?


Dan

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache Portable Runtime

2007-07-27 Thread James Rome
When Tomcat starts, I get:
Jul 27, 2007 10:06:11 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/../lib/i386

I have libapr1.so in /usr/lib, and I copied it to the above i386
directory, but Tomcat still does not see it.

How do I get Tomcat to see this. Or is it looking for something else?

Thanks,
Jim Rome

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache Portable Runtime

2007-07-27 Thread Rainer Jung

The APR libs are not enough for the APR connector. Have a look at

http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Regards,

Rainer

James Rome wrote:

When Tomcat starts, I get:
Jul 27, 2007 10:06:11 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/../lib/i386

I have libapr1.so in /usr/lib, and I copied it to the above i386
directory, but Tomcat still does not see it.

How do I get Tomcat to see this. Or is it looking for something else?

Thanks,
Jim Rome


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache Portable Runtime

2007-07-27 Thread Lakshmi Venkataraman
You have to compile libtcnative as well. 
In addition to the documentation mentioned by Rainer, also look in the
archives for the threads

Tomcat native library Not found in Solaris 9  and
Tomcat 5.5, IPv6, APR, HTTP and HTTPS

Lakshmi

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 27, 2007 9:22 AM
To: Tomcat Users List
Subject: Re: Apache Portable Runtime

The APR libs are not enough for the APR connector. Have a look at

http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Regards,

Rainer

James Rome wrote:
 When Tomcat starts, I get:
 Jul 27, 2007 10:06:11 AM org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the
java.library.path:
 /usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386/client:/usr/lib/jvm/
 java-1.5.0-sun-1.5.0_12/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0
 _12/jre/../lib/i386
 
 I have libapr1.so in /usr/lib, and I copied it to the above i386 
 directory, but Tomcat still does not see it.
 
 How do I get Tomcat to see this. Or is it looking for something else?
 
 Thanks,
 Jim Rome

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Installing Apache Portable Runtime on Linux

2007-03-08 Thread Orlando Reis

Download the latest apache source.


APR compiling
# Build and install apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install

# Build and install apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/
--with-apr=/usr/local/apr-httpd/
make
make install
Then
[EMAIL PROTECTED] native]# ./configure --with-apr=/usr/local/apr-httpd

I usually build everything.

Orlando



On 3/7/07, DM [EMAIL PROTECTED] wrote:


Hi,

I'm tring to install the Apache Portable Runtime on Linux as per the
instructions here:

http://tomcat.apache.org/tomcat-6.0-doc/apr.html

When I run configure I get the following output

[EMAIL PROTECTED] native]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.8
checking for chosen layout... tcnative
checking for APR... no
configure: error: APR could not be located. Please use the --with-apr
option.


I think the problem might be that I have version 0.9.4 of the apr-devel
package installed, because the installation instructions seem to indicate
that I need version 1.2+. I tried finding a more up-to-date version of
this package for Red Hat Enterprise Linux 4 (the system I'm using), but
failed.

Can someone tell me whether it is the version of the apr-devel package
that is causing the install to fail, and if so, where I might get a more
up-to-date version?

Many Thanks,
DM



___
The all-new Yahoo! Mail goes wherever you go - free your email address
from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Installing Apache Portable Runtime on Linux

2007-03-07 Thread DM
Hi,

I'm tring to install the Apache Portable Runtime on Linux as per the 
instructions here:

http://tomcat.apache.org/tomcat-6.0-doc/apr.html

When I run configure I get the following output

[EMAIL PROTECTED] native]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.8
checking for chosen layout... tcnative
checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option.


I think the problem might be that I have version 0.9.4 of the apr-devel package 
installed, because the installation instructions seem to indicate that I need 
version 1.2+. I tried finding a more up-to-date version of this package for Red 
Hat Enterprise Linux 4 (the system I'm using), but failed.

Can someone tell me whether it is the version of the apr-devel package that is 
causing the install to fail, and if so, where I might get a more up-to-date 
version?

Many Thanks,
DM



___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Questions about Apache Portable Runtime on Tomcat 5.5.x

2007-01-15 Thread Markus Schönhaber
Allen Young wrote:

 First, how can I use APR on a windows install version of tomcat 5.5.x. I've
 found several tutorials about setting APR, all of which are about adding
 something in catalina.bat. As you can see, windows install version doesn't
 have that file but do contains a tcnative-1.dll file in the bin
 directory. So how can I use APR on a windows install version? Or it has
 been
 automatically used already?

tcnative-1.dll in Tomcat's bin directory should be enough to make Tomcat use 
it.
If you're not sure whether or not the native DLL is actually loaded, look at 
catalina.out. If Tomcat couldn't find the DLL it will log a message similar 
to
29.12.2006 16:31:10 org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: [...]
(if you didn't comment the AprLifecycleListener in server.xml).

Moreover, the class names for the Protocol handlers differ between APR and 
non-APR. Without APR loaded you'll see something like

29.12.2006 16:31:10 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080

in catalina.out. With APR this will look like

23.07.2006 15:34:47 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080

Regards
  mks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Questions about Apache Portable Runtime on Tomcat 5.5.x

2007-01-14 Thread Allen Young

Hi all,

I've used tomcat for quite a long time but not until last week did I notice
the APR stuff. Since I don't quite understand a few things, I want to ask
your folks.

First, how can I use APR on a windows install version of tomcat 5.5.x. I've
found several tutorials about setting APR, all of which are about adding
something in catalina.bat. As you can see, windows install version doesn't
have that file but do contains a tcnative-1.dll file in the bin directory.
So how can I use APR on a windows install version? Or it has been
automatically used already?

Second, according to my understanding, APR will increase the rendering speed
of static web pages remarkably. So why not all the tomcat distributions open
APR setting automatically?

Thanks for answering.



Allen


How to use or install APR(Apache Portable Runtime) with Tomcat 6.0

2006-11-12 Thread Jayant Kumar
Hi everybody,

I want to implement comet with tomcat 6.0 but docs says I must have APR
Support for comet, I have tried a lot but I couldn’t start APR support, I
will be very thankful if anybody can help me.

Jayant kr. Punjabi
(iTG India Pvt. Ltd.)

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.3/531 - Release Date: 11/12/2006
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Mladen Turk

Yann Rouillard wrote:

Hi,

I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that 
doesn't appear with tomcat without apr.


Which version of native you use?
Did you tried it with Tomcat 5.5.17?

--
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard


Mladen Turk a écrit :

Yann Rouillard wrote:

Hi,

I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that 
doesn't appear with tomcat without apr.


Which version of native you use?


I use version 1.1.3


Did you tried it with Tomcat 5.5.17?


No but I can try. Some modifications have been on this area ?

Yann

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Mladen Turk

Yann Rouillard wrote:


Mladen Turk a écrit :

Yann Rouillard wrote:

Hi,

I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that 
doesn't appear with tomcat without apr.


Which version of native you use?


I use version 1.1.3


Did you tried it with Tomcat 5.5.17?


No but I can try. Some modifications have been on this area ?



Yes, a lots of them, see the:
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

The way how Poller is handled has changed, so just try the
5.5.17.

Regards,
Mladen

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard



Did you tried it with Tomcat 5.5.17?


No but I can try. Some modifications have been on this area ?



Yes, a lots of them, see the:
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

The way how Poller is handled has changed, so just try the
5.5.17.


Ok, I have tried with 5.5.17 and the problem is still present.
The thread using the CPU is still the thread doing the polling:

-  lwp# 16 / thread# 16  
 fef3fff7 portfs   (6, 17, 86bf6b0, 2000, 1, d4ccfbb4)
 d52083d6 apr_pollset_poll (86bd6e0, 7d0, 0, d4ccfc04, d4ccfc10) + 1fe
 d524ccec Java_org_apache_tomcat_jni_Poll_poll (876717c, d4ccfc44, 
87086b8, 0, 7d0, 0) + 64



Yann



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
Could you send us a few jvm thread dumps while the CPU usage, i bet this
an be more helpful than an os dump.
To generate a Thread dump, simply send the signal 3 to the java process
(assuming you use a SUN jvm or derivative)

Yann Rouillard a écrit :

 Did you tried it with Tomcat 5.5.17?

 No but I can try. Some modifications have been on this area ?


 Yes, a lots of them, see the:
 http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

 The way how Poller is handled has changed, so just try the
 5.5.17.

 Ok, I have tried with 5.5.17 and the problem is still present.
 The thread using the CPU is still the thread doing the polling:

 -  lwp# 16 / thread# 16  
  fef3fff7 portfs   (6, 17, 86bf6b0, 2000, 1, d4ccfbb4)
  d52083d6 apr_pollset_poll (86bd6e0, 7d0, 0, d4ccfc04, d4ccfc10) + 1fe
  d524ccec Java_org_apache_tomcat_jni_Poll_poll (876717c, d4ccfc44,
 87086b8, 0, 7d0, 0) + 64


 Yann



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
Nice, in a native call :/

ajp-8009-Poller-0 daemon prio=5 tid=0x087670e0 nid=0x10 runnable
[0xd4ccf000..0xd4ccfd98]
at org.apache.tomcat.jni.Poll.poll(Native Method)
at
org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153)
at java.lang.Thread.run(Thread.java:534)

can't help you then :)

Yann Rouillard a écrit :
 Here is the jvm thread dump:

 Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode):

 ajp-8009-3 daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait()
 [0xd4c4b000..0xd4c4bd98]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xd5e5c1f8 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at java.lang.Object.wait(Object.java:429)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

 - locked 0xd5e5c1f8 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
 at java.lang.Thread.run(Thread.java:534)

 ajp-8009-2 daemon prio=5 tid=0x087813b0 nid=0x11 in Object.wait()
 [0xd4c8d000..0xd4c8dd98]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xd62a0060 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at java.lang.Object.wait(Object.java:429)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

 - locked 0xd62a0060 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
 at java.lang.Thread.run(Thread.java:534)

 ajp-8009-Poller-0 daemon prio=5 tid=0x087670e0 nid=0x10 runnable
 [0xd4ccf000..0xd4ccfd98]
 at org.apache.tomcat.jni.Poll.poll(Native Method)
 at
 org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153)
 at java.lang.Thread.run(Thread.java:534)

 ajp-8009-1 daemon prio=5 tid=0x087646c0 nid=0xf in Object.wait()
 [0xd4d11000..0xd4d11d98]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xd906b2c0 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at java.lang.Object.wait(Object.java:429)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

 - locked 0xd906b2c0 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
 at java.lang.Thread.run(Thread.java:534)

 ajp-8009-Acceptor-0 daemon prio=5 tid=0x086bd478 nid=0xe runnable
 [0xd4d53000..0xd4d53d98]
 at org.apache.tomcat.jni.Socket.accept(Native Method)
 at
 org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999)
 at java.lang.Thread.run(Thread.java:534)

 http-8080-1 daemon prio=5 tid=0x086b98d0 nid=0xd in Object.wait()
 [0xd4d95000..0xd4d95d98]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xd8ff0bb8 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at java.lang.Object.wait(Object.java:429)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

 - locked 0xd8ff0bb8 (a
 org.apache.tomcat.util.net.AprEndpoint$Worker)
 at
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
 at java.lang.Thread.run(Thread.java:534)

 http-8080-Sendfile-0 daemon prio=5 tid=0x083cf830 nid=0xc in
 Object.wait() [0xd4dd7000..0xd4dd7d98]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xd8ff0c20 (a
 org.apache.tomcat.util.net.AprEndpoint$Sendfile)
 at java.lang.Object.wait(Object.java:429)
 at
 org.apache.tomcat.util.net.AprEndpoint$Sendfile.run(AprEndpoint.java:1486)

 - locked 0xd8ff0c20 (a
 org.apache.tomcat.util.net.AprEndpoint$Sendfile)
 at java.lang.Thread.run(Thread.java:534)

 http-8080-Poller-0 daemon prio=5 tid=0x083c4eb0 nid=0xb in
 Object.wait() [0xd4e19000..0xd4e19d98]
 at java.lang.Object.wait(Native Method)
 - waiting on 0xd8ff0c98 (a
 org.apache.tomcat.util.net.AprEndpoint$Poller)
 at java.lang.Object.wait(Object.java:429)
 at
 org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1127)
 - locked 0xd8ff0c98 (a
 org.apache.tomcat.util.net.AprEndpoint$Poller)
 at java.lang.Thread.run(Thread.java:534)

 http-8080-Acceptor-0 daemon prio=5 tid=0x083a1d58 nid=0xa runnable
 [0xd4e5b000..0xd4e5bd98]
 at org.apache.tomcat.jni.Socket.accept(Native Method)
 at
 org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999)
 at java.lang.Thread.run(Thread.java:534)

 ContainerBackgroundProcessor[StandardEngine[Catalina]] daemon prio=5
 tid=0x0839d4b8 nid=0x9 waiting on condition [0xd4e9d000..0xd4e9dd98]
 at java.lang.Thread.sleep(Native Method)
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1547)

 at java.lang.Thread.run(Thread.java:534)

 Signal Dispatcher daemon prio=10 tid=0x08116e10 nid=0x6 waiting on
 condition [0x..0x]

 Finalizer daemon prio=8 tid=0x0810fba0 nid=0x4 in Object.wait()
 

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Yes from what I understand a native call is used when you use the apache 
portable runtime with tomcat.


Yann

David Delbecq a écrit :

Nice, in a native call :/

ajp-8009-Poller-0 daemon prio=5 tid=0x087670e0 nid=0x10 runnable
[0xd4ccf000..0xd4ccfd98]
at org.apache.tomcat.jni.Poll.poll(Native Method)
at
org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153)
at java.lang.Thread.run(Thread.java:534)

can't help you then :)

Yann Rouillard a écrit :

Here is the jvm thread dump:

Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode):

ajp-8009-3 daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait()
[0xd4c4b000..0xd4c4bd98]
at java.lang.Object.wait(Native Method)
- waiting on 0xd5e5c1f8 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

- locked 0xd5e5c1f8 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
at java.lang.Thread.run(Thread.java:534)

ajp-8009-2 daemon prio=5 tid=0x087813b0 nid=0x11 in Object.wait()
[0xd4c8d000..0xd4c8dd98]
at java.lang.Object.wait(Native Method)
- waiting on 0xd62a0060 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

- locked 0xd62a0060 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
at java.lang.Thread.run(Thread.java:534)

ajp-8009-Poller-0 daemon prio=5 tid=0x087670e0 nid=0x10 runnable
[0xd4ccf000..0xd4ccfd98]
at org.apache.tomcat.jni.Poll.poll(Native Method)
at
org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153)
at java.lang.Thread.run(Thread.java:534)

ajp-8009-1 daemon prio=5 tid=0x087646c0 nid=0xf in Object.wait()
[0xd4d11000..0xd4d11d98]
at java.lang.Object.wait(Native Method)
- waiting on 0xd906b2c0 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

- locked 0xd906b2c0 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
at java.lang.Thread.run(Thread.java:534)

ajp-8009-Acceptor-0 daemon prio=5 tid=0x086bd478 nid=0xe runnable
[0xd4d53000..0xd4d53d98]
at org.apache.tomcat.jni.Socket.accept(Native Method)
at
org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999)
at java.lang.Thread.run(Thread.java:534)

http-8080-1 daemon prio=5 tid=0x086b98d0 nid=0xd in Object.wait()
[0xd4d95000..0xd4d95d98]
at java.lang.Object.wait(Native Method)
- waiting on 0xd8ff0bb8 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255)

- locked 0xd8ff0bb8 (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280)
at java.lang.Thread.run(Thread.java:534)

http-8080-Sendfile-0 daemon prio=5 tid=0x083cf830 nid=0xc in
Object.wait() [0xd4dd7000..0xd4dd7d98]
at java.lang.Object.wait(Native Method)
- waiting on 0xd8ff0c20 (a
org.apache.tomcat.util.net.AprEndpoint$Sendfile)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.net.AprEndpoint$Sendfile.run(AprEndpoint.java:1486)

- locked 0xd8ff0c20 (a
org.apache.tomcat.util.net.AprEndpoint$Sendfile)
at java.lang.Thread.run(Thread.java:534)

http-8080-Poller-0 daemon prio=5 tid=0x083c4eb0 nid=0xb in
Object.wait() [0xd4e19000..0xd4e19d98]
at java.lang.Object.wait(Native Method)
- waiting on 0xd8ff0c98 (a
org.apache.tomcat.util.net.AprEndpoint$Poller)
at java.lang.Object.wait(Object.java:429)
at
org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1127)
- locked 0xd8ff0c98 (a
org.apache.tomcat.util.net.AprEndpoint$Poller)
at java.lang.Thread.run(Thread.java:534)

http-8080-Acceptor-0 daemon prio=5 tid=0x083a1d58 nid=0xa runnable
[0xd4e5b000..0xd4e5bd98]
at org.apache.tomcat.jni.Socket.accept(Native Method)
at
org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999)
at java.lang.Thread.run(Thread.java:534)

ContainerBackgroundProcessor[StandardEngine[Catalina]] daemon prio=5
tid=0x0839d4b8 nid=0x9 waiting on condition [0xd4e9d000..0xd4e9dd98]
at java.lang.Thread.sleep(Native Method)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1547)

at java.lang.Thread.run(Thread.java:534)

Signal Dispatcher daemon prio=10 tid=0x08116e10 nid=0x6 waiting on
condition [0x..0x]

Finalizer daemon prio=8 tid=0x0810fba0 nid

High CPU Usage with Apache Portable Runtime

2006-09-20 Thread Yann Rouillard

Hi,

I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that 
doesn't appear with tomcat without apr.

The server is a Solaris 10 x86, bi processor.

As soon as several ajp13 connections are made, the cpu usage of the java 
process increase to 50%.


Is this expected behaviour ? Is the use of a socket poller the cause of 
this cpu usage ?


Cheers,

Yann

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.15 unable to find the Apache Portable Runtime library, Solaris 10.

2006-02-02 Thread Dumortier
Hi all,

 

On Solaris 10, I am using Tomcat 5.5.15. I downloaded apr-1.2.2 and produced
the libtcnative-1.so which has been placed in /usr/local/apr/lib.

I have also added to CATALINA_OPTS the instruction:
-Djava.library.path=/usr/local/apr/lib

 

setenv CATALINA_OPTS '-Xms256m -Xmx512m
-Djava.library.path=/usr/local/apr/lib -Djava.awt.headless=true'

 

In spite of this, Tomcat on launch time is still reporting not being able to
load the library.

 

2 févr. 2006 11:35:24 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent

INFO: The Apache Portable Runtime which allows optimal performance in
production environments was not found on the java.library.path:
/usr/local/apr/lib

2 févr. 2006 11:35:26 org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initialisation de Coyote HTTP/1.1 sur http-80

2 févr. 2006 11:35:26 org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 6176 ms

 

I have read some of the comments regarding the use of apr with tomcat, I
have taken the answers into account as much as I could. But I am now stuck
and I do not know what else I should do.

As anyone succeeded in having apr work with this version of tomcat?

 

Thanks in advance,

 

Regards,

 

Dominique

 

 



application problem after installing Apache Portable Runtime

2006-01-25 Thread Gaël Lams
Hi all,

After reading the benefits of using apr (and seen the info message in
catalina.out ;-)
I downloaded apr-1.2.2, configure  make  make install and modified
my init.d script with  -Djava.library.path=/usr/local/apr/lib'.

Tomcat (version 5.5.12, jre1.5.0_05, Suse Professional 9.3) seems to
start well but, when I try use our application, I have two problems:
- connection is really slow, at least the page loads really slowly
- I have some javascript problems and some html tags appear on my jsp page.

As soon as I remove apr and restart Tomcat, everything works perfectly fine.

I googled a little bit and read the documentation but I didn't find
any useful information.

Should I change something in my tomcat configuration ( apart from
having Listener
className=org.apache.catalina.core.AprLifecycleListener/ in
server.xml?)

Should something be modified at the application level?

Regards,

Gaël


Re: Apache Portable Runtime not found on the java.library.path

2005-12-21 Thread FTP
just for the records, indeed disabling the APR listener is solving the problem.

Just tried out and it works.

Thanks very much for your support

George

On Tue, Dec 20, 2005 at 01:46:55PM -0500, Adam Constabaris wrote:
 FTP wrote:
 I face the same problem with:
 
 Tomcat 5.5.12
 jdk: 1.5.06
 
 and cannot find the library you suggest in order to include it!
 
 APR integration isn't yet fully part of the Tomcat distribution, as far 
 as I can tell (I think it's misleading of them to enable the APR 
 listener on startup, because it makes you think you're supposed to use 
 it).
 
 I'm not sure how stable the Tomcat developers consider the APR 
 integration, so if you're at all concerned about that, it's probably 
 easier to just comment out the Listener instead.
 
 If you want to use the APR libraries, first read 
 http://tomcat.apache.org/tomcat-5.5-doc/apr.html to see if there are 
 precompiled binaries for your platform (Windows only, AFAICT).  If not,
 
 (a) install APR (http://apr.apache.org); if you use Linux, your 
 distribution may ship the APR in a package.
 
 (b) compile libtcnative-1.so by unpacking 
 $TOMCAT_HOME/bin/tomcat-native.tar.gz and following (most of) the 
 instructions there; NOTE if you don't need openSSL support, be warned 
 that --without-ssl switch did not work for me with tomcat-native-1.1.0 
 (ships with 5.5.12; 1.1.1 with 5.5.14-beta did honor that switch).
 
 HTH
 
 AC
 
 -
 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 Portable Runtime not found on the java.library.path

2005-12-20 Thread William Claxton
Running Java JDK 1.4.  After upgrading to Tomcat 5.5 I get this 
error.  I have also installed the compatability upgrade for the Java Runtime.


The Apache Portable Runtime which allows optimal performance in 
production environments was not found on the java.library.path.


Any suggestion on how to resolve this?

Regards, Bill Claxton ([EMAIL PROTECTED])
MSN: [EMAIL PROTECTED]
Skype: [EMAIL PROTECTED]
Blog: http://learningweb.blogspot.com


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



Re: Apache Portable Runtime not found on the java.library.path

2005-12-20 Thread Adam Constabaris

William Claxton wrote:
Running Java JDK 1.4.  After upgrading to Tomcat 5.5 I get this error.  
I have also installed the compatability upgrade for the Java Runtime.


The Apache Portable Runtime which allows optimal performance in 
production environments was not found on the java.library.path.


Any suggestion on how to resolve this?


add the following to CATALINA_OPTS:

-Djava.library.path=/path/to/lib

The path you should use is the directory that actually contains 
libtcnative-1.so


This is only documented in the BUILDING file in jni/native in the 
tomcat-native directory tree.


HTH

AC

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



Re: Apache Portable Runtime not found on the java.library.path

2005-12-20 Thread FTP
I face the same problem with:

Tomcat 5.5.12
jdk: 1.5.06

and cannot find the library you suggest in order to include it!

Any hint why?

Thanks

George

On Tue, Dec 20, 2005 at 11:23:11AM -0500, Adam Constabaris wrote:
 William Claxton wrote:
 Running Java JDK 1.4.  After upgrading to Tomcat 5.5 I get this error.  
 I have also installed the compatability upgrade for the Java Runtime.
 
 The Apache Portable Runtime which allows optimal performance in 
 production environments was not found on the java.library.path.
 
 Any suggestion on how to resolve this?
 
 add the following to CATALINA_OPTS:
 
 -Djava.library.path=/path/to/lib
 
 The path you should use is the directory that actually contains 
 libtcnative-1.so
 
 This is only documented in the BUILDING file in jni/native in the 
 tomcat-native directory tree.
 
 HTH
 
 AC
 
 -
 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 Portable Runtime not found on the java.library.path

2005-12-20 Thread Adam Constabaris

FTP wrote:

I face the same problem with:

Tomcat 5.5.12
jdk: 1.5.06

and cannot find the library you suggest in order to include it!


APR integration isn't yet fully part of the Tomcat distribution, as far 
as I can tell (I think it's misleading of them to enable the APR 
listener on startup, because it makes you think you're supposed to use 
it).


I'm not sure how stable the Tomcat developers consider the APR 
integration, so if you're at all concerned about that, it's probably 
easier to just comment out the Listener instead.


If you want to use the APR libraries, first read 
http://tomcat.apache.org/tomcat-5.5-doc/apr.html to see if there are 
precompiled binaries for your platform (Windows only, AFAICT).  If not,


(a) install APR (http://apr.apache.org); if you use Linux, your 
distribution may ship the APR in a package.


(b) compile libtcnative-1.so by unpacking 
$TOMCAT_HOME/bin/tomcat-native.tar.gz and following (most of) the 
instructions there; NOTE if you don't need openSSL support, be warned 
that --without-ssl switch did not work for me with tomcat-native-1.1.0 
(ships with 5.5.12; 1.1.1 with 5.5.14-beta did honor that switch).


HTH

AC

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



Re: Apache Portable Runtime not found on the java.library.path, resolved

2005-12-20 Thread William Claxton

At 02:46 AM 12/21/2005, Adam Constabaris wrote:

FTP wrote:

I face the same problem with:
Tomcat 5.5.12
jdk: 1.5.06
and cannot find the library you suggest in order to include it!


APR integration isn't yet fully part of the Tomcat distribution, as 
far as I can tell (I think it's misleading of them to enable the APR 
listener on startup, because it makes you think you're supposed to use it).


I'm not sure how stable the Tomcat developers consider the APR 
integration, so if you're at all concerned about that, it's probably 
easier to just comment out the Listener instead.


If you want to use the APR libraries, first read 
http://tomcat.apache.org/tomcat-5.5-doc/apr.html to see if there are 
precompiled binaries for your platform (Windows only, AFAICT).  If not,


(a) install APR (http://apr.apache.org); if you use Linux, your 
distribution may ship the APR in a package.


(b) compile libtcnative-1.so by unpacking 
$TOMCAT_HOME/bin/tomcat-native.tar.gz and following (most of) the 
instructions there; NOTE if you don't need openSSL support, be 
warned that --without-ssl switch did not work for me with 
tomcat-native-1.1.0 (ships with 5.5.12; 1.1.1 with 5.5.14-beta did 
honor that switch).


HTH

AC



Thank you all.  I was able to recreate and resolve the problem on 
another machine (not the production server).  Here's the procedure I followed.


1. Clean install of JRE 1.4.2_03. This is intentionally an older 
version to recreate environment on the production machine.


2. Clean install of Tomcat 5.5.14.
During installation, initially encountered the error: Failed to 
install Tomcat 5 service. Check your settings and permissions.  This 
was due to fact that, after uninstalling previous version of Tomcat, 
the Windows service was marked for deletion but not removed.  I ran 
the INSTSRV utility to remove the service, but it 
failed.  Apparently, this issue was encountered only because the 
Windows Services manager was open on the desktop.  After closing and 
reopening, the service was gone, and Tomcat could install normally.


3. Starting Tomcat encounter the JVM error:
This release of Apache Tomcat was packaged to run on J2SE 5.0 or 
later. It can be run on earlier JVMs by downloading and installing a 
compatibility package from the Apache Tomcat binary download page.


4. Deployed the compatability patch (by copying the files into Tomcat 
'bin' and 'common' folders).


5. Restarting Tomcat encountered the APR error:
The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path.


6. Edited Tomcat 'server.xml' (in the 'conf' folder).  Removed the line:
  Listener className=org.apache.catalina.core.AprLifecycleListener /

7. Restarting Tomcat, everything works fine!




Regards, Bill Claxton ([EMAIL PROTECTED])
MSN: [EMAIL PROTECTED]
Skype: [EMAIL PROTECTED]
Blog: http://learningweb.blogspot.com


Re: Apache Portable Runtime

2005-12-04 Thread Robert Palmer
I tried this. Should libtcnative-1.so be in $CATALINA_HOME/bin? 'make' 
put it in .libs and I tried moving it. I also

downloaded 5.5.13 which results in the same message.

Thanks.

Bill Barker wrote:

Robert Palmer [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 

Is this something that I should worry about? Is it easily resolved? I have 
downloaded and installled Apache Portable Runtiime. It did not install in 
the Java path though?


   



The message has been fixed in 5.5.13.  What Tomcat is really looking for is 
libtcnative-1.so.  To get that, you unpack tomcat-native.tar.gz (in 
$CATALINA_HOME/bin), then cd to the directory.  From there do:

$ ./configure --with-apr=/path/to/apr --with-ssl=/path/to/OpenSSL
$ make
$ cp libtcnative-1.so ..

 


Thanks

Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:   /opt/jdk1.5.0_04/
Dec 2, 2005 5:20:25 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Portable Runtime which allows optimal performance in 
production environments
was not found on the java.library.path: 
/opt/jdk1.5.0_04/jre/lib/i386/client:/opt/jdk1.5.0_0

4/jre/lib/i386:/opt/jdk1.5.0_04/jre/../lib/i386
Dec 2, 2005 5:20:25 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 2, 2005 5:20:25 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2370 ms
Dec 2, 2005 5:20:26 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 2, 2005 5:20:26 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
Dec 2, 2005 5:20:26 PM org.apache 
   






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

 



Re: Apache Portable Runtime

2005-12-04 Thread M A
Has this problem also you need to include the library path in the start up
to catalina i.e. it becomes part of the command ..

so something like -Djava.library.path=path to libctnative

That should do it ..




On 12/4/05, Robert Palmer [EMAIL PROTECTED] wrote:

 I tried this. Should libtcnative-1.so be in $CATALINA_HOME/bin? 'make'
 put it in .libs and I tried moving it. I also
 downloaded 5.5.13 which results in the same message.

 Thanks.

 Bill Barker wrote:

 Robert Palmer [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
 
 Is this something that I should worry about? Is it easily resolved? I
 have
 downloaded and installled Apache Portable Runtiime. It did not install
 in
 the Java path though?
 
 
 
 
 The message has been fixed in 5.5.13.  What Tomcat is really looking for
 is
 libtcnative-1.so.  To get that, you unpack tomcat-native.tar.gz (in
 $CATALINA_HOME/bin), then cd to the directory.  From there do:
  $ ./configure --with-apr=/path/to/apr --with-ssl=/path/to/OpenSSL
  $ make
  $ cp libtcnative-1.so ..
 
 
 
 Thanks
 
 Using CATALINA_BASE:   /usr/local/tomcat
 Using CATALINA_HOME:   /usr/local/tomcat
 Using CATALINA_TMPDIR: /usr/local/tomcat/temp
 Using JRE_HOME:   /opt/jdk1.5.0_04/
 Dec 2, 2005 5:20:25 PM org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: The Apache Portable Runtime which allows optimal performance in
 production environments
 was not found on the java.library.path:
 /opt/jdk1.5.0_04/jre/lib/i386/client:/opt/jdk1.5.0_0
 4/jre/lib/i386:/opt/jdk1.5.0_04/jre/../lib/i386
 Dec 2, 2005 5:20:25 PM org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Dec 2, 2005 5:20:25 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 2370 ms
 Dec 2, 2005 5:20:26 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Dec 2, 2005 5:20:26 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
 Dec 2, 2005 5:20:26 PM org.apache
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 




Apache Portable Runtime

2005-12-02 Thread Robert Palmer
Is this something that I should worry about? Is it easily resolved? I 
have downloaded and installled Apache Portable Runtiime. It did not 
install in the Java path though?


Thanks

Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:   /opt/jdk1.5.0_04/
Dec 2, 2005 5:20:25 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Portable Runtime which allows optimal performance in 
production environments
was not found on the java.library.path: 
/opt/jdk1.5.0_04/jre/lib/i386/client:/opt/jdk1.5.0_0

4/jre/lib/i386:/opt/jdk1.5.0_04/jre/../lib/i386
Dec 2, 2005 5:20:25 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 2, 2005 5:20:25 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2370 ms
Dec 2, 2005 5:20:26 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 2, 2005 5:20:26 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
Dec 2, 2005 5:20:26 PM org.apache

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



Re: Failed shutdown of Apache Portable Runtime

2005-11-27 Thread Behrang Saeedzadeh
Hi Bill,

Thanks for the reply.

If there are no other error messages, then it usually means that you simply
 don't have the APR Connector installed.


But IMHO this is misleading. Either the error message should change to
reflect the absence of APR or no error message should be displayed at all.

Regards,
Behi
--
Science is a differential equation. Religion is a boundary limit - Alan
Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa


Failed shutdown of Apache Portable Runtime

2005-11-26 Thread Behrang Saeedzadeh
Hi,

From time to time I recieve this error message whenever I attempt to
shutdown Tomcat 5.5.12 from within IDEA. Any ideas why is this
happening?

- Behi

--
Science is a differential equation. Religion is a boundary limit - Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa

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



Re: Failed shutdown of Apache Portable Runtime

2005-11-26 Thread Bill Barker
If there are no other error messages, then it usually means that you simply 
don't have the APR Connector installed.

Behrang Saeedzadeh [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Hi,

From time to time I recieve this error message whenever I attempt to
shutdown Tomcat 5.5.12 from within IDEA. Any ideas why is this
happening?

- Behi

--
Science is a differential equation. Religion is a boundary limit - Alan 
Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa 




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



Tomcat 5.5.12 + APR (Apache Portable Runtime) + SSL (OpenSSL) on Windows

2005-11-17 Thread Dhaval Patel
Hello all,

I am trying to configure HTTPS with Tomcat 5.5.12 on Windows XP. I am using J2SE
1.5.0_05. I am a student and I dont have signed certificate. I tried two methods
which are mentioned on Tomcat documentation: 

(1) Using .keystore (generated by keytool)
I followed the documentation
(http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html). Generted .keystore, 
put
it in C:\, configure web.xml and restart the tomcat.
It works as the way it suppose to. When you goto https://localhost:8443, you
will get warning and it's working. 
Btw in this way, I am note using APR (Apache Portable Runtime). When I use
those binray, I didnt get it to work. I put openssl.exe and tcnative-1.dll in my
bin directory which I downloaed from website which apache documentation
mentioned. I restarted the tomcat, I can see server status and things look fine
on regular HTTP. But HTTPs does not work. I get request timed out from browser
about https://localhost:8443 and it produces no error message.
   
   Then I read at some place that if you want APR you have do some extra
configuration, which I followed in part 2.

(2) Using OpenSSL.

   I installed OpenSSL. I read documentation about how to generate key and
certificate in OpenSSL howto. Then did following:

a) goto c:\Tomcat5.5\bin
b) openssl genrsa -des3 -out privkey.pem 2048 (generate key)
c) openssl req -new -key privkey.pem -out cert.csr (genrate certificate request)
d) openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095 (create
self signed certificate)
e) followed APR config guide from tomcat 5.5 documentations. 
f) restart the tomcat.
g) same error as I get before. request time out and no error in logs.

I dont know how to make it working. I would like to know more about it. APR
documentations says about APR Connectors configuration in which there are http,
https and etc. I believe that is Connector port=8080 ... /, Connector
port=8443 ... / and etc. Am I right? If I am right, then sslProtocol entry in
two documentation (SSL and APR) are getting different entries (TLS vs. TLSv1). I
dont know how to do it.

Does anyone know how to do it using real certificate (signed by Verisign or
something)? Does anyone know how to make it work with self signed certificate?

Thank you in advance.


Regards,
Dhaval

P.S. Forgive me for writing long, but I want to explain everything is full
details. Thanks.




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: Tomcat 5.5.12 + APR (Apache Portable Runtime) + SSL (OpenSSL) on Windows

2005-11-17 Thread Dhaval Patel
Thanks for your response Remy. But I didnt quite get it. I need help configuring
SSL with Tomcat on Windows XP. I read the documentation that I found. I could 
not
solve the problem that's why I posted on forum. I wrote what I did. How a newbie
knows what is irrelevant and what is not.

Thanks anyway.

Regards,
Dhaval

--- Remy Maucherat [EMAIL PROTECTED] wrote:

 On 11/17/05, Dhaval Patel [EMAIL PROTECTED] wrote:
  Hello all,
 
 Then I read at some place that if you want APR you have do some extra
  configuration, which I followed in part 2.
 
  (2) Using OpenSSL.
 
 I installed OpenSSL. I read documentation about how to generate key and
  certificate in OpenSSL howto. Then did following:
 
  a) goto c:\Tomcat5.5\bin
  b) openssl genrsa -des3 -out privkey.pem 2048 (generate key)
  c) openssl req -new -key privkey.pem -out cert.csr (genrate certificate
 request)
  d) openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095 
  (create
  self signed certificate)
  e) followed APR config guide from tomcat 5.5 documentations.
  f) restart the tomcat.
  g) same error as I get before. request time out and no error in logs.
 
  I dont know how to make it working. I would like to know more about it.
 APR
  documentations says about APR Connectors configuration in which there are
 http,
  https and etc. I believe that is Connector port=8080 ... /, Connector
  port=8443 ... / and etc. Am I right? If I am right, then sslProtocol 
  entry
 in
  two documentation (SSL and APR) are getting different entries (TLS vs.
 TLSv1). I
  dont know how to do it.
 
  Does anyone know how to do it using real certificate (signed by Verisign
 or
  something)? Does anyone know how to make it work with self signed
 certificate?
 
  Thank you in advance.
 
 
  Regards,
  Dhaval
 
  P.S. Forgive me for writing long, but I want to explain everything is full
  details. Thanks.
 
 I suppose giving the Connector element is an irrelevant detail (since
 you read the APR page, you probably noticed the attributes were not
 the same as for JSSE, as they resemble the ones used for mod_ssl) ;)
 
 --
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Group (Europe) SàRL
 x
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: Tomcat 5.5.12 + APR (Apache Portable Runtime) + SSL (OpenSSL) on Windows

2005-11-17 Thread Remy Maucherat
On 11/17/05, Dhaval Patel [EMAIL PROTECTED] wrote:
 Thanks for your response Remy. But I didnt quite get it. I need help 
 configuring
 SSL with Tomcat on Windows XP. I read the documentation that I found. I could 
 not
 solve the problem that's why I posted on forum. I wrote what I did. How a 
 newbie
 knows what is irrelevant and what is not.

I think it is quite evident that the connector configuration in
server.xml is important.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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