Discussion:
Tomcat Native library for Windows
Brian Clark
2008-09-02 22:17:19 UTC
Permalink
Hello,

I am getting the following error when starting up Tomcat 6.0.16 on Windows 2003:

"Sep 2, 2008 4:18:13 PM 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: C:\Program
Files\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Perl\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS"

Here's
the catch, I do have the library installed in the bin directory (the
very same bin referenced in the PATH above). I downloaded version 1.1.14.0 from http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ and tried to just "drop it in" the bin directory. I don't know why it
doesn't work. I also tried putting it in my windows\system32 directory,
but with the same result.

I've done a lot of research on the
'net, and found lots of other people that have this problem. However,
most seem to have the problem resolved by putting the library in the
right place, such as described in this earlier mailing list posting:
http://www.mail-archive.com/***@tomcat.apache.org/msg29111.html

Any ideas on what is going on here?

Brian Clark
Mark Thomas
2008-09-02 22:38:45 UTC
Permalink
Post by Brian Clark
Hello,
"Sep 2, 2008 4:18:13 PM 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: C:\Program
Files\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Perl\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS"
Here's
the catch, I do have the library installed in the bin directory (the
very same bin referenced in the PATH above). I downloaded version 1.1.14.0 from http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ and tried to just "drop it in" the bin directory. I don't know why it
doesn't work. I also tried putting it in my windows\system32 directory,
but with the same result.
I've done a lot of research on the
'net, and found lots of other people that have this problem. However,
most seem to have the problem resolved by putting the library in the
Any ideas on what is going on here?
Which file did you download. What is its current name?

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Martin Gainty
2008-09-02 22:59:10 UTC
Permalink
AprLifecycleListener reads java.library.path
so either start Java with -Djava.library.path
java -Djava.library.path=LocationOfBinary bootstrap.jar
(easier to place -Djava.library.path into JAVA_OPTS)
OR
set LD_LIBRARY_PATH=LocationOfBinary

YMMV/
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: Tue, 2 Sep 2008 23:38:45 +0100
Subject: Re: Tomcat Native library for Windows
Post by Brian Clark
Hello,
"Sep 2, 2008 4:18:13 PM 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: C:\Program
Files\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Perl\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS"
Here's
the catch, I do have the library installed in the bin directory (the
very same bin referenced in the PATH above). I downloaded version 1.1.14.0 from http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ and tried to just "drop it in" the bin directory. I don't know why it
doesn't work. I also tried putting it in my windows\system32 directory,
but with the same result.
I've done a lot of research on the
'net, and found lots of other people that have this problem. However,
most seem to have the problem resolved by putting the library in the
Any ideas on what is going on here?
Which file did you download. What is its current name?
Mark
---------------------------------------------------------------------
_________________________________________________________________
Get ideas on sharing photos from people like you. Find new ways to share.
http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008
Johnny Kewl
2008-09-02 23:16:08 UTC
Permalink
----- Original Message -----
From: "Brian Clark" <***@yahoo.com>
To: <***@tomcat.apache.org>
Sent: Wednesday, September 03, 2008 12:17 AM
Subject: Tomcat Native library for Windows
Post by Brian Clark
Hello,
"Sep 2, 2008 4:18:13 PM 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: C:\Program
Files\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Perl\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS"
Here's
the catch, I do have the library installed in the bin directory (the
very same bin referenced in the PATH above). I downloaded version 1.1.14.0
from http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ and tried to
just "drop it in" the bin directory. I don't know why it
doesn't work. I also tried putting it in my windows\system32 directory,
but with the same result.
I've done a lot of research on the
'net, and found lots of other people that have this problem. However,
most seem to have the problem resolved by putting the library in the
Any ideas on what is going on here?
Brian Clark
Brian, dont know...
Its a file called
tcnative-1.dll
and it normally lives in the TC bin...

But you dont have to think if your use the tomcat.exe installer... it does
it for you if you just select the native option... click ;)
What I do is get the zip version as well, and after the EXE has done its
thing, I copy the missing bin scripts from zip to exe version.

have fun...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------




---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Brian Clark
2008-09-02 23:38:11 UTC
Permalink
I downloaded the file http://tomcat.heanet.ie/native/1.1.14/binaries/win32/tcnative-1.dll
I didn't change the name.



