0 Replies Latest reply: Jan 24, 2012 8:09 AM by 912937 RSS

    Policy Agent 3.0 on WebLogic 11

    912937
      We are running Sun Java System Access Manager v7.1 and are trying to setup SSO with an application running on webLogic server 11g (10.3.1). We have installed OpenSSO policy agent 3.0 following the instructions on http://docs.oracle.com/cd/E19316-01/820-4580/6ng1lok82/index.html.

      However, when we deploy the AgentApp.war in the webLogic console, it fails to start and issues the error:
      java.lang.ClassNotFoundException: com.sun.identity.agents.filter.AmAgentFilter

      There are no errors in the agent installation log. We have tried installing the agent twice but this behavior persists. The classpath and java arguments are setup as follows:

      <java-home>C:\wls1031\jdk160_11</java-home>

      <class-path>C:\policyagent\lib\agent.jar;
      C:\policyagent\lib\amauthprovider.jar;
      C:\policyagent\lib\openssoclientsdk.jar;
      C:\policyagent\lib\opensso-installtools.jar;
      C:\policyagent\lib\opensso-installtools-launcher.jar;
      C:\policyagent\locale;
      C:\policyagent\Agent_001\config;</class-path>

      <arguments>-Djava.util.logging.config.file=C:\policyagent\config\OpenSSOAgentLogConfig.properties
      -DLOG_COMPATMODE=Off</arguments>

      Any suggestions you can provide will be greatly appreciated. The error details from the webLogic log are as follows:

      <BEA-101165> <Could not load user defined filter in web.xml: ServletContext@26373697[app:agentapp module:agentapp.war path:/agentapp spec-version:null] com.sun.identity.agents.filter.AmAgentFilter.
      java.lang.ClassNotFoundException: com.sun.identity.agents.filter.AmAgentFilter
           at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
           at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
           at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
           at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
           at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
           at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:222)
           at weblogic.servlet.internal.WebComponentContributor.createFilterInstance(WebComponentContributor.java:255)
           at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:94)
           at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:59)
           at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1803)
           at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041)
           at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374)
           at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
           at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
           at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
           at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
           at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
           at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629)
           at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
           at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206)
           at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:40)
           at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
           at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
           at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
           at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
           at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
           at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
           at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
           at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
           at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
           at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
           at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
           at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
           at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      ....
      ....
      ....

      Thanks!