Re: Problem to install APR Tomcat Native Library

2008-11-13 Thread Kees Jan Koster

Der Torsten,

I got it sorted out with ldd as suggested here on the list but it is  
certainly good to know about truss - thank you!


I am curious what performance gain APR has for your application  
server. Did you do any load tests? If so, could you please publisch  
the results?

--
Kees Jan

http://java-monitor.com/forum/
[EMAIL PROTECTED]
06-51838192

Human beings make life so interesting. Do you know that in a universe  
so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry  
Partchett



-
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: Problem to install APR Tomcat Native Library

2008-10-31 Thread Torsten.Romer
Hi Mladen,

 What does ldd libtcnative-1.so says?

libgcc_s.so.1 = (file not found) 

Thanks a lot! :-)

Torsten

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: 31. oktober 2008 10:25
To: Tomcat Users List
Subject: Re: Problem to install APR Tomcat Native Library


[EMAIL PROTECTED] wrote:
 I am trying to install the APR Tomcat Native Library on a Solaris SPARC 
 server.
 
 Since it has only OpenSSL installed and no build system available, I compiled 
 libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
 
 I then copied the lib folders of both libs to the server, and added the paths 
 to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
 

What does ldd libtcnative-1.so says?

If you didn't use the Sun's CC but gcc to compile
you might be missing some gcc runtime libs on the target box

Regards
-- 
^(TM)

-
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: Problem to install APR Tomcat Native Library

2008-10-31 Thread Mladen Turk

[EMAIL PROTECTED] wrote:

I am trying to install the APR Tomcat Native Library on a Solaris SPARC server.

Since it has only OpenSSL installed and no build system available, I compiled 
libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.

I then copied the lib folders of both libs to the server, and added the paths 
to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).



What does ldd libtcnative-1.so says?

If you didn't use the Sun's CC but gcc to compile
you might be missing some gcc runtime libs on the target box

Regards
--
^(TM)

-
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: Problem to install APR Tomcat Native Library

2008-10-31 Thread Torsten.Romer
Now I finally got APR installed correctly :-) Thanks again for all the help!

However I get the following warnings when starting up Tomcat:

WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 
'minSpareThreads' to '25' did not find a matching property.
Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 
'maxSpareThreads' to '75' did not find a matching property.
Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule begin

So it seems these properties are not supported by the APR protocol, but I can't 
confirm that reading the documentation. Also, the example for the APR SSL 
connector at

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

includes these properties:

Connector port=443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   SSLEnabled=true 
   SSLCertificateFile=${catalina.base}/conf/localhost.crt
   SSLCertificateKeyFile=${catalina.base}/conf/localhost.key /

So why do I get these warnings? Should I remove the minSpareThreads and 
minSpareThreads properties or replace them by other ones?

Torsten



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 31. oktober 2008 12:38
To: users@tomcat.apache.org
Subject: RE: Problem to install APR Tomcat Native Library


Hi Mladen,

 What does ldd libtcnative-1.so says?

libgcc_s.so.1 = (file not found) 

Thanks a lot! :-)

Torsten

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: 31. oktober 2008 10:25
To: Tomcat Users List
Subject: Re: Problem to install APR Tomcat Native Library


[EMAIL PROTECTED] wrote:
 I am trying to install the APR Tomcat Native Library on a Solaris SPARC 
 server.
 
 Since it has only OpenSSL installed and no build system available, I compiled 
 libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
 
 I then copied the lib folders of both libs to the server, and added the paths 
 to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
 

What does ldd libtcnative-1.so says?

If you didn't use the Sun's CC but gcc to compile
you might be missing some gcc runtime libs on the target box

Regards
-- 
^(TM)

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


-
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: Problem to install APR Tomcat Native Library

2008-10-31 Thread Juha Laiho
[EMAIL PROTECTED] wrote:
 However I get the following warnings when starting up Tomcat:
 
 WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 
 'minSpareThreads' to '25' did not find a matching property.
 Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule begin
 WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 
 'maxSpareThreads' to '75' did not find a matching property.
 Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule begin
 
 So it seems these properties are not supported by the APR protocol, but I 
 can't confirm that reading the documentation. Also, the example for the APR 
 SSL connector at
 
 http://tomcat.apache.org/tomcat-6.0-doc/apr.html#HTTPS
 
 includes these properties:
 
 Connector port=443 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
