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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:04:47+00:00 2026-06-12T03:04:47+00:00

I have an Eclipse web project that was working perfectly fine until I converted

  • 0

I have an Eclipse web project that was working perfectly fine until I converted it to a Maven project. Previously, I could make changes to a servlet, restart Tomcat from the Eclipse Servers tab, and then browse to my localhost to view the page. Any changes I made to a JSP file were reflected immediately on page reload.

After converting to a Maven project, when I make a change to a Java file, the .class file under the build directory is not updated, even though I have Build Automatically selected. If I delete the .class file, it does not get rebuilt. If I try to view the webapp in a browser, I see a ClassNotFoundException for the servlet class.

I have spent a lot of time going through the project’s properties and searching online, but I can’t figure out how to get this working again. Any help is appreciated.

UPDATE: I fixed part of the problem by moving my source files from project_root/src to src/main/java. Now I can build the project using Maven, but I still have to manually copy the class files to my local tomcat’s webapp directory. If anyone knows of a way to automate this, I would like to hear it. Thank you.

  • 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-12T03:04:48+00:00Added an answer on June 12, 2026 at 3:04 am

    I solved this by moving my source files from project_root/src to src/main/java and then making sure that src/main/java was on the build path under Project > Properties > Java Build Path > Source tab. Eclipse now deploys my changed files to the proper directory under .metadata so the changes show up in my local instance of Tomcat. @davidfmatheson, thanks for your comments, I will look into using m2e-wtp.

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

Sidebar

Related Questions

I have a maven web project that imported into eclipse. I have another maven
I have a dynamic web project (JSP) on Eclipse that runs on a tomcat
I have opened a JSP web project in Eclipse but not sure how to
I have created a dynamic web project in Eclipse, but when I set up
I have a standard (I think) web project developed with the eclipse IDE. I
I have recently created a web project in Java using eclipse. I have a
I am working on a playframework project that I have eclipsified from the console
I have a Maven project that uses Jetty ( pom ), it can be
I have a problem, that maven is looking for resources inside of Eclipse installation
I have 2 Maven projects in Eclipse workspace, A and B. Project B is

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.