Great little piece of code Charles! ;) Without it I couldn't have figured out my paths were wrong... doh!
Guess I shouldn't configure 3 servers at once.*grin* Thanks, Marc > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of charlie arehart > Sent: Tuesday, February 05, 2002 11:57 PM > To: [EMAIL PROTECTED] > Subject: RE: [CFTALKTor] CF Administrator configuration for JAVA CFX > > > It's late, so I may miss something obvious, but it seems you're > on the right > path to think that as long as the JARs are in the CF Admin Classpath > setting, then it should be found. One trick might be to ensure that the > actual classpath that CF has setup is indeed the one that you > expect (is the > same as what you see set in the admin). This code will work (compiled and > run as a CFX): > > import com.allaire.cfx.* ; > > public class show_classpath_via_cfx implements CustomTag > { > public void processRequest( Request request, Response response ) > throws Exception > { > response.write(System.getProperty("java.class.path")) ; > } > } > > You might also see if a simple restart of the server solved the problem. > > /charlie > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Marc Campeau > Sent: Tuesday, February 05, 2002 5:10 PM > To: [EMAIL PROTECTED] > Subject: [CFTALKTor] CF Administrator configuration for JAVA CFX > > > Hi All! > > I've been trying to figure out how to get a CFX tag I've written > in Java to > work. > > In order to work, this CFX imports classes from some custom libraries > contained in two separate JAR files. (lib1.jar and lib2.jar) > > Now, I'm able to get the CFX registered and it parses and starts executing > but I keep getting this error: > > java.lang.NoClassDefFoundError: [Package Name]/[Class Name]. Java > exception > occurred in call to method. > > Where [Package Name]/[Class Name] is a member of lib1.jar. Hence, > it's as if > CFSERVER when executing the CFX doesn't use the Class Path variable or > doesn't load the libraries. > > Any ideas? > > Server Config Info: > > CFServer is using J2SE-1.4.0-rc runtime environment. > > The server is setup like this: > > Server Product ColdFusion Server > Version 4, 5, 0, 0 > Edition Professional > Serial Number *************** > Operating System Windows NT > OS Version 4.0, Service Pack 6 > OS Build Number 1381 > > Java Settings in CFAdministrator are : > > Load JVM when starting ColdFusion [checked] > Java Virtual Machine Path [JRE Path]\bin\client\jvm.dll > Class Path [JRE Path]\lib\rt.jar;[ColdFusion > Path]\Java\classes\lib1.jar;[ColdFusion Path]\Java\classes\lib2.jar > Initial Heap Size K 1024 > Max Heap Size K 16384 > System Options [none] > Implementation Options [none] > CFX Jar Path [ColdFusion Path]\Java\classes > > > Thanks for any feedback, > > Marc Campeau > > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: "Marc Campeau" <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) > > - > You are subscribed to the CFUGToronto CFTALK ListSRV. > This message has been posted by: "charlie arehart" > <[EMAIL PROTECTED]> > To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ > Manager: Kevin Towes ([EMAIL PROTECTED]) > http://www.CFUGToronto.org/ > This System has been donated by Infopreneur, Inc. > (http://www.infopreneur.net) > > - You are subscribed to the CFUGToronto CFTALK ListSRV. This message has been posted by: "Marc Campeau" <[EMAIL PROTECTED]> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/ Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/ This System has been donated by Infopreneur, Inc. (http://www.infopreneur.net)
