Re: Apache Portable Runtime

2005-12-02 Thread Bill Barker

"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 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=<>

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


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: Apache Portable Runtime

2007-07-27 Thread James Rome
Lakshmi said:

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

---

I got the APR compiled and running, but it kills all my pages when I use it.

My Tomcat serves all my https pages with client authentication. Where do
I configure this and how? Is it different from the usual https section
in server.xml? Where do I tell it how to find my CA certificates?

Also, if this uses OpenSSL instead off Java SSL, will it still do things
like using OCSP to check presented certificates?

Thanks,
Jim

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

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

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]



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 Caldarale, Charles R
> From: William Claxton [mailto:[EMAIL PROTECTED] 
> Subject: Apache Portable Runtime not found on the java.library.path
> 
> "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?

Either build and install the APR for your platform (as a previous poster
suggested), or comment out the AprLifeCycleListener under the 
tag in the conf/server.xml file.

 - 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: [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

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]



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:
  

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 not found on the java.library.path : Take Two

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."


or, if you don't know from APR and all that business, you might also 
just comment out the following Listener in server.xml:




It's lots less work than compiling APR and the native tomcat connector 
for it =)


AC


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