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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:02:55+00:00 2026-05-27T09:02:55+00:00

I have an application written with Struts2 and Spring for DI and I’m using

  • 0

I have an application written with Struts2 and Spring for DI and I’m using Tomcat 6 as container. Assuming I have packaged the application as my-application.war after deployment on Tomcat I can access it through http://my-host/my-application.
When I delete the .war file, Tomcat’s supposed to undeploy the application and according to here When I try the http://my-host/my-application I should get:

HTTP Status 404

but instead I get:

HTTP Status 503 - This application is not currently available

When I redeploy the application to same context path I get a weird exception:

Unable to instantiate Action, [ActionClass], defined for '' in 
namespace '/' Failed to convert value of type [MyClass] to required type 
[MyClass] for property 'myClass': no matching editors or conversion strategy 
found

in which ActionClass has a property myClass of type MyClass which is injected by Spring and by default is a singleton. It’s weird because type of both objects is the same. I suspect the application don’t get undeployed completely in the first place cause when I restart Tomcat the scenario will be repeated. I would appreciate any help on finding the possible cause of this.

  • 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-27T09:02:56+00:00Added an answer on May 27, 2026 at 9:02 am

    Well I think I found the answer. As I guessed the problem was with the improper undeployment.

    It seems that deploying and undeploying an application without restarting the tomcat is a tricky business. When you deploy your application Tomcat classloader loads the classes in of the application and once they’re loaded it seems they won’t be unloaded with undeployment. And constantly deploying and undeploying an application will cause a serious memory leak. This case is specially true with singletons since the remained version of object in JVM doesn’t match the newly deployed class. Hence the error I got above.

    The safe path seems to be restarting Tomcat each time you redeploy any application.
    Sources helped me find these information:

    • What makes hot deployment a "hard problem"?
    • Tomcat: hot deploying new jars
    • This post on CodeRanch
    • And some more sources found on Google
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application written in Java (Spring, Hibernate/JPA, Struts2) where users can
I'm interested in porting an existing application which was written using Spring/Struts2/Hibernate to GAE.
I'm using Struts2, Spring, and Hibernate. I have written a simple Excel file called
I have an application written in Spring 3.0 hooked up using Hibernate to a
We have an application written in C#, using .NET Framework 3.0 or 3.5 or
I have web application written in java using Eclipse. It has just one servlet
I have an application written using Prism 4.0. It has lots of Views which
I have an application written with pyside where a user can load an image,
I have application written in Java that is using EJB3 + Toplink. I'm using
We have an application written in ActionScript 3 using Flash. Now it's time 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.