jax-ws
  1. jax-ws
  2. JAX_WS-345

endpoint interface X does not match the interface Y

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: JAXWS 2.1 EA3
    • Fix Version/s: not determined
    • Component/s: wsgen
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Issues opened per forum replies: http://forums.java.net/jive/thread.jspa?
      messageID=221501

      I recently started trying to use web services annotated thus:

      Web Service Endpoint Interface:

      @WebService(name = "Something")
      public interface SomethingRemote extends java.rmi.Remote {
      ...
      }

      Web Service Endpoint Implementation:

      @WebService(endpointInterface="com.foo.SomethingRemote")
      public class SomethingEndPoint extends BaseEndPoint implements SomethingRemote {
      ...
      }

      I'm using apt to generate the jaxws artifacts for a whole source directory at
      once like this:

      ant build.xml

      <apt fork="true" nocompile="true" sourcedestdir="webservices/src"
      destdir="webservices/WebRoot/WEB-INF" sourcePath="webservices/src">
      <classpath>
      <path refid="project.class.path" />
      <path refid="tools.class.path" />
      </classpath>
      <source dir="business/src" includes="*/.java" />
      </apt>

      I'm doing this because I have my own annotation processor that generates the
      Web Service Endpoint Interfaces and implementations based off my
      org's "business objects". The jax-ws artifacts are generated on the second pass
      apt does across the artifacts I'm generating in my annotation processor.

      I get a whole bunch of the following error messages from apt/wsgen:

      [apt]
      C:\devel\lassen\emaxmc\emaxmc_webservice\src\com\foo\webservice\someservice\Some
      thingRemote.java:25: The endpoint interface
      com.foo.webservice.someotherservice.SomethingElseRemote does not match the
      interface com.foo.webservice.someservice.SomethingRemote.

      But there is no reference in the service interface with the error to
      the "endpoint interface" mentioned in the message.
      The error messages given by apt don't make any sense, and I suspect it's due to
      some problem processing multiple SEI's in one shot using apt.

      1. Error on publishing 2 WebServices with 2 SEI .jpg
        293 kB

        Activity

        Hide
        jitu added a comment -

        This is not a issue for Glassfish V2 integrations.

        Show
        jitu added a comment - This is not a issue for Glassfish V2 integrations.
        Hide
        vivekp added a comment -

        Marking this as RFE and it will get implemented in a future JAXWS release.

        Show
        vivekp added a comment - Marking this as RFE and it will get implemented in a future JAXWS release.
        Hide
        gadams00 added a comment -

        Any chance of getting this resolved any time soon? A year seems a long time to
        let this sit unaddressed.

        Show
        gadams00 added a comment - Any chance of getting this resolved any time soon? A year seems a long time to let this sit unaddressed.
        Hide
        ericknet added a comment -

        I'm having problems when try to publish 2 WebServices with 2 SEI. I'm using WebLogic wlserver_10.3 with OSB. When I do same test using axis 2 all work fine. Can someone help me?
        I will attach the project that I'm using.

        Show
        ericknet added a comment - I'm having problems when try to publish 2 WebServices with 2 SEI. I'm using WebLogic wlserver_10.3 with OSB. When I do same test using axis 2 all work fine. Can someone help me? I will attach the project that I'm using.
        Hide
        ericknet added a comment - - edited

        I does not know what's happing with this project. I attach a screenshot with the error. Can someone help me? When a deploy this project with Axis 2 all work fine. But when I use a Weblogic 10.3 with OSB the erros is thows:

        error: The endpoint interface br.io.ws.teste1.Iteste1 does not match the interface br.io.ws.teste2.Iteste2.

        org.eclipse.core.runtime.CoreException: Error with publish task 'WebServicesProjectBuildTask'.
        at oracle.eclipse.tools.weblogic.server.model.WeblogicPublishOperation.execute(WeblogicPublishOperation.java:107)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1267)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:818)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:655)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:522)
        at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
        at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
        at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
        Contains: Error while compiling web services in Teste.
        oracle.eclipse.tools.webservices.WebServicesException: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web services
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl$3.invoke(WebServiceCompilerImpl.java:308)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl.accessCompiler(WebServiceCompilerImpl.java:362)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl.compile0(WebServiceCompilerImpl.java:312)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl.compile(WebServiceCompilerImpl.java:247)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl.build0(WebServiceProjectCompilerImpl.java:136)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl.access$000(WebServiceProjectCompilerImpl.java:54)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl$1.run(WebServiceProjectCompilerImpl.java:83)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl.build(WebServiceProjectCompilerImpl.java:101)
        at oracle.eclipse.tools.webservices.publish.WebServiceProjectPublishTask$WebServicesBuildOperation.processWebServices(WebServiceProjectPublishTask.java:173)
        at oracle.eclipse.tools.webservices.publish.WebServiceProjectPublishTask$WebServicePublishOperation.processWebModule(WebServiceProjectPublishTask.java:128)
        at oracle.eclipse.tools.weblogic.server.model.WeblogicWebPublishOperation.processRootModule(WeblogicWebPublishOperation.java:86)
        at oracle.eclipse.tools.weblogic.server.model.WeblogicPublishOperation.execute(WeblogicPublishOperation.java:92)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1267)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:818)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:655)
        at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:522)
        at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
        at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
        at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
        Caused by: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web services
        at weblogic.wsee.tools.jws.jaxws.JAXWSProcessor.finish(JAXWSProcessor.java:238)
        at weblogic.wsee.tools.jws.process.CompositeProcessor.finish(CompositeProcessor.java:58)
        at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:545)
        at weblogic.wsee.tools.jws.build.JwsCompiler.compile(JwsCompiler.java:494)
        at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl$3.invoke(WebServiceCompilerImpl.java:306)
        ... 20 more
        Caused by: apt failed
        at com.sun.tools.ws.ant.Apt.execute(Apt.java:447)
        at weblogic.wsee.tools.jws.jaxws.JAXWSProcessor.runApt(JAXWSProcessor.java:427)
        at weblogic.wsee.tools.jws.jaxws.JAXWSProcessor.finish(JAXWSProcessor.java:145)
        ... 24 more

        Show
        ericknet added a comment - - edited I does not know what's happing with this project. I attach a screenshot with the error. Can someone help me? When a deploy this project with Axis 2 all work fine. But when I use a Weblogic 10.3 with OSB the erros is thows: error: The endpoint interface br.io.ws.teste1.Iteste1 does not match the interface br.io.ws.teste2.Iteste2. org.eclipse.core.runtime.CoreException: Error with publish task 'WebServicesProjectBuildTask'. at oracle.eclipse.tools.weblogic.server.model.WeblogicPublishOperation.execute(WeblogicPublishOperation.java:107) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1267) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:818) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:655) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:522) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775) at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889) at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Contains: Error while compiling web services in Teste. oracle.eclipse.tools.webservices.WebServicesException: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web services at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl$3.invoke(WebServiceCompilerImpl.java:308) at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl.accessCompiler(WebServiceCompilerImpl.java:362) at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl.compile0(WebServiceCompilerImpl.java:312) at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl.compile(WebServiceCompilerImpl.java:247) at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl.build0(WebServiceProjectCompilerImpl.java:136) at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl.access$000(WebServiceProjectCompilerImpl.java:54) at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl$1.run(WebServiceProjectCompilerImpl.java:83) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) at oracle.eclipse.tools.webservices.common.compiler.WebServiceProjectCompilerImpl.build(WebServiceProjectCompilerImpl.java:101) at oracle.eclipse.tools.webservices.publish.WebServiceProjectPublishTask$WebServicesBuildOperation.processWebServices(WebServiceProjectPublishTask.java:173) at oracle.eclipse.tools.webservices.publish.WebServiceProjectPublishTask$WebServicePublishOperation.processWebModule(WebServiceProjectPublishTask.java:128) at oracle.eclipse.tools.weblogic.server.model.WeblogicWebPublishOperation.processRootModule(WeblogicWebPublishOperation.java:86) at oracle.eclipse.tools.weblogic.server.model.WeblogicPublishOperation.execute(WeblogicPublishOperation.java:92) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1267) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:818) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:655) at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:522) at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775) at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889) at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web services at weblogic.wsee.tools.jws.jaxws.JAXWSProcessor.finish(JAXWSProcessor.java:238) at weblogic.wsee.tools.jws.process.CompositeProcessor.finish(CompositeProcessor.java:58) at weblogic.wsee.tools.jws.build.JwsCompiler.buildWebServices(JwsCompiler.java:545) at weblogic.wsee.tools.jws.build.JwsCompiler.compile(JwsCompiler.java:494) at oracle.eclipse.tools.webservices.common.compiler.WebServiceCompilerImpl$3.invoke(WebServiceCompilerImpl.java:306) ... 20 more Caused by: apt failed at com.sun.tools.ws.ant.Apt.execute(Apt.java:447) at weblogic.wsee.tools.jws.jaxws.JAXWSProcessor.runApt(JAXWSProcessor.java:427) at weblogic.wsee.tools.jws.jaxws.JAXWSProcessor.finish(JAXWSProcessor.java:145) ... 24 more

          People

          • Assignee:
            ramapulavarthi
            Reporter:
            gadams00
          • Votes:
            7 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: