Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Tomcat and Axis2

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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?
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven is a build-time tool; whatever it does and does not do has no bearing on what happens at runtime.

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).
 
Adam Kronicki
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Adam Kronicki
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Adam Kronicki
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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...
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!