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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:35:58+00:00 2026-06-09T18:35:58+00:00

I am using Struts2 framework and using HttpClient class for making put request. When

  • 0

I am using Struts2 framework and using HttpClient class for making put request.
When I try to call httpClient’s requestEntity method in LoginAction class I am getting the following error.

SEVERE: Exception starting filter struts2
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/RequestEntity

I have included all the required jar files in the class path.

Kindly help me figure out what could be the problem.

  • 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-09T18:35:59+00:00Added an answer on June 9, 2026 at 6:35 pm

    If you are using older version( apache commons less than 3.0) then that class will not be available in old jar. You have to use Apache commons 3.0 library. org/apache/commons/httpclient/methods/RequestEntity class is added since v3.0. Check javadoc.

    Generally If we do not have jar added in classpath(or not in project) then we get ClassNotFoundException and if we have jar included in project and it is in classpath but particular class is not available then we get NoClassDefFoundError.

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

Sidebar

Related Questions

I've got the following jsp page and I'm using struts2-jquery-plugin-3.1.1 <script type=text/javascript> function openDialog()
I'm using eclipse(galileo) and struts2 framework and tiles. It seems that modifying xml files(struts.xml,
I am creating a web application on tomcat in framework struts2. I am using
I am following the struts 2 framework and using the JBoss server to deploy
I'm currently developing a web application using Struts2 framework. This application requires to dynamically
i am validating user input in my application using Struts2 build in validation framework
I am using the struts2 validation framework to validate the data from in client.
I am using struts2 framework for my application. I am also using jquery validation
How to refresh a particular part of a webpage using struts2 framework please help...
I'm using Java+struts2+JSP as the web application framework. I have to pass some huge

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.