Win a copy of High Performance Python for Data Analytics this week in the Python 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Going around and around with this tomcat7-maven-plugin

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to upgrade a legacy SOAP web service (I mean LEGACY) from its current Netbeans/Glassfish setup to Maven/Spring web service container
Following an example project, it recommends using the tomcat7-maven-plugin for an "easy" tool to run my service in development without having to install an entire server.
Everything was fine until I attempted to update the hibernate system from v4 (told you it was LEGACY) to v5 (v5.4.1.Final to be exact) .
Now when attempting to start the service in the tomcat plugin I get:



Actually multiple of the above, sighting numerous target jars.

Everything I can find related to this online mentions to upgrade to tomcat8 , but all attempts to do this with tomcat8-maven-plugin fail to resolve the plugin and comments imply that this plugin is not available (for a long time!) and many suggestions on how to get around this by actually installing a local tomcat 8 server, which is exactly what I'm wanting to avoid.

If it helps, here's my pom:



I'm going around on circles on this and just want a simple server to do some local testing against.




 
Sheriff
Posts: 22057
113
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Karl Krasnowsky wrote:I'm trying to upgrade a legacy SOAP web service (I mean LEGACY) from its current Netbeans/Glassfish setup to Maven/Spring web service container
Following an example project, it recommends using the tomcat7-maven-plugin for an "easy" tool to run my service in development without having to install an entire server.


If your goal is to a) use Spring, and b) run without an entire server, why not go for Spring Boot? Go to https://start.spring.io/, add the "Spring Web Services" dependency, and start from there. If you run "mvn package", then "java -jar target/demo-0.0.1-SNAPSHOT.jar" (or "java -jar target\demo-0.0.1-SNAPSHOT.jar" on Windows), you already have a running web server.
 
Saloon Keeper
Posts: 23055
157
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd simplify it first, then upgrade.

The Tomcat Maven plugin is just a convenience to deploy webapp builds. You can deploy builds yourself by simply copying the WAR that maven's war:war goal constructs into a tomcat server. Or even simpler, create a Tomcat Context file that targets the WAR build site in your Maven project's target directory.

I've never used the Maven deployment plugins myself, in fact. I usually control Tomcat via the "mongrel" Eclipse plugin and use target context strategy I just mentioned. That gives me a good turnaround cycle.

I'd be very reluctant to go straight to Spring Boot here, since Spring Boot is Spring plus an embedded Tomcat and the extra degrees of interconnectedness and internalization make it harder to resolve problems. Especially if you need my help. I'm good at Spring and I'm good at Tomcat, but Spring Boot is not an area that anyone has hired me for, so I'm generally second-guessing problems in that area.
 
Not so fast naughty spawn! I want you to know about
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic