Also check the CF error log. I was just having the same kind of proble... Error 500, I checked the cf log and it said that the class name is not defined. Turns out I needed to modify my jar packager to include the new package that I just added.
Russ > -----Original Message----- > From: Russ [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 17, 2007 12:21 PM > To: CF-Talk > Subject: RE: CF and Java > > Does the code work when you run it from java? In the main method, do > something like: > > IRMark irmark=new IRMark("somefile.xml"); > System.out.println(irmark.doStuff()); > > Russ > > > -----Original Message----- > > From: Andrew Whone [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 17, 2007 10:23 AM > > To: CF-Talk > > Subject: Re: CF and Java > > > > I got Russ's code working but if I do this: > > public class IRMark { > > protected String filename; > > public IRMark (String filename) throws Exception > > { > > this.filename=filename; > > // Init the Apache XML security library > > Init.init(); > > } > > public String doStuff() > > { > > return filename; > > } > > } > > I get an Object Instantiation Exception > > and if i do this > > public class IRMark { > > protected String filename; > > public IRMark (String filename) throws Exception > > { > > this.filename=filename; > > > > } > > public String doStuff() > > { > > // Init the Apache XML security library > > Init.init(); > > return filename; > > } > > } > > I get this > > 500 org/apache/xml/security/Init > > org/apache/xml/security/Init > > no errors > > I tried the latter with the rest of the code but cannot get anything > else > > Any suggestions? > > A+ > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275587 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

