From: Eric B. R. <eb...@tc...> - 2002-10-30 23:32:25
|
Hi Jian! Let me apologize up front. The WebMacro project is in the =20= process of moving our mailing lists to SourceForge (should be complete =20= in the next few days), and you're the first to post to our new =20 SourceForge list. Unfortunately, our j2ee experts are not on this list =20= yet. I'm cc'ing our old list just to see if anyone has any ideas. =20 Hopefully, if they do, they'll make sure to include the new list in =20 their reponse. I know little about j2ee, so bear with me... What I do know about j2ee is that it is supposed to be secure and that =20= the security policies can be configured. Is this true? Anyways, it looks to me as if the java.lang.ClassLoader class (or even =20= the java.lang.ClassLoader.getSystemClassLoader() method) is something =20= that cannot be accessed by regular code. WebMacro does all sorts of =20 loading via the classloader. I'm wondering if you can expand your security policy to allow access to =20= (at least) java.lang.ClassLoader.getSystemClassLoader(). Perhaps even =20= all methods of the class. Does this help? I hope it does eric On Wednesday, October 30, 2002, at 06:19 PM, Jian Liu wrote: > I am a student in UTD. I am trying to use webmacro with j2ee. i just =20= > added the webmacro.jar and webmacro.properties files into the WAR =20 > components. But when I run=A0the servlet, it gave me such an error =20 > message: > =A0 > java.lang.ExceptionInInitializerError: =20 > java.security.AccessControlException: access denied =20 > (java.lang.RuntimePermission getClassLoader) > at =20 > = java.security.AccessControlContext.checkPermission(AccessControlContext=20= > .java:272) > at =20 > = java.security.AccessController.checkPermission(AccessController.java:39=20= > 9) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) > at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:964) > at org.webmacro.Broker.(Broker.java:58) > at org.webmacro.WM.(WM.java:74) > at MyServlet.init(MyServlet.java:33) > at =20 > = org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) > ...... > =A0 > What does this mean?=A0=A0I am using webmacro 1.0.1 and j2sdkee1.3.1, =20= > jdk1.3.1_01. > =A0 > Btw, i tested my servlet using apache+tomcat+webmacro, it worked. > > =A0 > Thank you very much, with the best regrads. > =A0 > Jian Liu |