View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821797#3821797

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821797

Hi, I am trying to initialize the servlet context by dynamically instantiating

a servlet-specific object, but am having problems with dynamically

loading class com.wynnon.commandTunnel.LoopbackAdaptor, which resides in

WEB-INF/classes/. Initially I used the statement:

srvrClass = Class.forName(fqn);

which threw



java.lang.ClassNotFoundException: No ClassLoaders found for: 
com.wynnon.commandTunnel.LoopbackAdaptor

Then, after reading through the JBoss JMX Implementation Architecture

chapter of the 3.2.3 book, I tried to load the class using the servlet's

classloader, i.e.



srvrClass = this.getClass().getClassLoader().loadClass(fqn);



assuming that I would be supplying the missing classloader, perhaps WARLoader. 

However, I got exactly the same exception: ... No Classloaders Found...



Questions

---------

1. What does the exception mean? 



2. Is there a way to associate a class loader with a class that 

does not have  one, before one attempts to load the class ?



3. Is this a jboss or a tomcat issue ?



4. Can anyone direct me to an example of dynamic instantiation 

in the jboss/tomcat servlet environment?



Thanks for your attention,



Bill.






-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to