facebook

JAX-WS web services not generating .apt_generated

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #297939 Reply

    prismmed
    Member

    The documentation is not clear on how to name or package classes in order to generate JAX-WS web services.

    1) I created a clean Web Service project

    2) When I create my 1st service using an existing class, the wizard inserts code into web.xml to configure the WSServlet as the name of my first web service.

    3) If I create a 2nd service in the same manner, the wizard inserts another servlet-mapping for the 2nd service. So this is ok, but the wizard never gave me a chance to name the servlet, so I have to manually edit. So it seems the wizard assumes I will have one service only and names the JAX-WS servlet according to the first one.

    4) After all this, the .apt_generated directory is _empty_, there are no java classes or package directories. And, yes, I have verified that Annotation Processing is enabled.

    #297940 Reply

    prismmed
    Member

    Using 7.1.1 MyEclipse

    #297958 Reply

    prismmed
    Member

    Regarding (4) it appears it was due to the service classes having no methods. After I added methods to the classes, the .apt_generated files were created.

    Regarding the naming, I just created one package per endpoint, as this appears to be the only way to accomplish this.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JAX-WS web services not generating .apt_generated

You must be logged in to post in the forum log in