Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

startWebLogic.sh problem

12 views
Skip to first unread message

Benjamin Folk Jr.

unread,
Sep 15, 2000, 3:00:00 AM9/15/00
to
I am a new tech support person at a comapny and need a little assistance
getting weblogic up an running. I downloaded and installed the
evaluation version of WebLogic 5 on a Solaris 8 machine. Orcale is not
installed on the Sun box, do I need to get it installed for this to work
correctly. I ask that only because the instructions I downloaded
mentioned Oracle use with this product. I have some Unix experience, but
would like a little guidance in the setup of weblogic. I get the
following when I try to run the startWebLogic.sh script:

# 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.


Filip Hanik

unread,
Sep 15, 2000, 3:00:00 AM9/15/00
to
it looks like you don't have the weblogic.policy specified

-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...

Benjamin Folk Jr.

unread,
Sep 16, 2000, 3:00:00 AM9/16/00
to
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 "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
 

Jesse E Tilly

unread,
Sep 16, 2000, 3:00:00 AM9/16/00
to
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.

unread,
Sep 18, 2000, 3:00:00 AM9/18/00
to
Thanks Jesse.  Your help was greatly appreciated.  It is in fact working now.  In the future, I will try to "RTM" more carefully.

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
 

0 new messages