</unchecked> means that any authenticated principal could access the
method(s). Do you access the bean being authenticated? I guess, no
(principal is null).

Tuesday, August 13, 2002, 12:20:19 AM, you wrote:

ECSS> Hey scott, I know that (source of permissions), but i tried to uncheck 
ECSS> the ejb and it doesn't work either.

ECSS> I got the error when using create of Home.


ECSS>      <method-permission >
ECSS>           <description><![CDATA[description not supported yet by 
ejbdoclet]]>></description>
ECSS>           <unchecked/>
ECSS>           <method >
ECSS>              <description><![CDATA[description not supported yet by 
ejbdoclet]]>></description>
ECSS>              <ejb-name>cadastro/FacadeTeste</ejb-name>
ECSS>              <method-name>*</method-name>
ECSS>           </method>
ECSS>        </method-permission>


ECSS> my test:

ECSS> Object ref = new 
ECSS> InitialContext(System.getProperties()).lookup(FacadeTesteHome.JNDI_NAME);
ECSS>                 FacadeTesteHome home2 = (FacadeTesteHome) 
ECSS> PortableRemoteObject.narrow(ref,FacadeTesteHome.class);
ECSS> FacadeTeste ejb = home2.create(); //line 66 : it gaves me the error




ECSS> jboss.xml snippet :

ECSS> <jboss>

ECSS>   <security-domain>java:/jaas/sicredi</security-domain>

ECSS>     <enterprise-beans>



ECSS> junit stacktrace:


ECSS> RemoteException occurred in server thread; nested exception is: 
ECSS> java.rmi.ServerException: EJBException:; nested exception is: 
ECSS> javax.ejb.EJBException: checkSecurityAssociation; nested exception is: 
ECSS> java.lang.SecurityException: Authentication exception, principal=null

ECSS> java.rmi.ServerException: RemoteException occurred in server thread; 
ECSS> nested exception is:
ECSS> java.rmi.ServerException: EJBException:; nested exception is:
ECSS> javax.ejb.EJBException: checkSecurityAssociation; nested exception is: 
ECSS> java.lang.SecurityException: Authentication exception, principal=null
ECSS> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
ECSS> at sun.rmi.transport.Transport$1.run(Transport.java:148)
ECSS> at java.security.AccessController.doPrivileged(Native Method)
ECSS> at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
ECSS> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
ECSS> at 
ECSS> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
ECSS> at java.lang.Thread.run(Thread.java:536)
ECSS> at 
ECSS> 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
ECSS> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
ECSS> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
ECSS> at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
ECSS> at 
ECSS> 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
ECSS> at 
ECSS> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
ECSS> at 
ECSS> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
ECSS> at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
ECSS> at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
ECSS> at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
ECSS> at $Proxy0.create(Unknown Source)
ECSS> at 
ECSS> br.com.sicredi.cadastro.tests.CadastroBDTest.testTeste(CadastroBDTest.java:68)


ECSS> Scott M Stark wrote:

>> The ejb-jar.xml descriptor is the only source of permissions. The jboss.xml
>> descriptor defines the security domain. Compare these two files before
>> and after xdoclet.
>> 
>> xxxxxxxxxxxxxxxxxxxxxxxx
>> Scott Stark
>> Chief Technology Officer
>> JBoss Group, LLC
>> xxxxxxxxxxxxxxxxxxxxxxxx
>> ----- Original Message -----
>> From: "Emerson Cargnin - SICREDI Servi�os" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Friday, August 09, 2002 10:04 AM
>> Subject: Re: [JBoss-user] way to see if a class is JAAS protected
>> 
>> 
>> any idea???
>> 
>> Emerson Cargnin - SICREDI Servi�os wrote:
>> 
>> 
>>>I'm getting some strange errors when using JAAS through stand-alone
>>>client. I didn't have this errors before, it appeared after migrating to
>>>XDoclet CVS (??????? nothing to do at all).
>>>
>>>is there any way to see how a class is protected through jmx????
>>>
>> 
>> 
>> 
>> 
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> 
>>

-- 
Best regards,
 Alex Loubyansky




-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to