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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:51:53+00:00 2026-05-11T16:51:53+00:00

We are currently in the process of migrating our application from our production environment

  • 0

We are currently in the process of migrating our application from our production environment to a brand new data center.

  • Current Production Environment : Java 1.4, Java EE 3, WAS 5.1, JSF 2.1
  • New Data Center Environment: Java 1.5, Java EE 5, WAS 6.1, JSF 2.1

Our application is built on JSF 2.1 and contains the code below in one of the AJAX calls:

request.getSession().getServletContext().getRequestDispatcher(
                    "/results.faces").include(request, response);

And this is where we run into issues.

Case 1: EAR structure as per the standard specs
. EAR -> WAR -> WEB-INF -> lib -> *.jar (all application specific jars are under WEB-INF/lib). This does not work and we kee on getting exceptions for class not found by the classloader. Also, the above AJAX call fails (not output generated)

Case 2: EAR contains all the application JAR files on the root (MANIFEST.MF has the classpath specified manually).
This approach works perfectly and all the JAR files are loaded without any issues. Moreover, the AJAX call also goes through fine.

Any ideas why this could be happenning.

– Ashish

  • 1 1 Answer
  • 1 View
  • 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-11T16:51:54+00:00Added an answer on May 11, 2026 at 4:51 pm

    Yes, it’s because Java EE app servers have a hierarchy of class loaders that goes something like this: first the bootstrap class loader is called; next is the EAR level class loader, then the WAR level class loader. Higher level class loaders won’t look below for classes they need. If they don’t find what they need a ClassNotFoundException will be thrown.

    So the JARs in WEB-INF/lib were not visible to the EAR level class loader. When you move those JARs up you solve the problem. It makes all those JARs visible to all WARs in your EAR as well.

    One thing you might want to check is the specification for your web.xml and other files. The servlet and JSP specs changed somewhere along the way, so JARs like JSTL and such went from version 1.0 to 1.1. You might want to carefully check your web.xml and all JARs to make sure that they match the specs supported by your Java EE app server.

    Unfortunately, upgrading the app server isn’t as easy as plopping an EAR or WAR in.

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

Sidebar

Related Questions

I am currently migrating our build process from Eclipse/Ant to Maven/M2Eclipse/Artifactory. I have a
I am currently in the process of migrating our software solution from Delphi 7
I'm currently in the process of creating a Silverlight 3 data driven application. To
I'm currently in the process of migrating an application that uses NServiceBus 2.6 to
I am currently in process of making our application Large Address Aware. As experience
I am in the process of migrating an application ( Sage ) from Twisted
I am in the process of migrating legacy data to a new system. I
We are currently in the process of migrating from an aged proprietary directory service
So I am currently going through the process of migrating alot of projects from
I'm in the process of migrating portions of an application from Windows Forms 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.