Problems with WSDL-first web service in Eclipse 3.3
Tried creating a WSDL-first web service in Eclipse, and it was far less straight forward than it should have been, but I finally did get it working. Here is how:
Create a new dynamic web service project, then right click on project, choose Properties > Project Facets, then click Modify Project. Add the Axis2 Web Services facet.
Next, put your WSDL file somewhere in your project. I created a wsdl folder and put it there. Once that is done, right click on the project and select New > Other > Web Service.
In the next dialog box, choose "Top down Java bean web service" from the first menu, then browse to your WSDL file. I then hit next a few times, and got the following error.
IWAB0489E Error when deploying Web service to Axis runtime
axis-admin failed with {http://schemas.xmlsoap.org/soap/envelope/}Client The service cannot be found for the endpoint reference (EPR) http://localhost:8080/... and so on.
To fix this, I had to change the server runtime to Axis2 (Eclipse should warn you about this when you add the Axis2 facet, but it doesn't). Do this by going to the Window menu, select Preferences > Web Services > Server and Runtime. Choose your server (Tomcat 5.5 in my case), then select Apache Axis2 as the web service runtime.
That got me past the previous error when creating a web service, but instead I ran into this:
Exception occurred while code generation for the WSDL null
Reviewing the stack trace brought me to the root cause:
Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/...
Turns out even though you can browse to select a WSDL file in your project, it will fail if you have a space in your path (Eclipse should turn the path you browse to into a proper file URI, but it doesn't). What I had to do then was turn the path in the error message into valid URI manually:
file:/C:/Documents%20and%20Settings/...
...and so on, replacing all space characters with %20. Another alternative would have been to place the wsdl in the Web Content folder somewhere and use http://localhost:8080/MY-PROJECT/blahblahblah.wsdl for the URI. Once you have a valid URI, just paste that value into the "Service Implementation" field in the first dialog after you create a new web service (i.e. right below where you selected "Top down Java bean web service").
After that, I was able to create the web service. Hope this helps somebody down the road.
Posted by rickg ( Apr 24 2008, 07:11:21 AM PDT ) Permalink Comments [0]Installing Wine on Centos 5
Decided to try loading Wine on my Centos 5 install. It was dead simple. These instructions should also work for Red Hat Enterprise Linux 5.
First step was to load the EPEL yum repository:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
Next I just called yum to install wine:
yum install wine
That's it. Afterwards, I found Wine on my Applications menu, and was able to double click on a Windows installer (WinSCP in this case), and it just worked!
Posted by rickg ( Apr 23 2008, 12:26:51 AM PDT ) Permalink Comments [3]
