This discussion is archived
2 Replies Latest reply: Dec 23, 2010 3:35 AM by PramodMishra RSS

opensso : problem load opensso admin console page after install agent

807573 Oracle ACE
Currently Being Moderated
Hi,
After installing policy agent for Tomcat in another instance,
I could not load opensso admin console as usual (http://opensso.local.asyd.net:8000/opensso/UI/Login). The message
given:

root cause

javax.servlet.ServletException: Servlet execution threw an
exception
     com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91)

root cause

java.lang.NoClassDefFoundError
     com.sun.identity.authentication.client.AuthClientUtils.<clinit>(AuthClientUtils.java:136)
or
com.sun.identity.authentication.UI.LoginServlet.initializeRequestContext(LoginServlet.java:106)


The tomcat log gave this message:
SEVERE: Servlet.service() for servlet LoginServlet threw exception
java.lang.NoClassDefFoundError
     at com.sun.identity.authentication.UI.LoginServlet.initializeRequestContext(LoginServlet.java:106)

+++++++++++++++++++++++++++++++++++++++++
I have 2 Tomcat instances on one machine:
/home/opensso/apache-tomcat-6.0.18 (where the open sso server is deployed)
/opt/tomcat-instance/opensso.local.asyd.net (where the web server client is deployed and agent is installed)

Here is the response summary of my agent installation:
SUMMARY OF YOUR RESPONSES
-----------------------------------------------
Tomcat Server Config Directory :
/opt/tomcat-instance/opensso.local.asyd.net/conf
OpenSSO server URL : http://opensso.local.asyd.net:8000/opensso
$CATALINA_HOME environment variable :
/home/opensso/apache-tomcat-6.0.18
Tomcat global web.xml filter install : false
Agent URL : http://opensso.local.asyd.net:8081/mini-agentsample
Agent Profile name : AS9Agent
Agent Profile Password file name :
/opt/tomcat-instance/tomcat_v6_agent/tomcat6agentpw.txt

Verify your settings above and decide from the choices below.
1. Continue with Installation
2. Back to the last interaction
3. Start Over
4. Exit
Please make your selection [1]: 1

Updating the /home/opensso/apache-tomcat-6.0.18/bin/setclasspath.sh
script with the Agent classpath ...DONE.

Creating directory layout and configuring Agent file for Agent_001
instance ...DONE.

Reading data from file
/opt/tomcat-instance/tomcat_v6_agent/tomcat6agentpw.txt and
encrypting it ...DONE.

Generating audit log file name ...DONE.

Creating tag swapped OpenSSOAgentBootstrap.properties file for instance
Agent_001 ...DONE.

Creating a backup for file
/opt/tomcat-instance/opensso.local.asyd.net/conf/server.xml ...DONE.

Creating a backup for file
/opt/tomcat-instance/opensso.local.asyd.net/conf/web.xml ...DONE.

Adding OpenSSO Tomcat Agent Realm to Server XML file :
/opt/tomcat-instance/opensso.local.asyd.net/conf/server.xml ...DONE.

Adding filter to Global deployment descriptor file :
/opt/tomcat-instance/opensso.local.asyd.net/conf/web.xml ...DONE.

Adding OpenSSO Tomcat Agent Filter and Form login authentication to
selected Web applications ...DONE.


SUMMARY OF AGENT INSTALLATION
-----------------------------
Agent instance name: Agent_001
Agent Bootstrap file location:
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/config/OpenSSOAgentBootstrap.properties
Agent Configuration file location
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/config/OpenSSOAgentConfiguration.properties
Agent Audit directory location:
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/logs/audit
Agent Debug directory location:
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/logs/debug


Install log file location:
/opt/tomcat-instance/tomcat_v6_agent/installer-logs/audit/install.log

Thank you for using OpenSSO Policy Agent

Edited by: enterprisecoder on Jun 27, 2010 8:19 PM

Edited by: enterprisecoder on Jun 28, 2010 12:37 AM

Edited by: enterprisecoder on Jun 28, 2010 2:14 AM

Edited by: enterprisecoder on Jun 28, 2010 8:19 PM
  • 1. Re: opensso : problem load opensso admin console page after install agent
    807573 Oracle ACE
    Currently Being Moderated
    Basically, you provided wrong info during your agent installation which messed up your opensso classpath.

    You used
    $CATALINA_HOME environment variable :
    /home/opensso/apache-tomcat-6.0.18
    but you should had used
    /opt/tomcat-instance/opensso.local.asyd.net

    During the installation it says:
    Updating the /home/opensso/apache-tomcat-6.0.18/bin/setclasspath.sh
    script with the Agent classpath ...DONE.

    So instead of updating the classpath for your agent, it updated the classpath of opensso.

    You can fix it by reverting the changes it made to /home/opensso/apache-tomcat-6.0.18/bin/setclasspath.sh and applying those changes to /opt/tomcat-instance/opensso.local.asyd.net/bin/setclasspath.sh instead.
    Hope you have backups.
    good luck
  • 2. Re: opensso : problem load opensso admin console page after install agent
    PramodMishra Newbie
    Currently Being Moderated
    Hi

    I am facing the similar issue after installing the policy agent on tomcat 6.x

    Installation gets successfully, but once I start the tomcat server secured by agent than I get below error

    Dec 23, 2010 2:43:44 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
    Dec 23, 2010 2:43:44 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    AgentConfiguration: Exception while reading new mod interval: "null"
    Dec 23, 2010 2:43:45 PM org.apache.tomcat.util.digester.Digester startElement
    SEVERE: Begin event threw error
    java.lang.ExceptionInInitializerError
    at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:643)
    at com.sun.identity.agents.tomcat.v6.AmTomcatRealm.<clinit>(AmTomcatRealm.java:64)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:206)
    at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
    at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:510)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.lang.RuntimeException: Unknown User Mapping Mode: null
    at com.sun.identity.agents.arch.AgentConfiguration.setUserMappingMode(AgentConfiguration.java:865)
    at com.sun.identity.agents.arch.AgentConfiguration.setHotSwappableConfigProps(AgentConfiguration.java:1170)
    at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentConfiguration.java:1098)
    at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfiguration.java:1543)
    ... 31 more
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.lang.ExceptionInInitializerError
    at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:643)
    at com.sun.identity.agents.tomcat.v6.AmTomcatRealm.<clinit>(AmTomcatRealm.java:64)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:206)
    at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
    at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
    at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:510)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
    ... 6 more
    Caused by: java.lang.RuntimeException: Unknown User Mapping Mode: null
    at com.sun.identity.agents.arch.AgentConfiguration.setUserMappingMode(AgentConfiguration.java:865)
    at com.sun.identity.agents.arch.AgentConfiguration.setHotSwappableConfigProps(AgentConfiguration.java:1170)
    at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentConfiguration.java:1098)
    at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfiguration.java:1543)
    ... 31 more
    Exception in thread "SystemTimer" java.lang.NoClassDefFoundError: Could not initialize class com.sun.identity.agents.arch.AgentConfiguration
    at com.sun.identity.agents.arch.AgentConfiguration$ConfigurationMonitor.getRunPeriod(AgentConfiguration.java:1397)
    at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:504)