2 Replies Latest reply: Aug 26, 2013 5:52 AM by Purva Kulkarni-Kale RSS

    getting exception in Custom Authentication plugin - OAM11g

    Purva Kulkarni-Kale
      Hello,

      I have created a custom authentication plugin in oam11g
      I have used below steps and also defined the flow in steps orchestration of custom authentication module

      When the plugin gets invoked, I am getting following error:



      **********Sample Custom Authentication plugin constructor called********************
      <Jan 27, 2012 8:10:04 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@923210723[app:oam_server module:oam path:/oam spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@1ae3825e[
      POST /oam/server/auth_cred_submit HTTP/1.1
      User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip, deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Connection: keep-alive
      Referer: http://<host>:14100/oam/server/obrareq.cgi?wh%3Dapachewg%20wu%3D%2Fsampleplugin.html%20wo%3D1%20rh%3Dhttp%3A%2F%2Frhel4-oam11g.abc.co.in%3A6767%20ru%3D%252Fsampleplugin.html
      Cookie: OAM_REQ=VERSION_4~YH2TDsuozt%2bwzKaTMEU8roRMBn81%2bsJuA9Xj49hgMZ2Zif%2bMS%2fqDHJ2T8h9CYcTyCIQbBNN%2fiJpn0vyWZXceYylOuqeCcFRMetFxZEBlwFMrjGHJNuGwIYhAKFMVbWZyugNDCr8vw1w7I67HVc%2fhsFwGGsD%2bWMCiiNmZ4jq5rojx5dBNLwyidKItr3n7bU6F8xikTeHHghM%2f4ie1PwPh1CaOGTqlUZ%2bgHVy9HVWFweZPqCmEqYO6x84Va99CyeyZt1UEw1a2F%2fG4NrxFNOk%2fPhnq5kGzYbxBuNhG%2bQcyxGVVSkMNJy48UgWKIi7rBpNVHYur8jWWVSTloQu3N%2bMMbFVHl4qbulqq9XAGOySpbrpNDd6EAz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YV6jLUvUdcuwNWDuUsPflnKlGnbxMhMId9rB7ndw%3d%3d
      Content-Type: application/x-www-form-urlencoded
      Content-Length: 1713

      ]] Root cause of ServletException.
      javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
      at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:101)
      at org.apache.axis.utils.XMLUtils.getDOMFactory(XMLUtils.java:221)
      at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:83)
      at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
      at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
      Truncated. see log file for complete stacktrace
      >
      <Jan 27, 2012 8:10:04 PM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'oam_server1' has triggered at Jan 27, 2012 8:10:04 PM IST. Notification details:
      WatchRuleType: Log
      WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
      WatchData: DATE = Jan 27, 2012 8:10:04 PM IST SERVER = oam_server1 MESSAGE = [ServletContext@923210723[app:oam_server module:oam path:/oam spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@1ae3825e[
      POST /oam/server/auth_cred_submit HTTP/1.1
      User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip, deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Connection: keep-alive
      Referer: http://<host>:14100/oam/server/obrareq.cgi?wh%3Dapachewg%20wu%3D%2Fsampleplugin.html%20wo%3D1%20rh%3Dhttp%3A%2F%2Frhel4-oam11g.ab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eI9Y2cfbW7Ab6QeNmm5Dc8iowL0iALWszKtiYKMVU2qPK4fRgDonVNt%2fz57EjpE8ziNjjA%2fQYQCGzv6kWGlN5Qs3fH%2bJ%2bi7cE2U622EFcgT68EQvJ5muayfkSGU80uGyz6aq%2bgd5OcekB700KFJ1MOsShWHITcUZTKqBSZBR20YuWsqMJho1DfTvM13kphWeDW%2bBVoCyg0r3kqFOu9mQ440fShoa8wkRWNQ6AlIPys5Q%2bp%2b93jyrvlpBuRUgSJZEvEWzbqFP2bh2CqFO4%2bvAsVqQzHvQEMPr284UwmSUGGE%2bVTYGKjOwOpAEoiI9dlmKjxZgU70sI0IJkuYOtBQsHdwkRtvPn0ysOujAAiBkMF6F4xUpECe%2b2dc8a5kdG%2ff%2bVQg2hbx668K4rvKDy%2boRKoF%2bj863DL0VRcS%2bcWTYV6jLUvUdcuwNWDuUsPflnKlGnbxMhMId9rB7ndw%3d%3d
      Content-Type: application/x-www-form-urlencoded
      Content-Length: 1713

      ]] Root cause of ServletException.
      javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
      at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:101)
      at org.apache.axis.utils.XMLUtils.getDOMFactory(XMLUtils.java:221)
      at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:83)
      at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
      at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
      at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
      at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
      at org.apache.axis.client.Service.getAxisClient(Service.java:103)
      at org.apache.axis.client.Service.<init>(Service.java:112)
      at SampleHelloClient.process(SampleHelloClient.java:94)
      at oracle.security.am.engine.authn.internal.executor.PlugInExecutor.execute(PlugInExecutor.java:170)
      at oracle.security.am.engine.authn.internal.executor.AuthenticationSchemeExecutor.execute(AuthenticationSchemeExecutor.java:96)
      at oracle.security.am.engine.authn.internal.controller.AuthenticationEngineControllerImpl.validateUser(AuthenticationEngineControllerImpl.java:261)
      at oracle.security.am.engines.enginecontroller.AuthnEngineController.authenticateUser(AuthnEngineController.java:669)
      at oracle.security.am.engines.enginecontroller.AuthnEngineController.processEvent(AuthnEngineController.java:294)
      at oracle.security.am.controller.MasterController.processEvent(MasterController.java:354)
      at oracle.security.am.controller.MasterController.processRequest(MasterController.java:517)
      at oracle.security.am.controller.MasterController.process(MasterController.java:457)
      at oracle.security.am.pbl.PBLFlowManager.delegateToMasterController(PBLFlowManager.java:209)
      at oracle.security.am.pbl.PBLFlowManager.handleBaseEvent(PBLFlowManager.java:147)
      at oracle.security.am.pbl.PBLFlowManager.processRequest(PBLFlowManager.java:107)
      at oracle.security.am.pbl.transport.http.AMServlet.handleRequest(AMServlet.java:168)
      at oracle.security.am.pbl.transport.http.AMServlet.doPost(AMServlet.java:133)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.am.agent.wls.filters.OAMServletAuthenticationFilter.doFilter(OAMServletAuthenticationFilter.java:265)
      at oracle.security.am.agent.wls.filters.OAMValidationSystemFilter.doFilter(OAMValidationSystemFilter.java:133)
      at oracle.security.wls.oamagent.OAMAgentWrapperFilter.doFilter(OAMAgentWrapperFilter.java:120)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = unknown TXID = CONTEXTID = 3528c3de60b2939e:-6b182b6:1351f92bd52:-8000-000000000000022b TIMESTAMP = 1327675204032
      WatchAlarmType: AutomaticReset
      WatchAlarmResetPeriod: 30000



      My plugin.jar contains the following:
      1).class file
      2)metadata file (.xml)
      3)META-INF/Manifest.MF
      and 4) all the needed external jar files

      I have also included jaxp-api-1.3.jar

      This jar was included because before getting this error, I was getting an exception for class javax.xml.parsers.DocumentBuilderFactory
      Also, when I try to import the plugin having too many jar files, it fails saying the plugin jar file size is too large to import


      Please help

      Thanks,
      Purva K

      Edited by: 878004 on Jan 27, 2012 7:15 AM