----- Original Message ----
From: Mark Thomas <***@apache.org>
To: Tomcat Users List <***@tomcat.apache.org>
Sent: Tuesday, September 2, 2008 5:38:45 PM
Subject: Re: Tomcat Native library for Windows
Post by Brian Clark
Hello,
"Sep 2, 2008 4:18:13 PM 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: C:\Program
Files\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Perl\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS"
Here's
the catch, I do have the library installed in the bin directory (the
very same bin referenced in the PATH above). I downloaded version 1.1.14.0 from http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ and tried to just "drop it in" the bin directory. I don't know why it
doesn't work. I also tried putting it in my windows\system32 directory,
but with the same result.
I've done a lot of research on the
'net, and found lots of other people that have this problem. However,
most seem to have the problem resolved by putting the library in the
Any ideas on what is going on here?
Which file did you download. What is its current name?

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Brian Clark
2008-09-02 23:54:10 UTC
Permalink
Hmmm...on Windows, what is the difference between java.library.path and the Windows environmental variable PATH?

I am not sure I understand your suggestion. I have my Java Classpath set to this, which contains my bootstrap.jar.
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar

Should I just set, via JAVA_OPTS, my java.library.path to the same directory, since that's where I put my tcnative-1.dll file?
-Djava.library.path=C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin

I don't want to break anything. Setting the java.library.path won't make Tomcat stop looking at other libraries in other locations (like the built-in /lib directory) will it?

Thanks,
Brian



----- Original Message ----
From: Martin Gainty <***@hotmail.com>
To: Tomcat Users List <***@tomcat.apache.org>
Sent: Tuesday, September 2, 2008 5:59:10 PM
Subject: RE: Tomcat Native library for Windows


AprLifecycleListener reads java.library.path
so either start Java with -Djava.library.path
java -Djava.library.path=LocationOfBinary bootstrap.jar
(easier to place -Djava.library.path into JAVA_OPTS)
OR
set LD_LIBRARY_PATH=LocationOfBinary

YMMV/
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: Tue, 2 Sep 2008 23:38:45 +0100
Subject: Re: Tomcat Native library for Windows
Post by Brian Clark
Hello,
"Sep 2, 2008 4:18:13 PM 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: C:\Program
Files\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Perl\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS"
Here's
the catch, I do have the library installed in the bin directory (the
very same bin referenced in the PATH above). I downloaded version 1.1.14.0 from http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ and tried to just "drop it in" the bin directory. I don't know why it
doesn't work. I also tried putting it in my windows\system32 directory,
but with the same result.
I've done a lot of research on the
'net, and found lots of other people that have this problem. However,
most seem to have the problem resolved by putting the library in the
Any ideas on what is going on here?
Which file did you download. What is its current name?
Mark
---------------------------------------------------------------------
_________________________________________________________________
Get ideas on sharing photos from people like you. Find new ways to share.
http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008
Caldarale, Charles R
2008-09-03 00:19:32 UTC
Permalink
Subject: Re: Tomcat Native library for Windows
Hmmm...on Windows, what is the difference between
java.library.path and the Windows environmental variable PATH?
By default, none.
I have my Java Classpath set to this, which contains
my bootstrap.jar.
Hopefully that's what shows in the tomcat6w.exe program, not something you're setting in the system environment variables. (If you do have a CLASSPATH environment variable, get rid of it - it will only break things.)
Should I just set, via JAVA_OPTS, my java.library.path to the
same directory, since that's where I put my tcnative-1.dll file?
-Djava.library.path=C:\Program Files\Apache Software
Foundation\Tomcat 6.0\bin
Don't bother, the JVM is already looking there, as shown by the INFO message.
I don't want to break anything. Setting the java.library.path
won't make Tomcat stop looking at other libraries in other
locations (like the built-in /lib directory) will it?
No, it won't break anything, but it's also not going to make it work. The java.library.path is used for native library DLLs only, not for classes.

Check for ownership and access permissions on the file - insure that the account the Tomcat service is running under can access the DLL.

By any chance, is this a 64-bit version of Windows Server? If so, and you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.

- 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: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Brian Clark
2008-09-03 01:25:19 UTC
Permalink
Thanks for the suggestions. I just re-downloaded the file and now it works. I guess it was corrupted during the original download or something. Go figure.

Brian



----- Original Message ----
From: "Caldarale, Charles R" <***@unisys.com>
To: Tomcat Users List <***@tomcat.apache.org>
Sent: Tuesday, September 2, 2008 7:19:32 PM
Subject: RE: Tomcat Native library for Windows
Subject: Re: Tomcat Native library for Windows
Hmmm...on Windows, what is the difference between
java.library.path and the Windows environmental variable PATH?
By default, none.
I have my Java Classpath set to this, which contains
my bootstrap.jar.
Hopefully that's what shows in the tomcat6w.exe program, not something you're setting in the system environment variables. (If you do have a CLASSPATH environment variable, get rid of it - it will only break things.)
Should I just set, via JAVA_OPTS, my java.library.path to the
same directory, since that's where I put my tcnative-1.dll file?
-Djava.library.path=C:\Program Files\Apache Software
Foundation\Tomcat 6.0\bin
Don't bother, the JVM is already looking there, as shown by the INFO message.
I don't want to break anything. Setting the java.library.path
won't make Tomcat stop looking at other libraries in other
locations (like the built-in /lib directory) will it?
No, it won't break anything, but it's also not going to make it work. The java.library.path is used for native library DLLs only, not for classes.

Check for ownership and access permissions on the file - insure that the account the Tomcat service is running under can access the DLL.

By any chance, is this a 64-bit version of Windows Server? If so, and you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.

- 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: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
zmeeagain
2008-11-06 08:07:50 UTC
Permalink
I too had and still have the same problem:

6 Nov 2008 9:48:57 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: C:\Program
Files\Java\jdk1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows[...]

I am using Vista 64bit on 64bit Intel, and a 64bit JDK (C:\Program
Files\Java\jdk1.6.0_07\). I have downloaded both openssl.exe and
tcnative-1.dll from
http://tomcat.heanet.ie/native/1.1.9/binaries/win64/ia64/ (supposedly the
correct version?) and saved them in C:\Program Files\Java\jdk1.6.0_07\bin\
but Tomcat keeps complaining... I have run out of ideas.
Post by Brian Clark
Thanks for the suggestions. I just re-downloaded the file and now it
works. I guess it was corrupted during the original download or something.
Go figure.
Brian
----- Original Message ----
Sent: Tuesday, September 2, 2008 7:19:32 PM
Subject: RE: Tomcat Native library for Windows
Subject: Re: Tomcat Native library for Windows
Hmmm...on Windows, what is the difference between
java.library.path and the Windows environmental variable PATH?
By default, none.
I have my Java Classpath set to this, which contains
my bootstrap.jar.
Hopefully that's what shows in the tomcat6w.exe program, not something
you're setting in the system environment variables. (If you do have a
CLASSPATH environment variable, get rid of it - it will only break
things.)
Should I just set, via JAVA_OPTS, my java.library.path to the
same directory, since that's where I put my tcnative-1.dll file?
-Djava.library.path=C:\Program Files\Apache Software
Foundation\Tomcat 6.0\bin
Don't bother, the JVM is already looking there, as shown by the INFO message.
I don't want to break anything. Setting the java.library.path
won't make Tomcat stop looking at other libraries in other
locations (like the built-in /lib directory) will it?
No, it won't break anything, but it's also not going to make it work. The
java.library.path is used for native library DLLs only, not for classes.
Check for ownership and access permissions on the file - insure that the
account the Tomcat service is running under can access the DLL.
By any chance, is this a 64-bit version of Windows Server? If so, and
you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.
- 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.
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20356642.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Serge Fonville
2008-11-06 08:21:26 UTC
Permalink
As far as I know Vista x64 does not run on an ItaniumPerhaps you instead
wanted amd64

Regards,

