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]
# 1

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

Arvind_Srinivasan at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

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

706392 at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...
# 3
You will need to enable Dynamic Reloading. There is information in the Developers Guide documentation on how to do this. http://docs.sun.com/source/816-7149-10/dgdeploy.html#50135Thanks, Arvind
Arvind_Srinivasan at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...
# 4

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.

706392 at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...
# 5

Please read my response (Reply 11 of 12) in the following thread.

http://softwareforum.sun.com/NASApp/jive/thread.jsp?forum=55&thread=13908&# 38;message=25134&q=72656c6f6164#25134

(I used the Search Forum feature and searched for 'reload' to find this.)

Arvind

Arvind_Srinivasan at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...
# 6
great! thx i didn't see this topic, but i can't find FCS/final release of the application server on the sun web site.
706392 at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...
# 7
Hi.The FCS version of the application server is available today off http://www.sun.com/.Thanks,- deepak
Deepak Balakrishna at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...
# 8
Great! i'm going to test this release!thx deepak
706392 at 2007-7-1 14:48:22 > top of Java-index,Application & Integration Servers,Application Servers...