JavaLoader plugin issues: "java.lang.ClassNotFoundException: com.compoundtheory.classloader.NetworkClassLoader"

Hello all,

I have a ColdBox 3.0.0.Beta3 app that runs fine on ColdFusion 9 /
JRun multiserver / Windows 2003 server, but fails with the following
message on ColdFusion 9 / JRun multiserver / CentOS 5.4:

Error Occurred While Processing Request
com.compoundtheory.classloader.NetworkClassLoader

The error occurred in /var/www/pod.testing/wwwroot/coldbox/system/
extras/javaloader/JavaLoader.cfc: line 59
Called from /var/www/pod.testing/wwwroot/coldbox/system/plugins/
JavaLoader.cfc: line 66
Called from /var/www/pod.testing/wwwroot/coldbox/system/services/
LoaderService.cfc: line 115
Called from /var/www/pod.testing/wwwroot/coldbox/system/services/
LoaderService.cfc: line 93
Called from /var/www/pod.testing/wwwroot/coldbox/system/Coldbox.cfc:
line 65
Called from /var/www/pod.testing/wwwroot/coldbox/system/Coldbox.cfc:
line 80
Called from /var/www/pod.testing/wwwroot/Application.cfc: line 58
57 :
58 : //classLoader = createObject("java",
"com.compoundtheory.classloader0.NetworkClassLoader").init();
59 : networkClassLoaderClass = getServerURLClassLoader().loadClass
("com.compoundtheory.classloader.NetworkClassLoader");
60 :
61 : networkClassLoaderProxy = createJavaProxy
(networkClassLoaderClass);

java.lang.ClassNotFoundException:
com.compoundtheory.classloader.NetworkClassLoader

I've tried bouncing ColdFusion a few times, but the error still
persists.

If I comment out <Setting name="javaloader_libpath" value="$
{Applicationpath}/includes/java" /> in my main config file, the
application will load without error, but obviously it won't be loading
the jars in my lib dir.

Any suggestions?

Thanks,

Eric Holmgren

Hmm,

I have not seen this before, it seems it cannot find the network class loader it is supposed to load by default.

Try to do the method “ensureNetworkClassLoaderOnServerScope” code on itself on a page and see if it can load the network class loader manually. It complains that it cannot load it. I would check that it is loading the correct path.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

If you dump your server scope, what do you see?

Mark

Luis and Mark,

As it turns out, I was using a filter token in an ant copy task that
was corrupting all the binary files (including .jars) from my svn
export.

Eric