Serge Fonville
Post by zmeeagain
6 Nov 2008 9:48:57 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: C:\Program
Files\Java\jdk1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows[...]
I am using Vista 64bit on 64bit Intel, and a 64bit JDK (C:\Program
Files\Java\jdk1.6.0_07\). I have downloaded both openssl.exe and
tcnative-1.dll from
http://tomcat.heanet.ie/native/1.1.9/binaries/win64/ia64/ (supposedly the
correct version?) and saved them in C:\Program Files\Java\jdk1.6.0_07\bin\
but Tomcat keeps complaining... I have run out of ideas.
Post by Brian Clark
Thanks for the suggestions. I just re-downloaded the file and now it
works. I guess it was corrupted during the original download or
something.
Post by Brian Clark
Go figure.
Brian
----- Original Message ----
Sent: Tuesday, September 2, 2008 7:19:32 PM
Subject: RE: Tomcat Native library for Windows
Subject: Re: Tomcat Native library for Windows
Hmmm...on Windows, what is the difference between
java.library.path and the Windows environmental variable PATH?
By default, none.
I have my Java Classpath set to this, which contains
my bootstrap.jar.
Hopefully that's what shows in the tomcat6w.exe program, not something
you're setting in the system environment variables. (If you do have a
CLASSPATH environment variable, get rid of it - it will only break
things.)
Should I just set, via JAVA_OPTS, my java.library.path to the
same directory, since that's where I put my tcnative-1.dll file?
-Djava.library.path=C:\Program Files\Apache Software
Foundation\Tomcat 6.0\bin
Don't bother, the JVM is already looking there, as shown by the INFO message.
I don't want to break anything. Setting the java.library.path
won't make Tomcat stop looking at other libraries in other
locations (like the built-in /lib directory) will it?
No, it won't break anything, but it's also not going to make it work.
The
Post by Brian Clark
java.library.path is used for native library DLLs only, not for classes.
Check for ownership and access permissions on the file - insure that the
account the Tomcat service is running under can access the DLL.
By any chance, is this a 64-bit version of Windows Server? If so, and
you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.
- 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.
---------------------------------------------------------------------
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20356642.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
zmeeagain
2008-11-06 09:28:14 UTC
Permalink
It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64 bit.
Anyhow, your comment made think that ia64 is not my architecture. And
indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
architectures (instead of amd and ia64 as in some previous versions). That
last one did the trick or me:

INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
[false], random [true].

thx for the nudge
Post by Serge Fonville
As far as I know Vista x64 does not run on an ItaniumPerhaps you instead
wanted amd64
Regards,
Serge Fonville
Post by zmeeagain
6 Nov 2008 9:48:57 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: C:\Program
Files\Java\jdk1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows[...]
I am using Vista 64bit on 64bit Intel, and a 64bit JDK (C:\Program
Files\Java\jdk1.6.0_07\). I have downloaded both openssl.exe and
tcnative-1.dll from
http://tomcat.heanet.ie/native/1.1.9/binaries/win64/ia64/ (supposedly the
correct version?) and saved them in C:\Program
Files\Java\jdk1.6.0_07\bin\
but Tomcat keeps complaining... I have run out of ideas.
Post by Brian Clark
Thanks for the suggestions. I just re-downloaded the file and now it
works. I guess it was corrupted during the original download or
something.
Post by Brian Clark
Go figure.
Brian
----- Original Message ----
Sent: Tuesday, September 2, 2008 7:19:32 PM
Subject: RE: Tomcat Native library for Windows
Subject: Re: Tomcat Native library for Windows
Hmmm...on Windows, what is the difference between
java.library.path and the Windows environmental variable PATH?
By default, none.
I have my Java Classpath set to this, which contains
my bootstrap.jar.
Hopefully that's what shows in the tomcat6w.exe program, not something
you're setting in the system environment variables. (If you do have a
CLASSPATH environment variable, get rid of it - it will only break
things.)
Should I just set, via JAVA_OPTS, my java.library.path to the
same directory, since that's where I put my tcnative-1.dll file?
-Djava.library.path=C:\Program Files\Apache Software
Foundation\Tomcat 6.0\bin
Don't bother, the JVM is already looking there, as shown by the INFO message.
I don't want to break anything. Setting the java.library.path
won't make Tomcat stop looking at other libraries in other
locations (like the built-in /lib directory) will it?
No, it won't break anything, but it's also not going to make it work.
The
Post by Brian Clark
java.library.path is used for native library DLLs only, not for
classes.
Post by Brian Clark
Check for ownership and access permissions on the file - insure that
the
Post by Brian Clark
account the Tomcat service is running under can access the DLL.
By any chance, is this a 64-bit version of Windows Server? If so, and
you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
Post by Brian Clark
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.
---------------------------------------------------------------------
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20356642.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20357700.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
zmeeagain
2008-11-07 10:51:18 UTC
Permalink
What I failed to report is that, now that the AprLifecycleListener is
initialised and the library is loaded, I can't access Tomcat anymore!!!
Hitting localhost:8080 gives me (Firefox):

