Hi there,

 

we have a problem with our web application when starting Tomcat in
security mode. For some reasons we always get some
"ClassNotFoundExceptions" and we don't know why. The exception is: 

 

 

java.lang.ClassNotFoundException:org.mozilla.javascript.optimizer.OptRun
time

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1359)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1205)

java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

java.lang.Class.forName0(Native Method)

java.lang.Class.forName(Class.java:164)

...

 

The class which cannot be found is in a js.jar which is located at
WEB-INF/lib of our web application. We also defined access to our web
application in the catalina.policy which looks like:

 

grant codeBase "file:${catalina.home}/webapps/ourWebApp/-"

{ 

  permission java.security.AllPermission;

};

 

If we start Tomcat in normal mode, everything works fine. Even other
objects from org.mozilla.javascript.Scriptable (f.ex.) can be loaded
successfully. So what could be the problem? Can you help me?

 

Regards,

 

Jacqueline.

 

 

 

_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to