This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Strange problem - works on maven glassfish but not on Tomcat  RSS feed

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

I am quite new to tomcat and webapp. I have a project that implements wsdl2java with axis2. When compile it by mvn install command, the project compiles and it undergoes a test process. As far as I understand during the test a glassfish server is launched and the project is deployed. The test are passed (no errors, the application produces the expected results). However when I take the war file and deploy it on tomcat my application has some problems with handling a POST request that takes a multipart. The methods looks like that:

The tomcat error is the following:

As I wrote before everything works in glassfish test environment. The Tomcat crashes. I try to access the server with a java client or even a simple html post form - all with the same results. I guess It has something to do with adding axis2 framework since this problem did not occur before adding it.

Can any one help?
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Could it be this line:

It looks like it uses a class from Jersey - is this compatible with Axis?
Best wishes!
 
Adam Kronicki
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank for the notice but I guess it goes deeper into axis problems. First I just skipped the Multipart handling part of the code and just launched axis and it also does not work but the error is different. Then I have put the axis code into a simple @GET method (so in fact no multipart issue) and again the same problem. The error is the following now:

 
Adam Kronicki
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone contribute?? I also thought it would be a good ide to psot the pom.xml file

 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!