In this post I will continue Axis2 + Maven + Servlets + Tomcat topic. I will refer to it as previous post, because some stuff will be repeated. I will show how to have Google Guice dependency injection in Axis2 webservices.
I will reuse technique from sagara's Blog. It works perfectly, but it can be improved a little.
The same Axis2 wsdl generation technique will be used, so I will not refer to it again.
Again, we start by our
There is an awesome article about Deploy JAX-WS web services on Tomcat. It describes how to have a web service running without much effort.
We will follow the article and do the same, but with three differences:
- We will build it with Maven
- We will omit interface in the web service
- We will not copy jars to the Tomcat. All dependencies will be managed by Maven
Let's start by creating a fresh maven project
pom.xml will contain single
In this post I will show how to combine axis2 web services with maven and a war project and make it run under Tomcat 6.
We will try to avoid holding auto-generated sources, instead we will generate them and compile whenever they are needed. We will also try to make the whole process as automatic, as possible.