File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Deployment

 
ramakrishnan visvanathan
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Java Guru's
I am having problems deploying EJB using J2ee(Sun's) Deployment tool. I am almost at the end 99%
I am getting the following error

java.rmi.RemoteException: Error processing ejb jar:access denied(java.io.FilePermission d:\j2ee\jdk1.2.2\lib\ext read)
Any help is deeply appreciated
Thanking in advance
Ramakrishnan Visvanathan ( Ramesh )

 
Mohan Bisht
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cause:
RMISecurityManager is set in the client but the client is started without a
-Djava.security.policy argument or the security policy in the java.security.policy file does not grant permissions to connect and resolve to the named socket.
resolution:
Start the client with the -Djava.security.policy argument.
Refer to the :run section in /jrun/samples/make or /jrun/samples/makew.bat
java %JAVA_FLAGS% -Djava.security.policy=sample.policy -classpath "%CLIENT_PATH%" Client.
If the client is a servlet or a JSP page then the security policy argument will have to be sent to the JVM that starts Jrun. Using the Jrun Management Console >> Select Jrun Default Server >> Java Settings >> Java Arguments.
Make sure that the security policy file grants sufficient permissions. Refer to /jrun/samples/sample1a/sample.policy
grant { permission java.security.AllPermission; };
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic