Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19687

Web Service wizard buttons act strangely if an error occurs creating CXF service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.3.x
    • 4.3.0.Alpha2
    • webservices
    • Hide

      1. Add Apache CXF 2.x runtime to Eclipse
      2. Create a Dynamic Web Project, add the project to an EAR, generate web.xml
      3. Create a Sample Web Service in the project, leave everything on default
      4. Open the new Web Service wizard
      5. Select Bottom up service, with the sample service Class as implementation
      6. Select Assemble Service
      7. Select some server, web service runtime to Apache CXF 2.x
      8. Click next 3 times, at this point clicking next again raises an error
      9. Clicking next will trigger the first case, back will trigger the second one (see below)

      Show
      1. Add Apache CXF 2.x runtime to Eclipse 2. Create a Dynamic Web Project, add the project to an EAR, generate web.xml 3. Create a Sample Web Service in the project, leave everything on default 4. Open the new Web Service wizard 5. Select Bottom up service, with the sample service Class as implementation 6. Select Assemble Service 7. Select some server, web service runtime to Apache CXF 2.x 8. Click next 3 times, at this point clicking next again raises an error 9. Clicking next will trigger the first case, back will trigger the second one (see below)
    • Workaround Exists
    • Hide

      workaround to get past this by adding "targetNamespace" as an element in the WebService annotation:

      package org.jboss.samples.webservices;
      
      import javax.jws.WebMethod;
      import javax.jws.WebService;
      
      @WebService(targetNamespace = "http://jboss.org/wsdl")
      public class HelloWorld {
      
      	@WebMethod()
      	public String sayHello(String name) {
      	    System.out.println("Hello: " + name);
      	    return "Hello " + name + "!";
      	}
      }
      
      Show
      workaround to get past this by adding "targetNamespace" as an element in the WebService annotation: package org.jboss.samples.webservices; import javax.jws.WebMethod; import javax.jws.WebService; @WebService(targetNamespace = "http: //jboss.org/wsdl" ) public class HelloWorld { @WebMethod() public String sayHello( String name) { System .out.println( "Hello: " + name); return "Hello " + name + "!" ; } }
    • Not Required

      Trying to create a bottom up Apache CXF web service. If after the "Apache CXF Wbe Service Java2WS Configuration" step an error occurs, the "back" and "next" buttons stop behaving in the expected fashion.

      So far I've found these cases:

      • The back button will loop through the last 3 pages of the wizard, while pressing "next" on any of these pages will return you to the first page.
      • You can return with the back button, but pressing next will open an error dialog with the same message as the original error.

            bfitzpat_rh Brian Fitzpatrick (Inactive)
            jrichter@redhat.com Jan Richter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: