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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:20:10+00:00 2026-06-11T08:20:10+00:00

As most developers, we make minor changes to the body of the method and

  • 0

As most developers, we make minor changes to the body of the method and wish to test it without having to stop and start the container viz. Tomcat. The hot swap feature provided by the JVM seemed promising and we wanted to make sure that both Tomcat and the Spring context are not reloaded. This works quite well when we have a single module maven project. However, when we are dealing with a multi-module maven web project of style

kilo
-kilo-business
-kilo-common
-kilo-dao
-kilo-web

and we wish to make changes to the method body of a class in a dependent module (say kilo-business module which the kilo-web module depends on), hot swap causes a reload of tomcat’s context and hence also spring’s. If the change was done to classes in kilo-web module itself, the context is not reloaded. This lead me to believe that because I have a jar that has now been modified in WEB-INF/lib, Tomcat is dealing with it differently that when something changes for classes in WEB-INF/classes. Of course, this inference is empirical – would be great if someone can point to an authentic source and its reasoning.

More importantly, any ideas to avoid this from happening? Would this problem go away if we have the contents of the dependent jars in WEB-INF/classes? I was not able to find a way to make the eclipse WTP plugin to deploy dependent projects as exploded directories in WEB-INF/classes.

We have heard of the good things provided by JRebel, but wanted to make sure that get the most out of what the JVM itself can provide.

Thanks in advance!

  • 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-11T08:20:12+00:00Added an answer on June 11, 2026 at 8:20 am

    Actually, the tomcat instance was being run in debug mode via eclipse. When I changed the method body of a class in kilo-web, the JVMTI did a hot code swap and hence the changes were reflected in the output, but the class itself in WEB-INF/classes was not modified (verified from the last modified timestamp). The same also happens for the dependent modules like kilo-common though I have noticed it intermittently (but still works). So a red herring after all – my apologies.

    More generally, after listening to Jevgeni Kabanov’s talk about classloaders, the vanilla approach of reloading classes used by Tomcat necessitates a reload of the context because an entirely new Classloader is created which copies state from the existing Classloader (and running into quirks with associated leaks). Overall, a great video.

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

Sidebar

Related Questions

So like most new .NET developers you start of passing DataSets everywhere and although
Why do most developers consider the W3C box model to be better than the
Learning Spring (3.1.0) and Hibernate (4.1.1). Just wondering what most developers do when handling
Like most web developers these days, I'm thoroughly enjoying the benefits of solid MVC
I use Eclipse Java EE IDE for Web Developers for most of my coding,
In most of the videos, I see expert JQuery developers writing complete code for
I'm building a web application that is aimed at developers. I assumed that most
Most C# developers developers, like me have a good solid grasp on the .net
What are the most valuable parts of Computer Science studies for Cocoa developers? Another
Should developers be limited to certain applications for development use? For most, the answer

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.