geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gulshan Babajee" <gulshan.baba...@parabolemaurice.com>
Subject [jira] Updated: (GERONIMO-1053) Session Bean, Finder, & Method Permissions
Date Wed, 11 Jan 2006 06:13:47 GMT
Hi, could you please help me solve my problem. Am actually facing a security problem. Am trying
to call a remote method in my stateless session bean which will create a new entry in my table,
but I got the following exception:

2006-01-10 09:43:25,046 : JFactory.postInvoke : system exception in business method:

javax.ejb.AccessLocalException: Access Denied on bean 'Test' with run-as = 'false'. Method
signature = 'add,LocalHome, [Ljava.lang.Object;'.

at org.objectweb.jonas_ejb.container.JContainer.checkSecurity(JContainer.java:510)

at org.objectweb.jonas_ejb.container.JFactory.checkSecurity(JFactory.java:458)

at org.objectweb.jonas_ejb.container.JLocalHome.checkSecurity(JLocalHome.java:160)

at org.objectweb.jonas_gen.com.gloptv.saga.server.stock.item.stockSettingsItemType.JOnASStockSettingsItemTypeMain159660809LocalHome.

add(JOnASStockSettingsItemTypeMain159660809LocalHome.java:70)

at com.gloptv.saga.server.replication.SlaveSessionBean.addRowSynchrone(SlaveSessionBean.java:334)

at com.gloptv.saga.server.replication.SlaveSessionBean.addRowSynchroneOrAsynchrone(SlaveSessionBean.java:351)

at com.gloptv.saga.server.replication.SlaveSessionBean.addRow(SlaveSessionBean.java:382)

at org.objectweb.jonas_gen.com.gloptv.saga.server.replication.JOnASSlaveSession_810291285Local.addRow(JOnASSlaveSession_810291285Loc

al.java:48)

at com.gloptv.saga.server.facade.stock.SessionSagaAdminEquipmentConfigurationBean.internalCreateModel(SessionSagaAdminEquipmentConfi

gurationBean.java:902)

at com.gloptv.saga.server.facade.stock.SessionSagaAdminEquipmentConfigurationBean.addModel(SessionSagaAdminEquipmentConfigurationBea

n.java:835)

at org.objectweb.jonas_gen.com.gloptv.saga.server.facade.stock.JOnASSessionSagaAdminEquipmentConfiguration_1797845843Remote.addModel

(JOnASSessionSagaAdminEquipmentConfiguration_1797845843Remote.java:175)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)

at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispatch(JUnicastServerRef.java:143)

at sun.rmi.transport.Transport$1.run(Transport.java:153)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:149)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

at java.lang.Thread.run(Thread.java:595)

2006-01-10 09:43:25,046 : JFactory.postInvoke : Client transaction will rollback

 

------------------------------------------------------

My session method has the following x-doclet tag:

------------------------------------------------------

@ejb.interface-method

view-type = "remote"

@ejb.permission

role-name = "stock"

@ejb.transaction

type = "Required"

thanks in advance


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date: 1/9/2006
 

Mime
View raw message