Bugs item #495804, was opened at 2001-12-21 02:57
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=495804&group_id=22866

Category: JBossSX
Group: v2.4 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Guillaume Cot� (gcote)
Assigned to: Nobody/Anonymous (nobody)
Summary: Security properties not reload properly

Initial Comment:
I have to version of the jaas tutorial downloaded on my
computer.  The first one is modified is strange ways,
the second one is clean, I just change the build.xml to
have the path of my computer.

I have download a JBoss2.4.3_Tomcat4.0.  When I start
it and I do a deploy of the correct version of JAAS. 
Every test work fine.  If I put the ear from the old
version before starting the server, undeploy them and
deploy the new one I have the following error when
running the test :

client-test0:
     [java] +++ Running SessionClient with
username=scott, password=echoman, exa
mple=example1
     [java] Created LoginContext
     [java] Found StatelessSessionHome
     [java] java.rmi.ServerException: RemoteException
occurred in server thread;
 nested exception is:
     [java]     java.rmi.RemoteException:
checkSecurityAssociation; nested excep
tion is:
     [java]     java.lang.SecurityException:
Insufficient method permissions, pr
incipal=scott, method=create, requiredRoles=[Echo],
principalRoles=[]
     [java] java.rmi.RemoteException:
checkSecurityAssociation; nested exception
 is:
     [java]     java.lang.SecurityException:
Insufficient method permissions, pr
incipal=scott, method=create, requiredRoles=[Echo],
principalRoles=[]
     [java] java.lang.SecurityException: Insufficient
method permissions, princi
pal=scott, method=create, requiredRoles=[Echo],
principalRoles=[]
     [java]     at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:245)
     [java]     at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:220)
     [java]     at
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
     [java]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.i
nvokeHome(Unknown Source)
     [java]     at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(Ho
meProxy.java:258)
     [java]     at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomePr
oxy.java:182)
     [java]     at $Proxy0.create(Unknown Source)
     [java]     at
SessionClient.main(SessionClient.java:77)
     [java] Found StatefulSessionHome
     [java] java.rmi.ServerException: RemoteException
occurred in server thread;
 nested exception is:
     [java]    
javax.transaction.TransactionRolledbackException:
checkSecurityA
ssociation; nested exception is:
     [java]     java.lang.SecurityException:
Insufficient method permissions, pr
incipal=scott, method=create, requiredRoles=[Coder,
Echo], principalRoles=[]; ne
sted exception is:
     [java]     java.rmi.RemoteException:
checkSecurityAssociation; nested excep
tion is:
     [java]     java.lang.SecurityException:
Insufficient method permissions, pr
incipal=scott, method=create, requiredRoles=[Coder,
Echo], principalRoles=[]
     [java]
javax.transaction.TransactionRolledbackException:
checkSecurityAssoc
iation; nested exception is:
     [java]     java.lang.SecurityException:
Insufficient method permissions, pr
incipal=scott, method=create, requiredRoles=[Coder,
Echo], principalRoles=[]; ne
sted exception is:
     [java]     java.rmi.RemoteException:
checkSecurityAssociation; nested excep
tion is:
     [java]     java.lang.SecurityException:
Insufficient method permissions, pr
incipal=scott, method=create, requiredRoles=[Coder,
Echo], principalRoles=[]
     [java] java.rmi.RemoteException:
checkSecurityAssociation; nested exception
 is:
     [java]     java.lang.SecurityException:
Insufficient method permissions, pr
incipal=scott, method=create, requiredRoles=[Coder,
Echo], principalRoles=[]
     [java] java.lang.SecurityException: Insufficient
method permissions, princi
pal=scott, method=create, requiredRoles=[Coder, Echo],
principalRoles=[]
     [java]     at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:245)
     [java]     at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:220)
     [java]     at
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
     [java]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.i
nvokeHome(Unknown Source)
     [java]     at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(Ho
meProxy.java:258)
     [java]     at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomePr
oxy.java:182)
     [java]     at $Proxy0.create(Unknown Source)
     [java]     at
SessionClient.main(SessionClient.java:92)

Basicly, the user have no associated principal.  I
attached a zip with the ears.


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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=495804&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to