Ok - Thought I would update the list incase someone else in the future has
trouble.
I was able to compile a simple test using the OpenBlueDragon.jar instead of
"cfx.jar" from previous ACF days.
Mind you this is a simple "hello world" type of test tag at this point.
Next speed bump was registering the tag with OpenBD.
Kept getting an error message that the server was unable to register the
tag. After some more digging I found that another
person was having trouble with this on a slightly related topic ... so I
tried his fix and was able to register the tag.
I had to edit the catalina.properties file and add the {opened}/classes
folder to the end of the "common.loader" line. In my
installation it was "/opt/opendb/classes". This allowed me to register the
tag.
Next was to create a test.cfm page and call the custom CFX tag and see if I
get the proper output. Did so, hit the page and got
an error that says:
java.lang.ClassNotFoundException: MLSRetsConnector, tags
folder=$/opt/openbd/classes/
I remembered an issue I had when trying to consume remote soap service that
required me to remove the leading "$" from the libpath
in the blue dragon.xml file. So, noticing that the error message was
listing the "tags folder" with a leading "$" I edited the bluedragon.xml
file to remove the leading "$" from the <classes></classes> line. So now my
classes line looks like the following:
<classes>/opt/openbd/classes</classes>
Restarted and now I get the proper output from the simple custom CFX tag.
Wish me luck, now to try to add all the custom RETS library
into it and see if I can wrap this project up.
Thanks for all the previous help this list has given me - I hope that
someone finds the above helpful in the future.
Alan
On Friday, November 23, 2012 11:35:00 AM UTC-5, [email protected] wrote:
>
> Hi all,
>
> I'm needing to use some Java API librarys (RETSIQ). I started initially
> testing with a
> single test page that used the cfscript java and wrote my concept test
> inline. That
> worked surprising quickly and easily... everything worked great. I
> connected to the
> remote server, was able to query and handle results.
>
> So next step was to create a cfc that I could install at the server level
> (using the
> viviotech single install with apache and tomcat). I want to go this route
> so that
> if there are connection modifications that are needed in the future I
> don't have to
> do those mods to multiple sites - just modify the single server installed
> cfc.
>
> I tried to put the java inline (just like I did with the single
> page) inside a cffunction.
> No matter what I do I continue to receive a very generic error page:
> errorCode.runtimeError with a tagname of "CFSCRIPTJAVA".
>
> So ok ... went through the docs, they say I can use inline java in cfcs.
> So tried to
> create raw java function (like the docs example). Works with simple code
> but not
> when I try to implement the methods / classes I need.
>
> Next step - create a CFX java tag to handle the connection and data
> retrieval through
> the RETSIQ java api. So to my current question - I have created CFX java
> tags with
> ACF previously ... I cannot find the cfx.jar that is used to compile the
> cfx tags.
>
> Is there a cfx.jar with openBD? If so, where is it located? If not, what
> is the equivalent
> syntax required or specific jar required to compile the java CFX tag?
>
> Thanks for any help!
> Alan Cole
> (PGP Key ID: 0x82D8E0C7)
>
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en