Check your security policies. See this for more information. http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook /appA.html
If it is an applet-based application, consider signing it. See this: http://java.sun.com/docs/books/tutorial/security1.2/toolsign/index.html With applets, you probably can't get your users to change all their policies and it is bad practice to open their machines up for use by malicious applets. Signing your applets allows the applets to communicate back with the originating server. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Trish > Hartnett > Sent: Thursday, 29 May 2003 4:48 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] EJB/Applet question > > > hello all, > > I am trying to access EJBs from my applet. I kept on getting : > " > java.security.AccessControlException: access denied > (java.lang.RuntimePermission > org.jboss.security.SecurityAssociation.getPrincipalInfo) > " > > so I altered the java.policy file in my installation of Java. > I wasn't sure what was the correct way to change the file so I tried: > " > grant { > // Allow everything for now > permission java.security.AllPermission; > }; > " > > Is this the correct way to alter the file ? I am worried about making my > computer unsafe. > > Thanks in advance for any suggestions, > Trish. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user
smime.p7s
Description: S/MIME cryptographic signature
