# sh startWebLogic.sh
LD_LIBRARY_PATH=/opt/weblogic/weblogic/lib/solaris
Exception in thread "main" java.security.AccessControlException: access
denied (java.lang.RuntimePermission createSecurityManager )
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.<init>(Throwable.java:94)
at java.lang.Exception.<init>(Exception.java:42)
at java.lang.RuntimeException.<init>(RuntimeException.java:47)
at java.lang.SecurityException.<init>(SecurityException.java:39)
at
java.security.AccessControlException.<init>(AccessControlException.java:57)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.SecurityManager.<init>(SecurityManager.java:307)
at
weblogic.boot.ServerSecurityManager.<init>(ServerSecurityManager.java:11)
at weblogic.Server.main(Server.java:59)
at weblogic.Server.main(Server.java:55)
If anyone can help and point me in the right direction with this, I
would really appreciate it.
Thanks,
Ben
--
Benjamin Folk Jr.
-Djava.security.manager -Djava.security.policy==`pwd`/weblogic.policy
should be on your java command line
Filip
"Benjamin Folk Jr." <bf...@palarco.com> wrote in message
news:39C2B70C...@palarco.com...
Do I need to uncomment any of the other lines ? I have weblogic
installed in /opt/weblogic/weblogic.
********
/ If WebLogic is not installed in a root directory, you must only
// list the first component of the path in the "file:" URL. This is
// because of a bug in JavaSoft JDK 1.2.1. For example, if you
// install WebLogic in the "c:/test/weblogic" directory, the first
// two lines below must be:
//
// grant codeBase "file:/c:/test/-" {
// permission java.io.FilePermission "c:${/}test${/}weblogic${/}-",
"read,writ
e,delete,execute";
//
// See http://www.weblogic.com/docs51/install/startserver.html for
// more information about using this policy file.
//
// # grant { .... permission java.lang.reflect.ReflectPermission "suppressAccess
Checks"; .... };
grant codeBase "file:/usr/opt/weblogic/weblogic/-" {
permission java.io.FilePermission "${/}weblogic${/}-", "read,write,delete,exec
ute";
permission java.net.SocketPermission "localhost:1-9000", "connect,accept,liste
n,resolve";
****************
I really appreciate all of your assistance.
Thanks,
Ben
-- Benjamin Folk Jr. Palarco Inc. 950 West Valley Road Wayne, PA 19087-1824 (610)687-3410 (610)687-3615(fax) bf...@palarco.com
>Thanks Filip. I am extremey unfamiliar with Java. I am pasting the top
>portion of my weblogic.policy file. If you don't mind, could you
>specify where the information should go? I appreciate your help.
>
> Do I need to uncomment any of the other lines ? I have weblogic
> installed in
>/opt/weblogic/weblogic.
>********
>/ If WebLogic is not installed in a root directory, you must only
>// list the first component of the path in the "file:" URL. This is
>// because of a bug in JavaSoft JDK 1.2.1. For example, if you
>// install WebLogic in the "c:/test/weblogic" directory, the first
>// two lines below must be:
>//
>// grant codeBase "file:/c:/test/-" {
>// permission java.io.FilePermission "c:${/}test${/}weblogic${/}-",
>"read,writ
>e,delete,execute";
>//
>// See http://www.weblogic.com/docs51/install/startserver.html for
>// more information about using this policy file.
>//
>// # grant { .... permission java.lang.reflect.ReflectPermission
Ben, I'm not usually one to RTM a person, but the "what to do" is stated
right there. However, since you're new and I'm in a really good mood,
here's the answer...and do read that webpage (and all the other ones
attached to it, those are good docs). First off, you're uncommenting
nothing. You're changing the values for "grant codeBase" and the
"permission java.io.FilePermission" lines. Based on your note it should
read:
grant codeBase "file:/opt/weblogic/weblogic-" {
permission java.io.FilePermission "${/}opt${/}weblogic${/}weblogic
${/}-","read,write,delete,execute";
Pretty easy, huh?
Jesse
Thanks again,
Ben
Jesse E Tilly wrote:
bf...@palarco.com (Benjamin Folk Jr.) wrote in
<39C2C8FB...@palarco.com>:
>Thanks Filip. I am extremey unfamiliar with Java. I am pasting the top
>portion of my weblogic.policy file. If you don't mind, could you
>specify where the information should go? I appreciate your help.
>
> Do I need to uncomment any of the other lines ? I have weblogic
> installed in
>/opt/weblogic/weblogic.
>********
>/ If WebLogic is not installed in a root directory, you must only
>// list the first component of the path in the "file:" URL. This is
>// because of a bug in JavaSoft JDK 1.2.1. For example, if you
>// install WebLogic in the "c:/test/weblogic" directory, the first
>// two lines below must be:
>//
>// grant codeBase "file:/c:/test/-" {
>// permission java.io.FilePermission "c:${/}test${/}weblogic${/}-",
>"read,writ
>e,delete,execute";
>//
>// See http://www.weblogic.com/docs51/install/startserver.html for
>// more information about using this policy file.
>//
>// # grant { .... permission java.lang.reflect.ReflectPermission
Ben, I'm not usually one to RTM a person, but the "what to do" is stated
right there. However, since you're new and I'm in a really good mood,
here's the answer...and do read that webpage (and all the other ones
attached to it, those are good docs). First off, you're uncommenting
nothing. You're changing the values for "grant codeBase" and the
"permission java.io.FilePermission" lines. Based on your note it should
read:grant codeBase "file:/opt/weblogic/weblogic-" {
permission java.io.FilePermission "${/}opt${/}weblogic${/}weblogic
${/}-","read,write,delete,execute";Pretty easy, huh?
Jesse
-- Benjamin Folk Jr. Palarco Inc. 950 West Valley Road Wayne, PA 19087-1824 (610)687-3410 (610)687-3615(fax) bf...@palarco.com