Thursday, January 16, 2014

OpenAM Policy Agent 3.3.0 for Apache HTTPD 2.4 for Windows Platform

In the latest release of OpenAM Policy Agent 3.3.0, a web policy agent is now available for Apache HTTPD Server 2.4 (OPENAM-1195).




This week, I am in a customer's site to help them with a PoC. They are on Windows platform and thus I downloaded the Policy Agent for Apache 2.4 for Windows (Apache-v2.4-WINNT-32-Agent-3.3.0.zip) for  them.

No luck! The agentadmin.bat could not even execute!

The following error is encountered: could not find or load main class com.sun.identity.install.tools.launch.AdminToolLauncher 

I found out that in the agent's lib directory, there is only a single jar file (apache24_agent.jar). Missing jar files (opensso-installtools-launcher.jar and opensso-installtools.jar).




That's quite silly, but not a big deal. What I did was to download Policy Agent for Apache 2.2 for Windows (Apache-v2.2-WINNT-32-Agent-3.3.0.zip). The 2 missing jars were there.



Copy and paste and the problem was solved!


The next issue was harder. 

Customer had install Apache 2.4 (httpd-2.4.7-win64-VC11.zip) from ApacheLouge. 

When policy agent was installed/configured and the Apache HTTPD server was started, we encountered the following error:

C:\Users\Administrator\Downloads\Apache24-VC11\bin>httpd
httpd: Syntax error on line 532 of C:/Users/Administrator/Downloads/Apache24-VC11/conf/httpd.conf: Syntax error on line 1 of C:/Users/Administrator/Downloads/apache24_agent/Agent_001/config/dsame.conf: Cannot load C:/Users/Administrator/Downloads/apache24_agent/bin/libamapc24.dll into server: %1 is not a valid Win32 application.




I have no clue what happened and in the end, we downgraded to Apache 2.2 instead.

This morning, I tried installing Apache 2.4 from ApacheHaus (http://www.apachehaus.com/cgi-bin/download.plx) and integrate Policy Agent 2.4 with it.

No problem!


Why? I have no idea.

.

No comments:

Post a Comment