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

  • Home
  • SEARCH
  • 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 3681968
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:44:37+00:00 2026-05-19T03:44:37+00:00

My app uses Struts2 MVC, Spring JDBC Template with Eclipse IDE and Tomcat. Whenever

  • 0

My app uses Struts2 MVC, Spring JDBC Template with Eclipse IDE and Tomcat. Whenever I change a class code, I have to restart the Tomcat, which waste about 15-20 seconds every time.

I have configured hot-deployment i.e. on-java-class-change, context reloaded automatically, but it often fails, and I have to restart the Tomcat.

What I wish is:

  1. When I make a change to JSP, it should be auto loaded, instead of on-1st-request.

  2. When a java class is changed and build, only that class should be loaded, without restarting Tomcat, even whole context should not restart or reload.

If someone have used Jetty, please share – does Jetty provide better solution to these issues.

In PHP, you make a change in script, and access that page, its ready. I just wish it in Java.

  • 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-05-19T03:44:37+00:00Added an answer on May 19, 2026 at 3:44 am

    We are using embedded Jetty at work and it’s a blast. See http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty for a guide on embedding Jetty.

    The startup time on the Jetty side is extremely fast (1-2 seconds). In our case though spring takes a lot of time to initialize still.

    It is easy to configure Jetty to reload jsps automatically just point it to a directory and not war file and jsps will reload automatically, something like this:

    public class OneWebAppUnassembled
    {
        public static void main(String[] args) throws Exception
        {
            Server server = new Server(8080);
    
            WebAppContext context = new WebAppContext();
            context.setDescriptor(webapp+"/WEB-INF/web.xml");
            context.setResourceBase("../test-jetty-webapp/src/main/webapp");
            context.setContextPath("/");
            context.setParentLoaderPriority(true);
    
            server.setHandler(context);
    
            server.start();
            server.join();
        }
    }
    

    Class reloading is possible using hot swap, I don’t know if there are ready solutions for when hot swap doesn’t work.

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

Sidebar

Related Questions

I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I have created a setup project in VS2008. My WinForms app uses .NET 2.0,
We have an app that uses simple one way binding with a GridView to
I have a Cocoa app that uses a WebView to display an HTML interface.
I have a C# app which uses a System.Diagnostics.Process to run another exe. I
I have a simple app that uses an SQL Express 2005 database. When the
I have a rails app that uses heavily js (over 1MB total). I'd like
I have Flex/AIR app that connects to a tomcat server via BlazeDS. I'm not
My app uses two databases (separate files). To handle these databases I have created
My app uses a TreeMap to keep data sorted and have log(n) lookups &

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.