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+
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275583
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4