[英].war file won't be updated
I have an old project, built using Google Web Toolkit in Eclipse. 我有一个旧项目,使用Eclipse中的Google Web Toolkit构建。 When I created it, I did the following steps, in order to get the .war file
创建它时,我执行了以下步骤,以便获取.war文件
Run the following Ant script 运行以下Ant脚本
<project name="The" basedir="." default="default"> <target name="default" depends="buildwar,deploy"></target> <target name="buildwar"> <war basedir="war" destfile="The.war" webxml="war/WEB-INF/web.xml"> <exclude name="WEB-INF/**" /> <webinf dir="war/WEB-INF/"> <include name="**/*.jar" /> </webinf> </war> </target> <target name="deploy"> <copy file="The.war" todir="." /> </target> </project>
Get the .war file 获取.war文件
Now, I had to change a port in my project, so I changed it in my code and did the same steps in order to get the .war 现在,我不得不在项目中更改端口,因此我在代码中更改了端口,并执行了相同的步骤以获取.war
However, when I deploy my updated project in Tomcat, it still makes requests to the old port number (I found this reading catalina.out) 但是,当我在Tomcat中部署更新的项目时,它仍然向旧端口号发出请求(我发现此读数为catalina.out)
So, What can I do in order to get a new, fresh .war ??? 因此,我该怎么做才能获得新的,新的.war ???
You don't mention it, but did you change the ports in tomcat? 您没有提及它,但是您是否更改了Tomcat中的端口? I assume you did, but I just want to cover all possibilities.
我以为您做到了,但我只想涵盖所有可能性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.