Topic
  • 1 reply
  • Latest Post - ‏2013-05-16T10:01:39Z by franzw
willor
willor
12 Posts

Pinned topic Java Communicating through ISIM 6.0/WAS 7.1

‏2013-05-16T08:23:18Z |

 

Hi, I have been trying to communicate to the ISIM 6.0 and WAS 7.1 however
i received an error when running on eclipse GUI and I get an error like this

 

INFO: Client code attempting to load security configuration
javax.security.auth.login.LoginException: CORBA NO_PERMISSION 0x0 No; nested exception is: 
org.omg.CORBA.NO_PERMISSION: 
>> SERVER (id=4773e3aa, host=WILLIAM-VM) TRACE START:
>>    org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException:  ; nested exception is: 
com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for ??? while invoking (Home)ITIM#api_ejb.jar#enroleejb.HomeHome create::2 null  vmcid: 0x0  minor code: 0  completed: No
>> at java.rmi.RemoteException.<init>(RemoteException.java:73)
>> at com.ibm.websphere.csi.CSIException.<init>(CSIException.java:68)
>> at com.ibm.ws.security.core.SecurityCollaborator.performAuthorization(SecurityCollaborator.java:685)
>> at com.ibm.ws.security.core.EJSSecurityCollaborator.preInvoke(EJSSecurityCollaborator.java:275)
>> at com.ibm.ejs.container.EJSContainer.preInvokeForStatelessSessionCreate(EJSContainer.java:4160)
>> at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:3263)
>> at com.ibm.itim.apps.ejb.home.EJSRemoteStatelessenroleejb_HomeHomeHome_cbc0cf54.create(Unknown Source)
>> at com.ibm.itim.apps.ejb.home._EJSRemoteStatelessenroleejb_HomeHomeHome_cbc0cf54_Tie.create(_EJSRemoteStatelessenroleejb_HomeHomeHome_cbc0cf54_Tie.java:160)
>> at com.ibm.itim.apps.ejb.home._EJSRemoteStatelessenroleejb_HomeHomeHome_cbc0cf54_Tie._invoke(_EJSRemoteStatelessenroleejb_HomeHomeHome_cbc0cf54_Tie.java:86)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
>> at com.ibm.rmi.iiop.ORB.process(ORB.java:504)
>> at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
>> at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2771)
>> at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2640)
>> at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
>> at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1646)
>> SERVER (id=4773e3aa, host=WILLIAM-VM) TRACE END.
  vmcid: 0x0  minor code: 0  completed: No
at com.ibm.itim.apps.jaas.spi.PlatformLoginModule.getHomeInterface(PlatformLoginModule.java:417)
at com.ibm.itim.apps.jaas.spi.PlatformLoginModule.authenticate(PlatformLoginModule.java:308)
at com.ibm.itim.apps.jaas.spi.PlatformLoginModule.login(PlatformLoginModule.java:261)
at com.ibm.ws.security.common.auth.module.proxy.WSLoginModuleProxy.login(WSLoginModuleProxy.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:795)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709)
at java.security.AccessController.doPrivileged(AccessController.java:251)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706)
at javax.security.auth.login.LoginContext.login(LoginContext.java:603)
at test.login(test.java:87)
at test.main(test.java:103)

I have the same problem with jukka here

https://groups.google.com/forum/?fromgroups=#!msg/ibm.software.network.directory-integrator/fSNl3s4M4qo/i8EDkVvQ0doJ

and it was mentioned that the security model has changed and i have went through the examples on examples/apps folder

however it still provide same error, I have attached the file

Thanks

 

Attachments

  • franzw
    franzw
    339 Posts

    Re: Java Communicating through ISIM 6.0/WAS 7.1

    ‏2013-05-16T10:01:39Z  

    You are using the 5.1 login method as far as I can see.

    Check with the <ITIM_HOME>/extensions/6.0/examples/apps/src/examples/api/Utils.java - take a look at the getPlatformContext and getSubject methods.

    That should get you going (if you have the right jar files in your claspath) ....

    HTH

    Regards

    Franz Wolfhagen