I had the files moved to a CFMX 6.1 server. Now I get the following message
when trying to browse the WSDL file: 

AXIS error
Sorry, something seems to have gone wrong... here are the details:

Fault - [java.lang.ClassNotFoundException : testme][; nested exception is: 
        coldfusion.xml.rpc.CFCInvocationException:
[java.lang.ClassNotFoundException : testme][
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: [java.lang.ClassNotFoundException : testme][; nested exception
is: 
        coldfusion.xml.rpc.CFCInvocationException:
[java.lang.ClassNotFoundException : testme][
 faultActor: 
 faultNode: 
 faultDetail: 

Since I don't have access to the CF Admin, I've tried to refresh the web
service with the following code:

        <cfif IsDefined("FORM.wsdl")>
                <cfset factory =
createObject("java","coldfusion.server.ServiceFactory")>
                <cfset xmlRpc = factory.getXMLRPCService()> 
                <cfset webServices = xmlRpc.mappings> 
                <cfset xmlRpc.refreshWebService("#FORM.wsdl#")>
                <cfoutput>
                        <b>#FORM.wsdl# reloaded.</b><br>
                </cfoutput>
                <a href="javascript:history.back();">Back</a>
        <cfelse>
                <cfoutput>
                        <form action="#CGI.SCRIPT_NAME#" method="post">
                                Refresh WSDL: <input type="text" size="100"
name="wsdl">                    
                        </form>
                </cfoutput>
        </cfif>

This gives me the following error:
Could not generate stub objects for web service invocation.  
Name: http://recdocdev.esri.com/testme.cfc?WSDL. WSDL:
http://recdocdev.esri.com/testme.cfc?WSDL. org.xml.sax.SAXException: Fatal
Error: URI=null Line=2: Illegal character at end of document, <. It is
recommended that you use a web browser to retrieve and examine the requested
WSDL document for correctness. If the requested WSDL document can't be
retrieved or it is dynamically generated, it is likely that the target web
service has programming errors.  

The CFC file is the same on both the server and my local dev machine.

Server Variables on the Server are:
Appserver JRun4
ProducVersion 6,1,0,hf53486_61

Server Variables on my local Dev machine are:
Appserver JRun4
ProductVersion 6,1,0,63958

I cannot browse the CFC file on the server directly, as the CFC browser has
been turned off.

Any other suggestions would be appreciated.

Thanks,
James

 

-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 10, 2004 12:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Problems calling a CFC Webservice

On May 10, 2004, at 11:44 AM, James Johnson wrote:
> I am running the dev edition locally for developing the webservice and 
> not having to refresh the dev server admin when I make changes to the 
> code.

OK.

> We have development, staging and production servers here, with tight 
> security.

Yes, we have a similar setup:
- local Developer Edition (pointing to shared dev DB server)
- three shared dev servers (for different code branches)
- three shared QA servers (for those different code branches)
- a cluster of integration / load testing servers
- a cluster of production servers

An automated build system takes code from CVS and deploys it to all the
shared servers.

> From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> And then set up your own database server, and then keep that synced as 
> the schema changes

Use a shared DB server - DB changes less frequently than code and it's
easier to share.

> and then make sure you're replicating all the CF settings,

I'd hope you have a documented "server setup" that is standard for all
instances (except maybe data sources would point to dev / QA / prod DB
servers). You could also keep the XML config files under source code control
:)

> and have all the java libraries, and on and on.

You need a build script that can build locally as well as build to a shared
server.

Regards,
Sean

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool,
Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to