Connection Interrupted

The document contains no data.

The network link was interrupted while negotiating a connection. Please try
again.

As soon as I remove tcnative-1.dll and restart Tomcat, everything is back to
normal again. Is there something more I need to do? BTW, no errors appear in
catalina log file.
Post by zmeeagain
It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64 bit.
Anyhow, your comment made think that ia64 is not my architecture. And
indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
architectures (instead of amd and ia64 as in some previous versions). That
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
[false], random [true].
--
View this message in context: http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20378334.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Serge Fonville
2008-11-07 11:12:43 UTC
Permalink
Could you post your server xml (excluding comments) since I have the same
situation working fine.
Post by zmeeagain
What I failed to report is that, now that the AprLifecycleListener is
initialised and the library is loaded, I can't access Tomcat anymore!!!
Connection Interrupted
The document contains no data.
The network link was interrupted while negotiating a connection. Please try
again.
As soon as I remove tcnative-1.dll and restart Tomcat, everything is back to
normal again. Is there something more I need to do? BTW, no errors appear in
catalina log file.
Post by zmeeagain
It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64 bit.
Anyhow, your comment made think that ia64 is not my architecture. And
indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
architectures (instead of amd and ia64 as in some previous versions).
That
Post by zmeeagain
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
[false], random [true].
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20378334.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
zmeeagain
2008-11-07 12:16:18 UTC
Permalink
My server.xml: http://www.nabble.com/file/p20379495/server.xml server.xml
Post by Serge Fonville
Could you post your server xml (excluding comments) since I have the same
situation working fine.
Post by zmeeagain
What I failed to report is that, now that the AprLifecycleListener is
initialised and the library is loaded, I can't access Tomcat anymore!!!
Connection Interrupted
The document contains no data.
The network link was interrupted while negotiating a connection. Please try
again.
As soon as I remove tcnative-1.dll and restart Tomcat, everything is back to
normal again. Is there something more I need to do? BTW, no errors appear in
catalina log file.
Post by zmeeagain
It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64
bit.
Post by zmeeagain
Anyhow, your comment made think that ia64 is not my architecture. And
indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
architectures (instead of amd and ia64 as in some previous versions).
That
Post by zmeeagain
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener
init
Post by zmeeagain
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
[false], random [true].
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20378334.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20379495.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Serge Fonville
2008-11-07 12:57:21 UTC
Permalink
I looked at your server.xml and compared it to mine. I see no difference
that would cause this.I use tomcat 6.0.18 with JDK 5
Have you set all variables correctly JAVA_HOME,CATALINA_HOME,PATH
Did you use the x64 tomca6.exe and tomcat6w.exe
Have you tried other browsers (ie,opera,chrome,mozilla)
you could also telnet to your tomcat server for http:
GET / HTTP/1.1
host: localhost

(two enters)
Post by zmeeagain
My server.xml: http://www.nabble.com/file/p20379495/server.xml server.xml
Post by Serge Fonville
Could you post your server xml (excluding comments) since I have the same
situation working fine.
Post by zmeeagain
What I failed to report is that, now that the AprLifecycleListener is
initialised and the library is loaded, I can't access Tomcat anymore!!!
Connection Interrupted
The document contains no data.
The network link was interrupted while negotiating a connection. Please try
again.
As soon as I remove tcnative-1.dll and restart Tomcat, everything is
back
Post by Serge Fonville
Post by zmeeagain
to
normal again. Is there something more I need to do? BTW, no errors
appear
Post by Serge Fonville
Post by zmeeagain
in
catalina log file.
Post by zmeeagain
It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64
bit.
Post by zmeeagain
Anyhow, your comment made think that ia64 is not my architecture. And
indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
architectures (instead of amd and ia64 as in some previous versions).
That
Post by zmeeagain
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener
init
Post by zmeeagain
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
[false], random [true].
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20378334.html
Post by Serge Fonville
Post by zmeeagain
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20379495.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
zmeeagain
2008-11-12 11:20:56 UTC
Permalink
I never set JAVA_HOME globally, I configure it explicitly for each different
Tomcat. In this particular instance I have set:
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07

