aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Installing APR on Windows" Watch "Installing APR on Windows" New topic
Author

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.

[code]
<Connector port="8086" protocol="org.apache.coyote.http11.Http11AprProtocol"
connectionTimeout="20000"
redirectPort="8443" />
[/code]

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

Joined: Jan 10, 2002
Posts: 61434
    
  67

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]
 
jQuery in Action, 2nd edition
 
subject: Installing APR on Windows