macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Web service in Coldfusion 8

Subject: Web service in Coldfusion 8
From: "samir2"
Date: Wed, 8 Aug 2007 13:40:02 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
I have installed coldfusion 8 on jrun and have a MacBook Pro (running in jvm 
1.5.0_07). I get a strange error when trying to call web service. 

 coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: 
/Applications/JRun4/servers/smart/cfusion-ear/cfusion-war/WEB-INF/cfusion/stubs/
WS865228507/coldfusion/xml/rpc/CFCInvocationException.java:10: cannot access 
java.rmi.RemoteException bad class file: 
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar(j
ava/rmi/RemoteException.class) class file has wrong version 49.0, should be 
48.0 Please remove or make sure it appears in the correct subdirectory of the 
classpath. public class CFCInvocationException extends 
org.apache.axis.AxisFault implements java.io.Serializable { ^ 1 error .

 thanks
 Samir



 tmp.cfc
 <cfcomponent>
        <cffunction name="getSomething" access="remote" returntype="string">
                <cfreturn "this is a test">
        </cffunction>
 </cfcomponent>

 test.cfm
 <cfset o = 
createObject("webservice","http://127.0.0.1:8301/temp/tmp.cfc?WSDL";)>
 <cfdump var="#o#">


<Prev in Thread] Current Thread [Next in Thread>