NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Local WSDL-Path from dev-system after deployment on productive system

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
hendrik



Joined: 05 Jun 2009
Posts: 2

PostPosted: Fri Jun 05, 2009 9:58 am    Post subject: Local WSDL-Path from dev-system after deployment on productive system Reply with quote

Hi everybody!

I created a little system that consumes multiple webservices using NB 6.5.1. If I run the app locally on a Tomcat 6, everything works beautifully.

After I deploy this app to a Tomcat 6.0.18 on a linux-server, I get the following error:

javax.xml.ws.WebServiceException: Failed to access the WSDL at: file:/C:/Documents%20and%20Settings/<username>/My%20Files/NetBeansProjects/Appname/src/conf/xml-resources/web-service-references/ShoppingService/wsdl/developer.ebay.com/webservices/latest/ShoppingService.wsdl. It failed with:
/C:/Documents%20and%20Settings/<username>/My%20Files/NetBeansProjects/Appname/src/conf/xml-resources/web-service-references/ShoppingService/wsdl/developer.ebay.com/webservices/latest/ShoppingService.wsdl (No such file or directory).

So basically it tries to read the WSDL not from the real location on the web, but from the location it got downloaded to on my Windows development machine. If I copy the wsdl to the above path on linux, everything works fine.

Is there a way to tell wsimport to always use the remote URL? Or can I configure it to use a relative path inside my webapp? How could I do this using NB?

Thank you so much in advance!
Kind regards,
Hendrik
Back to top
hendrik



Joined: 05 Jun 2009
Posts: 2

PostPosted: Fri Jun 05, 2009 11:09 am    Post subject: Reply with quote

Maybe I should have searched 5min longer, found the following solution:
http://forums.netbeans.org/viewtopic.php?t=7615
Back to top
domaz



Joined: 05 Mar 2010
Posts: 1

PostPosted: Fri Mar 05, 2010 9:49 pm    Post subject: Reply with quote

I had the same problem- the catalog.xml fix just does not work so don't waste your time with that.
Easiest way to fix this is to make a directory on the server called c:\wsdl or whatever. Make a similar directory on your development box (and all your other developers boxes). Then open jaxws-build.xml find the <wsimport line, change wsdl= from the funky stuff NetBeans put's in there too:
wsdl="file:/C:/wsdl/YourService/YourService.wsdl". Seems to be the best work-around.
Back to top
Manuel Mall
Posted via mailing list.





PostPosted: Sat Mar 06, 2010 12:15 pm    Post subject: Re: Local WSDL-Path from dev-system after deployment on productive system Reply with quote

Not sure which thread you are responding to as you didn't include the
original message but I just wanted to say that the catalog.xml solution as a
flexible way to package and reference WSDL files works just fine for me.

On deployment all my WSDL files are put into META-INF/wsdl/... and the
catalog maps the path used at wsimport time to the META-INF/wsdl/...
location.

For example this entry in META-INF/jax-ws-catalog.xml:

<system systemId="file:/oscar/wsdl/sforce/enterprise.wsdl"
uri="wsdl/sforce/enterprise.wsdl"/>

maps my SalesForce WSDL which is taken by wsimport from my local filesystem
(a Unix system in this case) and maps it to
META-INF/wsdl/sforce/enterprise.wsdl.



Domazlicky, Eric wrote:
Quote:

I had the same problem- the catalog.xml fix just does not work so don't
waste your time with that.
Easiest way to fix this is to make a directory on the server called
c:\wsdl or whatever. Make a similar directory on your development box (and
all your other developers boxes). Then open jaxws-build.xml find the
<wsimport line, change wsdl= from the funky stuff NetBeans put's in there
too:
wsdl="file:/C:/wsdl/YourService/YourService.wsdl". Seems to be the best
work-around.


--
View this message in context: http://old.nabble.com/Local-WSDL-Path-from-dev-system-after-deployment-on-productive-system-tp27803542p27803677.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
cfsavant



Joined: 11 Jul 2012
Posts: 2

PostPosted: Mon Nov 19, 2012 11:32 pm    Post subject: I am getting this same problem in 7.1 Reply with quote

I am getting this same problem in 7.1
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo