Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Tomcat and the fly likes Installing APR on Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Installing APR on Windows" Watch "Installing APR on Windows" New topic

Installing APR on Windows

Charles Owen
Ranch Hand

Joined: Aug 31, 2009
Posts: 61
Has anyone had experience with installing and configuring the APR connector with Tomcat on Windows?

Thanks in advance
Charles Owen
Ranch Hand

Joined: Aug 31, 2009
Posts: 61
I believe I've gotten this fixed.

The Tomcat binary installation for Windows already comes with the Tomcat APR connector library (tcnative-1.dll) installed in the /bin directory. I then downloaded the APR library (libapr) from source and compiled it with Visual Studio C++. I then placed the compiled APR library in my Tomcat bin directory.

I then created a connector element in the server.xml.

<Connector port="8086" protocol="org.apache.coyote.http11.Http11AprProtocol"
redirectPort="8443" />

It doesn't throw any exceptions, so I'm assuming this works.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

Thanks for reporting back with your findings Charles! It could help someone in the future with the same issue.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Installing APR on Windows
It's not a secret anymore!