I am trying to create a custom security scheme for my application.   I
implemented the Role, User and LoginSession beans and deployed them.

I put the following into my deployment.properties:

ejipt.userHomeName=InfocusUser
ejipt.roleHomeName=InfocusRoleImpl
ejipt.loginSessionHomeName=InfocusLoginSessionHome

I then try to access a bean as follows:

InitialContext lContext = new InitialContext( Props ) // Props has all of
the necessary environment
     // variables: username, password, initial context
                              // factory, provider url

BeanHome lHome = PortableRemoteObject.narrow( lContext.lookup( "BeanName"
), BeanHome.class );

************************************************************************************************

I get this exception on the client:

javax.naming.AuthenticationNotSupportedException   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
allaire.ejipt.Ejipt_Stub._getNamingContext(Unknown Source)   at
allaire.ejipt.ContextFactory.getInitialContext(ContextFactory.java:110)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)        at
javax.naming.InitialContext.<init>(InitialContext.java:198)        at
com.msiinet.framework.impl.JNDIServiceImpl$ManagedContext.init(JNDIServiceImpl.java:403)

       at        com.msiinet.framework.impl.JNDIServiceImpl$ManagedContext.
<init>(JNDIServiceImpl.java:156)        at
com.msiinet.framework.impl.JNDIServiceImpl$ManagedContext.changeUsernamePassword(JNDIServiceImpl.java:303)

       at
com.msiinet.framework.impl.JNDIServiceImpl.getEJBResource(JNDIServiceImpl.java:820)

       at
com.msiinet.framework.helpers.JNDIHelper.getEJBResource(JNDIHelper.java:154)

       at com.msiinet.framework.Test.main(Test.java:24)

******************************************************************************************************

I get this exception on the server:

java.lang.SecurityException: Access disallowed
java.lang.SecurityException: Access disallowed
     at allaire.ejipt._BeanMethod._getAliasFor(_BeanMethod.java:119)
     at allaire.ejipt._LocalCaller._adjustAlias(_LocalCaller.java:501)
     at allaire.ejipt._SessionHomeObject._create
(_SessionHomeObject.java:99)
     at allaire.ejipt._CallableObject.call(_CallableObject.java:83)
     at allaire.ejipt._CallableStub._call(_CallableStub.java:173)
     at
allaire.ejipt.ejbeans.LoginSessionHomeObject_Stub.create(d:/JRun/servers/test/deploy/src/allaire/ejipt/ejbeans/LoginSessionHomeObject_Stub.java:189)
     at java.lang.reflect.Method.invoke(Native Method)
     at allaire.ejipt.Ejipt._getNamingContext(Ejipt.java:681)
     at java.lang.reflect.Method.invoke(Native Method)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
     at sun.rmi.transport.Transport$1.run(Transport.java:142)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:139)
     at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
     at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
     at java.lang.Thread.run(Thread.java:484)

**********************************************************************************************************************************************************************

I have noticed that in Example 1b, a custom authentication is used.

In Example 1b, they use the UserManager class to keep track of users and
roles that they have created.

Do I have to use UserManager in my implementation also?

I would appreciate any help.

Adam

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to