Results 1 to 1 of 1
Thread: Dynamic class loading problems
- 10-16-2010, 09:29 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 1
- Rep Power
- 0
Dynamic class loading problems
Hi,
i've got the following problem with dynamic class loading. I've written a program that loads JUnit testsuites and testcases dynamically from external class-files and runs them. This works quite well, but i've got problems with statements like the following:
private static Logger log = LoggingManager.getLoggerForClass();
In this case, i get a NoClassDefFoundError. If i remove the "static" prefix and put the initialisation into the constructor, there are problems anymore. Same if i initialise the variable with "null". So it seems that the problem occurs because of the method call at the initialisation.
Could it be that the class LoggingManager is not correctly loaded at this time? And is there a way to overcome this problem?
Thanks
Similar Threads
-
Dynamic image loading in jsp
By ramakrishna k m in forum JavaServer Pages (JSP) and JSTLReplies: 5Last Post: 10-10-2011, 06:08 AM -
Dynamic Class Loading
By dieter1990 in forum Advanced JavaReplies: 2Last Post: 08-27-2010, 05:09 PM -
Dynamic loading of a class (passing class definition over the network)
By eddie-w in forum Advanced JavaReplies: 8Last Post: 04-14-2010, 05:49 AM -
Dynamic Class Loading from external Jar
By AndreB in forum Advanced JavaReplies: 3Last Post: 02-08-2010, 01:55 PM -
problems with Dynamic Xml
By boy22 in forum XMLReplies: 1Last Post: 07-24-2007, 12:10 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks