Acutually I commented out the security part, after adding the steps you suggested, I'm getting another exception. Invalid control flag, moduleName
Thanks for your help!
Created LoginContext
Got context: javax.naming.InitialContext@6e1408
Got reference: helix/KeywordBrokerHome
Got broker home: helix/KeywordBrokerHome
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: Container exception. Notify the container developers :-); nested exception is:
java.lang.SecurityException: Configuration Error:
Invalid control flag, moduleName
java.rmi.ServerException: Container exception. Notify the container developers :-); nested exception is:
java.lang.SecurityException: Configuration Error:
Invalid control flag, moduleName
java.lang.SecurityException: Configuration Error:
Invalid control flag, moduleName
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
at $Proxy0.create(Unknown Source)
at com.starmedia.test.KeywordBrokerTester.<init>(KeywordBrokerTester.java:41)
at com.starmedia.test.KeywordBrokerTester.main(KeywordBrokerTester.java:57)
-----Original Message-----
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 12:11 PM
To: JBoss-User
Subject: Re: [jBoss-User] custom JaasServerLoginModule problem in
2.1_pre
custom JaasServerLoginModule problem in 2.1_preIf your referencing the EJBSecurityManager from your login module it won't
find it since your login module is on the classpath and its class loader can't
see the JBoss class loaders. You have to use the new org.jboss.security.plugins.ProxyLoginModule
to allow your login module to be placed into the lib/ext directory and loaded
by the JBoss class loader. From the ProxyLoginModule javadocs:
/** A proxy LoginModule that loads a delegate LoginModule using
the current thread context class loader. The purpose of this
module is to work around the current JAAS class loader limitation
that requires LoginModules to be on the classpath. Some LoginModules
use core JBoss classes that would have to be moved into the jboss-jaas.jar
and packaging becomes a mess. Instead, these LoginModules are left
in the jbosssx.jar and the ProxyLoginModule is used to bootstrap
the non-classpath LoginModule.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
Your config would be:
other {
org.jboss.security.plugins.ProxyLoginModule
moduleName="com.starmedia.helix.JaasServerLoginModule"
;
com.starmedia.helix.JaasServerLoginModule required
};
----- Original Message -----
From: Ernest Chen
To: 'JBoss-User'
Sent: Thursday, March 08, 2001 8:13 AM
Subject: [jBoss-User] custom JaasServerLoginModule problem in 2.1_pre
I developed my own Jaas Login module and added to auth.conf
// The default server login module
other {
com.starmedia.helix.JaasServerLoginModule required
};
When my client tries to connect, on the server side only the create method is called.
----------------------------
[KeywordBrokerBean] create()
On the client side, I'm getting exception complaining about java.lang.NoClassDefFoundError:
org/jboss/security/EJBSecurityManager
Any idea? Many Thanks!
---------------------------
Created LoginContext
Got context: javax.naming.InitialContext@6e1408
Got reference: helix/KeywordBrokerHome
Got broker home: helix/KeywordBrokerHome
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.NoClassDefFoundError: org/jboss/security/EJBSecurityManager
java.lang.NoClassDefFoundError: org/jboss/security/EJBSecurityManager
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
at $Proxy0.create(Unknown Source)
at com.starmedia.test.KeywordBrokerTester.<init>(KeywordBrokerTester.java:41)
at com.starmedia.test.KeywordBrokerTester.main(KeywordBrokerTester.java:57)
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
