如何通过替换tomcat中的类文件来反映更改? [英] how to reflect changes by replacing class files in tomcat?

查看:154
本文介绍了如何通过替换tomcat中的类文件来反映更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java应用程序。我所拥有的只是课程文件集。想要用一个新的类文件替换一个类文件。用新的旧文件替换旧的文件并重新设置tomcat不能反映所做的更改。我怎样才能做到这一点?我知道这不是推荐的方法,但是我所拥有的只是一个新的类文件。

I have a java application. All I have with me is a set on class files. Iwant to replace one class file with a new one. Replacing the old class file with the new one and restrting tomcat is not reflecting the changes. How can I do this? I know its not a recommended way, but all I have is just one new class file.

推荐答案

也许您的应用程序的文件位于多个位置,而您并没有替换该类文件。正确的部署?确保Tomcat是否正在自动扩展要在文件扩展文件夹中替换的WAR。如果您的应用程序部署在 webapps 之外的其他地方,请仔细检查< Context> 指向其文档的位置基本。

Perhaps your application's files are in multiple locations, and you aren't replacing the class file in the correct deployment? Make sure if Tomcat is auto-expanding the WAR that you are replacing it in the expanded folder of files. If you app is deployed somewhere besides webapps, double-check where your <Context> is pointing to for its doc base.

这篇关于如何通过替换tomcat中的类文件来反映更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