Webgate Registration Fails With java.lang.NoClassDefFoundError: sun/io/CharacterEncoding (Doc ID 2026831.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Access Manager - Version 11.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

OAM Webgate registration fails with java.lang.NoClassDefFoundError: sun/io/CharacterEncoding

JDK version 1.8

Error log:

OAM UserName = weblogic
Agent Name : =  RREG_OSSO
SSL Enabled : = false
USE OAM = true
/app/oracle/mds/product/Middleware/Oracle_FRHome1/jdk
/app/oracle/mds/product/Middleware/Oracle_FRHome1/oam/server/rreg/client
------------------------------------------------
Welcome to OAM Remote Registration Tool!
Parameters passed to the registration tool are:
Mode: inband
Filename: /app/oracle/mds/product/Middleware/Oracle_FRHome1/oam/server/rreg/client/input/OSSORequest.xml
Enter admin username:Username: weblogic
^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HEnter admin password: ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HEnter admin password:^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HDo you want to import an URIs file?(y/n):

----------------------------------------
Request summary:
OSSO Agent Name: RREG_OSSO
Base URL:http://test:8891
Registering in Mode:inband
Your registration request is being sent to the Admin server at: http://test:7003
----------------------------------------

The remote regisJun 22, 2015 2:44:56 PM oracle.security.am.engines.rreg.client.RegController processRegistration
tratiSEVERE: Server side error occurred. Specific error messages are:The policy store is not available; please see the log file for more details.
oJun 22, 2015 2:44:56 PM oracle.security.am.engines.rreg.client.RegClient main
n process did not succeed! SEVERE: Exception encountered: RemoteAgentRegistrationException. Specific exception:Error message passed from server is:The policy store is not available; please see the log file for more details.oracle.security.am.engines.rreg.common.RemoteAgentRegistrationException: Error message passed from server is:T

 

oamconsole login also fails with below errors in Admin server diagnostic logs

[2015-06-25T17:45:30.986-05:00] [AdminServer] [ERROR] [OAM-400016] [oracle.oam.admin.console.policy] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: f1a5f97e6f2a3021:-7cebaf72:14e1c80f95d:-8000-0000000000000983,0] [APP: oam_admin#11.1.2.0.0] Failed to authenticate the user[[
javax.servlet.ServletException: OracleJSP error:
java.lang.NoClassDefFoundError: sun/io/CharacterEncoding
at oracle.jsp.runtimev2.JspReportUtil.reportException(JspReportUtil.java:181)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:755)
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:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

..........

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.NoClassDefFoundError: sun/io/CharacterEncoding
at oracle.jsp.util.JspUtil$1.run(JspUtil.java:621)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jsp.util.JspUtil.convIANAtoJavaEncoding(JspUtil.java:619)
at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:681)
at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:490)
at oracle.jsp.runtimev2.JspPageCompiler.parseAndGetTreeNode(JspPageCompiler.java:457)
at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:624)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:645)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:387)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:820)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:744)

 



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms