Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 8i EJB SecurityException

Re: Oracle 8i EJB SecurityException

From: Doeni <doeni_at_evhr.net>
Date: Wed, 21 Jul 1999 20:30:57 +0200
Message-ID: <379611E0.17773650@evhr.net>


jeff_dodgen_at_my-deja.com wrote:
>
> I've run a simple "hello world" type scenario successfully, but when my
> NT Session Bean attempts any NT file IO (new RandomAccessFile(name, "r")
> or new FileInputStream(name).tostring()) I get the following error:
>
> Calling MyEJB methods...
> Caught RuntimeException in remote method; nested exception is:
> java.lang.SecurityException:null
> Remote Stack Trace:
> java.lang.SecurityException
> at
> oracle.aurora.rdbms.SecurityManagerImpl.checkRole(SecurityManagerImpl.ja
> va)
> at
> oracle.aurora.rdbms.SecurityManagerImpl.checkConnect(SecurityManagerImpl
> .java)
> at java.net.InetAddress.getAllByName0(InetAddress.java)
> at java.net.InetAddress.getByName(InetAddress.java)
> at java.net.Socket.<init>(Socket.java)
> at weblogic.jdbc.common4.sql.BaseConnection.<init>
> at weblogic.jdbc.common4.sql.TdsConnection.<init>
> at weblogic.jdbc.common4.sql.MicrosoftConnection.<init>
> at weblogic.jdbc.microsoft4.Driver.newConnection
> at weblogic.jdbc.common4.sql.ConnectDriver.connect
>
> So I attempted to set runAsMode =SYSTEM_IDENTITY in descriptor but
> deploying that I get: "You must be SYS to grant runAs identity of SYS"
>
> Please help.
>
> Thanks,
> Jeff
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

The user that executes the bean needs to have either the JAVASYSPRIV or JAVAUSERPRIV roles granted. I don't remember the difference between both.
This roles are required to write to disk, write to sockets ... Received on Wed Jul 21 1999 - 13:30:57 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US