Skip to main content
Known Participant
July 28, 2009
Question

Web Service is not working in COldfusion 8

  • July 28, 2009
  • 1 reply
  • 1476 views

Hi,

I am using the following code for creating the web service.
this code was perfectly working in Coldfusion 7,
however not working in Coldfusion 8.

<cfscript>
    try {
        ws = CreateObject("webservice", CurrentURL & "IntouchDataService.cfc?wsdl");
    } catch (any e) {
        WriteOutput("Error occured while invoking the Web Service at: ");
        WriteOutput('<a href="#CurrentURL#IntouchDataService.cfc?wsdl">#CurrentURL#IntouchDataService.cfc?wsdl</a>');
        WriteOutput('<hr /><h2>');
        WriteOutput(e.message);
        WriteOutput('</h2><hr />');
        WriteOutput(e.detail);
        WriteOutput('<hr />');
        WriteOutput(e.StackTrace);
    }
    //
</cfscript>

Follwoing error i got:
coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: Found 1 semantic error compiling "E:/ColdFusion8/stubs/WS-2123243560/coldfusion/xml/rpc/CFCInvocationException.java": < 10. public class CFCInvocationException extends org.apache.axis.AxisFault implements java.io.Serializable { . . . 88. } > *** Semantic Error: A class file was not generated for the type "coldfusion.xml.rpc.CFCInvocationException" because a library method that it depends on was not found. See system messages for more information. Found 1 semantic error compiling "E:/ColdFusion8/stubs/WS-2123243560/com/intouchsupport/www/IntouchDataService/TestWebServiceLocator.java": < 10. public class TestWebServiceLocator extends org.apache.axis.client.Service implements com.intouchsupport.www.IntouchDataService.TestWebSe

Also i did lot of googling to solve this issue but no luck.

also i found following blog about this issue also and i did the give steps however problem not solved.
http://tjordahl.blogspot.com/2007/09/coldfusion-8-getting-started-code.html

Can somebody help me to sort out this issue?


thanks
Prashant Gupta

    This topic has been closed for replies.

    1 reply

    Known Participant
    July 28, 2009

    Hi,

    I got solution to my problem of webservice is not working in CF8.

    the problem was

    we have already a "rt.jar" file in a location and we defined this location in CF Admin >> java jvm >> classpath

    so this file was conflicting.

    i simply removes this file path from CF Admin.

    and restart the CF services.

    and my web service start working.