SSLEnabled=true 
SSLCertificateFile=${catalina.base}/conf/localhost.crt
SSLCertificateKeyFile=${catalina.base}/conf/localhost.key /
 
 So why do I get these warnings? Should I remove the minSpareThreads and 
 minSpareThreads properties or replace them by other ones?

It looks like the documentation has been left unchanged from Tomcat 5.5.

If you compare the HTTP connector configuration parameters described in
Tomcat 5.5 and Tomcat 6.0 documentation, you'll see that those two
parameters do exist in 5.5 documentation, but not in 6.0 documentation:
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

However, I didn't see in changelog a mention about these two having been
removed, but apparently they no longer exist.
-- 
..Juha

-
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: Problem to install APR Tomcat Native Library

2008-10-31 Thread Serge Fonville
In tomcat 6 you need to specify an executor to define minSpareThreads
and maxSpareThreads (altough this isn't required, IIRC/AFAIK)
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html(search
for executor)
http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

Regards,

Serge Fonville

On Fri, Oct 31, 2008 at 4:45 PM, Juha Laiho [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  However I get the following warnings when starting up Tomcat:
 
  WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting
 property 'minSpareThreads' to '25' did not find a matching property.
  Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule
 begin
  WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting
 property 'maxSpareThreads' to '75' did not find a matching property.
  Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule
 begin
 
  So it seems these properties are not supported by the APR protocol, but I
 can't confirm that reading the documentation. Also, the example for the APR
 SSL connector at
 
  http://tomcat.apache.org/tomcat-6.0-doc/apr.html#HTTPS
 
  includes these properties:
 
  Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 SSLEnabled=true
 SSLCertificateFile=${catalina.base}/conf/localhost.crt
 
  SSLCertificateKeyFile=${catalina.base}/conf/localhost.key /
 
  So why do I get these warnings? Should I remove the minSpareThreads and
 minSpareThreads properties or replace them by other ones?

 It looks like the documentation has been left unchanged from Tomcat 5.5.

 If you compare the HTTP connector configuration parameters described in
 Tomcat 5.5 and Tomcat 6.0 documentation, you'll see that those two
 parameters do exist in 5.5 documentation, but not in 6.0 documentation:
 http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
 http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

 However, I didn't see in changelog a mention about these two having been
 removed, but apparently they no longer exist.
 --
 ..Juha

 -
 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: Problem to install APR Tomcat Native Library

2008-10-31 Thread Caldarale, Charles R
 From: Serge Fonville [mailto:[EMAIL PROTECTED]
 Subject: Re: Problem to install APR Tomcat Native Library

 In tomcat 6 you need to specify an executor to define minSpareThreads
 and maxSpareThreads (altough this isn't required, IIRC/AFAIK)
 http://tomcat.apache.org/tomcat-6.0-doc/config/http.html(search
 for executor)
 http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

Not true; the plan was to migrate thread pool usage from connectors to 
executors, but most of the 6.0 connectors still support the min and max thread 
settings - with the exception of the APR connector, which (AFAICT) has actually 
never supported the attributes.  The 6.0 doc was updated prematurely.

Note this message about performance problems with Executor, from one of the 
main contributors:
http://marc.info/?l=tomcat-userm=118002259402411w=2

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Serge Fonville
Thanks, I didn't know that.
I stand corrected

Regards,

Serge Fonville


On Fri, Oct 31, 2008 at 6:06 PM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Serge Fonville [mailto:[EMAIL PROTECTED]
  Subject: Re: Problem to install APR Tomcat Native Library
 
  In tomcat 6 you need to specify an executor to define minSpareThreads
  and maxSpareThreads (altough this isn't required, IIRC/AFAIK)
  http://tomcat.apache.org/tomcat-6.0-doc/config/http.html(search
  for executor)
  http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

 Not true; the plan was to migrate thread pool usage from connectors to
 executors, but most of the 6.0 connectors still support the min and max
 thread settings - with the exception of the APR connector, which (AFAICT)
 has actually never supported the attributes.  The 6.0 doc was updated
 prematurely.

 Note this message about performance problems with Executor, from one of
 the main contributors:
 http://marc.info/?l=tomcat-userm=118002259402411w=2

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Problem to install APR Tomcat Native Library

2008-10-31 Thread Torsten.Romer
Hi Rainer,

I got it sorted out with ldd as suggested here on the list but it is certainly 
good to know about truss - thank you!

Torsten 

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 23:16
To: Tomcat Users List
Subject: Re: Problem to install APR Tomcat Native Library


[EMAIL PROTECTED] schrieb:
 Yes, it is set to something like
 LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH
 
 
 The files are all world readable and even owned by the user running
 Tomcat.
 
 I just want to mention that I compiled both libs with another prefix
 than where I have copied them to now - because those directories
 don't exist on the build machine and I don't have root permissions.
 But that shouldn't matter since I include the locations of the libs
 in the LD_LIBRARY_PATH?
 
 Is it not possible to get Tomcat to log some more details about
 loading these libs? Could be interesting to see some
 UnsatisfiedLinkError or so.

On Solaris you can use truss:

truss -f -o OUTPUTFILE TOMCATSTARTSCRIPT

It will e.g. show, which shared object files were tried to load and from
which places.

Regards,

Rainer

-
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: Problem to install APR Tomcat Native Library

2008-10-31 Thread Martin Gainty

I d/l ed the APR for my OS and when compiled saw somewhere in excess of 100 
errors..
in java once can determine version errors with Maven
Im wondering if the same version checking capability exists for binaries?

Glad to hear the solution worked for you
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Subject: RE: Problem to install APR Tomcat Native Library
 Date: Sat, 1 Nov 2008 02:38:41 +0100
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 
 Hi Rainer,
 
 I got it sorted out with ldd as suggested here on the list but it is 
 certainly good to know about truss - thank you!
 
 Torsten 
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: 30. oktober 2008 23:16
 To: Tomcat Users List
 Subject: Re: Problem to install APR Tomcat Native Library
 
 
 [EMAIL PROTECTED] schrieb:
  Yes, it is set to something like
  LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH
  
  
  The files are all world readable and even owned by the user running
  Tomcat.
  
  I just want to mention that I compiled both libs with another prefix
  than where I have copied them to now - because those directories
  don't exist on the build machine and I don't have root permissions.
  But that shouldn't matter since I include the locations of the libs
  in the LD_LIBRARY_PATH?
  
  Is it not possible to get Tomcat to log some more details about
  loading these libs? Could be interesting to see some
  UnsatisfiedLinkError or so.
 
 On Solaris you can use truss:
 
 truss -f -o OUTPUTFILE TOMCATSTARTSCRIPT
 
 It will e.g. show, which shared object files were tried to load and from
 which places.
 
 Regards,
 
 Rainer
 
 -
 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]
 

_
Stay organized with simple drag and drop from Windows Live Hotmail.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008

Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
I am trying to install the APR Tomcat Native Library on a Solaris SPARC server.

Since it has only OpenSSL installed and no build system available, I compiled 
libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.

I then copied the lib folders of both libs to the server, and added the paths 
to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).

The message The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found [...] and I can see the 
paths to both libs in the java.library.path.

I guess I have done something wrong. Any ideas? Can I change the logging level 
so I can get some more info in catalina.out?

Torsten

-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Andrew Ralph Feller, afelle1
Torsten,

Have you updated your LD_LIBRARY_PATH to include APR lib?

A-


On 10/30/08 12:15 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 I am trying to install the APR Tomcat Native Library on a Solaris SPARC
 server.
 
 Since it has only OpenSSL installed and no build system available, I compiled
 libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
 
 I then copied the lib folders of both libs to the server, and added the paths
 to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
 
 The message The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found [...] and I can see the
 paths to both libs in the java.library.path.
 
 I guess I have done something wrong. Any ideas? Can I change the logging level
 so I can get some more info in catalina.out?
 
 Torsten
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Hi Andrew,

Yes, I did that. So both libapr and libtcnative are in the 
LD_LIBRARY_PATH/java.library.path that Tomcat includes in the message that it 
couldn't load the library.

I even included the OpenSSL libs in the path.

Torsten

-Original Message-
From: Andrew Ralph Feller, afelle1 [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 18:18
To: Tomcat Users List
Subject: Re: Problem to install APR Tomcat Native Library


Torsten,

Have you updated your LD_LIBRARY_PATH to include APR lib?

A-


On 10/30/08 12:15 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 I am trying to install the APR Tomcat Native Library on a Solaris SPARC
 server.
 
 Since it has only OpenSSL installed and no build system available, I compiled
 libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
 
 I then copied the lib folders of both libs to the server, and added the paths
 to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
 
 The message The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found [...] and I can see the
 paths to both libs in the java.library.path.
 
 I guess I have done something wrong. Any ideas? Can I change the logging level
 so I can get some more info in catalina.out?
 
 Torsten
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Martin Gainty

pls follow Andrew's advice..if windows its probably a dll? so you'll want to 
copy apr-1.lib to %JRE_HOME%\bin

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Thu, 30 Oct 2008 12:17:51 -0500
 Subject: Re: Problem to install APR Tomcat Native Library
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 
 Torsten,
 
 Have you updated your LD_LIBRARY_PATH to include APR lib?
 
 A-
 
 
 On 10/30/08 12:15 PM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
  I am trying to install the APR Tomcat Native Library on a Solaris SPARC
  server.
  
  Since it has only OpenSSL installed and no build system available, I 
  compiled
  libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
  
  I then copied the lib folders of both libs to the server, and added the 
  paths
  to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
  
  The message The APR based Apache Tomcat Native library which allows optimal
  performance in production environments was not found [...] and I can see 
  the
  paths to both libs in the java.library.path.
  
  I guess I have done something wrong. Any ideas? Can I change the logging 
  level
  so I can get some more info in catalina.out?
  
  Torsten
  
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -- 
 Andrew R. Feller, Analyst
 Information Technology Services
 200 Fred Frey Building
 Louisiana State University
 Baton Rouge, LA 70803
 (225) 578-3737 (Office)
 (225) 578-6400 (Fax)
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
You live life beyond your PC. So now Windows goes beyond your PC.
http://clk.atdmt.com/MRT/go/115298556/direct/01/

RE: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Hi Martin,

It is Solaris SPARC. Would it help to copy shared libs into the JRE bin folder? 
I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help either.

Torsten 

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 18:34
To: Tomcat Users List
Subject: RE: Problem to install APR Tomcat Native Library


pls follow Andrew's advice..if windows its probably a dll? so you'll want to 
copy apr-1.lib to %JRE_HOME%\bin

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Thu, 30 Oct 2008 12:17:51 -0500
 Subject: Re: Problem to install APR Tomcat Native Library
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 
 Torsten,
 
 Have you updated your LD_LIBRARY_PATH to include APR lib?
 
 A-
 
 
 On 10/30/08 12:15 PM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
  I am trying to install the APR Tomcat Native Library on a Solaris SPARC
  server.
  
  Since it has only OpenSSL installed and no build system available, I 
  compiled
  libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
  
  I then copied the lib folders of both libs to the server, and added the 
  paths
  to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
  
  The message The APR based Apache Tomcat Native library which allows optimal
  performance in production environments was not found [...] and I can see 
  the
  paths to both libs in the java.library.path.
  
  I guess I have done something wrong. Any ideas? Can I change the logging 
  level
  so I can get some more info in catalina.out?
  
  Torsten
  
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -- 
 Andrew R. Feller, Analyst
 Information Technology Services
 200 Fred Frey Building
 Louisiana State University
 Baton Rouge, LA 70803
 (225) 578-3737 (Office)
 (225) 578-6400 (Fax)
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
You live life beyond your PC. So now Windows goes beyond your PC.
http://clk.atdmt.com/MRT/go/115298556/direct/01/

-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Martin Gainty

yes I would do that..symlink is specific to your shell session and only works 
at shell command line or 
thru java shell out e.g. java.lang.Runtime.exec(shell call);

Viel Gluck
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Subject: RE: Problem to install APR Tomcat Native Library
 Date: Thu, 30 Oct 2008 18:41:49 +0100
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 
 Hi Martin,
 
 It is Solaris SPARC. Would it help to copy shared libs into the JRE bin 
 folder? I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help 
 either.
 
 Torsten 
 
 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Sent: 30. oktober 2008 18:34
 To: Tomcat Users List
 Subject: RE: Problem to install APR Tomcat Native Library
 
 
 pls follow Andrew's advice..if windows its probably a dll? so you'll want to 
 copy apr-1.lib to %JRE_HOME%\bin
 
 Martin 
 __ 
 Disclaimer and confidentiality note 
 Everything in this e-mail and any attachments relates to the official 
 business of Sender. This transmission is of a confidential nature and Sender 
 does not endorse distribution to any party other than intended recipient. 
 Sender does not necessarily endorse content contained within this 
 transmission. 
 
 
  Date: Thu, 30 Oct 2008 12:17:51 -0500
  Subject: Re: Problem to install APR Tomcat Native Library
  From: [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  
  Torsten,
  
  Have you updated your LD_LIBRARY_PATH to include APR lib?
  
  A-
  
  
  On 10/30/08 12:15 PM, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
  
   I am trying to install the APR Tomcat Native Library on a Solaris SPARC
   server.
   
   Since it has only OpenSSL installed and no build system available, I 
   compiled
   libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
   
   I then copied the lib folders of both libs to the server, and added the 
   paths
   to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
   
   The message The APR based Apache Tomcat Native library which allows 
   optimal
   performance in production environments was not found [...] and I can see 
   the
   paths to both libs in the java.library.path.
   
   I guess I have done something wrong. Any ideas? Can I change the logging 
   level
   so I can get some more info in catalina.out?
   
   Torsten
   
   -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  -- 
  Andrew R. Feller, Analyst
  Information Technology Services
  200 Fred Frey Building
  Louisiana State University
  Baton Rouge, LA 70803
  (225) 578-3737 (Office)
  (225) 578-6400 (Fax)
  
  
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 _
 You live life beyond your PC. So now Windows goes beyond your PC.
 http://clk.atdmt.com/MRT/go/115298556/direct/01/
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
When your life is on the go—take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/

Re: Problem to install APR Tomcat Native Library

2008-10-30 Thread Andrew Ralph Feller, afelle1
Torsten,

What is your LD_LIBRARY_PATH set to?  Is it something like this:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib

Are there world permissions for anyone to read this directory?

I know you mentioned that you front-end Tomcat with HTTPD and assumed your
use of APR is to free Tomcat from depending on HTTPD for HTTPS.

A-
On 10/30/08 12:41 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Hi Martin,
 
 It is Solaris SPARC. Would it help to copy shared libs into the JRE bin
 folder? I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help
 either.
 
 Torsten 
 
 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: 30. oktober 2008 18:34
 To: Tomcat Users List
 Subject: RE: Problem to install APR Tomcat Native Library
 
 
 pls follow Andrew's advice..if windows its probably a dll? so you'll want to
 copy apr-1.lib to %JRE_HOME%\bin
 
 Martin 
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official business
 of Sender. This transmission is of a confidential nature and Sender does not
 endorse distribution to any party other than intended recipient. Sender does
 not necessarily endorse content contained within this transmission.
 
 
 Date: Thu, 30 Oct 2008 12:17:51 -0500
 Subject: Re: Problem to install APR Tomcat Native Library
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 
 Torsten,
 
 Have you updated your LD_LIBRARY_PATH to include APR lib?
 
 A-
 
 
 On 10/30/08 12:15 PM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 I am trying to install the APR Tomcat Native Library on a Solaris SPARC
 server.
 
 Since it has only OpenSSL installed and no build system available, I
 compiled
 libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
 
 I then copied the lib folders of both libs to the server, and added the
 paths
 to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
 
 The message The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found [...] and I can see
 the
 paths to both libs in the java.library.path.
 
 I guess I have done something wrong. Any ideas? Can I change the logging
 level
 so I can get some more info in catalina.out?
 
 Torsten
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -- 
 Andrew R. Feller, Analyst
 Information Technology Services
 200 Fred Frey Building
 Louisiana State University
 Baton Rouge, LA 70803
 (225) 578-3737 (Office)
 (225) 578-6400 (Fax)
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 You live life beyond your PC. So now Windows goes beyond your PC.
 http://clk.atdmt.com/MRT/go/115298556/direct/01/
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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: Problem to install APR Tomcat Native Library

2008-10-30 Thread Torsten.Romer
Yes, it is set to something like 
LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH

The files are all world readable and even owned by the user running Tomcat.

I just want to mention that I compiled both libs with another prefix than where 
I have copied them to now - because those directories don't exist on the build 
machine and I don't have root permissions. But that shouldn't matter since I 
include the locations of the libs in the LD_LIBRARY_PATH?

Is it not possible to get Tomcat to log some more details about loading these 
libs? Could be interesting to see some UnsatisfiedLinkError or so.

We have HTTP, HTTPS and AJP connectors on that Tomcat and what I understood 
from the documentation is that APR can improve the performance - which would be 
nice since the application is quite busy.

Thanks for all your help so far!

Torsten

-Original Message-
From: Andrew Ralph Feller, afelle1 [mailto:[EMAIL PROTECTED] 
Sent: 30. oktober 2008 18:51
To: Tomcat Users List
Subject: Re: Problem to install APR Tomcat Native Library


Torsten,

What is your LD_LIBRARY_PATH set to?  Is it something like this:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib

Are there world permissions for anyone to read this directory?

I know you mentioned that you front-end Tomcat with HTTPD and assumed your
use of APR is to free Tomcat from depending on HTTPD for HTTPS.

A-
On 10/30/08 12:41 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Hi Martin,
 
 It is Solaris SPARC. Would it help to copy shared libs into the JRE bin
 folder? I symlinked them into $JAVA_HOME/jre/lib/sparc but that didn't help
 either.
 
 Torsten 
 
 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: 30. oktober 2008 18:34
 To: Tomcat Users List
 Subject: RE: Problem to install APR Tomcat Native Library
 
 
 pls follow Andrew's advice..if windows its probably a dll? so you'll want to
 copy apr-1.lib to %JRE_HOME%\bin
 
 Martin 
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official business
 of Sender. This transmission is of a confidential nature and Sender does not
 endorse distribution to any party other than intended recipient. Sender does
 not necessarily endorse content contained within this transmission.
 
 
 Date: Thu, 30 Oct 2008 12:17:51 -0500
 Subject: Re: Problem to install APR Tomcat Native Library
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 
 Torsten,
 
 Have you updated your LD_LIBRARY_PATH to include APR lib?
 
 A-
 
 
 On 10/30/08 12:15 PM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 I am trying to install the APR Tomcat Native Library on a Solaris SPARC
 server.
 
 Since it has only OpenSSL installed and no build system available, I
 compiled
 libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS.
 
 I then copied the lib folders of both libs to the server, and added the
 paths
 to the LD_LIBRARY_PATH and restarted Tomcat (6.0.18).
 
 The message The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found [...] and I can see
 the
 paths to both libs in the java.library.path.
 
 I guess I have done something wrong. Any ideas? Can I change the logging
 level
 so I can get some more info in catalina.out?
 
 Torsten
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -- 
 Andrew R. Feller, Analyst
 Information Technology Services
 200 Fred Frey Building
 Louisiana State University
 Baton Rouge, LA 70803
 (225) 578-3737 (Office)
 (225) 578-6400 (Fax)
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 You live life beyond your PC. So now Windows goes beyond your PC.
 http://clk.atdmt.com/MRT/go/115298556/direct/01/
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Andrew R. Feller, Analyst
Information Technology Services
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-
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

Re: Problem to install APR Tomcat Native Library

2008-10-30 Thread Rainer Jung
[EMAIL PROTECTED] schrieb:
 Yes, it is set to something like
 LD_LIBRARY_PATH=/opt/app/libtcnative/lib:/opt/app/apr/lib:$LD_LIBRARY_PATH
 
 
 The files are all world readable and even owned by the user running
 Tomcat.
 
 I just want to mention that I compiled both libs with another prefix
 than where I have copied them to now - because those directories
 don't exist on the build machine and I don't have root permissions.
 But that shouldn't matter since I include the locations of the libs
 in the LD_LIBRARY_PATH?
 
 Is it not possible to get Tomcat to log some more details about
 loading these libs? Could be interesting to see some
 UnsatisfiedLinkError or so.

On Solaris you can use truss:

truss -f -o OUTPUTFILE TOMCATSTARTSCRIPT

It will e.g. show, which shared object files were tried to load and from
which places.

Regards,

Rainer

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