Problem Installing Policy Agent 2.2 for the Sun Application Server 8.1 EE
I am trying to install the Policy Agent 2.2 in Sun Appserver 8.1. At first I was running into a ClassNotFound exception, so I added agent.jar and amclientsdk.jar to the appserver's classpath (suffix) based on other forum entries. This seemed to resolve the exception.
However, I am running into the following error in server.log when accessing a protected resource on the first hit:
Caused by: java.lang.RuntimeException: Failed to get configuration file:AMAgent.properties
Can someone help with a potential resolution to this problem? The agent is running in a remote appserver instance.
[614 byte] By [
jclingana] at [2007-11-26 23:00:46]

# 1
Hi,
In <access_manager_install_directory>/lib/AMConfig.properties file:
1. Have you set the following attribut:
com.sun.identity.agents.config.location = <policy_agent_install_directory>/<agent_instance>/config/AMAgent.pr operties
where you must set the correct path for <policy_agent_install_directory> and <agent_instance> (example:
com.sun.identity.agents.config.location = /opt/sun/j2ee_agents/am_as81_agent/agent_001/config/AMAgent.properties)
2. Have you modify the following attribut value:
com.iplanet.am.policy.agents.url.deploymentDescriptor=AGENT_DEPLOY_URI
by setting the correct AGENT_DEPLOY_URI (for example /agentapp)
I hope this help.
eavota at 2007-7-10 13:07:07 >

# 3
I am also getting the same error but with WebSphere Application server. In my app server classpath I have the entry for AMAgent.properties as well.
The error that I get
[6/25/07 12:19:10:031 IST] 30c0f5df InternalGener I DSRA8203I: Database product name : DBMS:db2j
[6/25/07 12:19:10:031 IST] 30c0f5df InternalGener I DSRA8204I: Database product version : 5.1.60.12
[6/25/07 12:19:10:031 IST] 30c0f5df InternalGener I DSRA8205I: JDBC driver name : Cloudscape Embedded JDBC Driver
[6/25/07 12:19:10:031 IST] 30c0f5df InternalGener I DSRA8206I: JDBC driver version : 5.1.60.12
[6/25/07 12:22:25:219 IST] 4c09f5df WebGroupE SRVE0026E: [Servlet Error]-[]: java.lang.ExceptionInInitializerError
at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:641)
at com.sun.identity.agents.websphere.AmTrustAssociationInterceptor.isTargetInterce ptor(AmTrustAssociationInterceptor.java:71)
at com.ibm.ws.security.web.TAIWrapper.isTargetInterceptor(TAIWrapper.java:195)
at com.ibm.ws.security.web.TrustAssociationManager.getInterceptor(TrustAssociation Manager.java:86)
at com.ibm.ws.security.web.WebAuthenticator.handleTrustAssociation(WebAuthenticato r.java:187)
at com.ibm.ws.security.web.WebAuthenticator.authenticate(WebAuthenticator.java:928 )
at com.ibm.ws.security.web.WebCollaborator.authorize(WebCollaborator.java:531)
at com.ibm.ws.security.web.EJSWebCollaborator.preInvoke(EJSWebCollaborator.java:26 2)
at com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator.preInvoke(WebAppSecur ityCollaborator.java:132)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDi spatcher.java:506)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDis patcher.java:208)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.ja va:321)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(Cach edInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReques tProcessor.java:246)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.j ava:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:5 6)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
Caused by: java.lang.RuntimeException: Failed to get configuration file:AMAgent.properties
at com.sun.identity.agents.arch.AgentConfiguration.setConfigurationFilePath(AgentC onfiguration.java:412)
at com.sun.identity.agents.arch.AgentConfiguration.bootStrapClientConfiguration(Ag entConfiguration.java:475)
at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentCo nfiguration.java:859)
at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfigurati on.java:1136)
... 20 more
Can anybody help me out with this?
Your help would be much appreciated.
Thanks in advance.
Yaseer
yazeea at 2007-7-10 13:07:08 >
