Date Created: Sat 30-Apr-2011

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/



SECJ0331E Access is denied

Problem

When WebSphere 8 has been installed on Windows 7 Professional and you start the WAS server using a command line and do not run as Administrator, the following error will occur if WebSphere has been set to run as a Windows Service.

Solution:
Either start the WAS instance using Services applet in Windows Control Panel/Services , or if you choose to use a command line, ensure that you have started the CMD prompt as Administrator.



Stack Trace:

[30/04/11 18:18:19:968 BST] 00000003 UserRegistryI E SECJ0331E: The registry implementation file com.ibm.ws.security.registry.nt.NTLocalDomainRegistryImpl cannot be initialized because of the following exception com.ibm.ws.security.registry.nt.NTException: Access is denied.

at com.ibm.ws.security.registry.nt.NTRegistryImpl.initialize(NTRegistryImpl.java:421)
at com.ibm.ws.security.registry.nt.NTLocalDomainRegistryImpl.initialize(NTLocalDomainRegistryImpl.java:1009)
at com.ibm.ws.security.registry.UserRegistryImpl.initializeCustomImpl(UserRegistryImpl.java:257)
at com.ibm.ws.security.registry.UserRegistryImpl.initialize(UserRegistryImpl.java:191)
at com.ibm.ws.security.config.UserRegistryConfigImpl.do_createRegistryObjects(UserRegistryConfigImpl.java:711)
at com.ibm.ws.security.config.UserRegistryConfigImpl.createRegistryObjects(UserRegistryConfigImpl.java:668)
at com.ibm.ws.security.config.UserRegistryConfigImpl.getUserRegistryImpl(UserRegistryConfigImpl.java:653)
at com.ibm.ws.security.server.SecurityServerImpl.getRegistryImpl(SecurityServerImpl.java:656)
at com.ibm.ws.security.server.SecurityServerImpl.getRegistryImpl(SecurityServerImpl.java:623)
at com.ibm.ws.security.ltpa.LTPAServerObject.getUserRegistry(LTPAServerObject.java:2586)
at com.ibm.ws.security.ltpa.LTPAServerObject.createLTPAToken(LTPAServerObject.java:816)
at com.ibm.ws.security.token.WSCredentialTokenMapper$9.run(WSCredentialTokenMapper.java:1337)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.security.token.WSCredentialTokenMapper.createPropagationTokenFromWSCredential(WSCredentialTokenMapper.java:1333)
at com.ibm.ws.security.auth.ContextManagerImpl.createPropagationToken(ContextManagerImpl.java:803)
at com.ibm.ws.security.auth.SubjectHelper$9.run(SubjectHelper.java:1528)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.security.auth.SubjectHelper.updatePropagationTokenWithSubjectChange(SubjectHelper.java:1473)
at com.ibm.ISecurityUtilityImpl.StateofCurrObj.setCallerSubject(StateofCurrObj.java:373)
at com.ibm.ws.security.auth.ContextManagerImpl.setCallerSubject(ContextManagerImpl.java:4947)
at com.ibm.ws.security.auth.ContextManagerImpl.pushReceivedSubject(ContextManagerImpl.java:4421)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4636)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4804)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.ws.ssl.utils.CertificateExpirationMonitor.monitorExpirations(CertificateExpirationMonitor.java:181)
at com.ibm.ws.ssl.utils.CertificateExpirationMonitor.alarm(CertificateExpirationMonitor.java:150)
at com.ibm.ws.crypto.config.WSScheduler.alarm(WSScheduler.java:317)
at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:127)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • My Blog
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories