Sorry once more, the usage instructions were a bit unclear, and jetty:run
wouldn't work.

So here are the revised usage instruction:

OK, I'll try again, this time the project is here:
http://mostlymagic.com/cxf-dummy-service.zip

The directory structure is this:

cxf-dummy
 - cxf-dummy-api
 - cxf-dummy-impl
 - cxf-dummy-server
 - cxf-dummy-client
 - pom.xml

Api contains the service interface, impl the implementation Server has a
dependency to impl, client only to api

Instructions:

1) inside cxf-dummy execute
   mvn clean install

2) Launch the server project (cxf-dummy-server) using either

   a) 
      mvn org.codehaus.mojo:exec-maven-plugin:1.1.1:java
-Dexec.mainClass=com.mycompany.service.server.Start
-Dexec.classpathScope=test

   b) from eclipse: in src/test/java there is a class named

      com.mycompany.service.server.Start

      that starts an embedded jetty and launches the server.
      run as -> java application

3) Run the client com.mycompany.service.client.MyServiceClient (in project
   cxf-dummy-client) and see the error in action. again either:
   a) 
      mvn org.codehaus.mojo:exec-maven-plugin:1.1.1:java
-Dexec.mainClass=com.mycompany.service.client.MyServiceClient

   b)
      or in eclipse, find this class in src/main/java and
      run as -> java application

result: IllegalStateException(already connected)

Sean

-- 
MostlyMagic.com - Sean Patrick Floyd
IT-Consultant und Senior Java Developer
Mobile: +49 170 4746496
Mail:   [email protected]
Web:    www.mostlymagic.com
XING:   https://www.xing.com/profile/SeanPatrick_Floyd
GULP:   http://www.gulp.de/Profil/mostlymagic.html

-----Original Message-----
From: Sean Patrick Floyd [mailto:[email protected]] 
Sent: Donnerstag, 17. Juni 2010 23:26
To: [email protected]
Subject: RE: CXF problem: IllegalStateException (Already connected)

OK, I'll try again, this time the project is here:
http://mostlymagic.com/cxf-dummy-service.zip

The directory structure is this:

cxf-dummy
 - cxf-dummy-api
 - cxf-dummy-impl
 - cxf-dummy-server
 - cxf-dummy-client
 - pom.xml

Api contains the service interface, impl the implementation
Server has a dependency to impl, client only to api

Instructions:
[etc...]
 



Reply via email to