I would liberate yourself a bit from Eclipse and just build and deploy with Maven: http://www.jroller.com/gmazza/entry/java_first_web_service (note the tutorial has diverged a bit from the WSDL-first web service it references, but is close enough to give you an idea of the needed steps.) IDEs should just be for editing source code and not software building or Tomcat instantiation--otherwise, the IDE just adds in so many extra and unnecessary moving parts to your project that it's hard to figure out precisely what the error is.

Using Eclipse for project compilation and Tomcat administration is like putting fat, puffy mittens on your hands and then trying to write well. Worse, instead of learning how to do something useful (building with Maven, starting and stopping Tomcat from the command line) you're instead learning how to get something else (i.e., Eclipse) to do something useful, an extra layer of indirection not helpful for real understanding of the technologies involved.

Glen


On 06/22/2011 07:47 AM, berlindutza wrote:
Hello,

I have followed the steps described in this tutorial:
-
http://pettergraff.blogspot.com/2010/11/developing-web-service-in-eclipse.html
Thus I have created a web service starting from a Java class.

I am using:
- Server: Tomcat 7.0
- Eclipse: eclipse-jee-helios-SR2-win32.zip
- JAVA EE:java_ee_sdk-6u2-jdk-windows.exe
- JDK: jdk-6u26-windows-i586.exe
- Apache cxf: 2.3.4

I have configured  Tomcat to use CXF and I added CXF to web service runtime:
- Thus as it apears in the videos I have set the Tomcat server as server
runtime environments ->  "Window->  Preferences->Server->  Runtime
Environments"
- And I added CXF to the Web Service Runtimes  ->  Window->  Preferences->Web
services ->  CXF 2.x Preferences ->CXF Runtime ->  and I have added the path
to apache cxf".
- And Finally I have set: "Window->  Preferences->Web services ->  Server and
Runtime" path I have added "Tomcat v7.0" as Server runtime and "Apache CXF
2.x" as Web service runtime.

I have set the following environmental variables:
- JAVA_HOME=D:\JDK_ECLISPE
- CATALINA_HoME=C:\Tomcat 7.0


*
Should I do other settings too? Should I do /spring configuration/ too? Is
it possible that the installed versions may not be compatible?
I made no changes to the generated files "beans.xml" and "web.xml".
*

I have to say that my web services are a little more complicated because
they set up a connection to an OPC UA server (simply a software server,
which runs on the same machine) and also perform some
operations with it, so they are acting as OPC UA clients too.

Thus I have a "Java Project" for example "Prosys_services" which contains a
package with a Java class for each service. Starting from this classess I
have created the web services
and the Web service clients in two different Dynamic Web Projects.

*There is a strange thing that at first (after I create some web services)
they work well *and after more tests (creating some web service and web
service clients, deleting them and after that
generating them with some necesary modifications), at the call of a web
service I obtain the error described in my first message.
And of course starting from this point the creation of another web service
starting from the Java project is impossible because I obtain the error "The
selection must be a WSDL."

Thanks a lot!
Alina

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Odd-error-with-CXF-Please-help-tp4490161p4513754.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Application Integration Division
Talend (http://www.talend.com/ai)
blog: http://www.jroller.com/gmazza


Reply via email to