From:  "Amit Lonkar" <amitlonkar@gmail.com>
Date:  12 Jun 2006 07:22:27 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.jseng
Subject:  

Probelms with Rhino and Security Manager

NNTP-Posting-Host:  68.149.162.136

Hi,

I am trying to update catalina.policy file in Tomcat for my web
application which uses Rhino.

When I enable the Security Manager, it throws an exception as below.

Could some one please help me out with this.

Using CATALINA_BASE:   C:\jakarta-tomcat-5.5.9
Using CATALINA_HOME:   C:\jakarta-tomcat-5.5.9
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.5.9\temp
Using JAVA_HOME:       C:\jrockit-jdk1.5.0_03
Using Security Manager
java.lang.NoClassDefFoundError:
org/mozilla/javascript/optimizer/OptRuntime
        at org.mozilla.javascript.gen.c1._c0(TRN_FinalizeLots.js:1)
        at
org.mozilla.javascript.gen.c1.call(Lorg.mozilla.javascript.Context;Lorg.mozilla.javascript.Scriptable;Lorg.mozilla.javascript.Scriptable;[Ljava.lang.Object;)Ljava.lang.Object;(TRN_FinalizeLots.js:???)
        at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
        at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
        at
org.mozilla.javascript.gen.c1.call(Lorg.mozilla.javascript.Context;Lorg.mozilla.javascript.Scriptable;Lorg.mozilla.javascript.Scriptable;[Ljava.lang.Object;)Ljava.lang.Object;(TRN_FinalizeLots.js:???)
        at
org.mozilla.javascript.gen.c1.exec(Lorg.mozilla.javascript.Context;Lorg.mozilla.javascript.Scriptable;)Ljava.lang.Object;(TRN_FinalizeLots.js:???)
        at
org.mozilla.javascript.Context.evaluateReader(Context.java:1251)
        at
com.netaps.utilities.ScriptManager.executeScript(Ljava.io.File;)Ljava.lang.String;(Unknown
Source)
        at
com.netaps.execute_script.business.ScriptWrapper.runScript(ScriptWrapper.java:127)
        at
com.netaps.execute_script.business.ScriptWrapper.run(ScriptWrapper.java:70)

Thanks
Amit Lonkar