You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dudu <ed...@yahoo.com.br> on 2006/11/02 18:31:21 UTC

Maven JAXWS libs has wrong dependencies?

I need to use jaxws 2.0 for build webservices...
I must to download them all manually and put on my own repository, or using
the shared libs on maven repositories?

I'm trying to use the shared, and there are more than one version. If I use
this dependecy:
        <dependency>
            <groupId>com.sun.xml</groupId>
            <artifactId>jaxws-rt</artifactId>
            <version>2.0EA3</version>
            <scope>compile</scope>
        </dependency>
It will call others... and one of the jars is the:

<dependency>
      <groupId>javax.jws</groupId>
      <artifactId>jsr181-api</artifactId>
      <version>1.0</version>
    </dependency>

And this jar is a lot of annotations to use with webservices. And it has not
the "portName" parameter, that I think is the cause of the follow error on
jetty:

Error on
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] javax.jws.WebService.portName()Ljava/lang/String;
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError: javax.jws.WebService.portName
()Ljava/lang/String;
        at com.sun.xml.ws.modeler.RuntimeModeler.getPortName(
RuntimeModeler.java:1215)
        at com.sun.xml.ws.server.RuntimeEndpointInfo.doPortNameProcessing (
RuntimeEndpointInfo.java:265)
        at com.sun.xml.ws.server.RuntimeEndpointInfo.init(
RuntimeEndpointInfo.java:311)
        at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.createModelAndMetadata(
WSServletContextListener.java:203)
        at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized
(WSServletContextListener.java:119)
        at org.mortbay.jetty.handler.ContextHandler.startContext (
ContextHandler.java:441)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(
WebAppContext.java:1133)
        at org.mortbay.jetty.handler.ContextHandler.doStart(
ContextHandler.java:414)
        at org.mortbay.jetty.webapp.WebAppContext.doStart (
WebAppContext.java:461)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:38)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(
HandlerCollection.java:156)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollecti

And my class has the follow annotation,
@WebService(serviceName="Farmaco", name="nomeservice" )
public class Farmaco {
    public Farmaco() {

    }

I'm thinking the maven repositories, in case of emergent tecnologies(not
so), has wrong jars. I think it is very bad, because one of the most
interesting purpouses of maven is the dependency management. And this
problem I've founded more times, not just now, and I see some posts of
internet the same problem, I think the maven team must take more care about
this.
But as I'm  not a expert, I'm asking to all to know if more people has the
same problems... or maybe I'm just wrong.