Bare with me, Im just a noob.
I have a simple (in theory) webservice to test my issue out or produce a test case.
<cfcomponent>
<cffunction name="saveData" access="remote" returntype="boolean">
<cfargument name="stack" />
<cfargument name="data" />
<cfset local.me = 'hello' />
<cfreturn false />
</cffunction>
</cfcomponent>
I can call this as a component, but cant call it as a webservice, in fact I cant even browse to the wsdl
This is a brand new standalone ColdFusion 10 install.
http://localhost:8500/test.cfc?wsdl
What I get is
HTTP Status 500 - The web service operation caused an invocation exception.
type Status report
message The web service operation caused an invocation exception.
description The server encountered an internal error (The web service operation caused an invocation exception.) that prevented it from fulfilling this request.
Apache Tomcat/7.0.23
I've tried everything I can think of but I figure I'm doing something stupid or don't understand something.
Regards
Dale Fraser
--
--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfau...@googlegroups.com.
To unsubscribe from this group, send email to cfaussie+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Worked it out,
This has to be a bug.
The webservice was called Test.cfc
Test is apparently reserved or something, won't work, soon as I used a different name worked.
The log looked like this
The web service operation caused an invocation exception.The root cause was that: org.apache.axis2.AxisFault: Error attempting to create Java skeleton for CFC web service. The specific sequence of files included or processed is: C:\ColdFusion10\cfusion\wwwroot\Test.cfc
I’m fairly confident that “test” is not a reserved word in CF. :-)
Instead, I would suspect case sensitivity to the problem (not that you should have expected it on a Windows box, of course). You said you were calling it as http://localhost:8500/test.cfc?wsdl. But the error (and your 3d sentence below) refer to it being Test.cfc. If you renamed it back to that, and changed the url to name it that way, I wonder if it would work.
If so, I’ll just note that many have indeed tripped over some other case sensitivity issues (with respect to file naming) in CF10, even on Windows.
/charlie
I 100% tried it for both and it just doesn't work, I even thought it might be cached etc, turned off all caching, restarted the server.
Give it a try, be interested if its just me.
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Charlie Arehart
Sent: Friday, 17 August 2012 4:05 PM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL
I’m fairly confident that “test” is not a reserved word in CF. :-)
Instead, I would suspect case sensitivity to the problem (not that you should have expected it on a Windows box, of course). You said you were calling it as http://localhost:8500/test.cfc?wsdl. But the error (and your 3d sentence below) refer to it being Test.cfc. If you renamed it back to that, and changed the url to name it that way, I wonder if it would work.
If so, I’ll just note that many have indeed tripped over some other case sensitivity issues (with respect to file naming) in CF10, even on Windows.
/charlie
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Dale Fraser
Sent: Friday, August 17, 2012 1:46 AM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL
Worked it out,
This has to be a bug.
The webservice was called Test.cfc
Test is apparently reserved or something, won't work, soon as I used a different name worked.
The log looked like this
The web service operation caused an invocation exception.The root cause was that: org.apache.axis2.AxisFault: Error attempting to create Java skeleton for CFC web service. The specific sequence of files included or processed is: C:\ColdFusion10\cfusion\wwwroot\Test.cfc
Regards
Dale Fraser
--
Well, AJ already did, so that would seem to confirm that it’s not a generic issue. That said, he said he ran it in “his web root” and you show using the CF10 internal web server root.
So first, AJ, was your request in an external web server? And for Dale, have you tried the request via an external web server and in its docroot? (I’m afraid I have to run now and can’t do any testing myself.)
Just trying to help. Sorry if I may be forgetting that you’ve already covered this somehow, but I looked quickly at the past notes in the thread and didn’t see it readily, so seemed worth a shot.
/charlie
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Dale Fraser
Sent: Friday, August 17, 2012 4:02 AM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL
I 100% tried it for both and it just doesn't work, I even thought it might be cached etc, turned off all caching, restarted the server.
--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfau...@googlegroups.com.
To unsubscribe from this group, send email to cfaussie+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
I still believe this is a bug.
I just completely uninstalled and deleted everything in the ColdFusion10 directory and did it again, and can reproduce it
1. Install ColdFusion 10 Enterprise internal server on Windows 7, change no settings
2. Create a Test.cfc in C:\ColdFusion10\cfusion\wwwroot with the code below
3. Browse to the WSDL http://localhost:8500/Test.cfc?wsdl
4. You will get an error 500
5. Create a TestWS.cfc in same location with same code below
6. Browse to the WSDL http://localhost:8500/TestWS.cfc?wsdl
7. Works fine
<cfcomponent>
<cffunction name="saveData" returntype="boolean">
<cfargument name="data" type="string" />
<cfreturn true />
</cffunction>
</cfcomponent>
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of AJ Mercer
Sent: Saturday, 18 August 2012 8:57 AM
To: cfau...@googlegroups.com
Subject: Re: [cfaussie] CF10 WSDL
my ACF10 is the dev version and I was running it on port 8500
Sad news: I did that, and do not get the error. Here are a few ideas (#megraspingatstraws):
First, do you have any mappings in CF that may point the root (\) to somewhere else? I just wonder if it’s picking up some other Test.cfc in your environment. #graspingatstraws
Second, how about taking a look in C:\ColdFusion10\cfusion\wwwroot\WEB-INF\cfc-skeletons. What do you see there? There should be a Test.class and TestBeanInfo.class. If they’re there with another case, perhaps delete them and try again. And though I know you say this is an a brand new install, you may want to also try clearing the template cache just to see if it helps.
Third, if you make any such changes above and still get the error, you may want to make sure you’re not seeing cached output in your browser. You could clear the template cache. Sadly, the trick of adding another random query string var to the URL doesn’t work with these wsdl URLs. You could also try your browser request in a browser where you’ve never visited this page before. And of course you could turn on any browser developer tool that shows client/server communications, to be sure you see this error coming back from the server.
Better still, and in addition, you could look in the CF error logs and make sure you really are getting the error logged there when you make the request (I know in the first message of the thread you confirmed you do get the error. I mean, confirm that you get it on each page request now, if you make any changes such as I suggest above, to ensure you really are still getting the error, rather than risk browser caching issues.)
Hope that helps.
/charlie
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Dale Fraser
Sent: Friday, August 17, 2012 9:23 PM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] CF10 WSDL
I still believe this is a bug.
Tried all those suggestions, still get the error.
There is no Test.class or TestBeanInfo.class in C:\ColdFusion10\cfusion\wwwroot\WEB-INF\cfc-skeletons
There is however a Test2, TestWS version, which are my attempts when I rename it. So its not generating the Skeleton as the error suggests
Tried all caching settings also.
--
Its actually not a problem for us, it was just a test case that highlights a potential bug.
The workaround is to not use Test.cfc
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of MrBuzzy
Sent: Sunday, 19 August 2012 12:35 AM
To: cfau...@googlegroups.com
Cc: <cfau...@googlegroups.com>
Subject: Re: [cfaussie] CF10 WSDL
OMFG it would be easier if we came to your office and fixed your shit :(
We had the same problem - went in to CFAdmin and changed 'Web Service Version' to 1 instead of 2 (seems to be the default) - I haven't read the docs on what the difference is..............
Maybe someone else can help us there....
Hi Kai,
You are correct.
You can override the CFADMIN setting in code via an Application.cfc setting or as CFC metadata.
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Kai Koenig
Sent: Wednesday, 22 August 2012 16:07
To: cfau...@googlegroups.com
--
You can indeed override it many ways, and another is on the call to the web service itself (such as in cfinvoke, createobject, etc.)
For more on all this (beyond the docs) see this article:
http://www.adobe.com/devnet/coldfusion/articles/axis2-web-services.html
/charlie
From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Gavin Baumanis
Sent: Wednesday, August 22, 2012 2:19 AM
To: cfau...@googlegroups.com
Subject: RE: [cfaussie] Re: CF10 WSDL