Hi Christopher, Pid, Filippo, thanks for your help. I have got this
working as required on my Tomcat server. Here is the code that works.
public class MyCustomClassLoader extends ClassLoader {
public MyCustomClassLoader(ClassLoader contextClassLoader) {
On 11/10/2011 12:59, Peter Lavin wrote:
Hi Christopher, Pid, Filippo, thanks for your help. I have got this
working as required on my Tomcat server. Here is the code that works.
public class MyCustomClassLoader extends ClassLoader {
public MyCustomClassLoader(ClassLoader
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
On 10/10/2011 4:41 PM, Christopher Schultz wrote:
I have a question, though, since the default parent ClassLoader of
any ClassLoader /should/ be the current thread's context
ClassLoader, so none of the above code should be necessary.
I was
Dear Users,
I am running web-services (developed in CXF) in a Tomcat 7.0.14 server,
Java version 1.6.0_17, OS, Linux hostname 2.6.18-238.9.1.el5 #1 SMP
Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Part of my service code takes a byte array and defines a class using its
Ciao Piter,
usually class loaders are arranged unto a hierarchy, who's the parente
classloader of the one you're using to define the class fronte the byte
array? It should've be the classloader whose scope us your webapp..
Hth
Fil
Il giorno 10/ott/2011 19.27, Peter Lavin lav...@cs.tcd.ie ha
Hi Filippo, tks for your reply.
I'm not actually specifying any ClassLoader, perhaps I should? How
should I specify a ClassLoader to use when dynamically loading a class?
Peter
Filippo Machi wrote:
Ciao Piter,
usually class loaders are arranged unto a hierarchy, who's the parente
On 10/10/2011 18:51, Peter Lavin wrote:
Hi Filippo, tks for your reply.
I'm not actually specifying any ClassLoader, perhaps I should? How
should I specify a ClassLoader to use when dynamically loading a class?
You can pass one into the Constructor of your own classloader:
public
Ciao Peter,
sorry for my first answer full of typos, I answered with my android device
while travelling...
First of all, are you sure is there any issue of classpath? I mean, the jar
with the missed classese/interfaces extended/implemented by the class you
are loading dynamically is availablle?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pid,
On 10/10/2011 2:23 PM, Pid wrote:
On 10/10/2011 18:51, Peter Lavin wrote:
Hi Filippo, tks for your reply.
I'm not actually specifying any ClassLoader, perhaps I should?
How should I specify a ClassLoader to use when dynamically
loading a