Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8002397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:21:09+00:00 2026-06-04T16:21:09+00:00

I have a multi module maven project containing a common model project and two

  • 0

I have a multi module maven project containing a common model project and two web projects( 1 for the site uses jsf, and another is set of axis based web services used to collect data from the user)

When I deploy to tomcat I deploy it as 2 war files, the model project is compiled as jar and is included in both war files.
Lately I have been getting a lot of permgen error. I am wondering if it is because I have these 2 war files each of which contains required libraries like HIbernate, Model project, and a bunch of other libraries needed for the individual projects.

My question is am I doing it right(I don’t think I am)? and what is the best way to deploy a multiple web projects which depend on a common model project?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:21:12+00:00Added an answer on June 4, 2026 at 4:21 pm

    I guess the answer is to package it as EAR file instead of WAR as you can package the jar files used commonly by the two web projects. only thing is I won’t be able to use tomcat, time to look at Application servers will also try TomEE per David Blevins’s suggestion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin
I have a Maven multi-module project and I need two different parent POMs in
I have a multi-module maven project made up of three sub-modules: web , service
I have a multi-module Maven project A. There are two modules: B and C,
I have a multi-module Maven project that is a Java web application. I am
We have a multi module maven project with the following layout project - common
We have a non-trivial multi-module maven project, then have a single module maven web-app
I have a multi-module project in maven, where other projects need to use the
I have a maven multi-module project having hierarchy: parent + ota-module + ota-common +
I have a multi module Maven project and I want the sub projects to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.