• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Tomcat and Axis2

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic