views:

64

answers:

0

I want to be able to run a proper Axis2 web service by just executing mvn jetty:run. Ultimately I want to produce a single war that I can deploy somewhere.

I am just looking to use POJO web services but I'm curious to know what the full dependency tree looks like. Assuming everything else is correct, below are the axis2 specific dependencies I've got so far:

<dependency>
  <groupId>org.apache.axis2</groupId>
  <artifactId>axis2-spring</artifactId>
  <version>1.3</version>
</dependency>
<dependency>
  <groupId>wsdl4j</groupId>
  <artifactId>wsdl4j</artifactId>
  <version>1.6.2</version>
</dependency>
<dependency>
  <groupId>org.apache.ws.commons.schema</groupId>
  <artifactId>XmlSchema</artifactId>
  <version>1.3.2</version>
</dependency>
<dependency>
  <groupId>org.apache.ws.commons.axiom</groupId>
  <artifactId>axiom-api</artifactId>
  <version>1.2.9</version>
</dependency>
<dependency>
  <groupId>org.apache.ws.commons.axiom</groupId>
  <artifactId>axiom-dom</artifactId>
  <version>1.2.9</version>
</dependency>
<dependency>
  <groupId>org.apache.ws.commons.axiom</groupId>
  <artifactId>axiom-impl</artifactId>
  <version>1.2.9</version>
</dependency>
<dependency>
  <groupId>org.apache.ws.commons.neethi</groupId>
  <artifactId>neethi</artifactId>
  <version>2.0.1</version>
</dependency>
<dependency>
  <groupId>commons-httpclient</groupId>
  <artifactId>commons-httpclient</artifactId>
  <version>3.1</version>
</dependency>
<dependency>
  <groupId>annogen</groupId>
  <artifactId>annogen</artifactId>
  <version>0.1.0</version>
</dependency>
<dependency>
  <groupId>backport-util-concurrent</groupId>
  <artifactId>backport-util-concurrent</artifactId>
  <version>3.0</version>
</dependency>

This compiles and starts the web app ok, but I seem to get an error when I try to axis http://localhost:8080/mywebapp/services/MyService?wsdl. Specifically it says:

Problem accessing /mywebapp/services/MyService. Reason:

Caused by:

    java.io.FileNotFoundException: /axis2-web/listSingleService.jsp

So, what am I missing?

I'd rather not have to deploy any axis2.war file by the way. I just want a single deployable jar. Do I need the axis war to see the generated wsdls?