user1418717
user1418717

Reputation: 425

Tomcat is not loading new class(compiled version of .java file and not JSP file)

In Linux, Tomcat is not loading new class(compiled version of .java file and not JSP file).

What I did:

  1. Overridden class file.
  2. Stopped and started the server, no change in expected behavior.
  3. Deleted old file and placed new one.
  4. Stopped and started the server, no change in expected behavior.
  5. Made a change in source, complied and overridden class file.
  6. Stopped and started the server, no change in expected behavior.

My deployment is in exploded format. Same change is reflected under Windows 8. Earlier, I did update few classes(compiled version of .java file and not JSP file) and restarted the server which reflected the changes as expected.

Environment: Tomcat 7.0 under Amazon Linux AMI release 2013

Please help resolve the problem. Thanks in advance!

Upvotes: 1

Views: 2688

Answers (1)

Thom
Thom

Reputation: 15042

Whenever you have strange tomcat issues like this, the first thing to do is stop tomcat, delete the work directory, delete the deployment directories. Then re-deploy the war file and restart.

Always do this before trouble-shooting further as it usually fixes weird deployment issues.

Upvotes: 2

Related Questions