Exception with ClassLoader
Hi,
We have encountered some problems when we have used
a ClassLoader.
We work on Iplanet Application server 7 SE beta 2.
ias generate this exception :
java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:27 0)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:607)
at java.lang.ClassLoader.<init>(ClassLoader.java:212)
at com.jalios.jspengine.TemplateClassLoader.<init>(TemplateClassLoader.java: 17)
at com.jalios.jspengine.TemplateEngine.render(TemplateEngine.java:94)
at com.jalios.jspengine.TemplateEngine.render(TemplateEngine.java:76)
at com.jalios.jcms.TypeProcessor.generateTemplate(TypeProcessor.java:455)
at com.jalios.jcms.TypeProcessor.generateJavaClass(TypeProcessor.java:439)
thx
[1130 byte] By [
706392] at [2007-11-25 8:24:55]

You will need to modify your server.policy file to grant permissions for your application to create classloaders.
To do so, edit server1/config/server.policy and add the following
grant {
permission java.lang.RuntimePermission "createClassLoader";
};
You will need to restart the server for these changes to take effect.
-Arvind
thx Arvind, it works!!
But i have an other problems.
I need to restart my webapps, so i would like that ias restart
automatically but i can't find something to launch the restart.
Like on tomcat 3.0, resin,or websphere 5 where we just need to do a touch on the web.xml or modify a class file or a jar file and the server restart automatically the application.
have u got an idea?
thx
thx arvind for the link
I exactly do what it says in the doc but it doesn't work.
I enabled dynamic reloading in the Applications Page,
I created a file .reload at the root of my webapps, then a file
sun-web.xml where I enabled the dynamic reloading of JSPs
(set reload-interval="2" ).
have you got an idea?
thx
just one precision, I worked on Iplanet application server 7 SE beta 2
There is no button to restart on the application page. juste stop et start.