How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread gfdgdf gdfgdf
Hi all. I have a web application with sensitive information inside a class. To protect it, I have encrypted the class and written a custom classloader in order to load and decrypt it. The class itself is masked with an interface which has a method which returns an instance of the class

RE: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread Shapira, Yoav
Hi, public void contextInitialized(ServletContextEvent event) { CustomLoader c = new CustomLoader(context.getClass().getClassLoader()); Class clazz = c.loadClass(C:\\jakarta-tomcat- 5.0.16\\temp\\,SecretClass,true); If you add Class.forName(SecretClass) after this, does it

RE: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread Shapira, Yoav
:26 AM To: Tomcat Users List Subject: RE: How to use a class loaded with a Custom ClassLoader Hi, public void contextInitialized(ServletContextEvent event) { CustomLoader c = new CustomLoader(context.getClass().getClassLoader()); Class clazz = c.loadClass(C:\\jakarta-tomcat

RE: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread gfdgdf gdfgdf
Sent: Thursday, September 16, 2004 8:26 AM To: Tomcat Users List Subject: RE: How to use a class loaded with a Custom ClassLoader Hi, public void contextInitialized(ServletContextEvent event) { CustomLoader c = new CustomLoader(context.getClass().getClassLoader()); Class clazz = c.loadClass(C

RE: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread Shapira, Yoav
[mailto:[EMAIL PROTECTED] Sent: Thursday, September 16, 2004 9:06 AM To: Tomcat Users List Subject: RE: How to use a class loaded with a Custom ClassLoader Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Actually, I'm not sure that would work anyhow. The Class is loaded in your ClassLoader, and nowhere

RE: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread gfdgdf gdfgdf
Shapira Millennium Research Informatics -Original Message- From: gfdgdf gdfgdf [mailto:[EMAIL PROTECTED] Sent: Thursday, September 16, 2004 9:06 AM To: Tomcat Users List Subject: RE: How to use a class loaded with a Custom ClassLoader Shapira, Yoav wrote: Hi, Actually, I'm not sure

custom classloader

2004-07-30 Thread
Hi All, I'm trying to implement my own ClassLoader enabling to load encrypted classes into web application context under Tomcat 4.0.6. My classloader implements as recommended. But unfortunately I've got the following runtime exception: javax.servlet.ServletException: Wrapper cannot find

Trouble with Custom ClassLoader chaining in Tomcat 4.0.6 on Linux

2003-07-24 Thread Stephen Peck
Could someone please help, I am running Tomcat 4.0.6 on Debian and are attempting to use a custom ClassLoader to retrieve classes out of a hash table. Looking on the web for some time and lookin through the mail archive I found that bug #12501 mentioned that loaderClass does not work

Custom ClassLoader configuration problem

2003-07-14 Thread Stephen Peck
Can anyone help me with custom class loaders in Tomcat. I am trying to add a custom class loader that will retrieve classes from a source other than the normal class path entries and cannot figure how to get Tomcat to load my Class loader chained to WebappLoader. I have tried entering the

Re: Custom ClassLoader configuration problem

2003-07-14 Thread Wehike
This patch may help if you are compiling with JDK1.3 and using Tomcat5: http://archives.real-time.com/pipermail/tomcat-devel/2003-February/046413.html Rita In a message dated 7/14/03 9:14:05 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Subj:Custom ClassLoader configuration

Re: Custom ClassLoader configuration problem

2003-07-14 Thread Stephen Peck
Sorry Rita my explaination was a little brief. I am using Tomcat 4.0.4 on Debian with JDK 1.3.1 and will be upgrading to JDK 1.4 soon. I have searched the web for an answer on this but no one seems to have posted any information regarding setting up a custom class loader in Tomcat. I have

Re: Custom ClassLoader configuration problem

2003-07-14 Thread Bill Barker
WebappLoader is in $CATALINA_HOME/server/lib, so your class must be as well if you want extend it. Stephen Peck [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry Rita my explaination was a little brief. I am using Tomcat 4.0.4 on Debian with JDK 1.3.1 and will be upgrading to

Re: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-17 Thread Bill Barker
n loader; } } --- -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 4:55 AM To: Tomcat Users List Subject: Re: custom ClassLoader Purgatory in Tomcat 3.3.1 The classloader behavior for webapps is specified in the servlet spec to be exactly

custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Kurt Heston
Hello, I'm having issues with using a custom classloader in Tomcat 3.3.1. I have a need to load servlets from a runtime-determined classpath. The solution worked fine in 3.2.x. Here's what I think the problem is (let me know where my understanding is flawed): I'm pretty confident any custom

Re: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Jacob Kjome
will be able to do what you are attempting to do, but without sample code, no one can help you. Jake At 12:59 AM 12/16/2002 -0800, you wrote: Hello, I'm having issues with using a custom classloader in Tomcat 3.3.1. I have a need to load servlets from a runtime-determined classpath. The solution

RE: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Kurt Heston
; } } --- -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 4:55 AM To: Tomcat Users List Subject: Re: custom ClassLoader Purgatory in Tomcat 3.3.1 The classloader behavior for webapps

Re[2]: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Jacob Kjome
with some common classloading issues, but I don't know so much about using a custom classloader. This might be a Tomcat-Dev list question. Jake Monday, December 16, 2002, 9:35:07 AM, you wrote: KH Have a look. Let me know what you think. KH --- KH import