I'm having a similar issue. When I invoke the create method on my bean, I get
an error (see below). I have signed my applet and I'm looking up the context
using the following code:
Properties jndiProps = new Properties() ;
String myServer = this.getCodeBase().getHost ();
jndiProps.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory" ) ;
jndiProps.setProperty("java.naming.provider.url",
"127.0.0.1:1099" ) ;
jndiProps.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces" ) ;
participantHome =
(DrawingParticipantSessionHome)PortableRemoteObject.narrow( new
InitialContext(jndiProps).lookup(
"ejb/chickenscratch/drawing/bus/ejb/DrawingParticipantSession" ),
DrawingParticipantSessionHome.class) ;
The server is hosted on my local machine (so 127.0.0.1 should be the correct
IP). I've also validated that the JNDI name I'm passing is correct.
Can anyone offer any suggestions?
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkMemberAccess(Unknown Source)
at java.lang.Class.checkMemberAccess(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at
org.jboss.invocation.MarshalledInvocation$DeclaredMethodsAction.run(MarshalledInvocation.java:571)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.invocation.MarshalledInvocation.getFullInterfaceHashes(MarshalledInvocation.java:157)
at
org.jboss.invocation.MarshalledInvocation.calculateHash(MarshalledInvocation.java:303)
at
org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:473)
at java.io.ObjectOutputStream.writeExternalData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at sun.rmi.server.UnicastRef.marshalValue(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:118)
at
org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:163)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:103)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91)
at $Proxy0.create(Unknown Source)
at chickenscratch.app.applet.DrawingApplet.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876239#3876239
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876239
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user