• Post Reply Bookmark Topic Watch Topic
  • New Topic

Installing APR on Windows  RSS feed

 
Charles Owen
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone had experience with installing and configuring the APR connector with Tomcat on Windows?

Thanks in advance
 
Charles Owen
Ranch Hand
Posts: 61
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reporting back with your findings Charles! It could help someone in the future with the same issue.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!