[cfaussie] Using CFCProxy
I never thought I would need to do this, but I need to invoke ColdFusion components from inside Java (and I will invoke the Java code in ColdFusion). I've written a simple test: import coldfusion.cfc.CFCProxy; public class UseCFCProxy { public String doSomething() throws Throwable { CFCProxy aCFC = new CFCProxy(path\\to\\Test.cfc); Object result = aCFC.invoke(aMethod, new Object[] { }); return (String)result; } } and Test.cfc looks like this: cfcomponent cffunction name=aMethod cfreturn Hello / /cffunction /cfcomponent I try to use the Class like this: cftry cfset obj = CreateObject(java, com.renewtek.framework.UseCFCProxy).init() / cfset obj.doSomething() / cfcatch type=any cfdump var=#CFCATCH# / /cfcatch /cftry and I always get a JRun Servlet Error. Checking the log files, I see a rather long stack trace: 06/09 16:22:08 error coldfusion/cfc/CFCProxy java.lang.NoClassDefFoundError: coldfusion/cfc/CFCProxy at com.renewtek.framework.UseCFCProxy.doSomething(UseCFCProxy.java:8) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at coldfusion.runtime.StructBean.invoke(StructBean.java:391) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1662) at cftest2ecfm386618807.runPage(\\medvwfs02\dev\Develop\sdajb001\scrap\test.cfm:3) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Any ideas? Has anyone had success with this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Using CFCProxy
I'll hazard a guess, and say that CFCProxy is not in the classpath? I presume you've followed the instructions at: http://66.102.7.104/search?q=cache:gaqNebVbFEoJ:www.forta.com/misc/cfcproxy.htm+cfcproxyhl=engl=auct=clnkcd=1 (Forta's site was slow, so here's a google cache link instead). Scott Arbeitman wrote: I never thought I would need to do this, but I need to invoke ColdFusion components from inside Java (and I will invoke the Java code in ColdFusion). I've written a simple test: import coldfusion.cfc.CFCProxy; public class UseCFCProxy { public String doSomething() throws Throwable { CFCProxy aCFC = new CFCProxy(path\\to\\Test.cfc); Object result = aCFC.invoke(aMethod, new Object[] { }); return (String)result; } } and Test.cfc looks like this: cfcomponent cffunction name=aMethod cfreturn Hello / /cffunction /cfcomponent I try to use the Class like this: cftry cfset obj = CreateObject(java, com.renewtek.framework.UseCFCProxy).init() / cfset obj.doSomething() / cfcatch type=any cfdump var=#CFCATCH# / /cfcatch /cftry and I always get a JRun Servlet Error. Checking the log files, I see a rather long stack trace: 06/09 16:22:08 error coldfusion/cfc/CFCProxy java.lang.NoClassDefFoundError: coldfusion/cfc/CFCProxy at com.renewtek.framework.UseCFCProxy.doSomething(UseCFCProxy.java:8) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at coldfusion.runtime.StructBean.invoke(StructBean.java:391) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1662) at cftest2ecfm386618807.runPage(\\medvwfs02\dev\Develop\sdajb001\scrap\test.cfm:3) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Any ideas? Has anyone had success with this? -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Using CFCProxy
How are you loading your test Java case? Is it in the CF Classpath? Mark On 9/6/06, Scott Arbeitman [EMAIL PROTECTED] wrote: I never thought I would need to do this, but I need to invoke ColdFusion components from inside Java (and I will invoke the Java code in ColdFusion). I've written a simple test: import coldfusion.cfc.CFCProxy; public class UseCFCProxy { public String doSomething() throws Throwable { CFCProxy aCFC = new CFCProxy(path\\to\\Test.cfc); Object result = aCFC.invoke(aMethod, new Object[] { }); return (String)result; } } and Test.cfc looks like this: cfcomponent cffunction name=aMethod cfreturn Hello / /cffunction /cfcomponent I try to use the Class like this: cftry cfset obj = CreateObject(java, com.renewtek.framework.UseCFCProxy).init() / cfset obj.doSomething() / cfcatch type=any cfdump var=#CFCATCH# / /cfcatch /cftry and I always get a JRun Servlet Error. Checking the log files, I see a rather long stack trace: 06/09 16:22:08 error coldfusion/cfc/CFCProxy java.lang.NoClassDefFoundError: coldfusion/cfc/CFCProxy at com.renewtek.framework.UseCFCProxy.doSomething(UseCFCProxy.java:8) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at coldfusion.runtime.StructBean.invoke(StructBean.java:391) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1662) at cftest2ecfm386618807.runPage(\\medvwfs02\dev\Develop\sdajb001\scrap\test.cfm:3) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Any ideas? Has anyone had success with this? -- E: [EMAIL PROTECTED] W: www.compoundtheory.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Using CFCProxy
The code that I use is all there. I can even do this with no error: CreateObject(java, coldfusion.cfc.TemplateProxy).init(..) on the line just before I call the Java class the uses CFCProxy. To me, that says it's in the class path, but I could be missing the point. Forta says ColdFusion's classloader must be the current classloader. Is that true in this example? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Using CFCProxy
Yes. That file exists in the classpath. And the ColdFusion server gets restarted. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Why buy into CF?
On 9/6/06, M@ Bourke [EMAIL PROTECTED] wrote: That's very interesting, considering that according to his website he'll be in London next Tuesday. Lets hope so Chris, as I work roughly 40km's from London :) I'll even email ya some photo's if you'd like It would be of interest to get his take on this discussion. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 www.flashdev.org.au --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Why buy into CF?
Forget your mega budget push from Microsoft, I'm still astounded/disgusted in the amount of hype that surounds the RubyOnRails camp. did you know that 37Signals has done a deal with Apple so the next version of OS-X comming out will have RonR included on every copy, ready to install and run? sure you can still get it off the website, but think of the kudos. A (kind of broken) version of Ruby already ships with OSX. If you're installing ROR on a mac you've got a couple of extra stages of dicking around to complete the install. I've been looking into ROR in regards to some of my price sensitive clients for a while now. The overwhleming majority of Australian business is SME, and its always an uphill battle to sell Bob on the cost of CFHosting, or god forbid if Bob's application requirements mean that a shared/relatively cheap hosting environment won't really work out all that well. I'd love to work with enterprise level clients who are keen to roll out robust solutions with a budget where the spend money to save money axiom holds water. But its oh so rare to find that sort of gig lately. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Why buy into CF?
Barry, How did you know that we use Powerbuilder and Lotus notes!! I cracked up when I read that cause thats exactly the path we are going. We(company) will be moving all of that to .NET in the years to come. Sean very interesting point on th RoR that it will be shipping with OSX. Very interesting. Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Why buy into CF?
For your SME clients - stupid cheap CF hosting - It is meant to be quite good too, if you do a google search on it - http://www.hostingatoz.com/ Just to throw that in. Mark On 9/7/06, Sean Bucklar [EMAIL PROTECTED] wrote: Forget your mega budget push from Microsoft, I'm still astounded/disgusted in the amount of hype that surounds the RubyOnRails camp. did you know that 37Signals has done a deal with Apple so the next version of OS-X comming out will have RonR included on every copy, ready to install and run? sure you can still get it off the website, but think of the kudos. A (kind of broken) version of Ruby already ships with OSX. If you're installing ROR on a mac you've got a couple of extra stages of dicking around to complete the install. I've been looking into ROR in regards to some of my price sensitive clients for a while now. The overwhleming majority of Australian business is SME, and its always an uphill battle to sell Bob on the cost of CFHosting, or god forbid if Bob's application requirements mean that a shared/relatively cheap hosting environment won't really work out all that well. I'd love to work with enterprise level clients who are keen to roll out robust solutions with a budget where the spend money to save money axiom holds water. But its oh so rare to find that sort of gig lately. -- E: [EMAIL PROTECTED] W: www.compoundtheory.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Why buy into CF?
Forget your mega budget push from Microsoft, I'm still astounded/disgusted in the amount of hype that surounds the RubyOnRails camp. did you know that 37Signals has done a deal with Apple so the next version of OS-X comming out will have RonR included on every copy, ready to install and run? sure you can still get it off the website, but think of the kudos. OMG - another free software consipracy - quick get the DOJ onto it! Did you know Adobe (formerly Macromedia) have done a devious deal with those evil communists at the Apache Foundation to secretly bundle the Xerces parser and Axis web services engine with every copy of Coldfusion? Go on Adobe, top that! Bleh - Acrobat Reader owz you. -- Mark Stanton Gruden Pty Ltd http://www.gruden.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] CF On MacOS X?
Does anyone here run CF7 Server on MacOS X? What web server do you pair it with? Apache? Standard JRun? Tomcat? Apache with the Tomcat connector? -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] [ANN] NSW CFUG Meeting Sept 11th
LiveCycle: what is it and how can we work with it. Mark Szulc of Adobe will give us an overview of LiveCycle an give us some insight as to how to work with it. 6:30 for 7pm start. NSW Sports Club (www.flashdev.org.au/venue) This meeting will be a joint meeting with the Sydney Flash Platform Developers Group. Follow the Flash Developers signs. There'll an open bar, complements of Adobe. Please rsvp on www.flashdev.org.au/rsvp. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 www.flashdev.org.au --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: [ANN] NSW CFUG Meeting Sept 11th
Damn. How do we get an open b-I mean LiveCycle presentation here in Brisbane?BlairOn 9/7/06, Chris Velevitch [EMAIL PROTECTED] wrote:LiveCycle: what is it and how can we work with it. Mark Szulc of Adobe will give us an overview of LiveCycle an give ussome insight as to how to work with it.6:30 for 7pm start. NSW Sports Club (www.flashdev.org.au/venue )This meeting will be a joint meeting with the Sydney Flash PlatformDevelopers Group. Follow the Flash Developers signs.There'll an open bar, complements of Adobe.Please rsvp on www.flashdev.org.au/rsvp.Chris--Chris VelevitchManager - Sydney Flash Platform Developers Groupm: 0415 469 095www.flashdev.org.au --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: [ANN] NSW CFUG Meeting Sept 11th
On 9/7/06, Blair McKenzie [EMAIL PROTECTED] wrote: Damn. How do we get an open b-I mean LiveCycle presentation here in Brisbane? Ask Adobe, they will come. The next joint meeting of the NSW CFUG and Sydney Flash Developers is on Captivate 2 by Brian Chau and he'll be coming up from Melbourne. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 www.flashdev.org.au --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: CF On MacOS X?
Cool. Not that it matters, but how did you set up your Apache? Through fink? Or the drag and drop LAMP installer from apple? AJ Dyka wrote: For my development environment I'm running MX7 under OS X 10.4 on my G4 laptop paired with Apache 2.2/MySQL 5.0.2. It's running directly under Apache via port 8500. A.J. Does anyone here run CF7 Server on MacOS X? What web server do you pair it with? Apache? Standard JRun? Tomcat? Apache with the Tomcat connector? -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: CF On MacOS X?
I was slack and used WebServerXKit (Apache was upgraded as a consequence of wanting the MySQL installer) http://www.rbsoftware.net/index.php?page=wsxk Cool. Not that it matters, but how did you set up your Apache? Through fink? Or the drag and drop LAMP installer from apple? AJ Dyka wrote: For my development environment I'm running MX7 under OS X 10.4 on my G4 laptop paired with Apache 2.2/MySQL 5.0.2. It's running directly under Apache via port 8500. A.J. Does anyone here run CF7 Server on MacOS X? What web server do you pair it with? Apache? Standard JRun? Tomcat? Apache with the Tomcat connector? -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove -- Haikal Saadh Applications Programmer ICT Resources, TALSS QUT Kelvin Grove --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---