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 3977704
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:57:18+00:00 2026-05-20T04:57:18+00:00

I am creating an EAR with 1 war file (appWeb.war is my web module)

  • 0

I am creating an EAR with 1 war file (appWeb.war is my web module) and several jar files.
These jar files are NOT EJBs. We have choosen to create different jar files based on logical separation of application like the model.jar (containing all model classes, DAO, DTO and hibernate files), BO.jar (containing business logic)etc…

I wanted to know the correct packaging structure for my EAR

application.ear
.
.
....lib (folder created by us)
    .
    .
    ...strus.jar
    ...spring3.jar (all the spring library files)
    ...BO.jar
    ...model.jar

I am adding appWeb.war as the web module to my EAR in the IDE (RAD 7.5)
Which creates the entry in application.ear/META-INF/application.xml

Environment details:
App server: Websphere app server 7.0
IDE: RAD 7.5
It’s a Struts 2, Spring 3 and Hibernate 3.6 application

Questions:
1. Is this approach correct? Where does the application specific jar files kept in an EAR?
2. We want to move the library files to application.ear/lib folder.

Any dierctions/help/best practices on this will be appreciated.

thanks

  • 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-05-20T04:57:19+00:00Added an answer on May 20, 2026 at 4:57 am

    The one you’ve outlined above is one of the choices available. The folder name — in this case, “lib”, is pretty much up to you, as long as you properly reference it from the MANIFEST classpath settings of the WAR file. Personally, I prefer that solution as it keeps you from tinkering with container settings and having your files “scattered” across the container tree. Just my preference, I guess.

    For IBM recommended settings:
    http://www-01.ibm.com/support/docview.wss?uid=swg27006159

    and from the community:
    Best Practice for including 3rd party jars in a core library?

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

Sidebar

Related Questions

I've been using the Maven EAR plugin for creating my ear files for a
Is it possible to configure two separate web apps (WAR) in a J2EE application
I have a build process that creates an ear in a fairly complicated manner
I am creating a Python script within which I am executing UNIX system commands.
I've got problems starting my WAR application on a local JBoss. After two other
I am trying to release a web project using Maven 2.2.1 and the maven-release-plugin
This is a continuation of the question here: JBoss - does app have to
I've worked with JBoss and WebLogic before, but at my current job, we're using
Hi I'm looking for a simplified overview of EJB3 components. I seem to understand
Hope a few people in here are familiar with JCAPS. Coming from pure j2ee

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.