File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB Deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Deployment" Watch "EJB Deployment" New topic
Author

EJB Deployment

ramakrishnan visvanathan
Greenhorn

Joined: Oct 30, 2000
Posts: 3
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

Joined: Jan 17, 2004
Posts: 1
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; };
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Deployment