WSDL2Java DuplicateFileException error
Ok, here's a nice one. One of my coworkers is running into this problem when he tries to invoke a ColdFusion web service he wrote. He didn't have any problems on our dev environment, but the test environment is puking out. Unfortunately, Dev is CF7 Ent and test is CF7 standard. Not that it SHOULD make any difference... Before I start pasting in miles of indecipherable code, I wanted to see if anyone has gotten this dreaded org.apache.axis.wsdl.toJava.DuplicateFileException error before and can help. I have Googled, and there seem to be NO results related to ColdFusion out there, and the results I did find were instances where people were creating their own WSDL which is obviously not the case here. Let me know what additional information might help figure this out-- like the names of the methods in the web service, etc. Also, I have manually deleted those stub files, cleared the template cache and restarted the server to no avail. Thanks. ~Brad Could not generate stub objects for web service invocation. Name: http://testtempest.nationsts.com/webservices/integrations/FNC/AppraisalPort/appraisalPort.cfc?wsdl. WSDL: http://testtempest.nationsts.com/webservices/integrations/FNC/AppraisalPort/appraisalPort.cfc?wsdl. org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: /opt/coldfusionmx7/stubs/WS-1435972790/webservices/integrations/FNC/AppraisalPort/AppraisalPort.java. Hint: you may have mapped two namespaces with elements of the same name to the same package name. 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. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307840 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: WSDL2Java DuplicateFileException error
I can't remember the error I was getting, but I do remember having some web service weirdness and ended up running this to fix it: cfset application.ISIwsdl = createObject(java, coldfusion.server.ServiceFactory).XmlRpcService.refreshWebService(wsdl) / I'm not sure exactly what it does and can't remember where i got it, but it may be worth a try. I'm also not sure if I was running it before or after the web service creation. Just a shot in the dark. On Fri, Jun 20, 2008 at 11:07 AM, Brad Wood [EMAIL PROTECTED] wrote: Ok, here's a nice one. One of my coworkers is running into this problem when he tries to invoke a ColdFusion web service he wrote. He didn't have any problems on our dev environment, but the test environment is puking out. Unfortunately, Dev is CF7 Ent and test is CF7 standard. Not that it SHOULD make any difference... Before I start pasting in miles of indecipherable code, I wanted to see if anyone has gotten this dreaded org.apache.axis.wsdl.toJava.DuplicateFileException error before and can help. I have Googled, and there seem to be NO results related to ColdFusion out there, and the results I did find were instances where people were creating their own WSDL which is obviously not the case here. Let me know what additional information might help figure this out-- like the names of the methods in the web service, etc. Also, I have manually deleted those stub files, cleared the template cache and restarted the server to no avail. Thanks. ~Brad Could not generate stub objects for web service invocation. Name: http://testtempest.nationsts.com/webservices/integrations/FNC/AppraisalPort/appraisalPort.cfc?wsdl. WSDL: http://testtempest.nationsts.com/webservices/integrations/FNC/AppraisalPort/appraisalPort.cfc?wsdl. org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: /opt/coldfusionmx7/stubs/WS-1435972790/webservices/integrations/FNC/AppraisalPort/AppraisalPort.java. Hint: you may have mapped two namespaces with elements of the same name to the same package name. 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. -- Matt Williams It's the question that drives us. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307841 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: WSDL2Java DuplicateFileException error
Thanks for the reply Matt. We have actually already tried that. That code provides us with the same error that trying to call the web service does. ~Brad -Original Message- From: Matt Williams [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 11:14 AM To: CF-Talk Subject: Re: WSDL2Java DuplicateFileException error I can't remember the error I was getting, but I do remember having some web service weirdness and ended up running this to fix it: cfset application.ISIwsdl = createObject(java, coldfusion.server.ServiceFactory).XmlRpcService.refreshWebService(wsdl ) / I'm not sure exactly what it does and can't remember where i got it, but it may be worth a try. I'm also not sure if I was running it before or after the web service creation. Just a shot in the dark. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307842 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: WSDL2Java DuplicateFileException error SOlVED
Well, we figured it out. Turns out it was because we had a component display name that was the same as the file name. I'm not sure exactly what versions this affects, but I know this: Windows CF 7.0.2 Enterprise: worked Linux CF 7.0.2 Standard: didn't work We figured it out from the comment at the bottom of this livedocs page: http://livedocs.adobe.com/coldfusion/7/htmldocs/0231.htm ~Brad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307857 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4