classloader issue?

2006-02-15 Thread Rik Claesen

hi,

I'm having a problem with Tomcat 5 with the security manager activated:
javassist.NotFoundException: java.lang.Object
javassist.ClassPool.get(ClassPool.java:374)
org.apache.hivemind.service.impl.CtClassSource.getCtClass(CtClassSource.java:52)
org.apache.hivemind.service.impl.CtClassSource.newClass(CtClassSource.java:62) 
 ...


It looks like someone in the javassist.jar cannot find java.lang.Object in 
the rt.jar


Can it be, that when the security manager is activated, a classloader used 
by javassist cannot find the classes in rt.jar due to security restrictions?


Do I have to move the javassist.jar to another location? if so where?

This simple thing is driving me nuts because all works fine when the 
security manager is not active.


My eternal gratitude for the one who can help me.
Rik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: classloader issue?

2006-02-15 Thread Rik Claesen

Thnx Boris, I forgot to mention it.
The assist.jar is currently located in the WEB-INF/lib.
and ...this is working fine as long as the security manager is not active.

Rik



From: Boris Unckel [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: classloader issue?
Date: Wed, 15 Feb 2006 13:28:41 +0100 (MET)

Hi,

 Do I have to move the javassist.jar to another location? if so where?
Where is the javassist.jar now? In your web application (WEB-INF/lib)?

Boris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5 security manager problems (on Debian).

2006-02-08 Thread Rik Claesen

Hello everybody,

We deployed a web application on Tomcat5 and Sun's JDK 1.4.10.2.
Without the security manager activated, everything runs fine.
After activating the security manager we received following error:

java.security.AccessControlException: access denied 
(java.lang.RuntimePermission createClassLoader)

java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
java.security.AccessController.checkPermission(AccessController.java:401)
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:586)
java.lang.ClassLoader.init(ClassLoader.java:210)
org.apache.hivemind.service.impl.ClassFactoryClassLoader.init(ClassFactoryClassLoader.java:26)
org.apache.hivemind.service.impl.HiveMindClassPool.init(HiveMindClassPool.java:35)
org.apache.hivemind.service.impl.ClassFactoryImpl.init(ClassFactoryImpl.java:34)

After adding following permission:

permission java.lang.RuntimePermission createClassLoader;

to /etc/tomcat5/policy.d/04webapps.policy this problem was resolved, but we 
now have following error:


javassist.NotFoundException: java.lang.Object
javassist.ClassPool.get(ClassPool.java:374)
org.apache.hivemind.service.impl.CtClassSource.getCtClass(CtClassSource.java:52)
org.apache.hivemind.service.impl.CtClassSource.newClass(CtClassSource.java:62)
org.apache.hivemind.service.impl.ClassFactoryImpl.newClass(ClassFactoryImpl.java:42)
org.apache.hivemind.impl.ProxyBuilder.init(ProxyBuilder.java:80)

Does somebody know what permission is missing?

Thanks in advance,
Rik  Peter

PS: If more output is needed, we'll be glad to post that too.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]