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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:18:10+00:00 2026-06-04T13:18:10+00:00

I encountered a weird problem – when I put my application JAR within the

  • 0

I encountered a weird problem – when I put my application JAR within the WEB-INF/lib directory, it doesn’t work. But when create a WEB-INF/classes directory and unzip my JAR there it works just fine .

Any help?

  • 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-04T13:18:12+00:00Added an answer on June 4, 2026 at 1:18 pm

    The behavior you’re describing is wanted and completely natural.

    • /WEB-INF/classes has to contain the classes of your Java EE application. If you had used an IDE to pack a WAR (Web application ARchive) file, you would have noticed your application getting placed exactly there. A WAR file is the usual way for deploying.

    • As the name says /WEB-INF/lib is the default search path for libraries. Libraries are usually distributed as JAR file and therefore these are placed in the lib directory.

    In conclusion, it’s now obvious why it won’t work if you place your application JAR in the lib directory because of two mistakes – your files shouldn’t be packed in any archive and the lib directory is for (packed) libraries.

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

Sidebar

Related Questions

I've just encountered a weird problem, I'm trying to printf an integer variable, but
Encountered a frustrating problem in our application today which came down to an ArrayIndexOutOfBounds
I encountered a weird problem when trying to write a cross-browser script. Basically my
I encountered a weird problem setting a custom date format with PHPExcel: I'm writing
I'm having a problem that I have encountered before, but I still don't know
I have encountered a weird problem: as far as I know, cache can be
A few minutes ago I encountered a weird problem with TopMost. I created a
I've encountered weird Eclipse console output during my application execution. I'm almost 100% sure
I've encountered a problem when developing on MS Visual Web Developer 2008 Express Ed.
I've encountered a weird problem. Everytime I refresh the page, IsPostBack is false. 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.