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

I got the error when using create of Home.


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


my test:

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




jboss.xml snippet :

<jboss>

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

    <enterprise-beans>



junit stacktrace:


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

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


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
> 
> 


-- 
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860



-------------------------------------------------------
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_code1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to