in setclasspath.bat, i.e. the 64bit jdk. CATALINA_HOME is set in startup.bat
(set CATALINA_HOME=%CURRENT_DIR%) and is the path I'm running Tomcat from.
It is always reported as correctly set in cmd prompt anyway. PATH I don't
see how that could make a difference. I never use tomcat6.exe, tomcat6w.exe
or the service to start up Tomcat, I always use startup.bat, which
eventually starts Bootstrap class calling java (with the correct jdk) in
catalina.bat:

start "Tomcat" "C:\Program Files\Java\jdk1.6.0_07\bin\java" -Xdebug ...
org.apache.catalina.startup.Bootstrap start

Unless this somehow invokes tomcat6.exe, which I hope it doesn't. How can I
tell if it's 64 bit or not?
I have also tried with other browsers and here's what I've discovered:
[IE]
The webpage cannot be displayed

Most likely cause:
Some content or files on this webpage require a program that you don't have
installed.

What you can try:
Search online for a program you can use to view this web content.

Retype the address.

Go back to the previous page.
[Firefox]
Connection Interrupted

The document contains no data.

The network link was interrupted while negotiating a connection. Please try
again.

[Chrome]
This web page is not available.

The web page at null might be temporarily down or it may have moved
permanently to a new web address.

More information on this error
Below is the original error message

Error 2 (net::ERR_FAILED): Unknown error.

[Opera]
It works!

[cURL]
curl localhost:8080
It works!

No proxy has been configured in any of the browsers used or Internet
Options. Whenever I try to connect with putty raw it says almost immediately
"Connection closed by remote host".
Post by Serge Fonville
I looked at your server.xml and compared it to mine. I see no difference
that would cause this.I use tomcat 6.0.18 with JDK 5
Have you set all variables correctly JAVA_HOME,CATALINA_HOME,PATH
Did you use the x64 tomca6.exe and tomcat6w.exe
Have you tried other browsers (ie,opera,chrome,mozilla)
GET / HTTP/1.1
host: localhost
(two enters)
Post by zmeeagain
My server.xml: http://www.nabble.com/file/p20379495/server.xml server.xml
Post by Serge Fonville
Could you post your server xml (excluding comments) since I have the
same
Post by Serge Fonville
situation working fine.
Post by zmeeagain
What I failed to report is that, now that the AprLifecycleListener is
initialised and the library is loaded, I can't access Tomcat
anymore!!!
Post by Serge Fonville
Post by zmeeagain
Connection Interrupted
The document contains no data.
The network link was interrupted while negotiating a connection.
Please
Post by Serge Fonville
Post by zmeeagain
try
again.
As soon as I remove tcnative-1.dll and restart Tomcat, everything is
back
Post by Serge Fonville
Post by zmeeagain
to
normal again. Is there something more I need to do? BTW, no errors
appear
Post by Serge Fonville
Post by zmeeagain
in
catalina log file.
Post by zmeeagain
It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64
bit.
Post by zmeeagain
Anyhow, your comment made think that ia64 is not my architecture.
And
Post by Serge Fonville
Post by zmeeagain
Post by zmeeagain
indeed, version 1.1.14 of tcnative-1.dll is available for amd and
x64
Post by Serge Fonville
Post by zmeeagain
Post by zmeeagain
architectures (instead of amd and ia64 as in some previous
versions).
Post by Serge Fonville
Post by zmeeagain
That
Post by zmeeagain
INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener
init
Post by zmeeagain
INFO: APR capabilities: IPv6 [false], sendfile [true], accept
filters
Post by Serge Fonville
Post by zmeeagain
Post by zmeeagain
[false], random [true].
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20378334.html
Post by Serge Fonville
Post by zmeeagain
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20379495.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20458413.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Continue reading on narkive:
Loading...