Error creating user registry object. The exception is java.lang.NoClassDefFoundError: com.dummy.registry.CustomRegistry (initialization failure) -
hi have 7.0.29 , we've planned update fix pack 41.
upon installation of fix pack have encountered this:
[11/10/16 19:32:24:505 sgt] 00000000 userregistryc e secj0281e: error creating user registry object. exception java.lang.noclassdeffounderror: com.dummy.registry.customregistry (initialization failure) @ java.lang.j9vminternals.initialize(j9vminternals.java:139) @ java.lang.class.forname(class.java:294) @ com.ibm.ws.security.registry.userregistryimpl.initialize(userregistryimpl.java:225) @ com.ibm.ws.security.config.userregistryconfigimpl.do_createregistryobjects(userregistryconfigimpl.java:686) @ com.ibm.ws.security.config.userregistryconfigimpl.createregistryobjects(userregistryconfigimpl.java:643) @ com.ibm.ws.security.config.userregistryconfigimpl.getuserregistryimpl(userregistryconfigimpl.java:628) @ com.ibm.ws.security.config.userregistryconfigimpl.getstring(userregistryconfigimpl.java:850) @ com.ibm.ws.security.config.userregistryconfigimpl.getprincipalname(userregistryconfigimpl.java:577) @ com.ibm.ws.security.config.csiv2configimpl.initializeonserver(csiv2configimpl.java:723) @ com.ibm.ws.security.config.csiv2configimpl.initialize(csiv2configimpl.java:1151) @ com.ibm.ws.security.config.csiv2configimpl.<init>(csiv2configimpl.java:100) @ com.ibm.ws.security.config.securityconfigobjectfactoryimpl.createcsiv2config(securityconfigobjectfactoryimpl.java:116) @ com.ibm.ws.security.config.securityobjectlocator.do_getcsiv2config(securityobjectlocator.java:852) @ com.ibm.ejs.ras.rashelper.printstacktrace(rashelper.java:368) @ com.ibm.ejs.ras.rashelper.throwabletostring(rashelper.java:349) @ com.ibm.ejs.ras.messageevent6.convertparameters(messageevent6.java:346) @ com.ibm.ejs.ras.messageevent6.<init>(messageevent6.java:221) @ com.ibm.ejs.ras.tr.firemessageevent(tr.java:1538) @ com.ibm.ejs.ras.tr.error(tr.java:733) @ com.ibm.ws.security.config.userregistryconfigimpl.do_createregistryobjects(userregistryconfigimpl.java:696) @ com.ibm.ws.security.config.userregistryconfigimpl.createregistryobjects(userregistryconfigimpl.java:643) @ com.ibm.ws.security.config.userregistryconfigimpl.getuserregistryimpl(userregistryconfigimpl.java:628) @ com.ibm.ws.security.config.userregistryconfigimpl.getstring(userregistryconfigimpl.java:850) @ com.ibm.ws.security.config.userregistryconfigimpl.getprincipalname(userregistryconfigimpl.java:577) @ com.ibm.ws.security.config.csiv2configimpl.initializeonserver(csiv2configimpl.java:723) @ com.ibm.ws.security.config.csiv2configimpl.initialize(csiv2configimpl.java:1151) @ com.ibm.ws.security.config.csiv2configimpl.<init>(csiv2configimpl.java:100) @ com.ibm.ws.security.config.securityconfigobjectfactoryimpl.createcsiv2config(securityconfigobjectfactoryimpl.java:116) @ com.ibm.ws.security.config.securityobjectlocator.do_getcsiv2config(securityobjectlocator.java:852) @ com.ibm.ws.security.config.securityobjectlocator.getcsiv2config(securityobjectlocator.java:882) @ com.ibm.ws.security.config.securityobjectlocator.getcsiv2config(securityobjectlocator.java:873) @ com.ibm.ws.security.auth.contextmanagerimpl.getproperty(contextmanagerimpl.java:2102) @ com.ibm.ws.security.auth.contextmanagerimpl.getproperty(contextmanagerimpl.java:2141) @ com.ibm.websphere.security.wssecurityexception.printstacktrace(wssecurityexception.java:230) @ com.ibm.ffdc.util.formatting.incidentreportheader.writeto(incidentreportheader.java:77) @ com.ibm.ffdc.util.provider.incidentstream.write(incidentstream.java:207) @ com.ibm.ffdc.util.provider.incidentlogger.writeheader(incidentlogger.java:70) @ com.ibm.ffdc.util.provider.incidentlogger.writeincidentto(incidentlogger.java:61) @ com.ibm.ws.ffdc.impl.ffdcprovider.logincident(ffdcprovider.java:206) @ com.ibm.ws.ffdc.impl.ffdcprovider.logincident(ffdcprovider.java:135) @ com.ibm.ffdc.util.provider.ffdcprovider.log(ffdcprovider.java:259) @ com.ibm.ws.ffdc.impl.ffdcprovider.log(ffdcprovider.java:148) @ com.ibm.ffdc.util.provider.incidententry.log(incidententry.java:105) @ com.ibm.ffdc.util.provider.ffdc.log(ffdc.java:90) @ com.ibm.ws.ffdc.ffdcfilter.processexception(ffdcfilter.java:114) @ com.ibm.ws.security.config.userregistryconfigimpl.do_createregistryobjects(userregistryconfigimpl.java:694) @ com.ibm.ws.security.config.userregistryconfigimpl.createregistryobjects(userregistryconfigimpl.java:643) @ com.ibm.ws.security.config.userregistryconfigimpl.getuserregistryimpl(userregistryconfigimpl.java:628) @ com.ibm.ws.security.core.distsecuritycomponentimpl.getrealmfromuserregistry(distsecuritycomponentimpl.java:2808) @ com.ibm.ws.security.core.distsecuritycomponentimpl.initialize(distsecuritycomponentimpl.java:356) @ com.ibm.ws.security.core.securitycomponentimpl.initialize(securitycomponentimpl.java:94) @ com.ibm.ws.runtime.component.containerhelper.initwscomponent(containerhelper.java:1191) @ com.ibm.ws.runtime.component.containerhelper.initializecomponent(containerhelper.java:1098) @ com.ibm.ws.runtime.component.containerhelper.initializecomponents(containerhelper.java:900) @ com.ibm.ws.runtime.component.containerimpl.initializecomponents(containerimpl.java:776) @ com.ibm.ws.runtime.component.containerimpl.initializecomponents(containerimpl.java:750) @ com.ibm.ws.runtime.component.serverimpl.initialize(serverimpl.java:349) @ com.ibm.ws.runtime.wsserverimpl.bootservercontainer(wsserverimpl.java:280) @ com.ibm.ws.runtime.wsserverimpl.start(wsserverimpl.java:214) @ com.ibm.ws.runtime.wsserverimpl.main(wsserverimpl.java:666) @ com.ibm.ws.runtime.wsserver.main(wsserver.java:59) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ com.ibm.wsspi.bootstrap.wslauncher.launchmain(wslauncher.java:213) @ com.ibm.wsspi.bootstrap.wslauncher.main(wslauncher.java:93) @ com.ibm.wsspi.bootstrap.wslauncher.run(wslauncher.java:74) @ org.eclipse.core.internal.runtime.platformactivator$1.run(platformactivator.java:78) @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.runapplication(eclipseapplauncher.java:92) @ org.eclipse.core.runtime.internal.adaptor.eclipseapplauncher.start(eclipseapplauncher.java:68) @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:400) @ org.eclipse.core.runtime.adaptor.eclipsestarter.run(eclipsestarter.java:177) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.eclipse.core.launcher.main.invokeframework(main.java:340) @ org.eclipse.core.launcher.main.basicrun(main.java:282) @ org.eclipse.core.launcher.main.run(main.java:981) @ com.ibm.wsspi.bootstrap.wsprelauncher.launcheclipse(wsprelauncher.java:341) @ com.ibm.wsspi.bootstrap.wsprelauncher.main(wsprelauncher.java:111) caused by: java.lang.exceptionininitializererror @ java.lang.j9vminternals.initialize(j9vminternals.java:221) @ com.ibm.websphere.ras.manager.createrastracelogger(manager.java:241) @ com.dummy.registry.customregistry.<clinit>(customregistry.java:126) @ java.lang.j9vminternals.initializeimpl(native method) @ java.lang.j9vminternals.initialize(j9vminternals.java:199) @ java.lang.class.forname(class.java:294) @ com.ibm.ws.security.registry.userregistryimpl.initialize(userregistryimpl.java:225) @ com.ibm.ws.security.config.userregistryconfigimpl.do_createregistryobjects(userregistryconfigimpl.java:686) ... 36 more caused by: java.security.accesscontrolexception: access denied (java.util.propertypermission com.ibm.ws.ffdc.supportorbffdc read) @ java.security.accesscontroller.throwace(accesscontroller.java:121) @ java.security.accesscontroller.checkpermission(accesscontroller.java:194) @ java.lang.securitymanager.checkpermission(securitymanager.java:544) @ java.lang.securitymanager.checkpropertyaccess(securitymanager.java:1293) @ java.lang.system.getproperty(system.java:404) @ java.lang.system.getproperty(system.java:388) @ com.ibm.websphere.ras.wsjrastracelogger.<clinit>(wsjrastracelogger.java:98) @ java.lang.j9vminternals.initializeimpl(native method) @ java.lang.j9vminternals.initialize(j9vminternals.java:199) ... 43 more .
my guess issue in customregistry have made looks this:
public class customregistry implements userregistry { protected static rastracelogger tracelogger; private static rasmessagelogger msglogger; static { manager mgr = manager.getmanager(); tracelogger = mgr.createrastracelogger("mywebsite", "authentication", "registry", customregistry.class.getname()); msglogger = mgr.createrasmessagelogger("mywebsite", "authentication", "registry", customregistry.class.getname()); msglogger.setmessagefile("com.dummy.registry.registrymessages"); }
it points usage of mgr.createrastracelogger in customregistry i'm not sure right approach it.
right now, can't start server.
your suggestions great help! :)
Comments
Post a Comment