I have posted a similar problem before but it did not any response any way and the situatuion had changed slightly:
I am trying to deploy a webservice on tomcat that implements some axis wsdl2java work. However when I try to launch the code it gives the following error in the line when I create an instance of auto-generated ServiceStub.:
The funny thing is that I am using Maven for building the project. And when maven compiles it it runs a TEST and everything is doing fine there - no errors. Tried to look for the solution on google but ended with no results. Can any one help?
Are all Axis2 jar files deployed as part of the web app? A quick look into my local Axis installation shows 68 jar files in the "lib" folder (though that includes Rampart, which comes with a dozen or so jar files of its own).
Lester Burnham wrote:Maven is a build-time tool; whatever it does and does not do has no bearing on what happens at runtime.
Thank you for the response. Yes you are right but during the maven compilation a test i performed. A quick instance of tomcat (I also tried with glassfish) is launched and the project is deployed. Then a simple test request is performed (rest interface) and everything works great there - the axis codes work perfectly connecting to a second server and returning the proper response. However when I take the war file and put it on a 'normal' instance of tomcat I get the error (also doesn't work on a 'normal' glassfish).
The list of jar files in the war file is:
Lester Burnham wrote:That doesn't look right. The stock Axis2 1.5.2 download has a whole bunch of jar files that you're missing. Which Axis version are you using? It looks like 1.5.1, but there are a lot of files missing.
Yes it is 1.5.1 Do you susspect what can be the problem? It seems like a building issue... I post the pom.xml file:
Lester Burnham wrote:No idea. I loathe Maven, and if this is how one includes Axis2 in a project, then that confirms my opinion. Isn't there a single Axis2 dependency that pulls in everything else?
I don't know actually that's why I ask here. I generaly had some troubles with switching to axis 1.5.1 from 1.4 so there is probably even too many dependencies. Ehhh I don't know what to do know...