This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 63198

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you checked out Aspose?
subject: Installing APR on Windows
It's not a secret anymore!