Skip to Content
0
Former Member
Feb 01, 2012 at 05:50 PM

NoClassDefFoundError after getMBeanServerConnection execution

34 Views

I am trying to connect to SAP Remote MBeanServer from my java application. I have done it as described in http://help.sap.com/saphelp_nw04/helpdata/EN/64617cfb94845d468b0498b4b2c53d74/content.htm. It worked perfectly. But after enabling security manager application stopped working. When I try to call getMBeanServerConnection method I get next exception:

Exception in thread "Thread-62" java.lang.NoClassDefFoundError: com/sap/engine/services/security/server/AuthenticationContextImpl
	at com.sap.engine.services.security.login.RunAsWeakReference.<init>(RunAsWeakReference.java:25)
	at com.sap.engine.services.security.login.SecurityContext.getSession(SecurityContext.java:311)
	at com.sap.engine.services.security.login.SecurityContext.size(SecurityContext.java:134)
	at com.sap.engine.services.rmi_p4.Connection.getTCSize(Connection.java:327)
	at com.sap.engine.services.rmi_p4.DispatchImpl.getOutputStream(DispatchImpl.java:593)
	at com.sap.engine.services.security.remoteimpl.login.RemoteCallbackHandlerImpl_Skel.dispatch(RemoteCallbackHandlerImpl_Skel.java:64)
	at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291)
	at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
	at com.sap.engine.services.rmi_p4.DispatchImpl.run(DispatchImpl.java:550)
	at java.lang.Thread.run(Thread.java:722)

The security manager was enabled by adding -Djava.security.manager and -Djava.security.policy="..\conf\security\my.policy". Has anyone encountered this problem?