java -jar tomcat install报告成功但不解包war文件

时间:2015-04-10 09:14:35

标签: java tomcat

我有一个我最近接手的申请表。它是在Windows环境(Windows Server 2008 R2)中运行在Tomcat 7中的Web应用程序。安装解压缩到自己的文件夹结构[appName] [版本号] \ tomcat ...然后我卸载并重新安装服务以指向新版本。这就是它被移交给我的方式,我不是Tomcat的专家。

直到大约一周或两年前,当我在UAT上完成最后一次安装时,一切都很顺利。我运行了java-jar [appname] -installer- [version] .jar,并将应用程序安装到结构中的新文件夹中。昨天我们把最新版本直播,war文件没有解压缩。最后一条消息是成功消息,但是虽然创建了新的文件夹结构,但E:[appname] [版本号] \ tomcat \ webapps文件夹包含一个解压缩的ROOT.war。

我现在确信问题出现在环境中,因为它现在发生在以前很好的测试服务器上,而且我也尝试使用之前版本的应用程序,这也遇到了同样的问题。

我确定Tomcat的配置没有任何变化,这让我想知道它是否是导致问题的Windows更新问题?

有没有人有任何想法?我已经复制了以下虚假成功的输出以防万一...我会尝试获取最近安装了哪些更新的详细信息,但我希望有人可能有同样的问题(或者能够指向明显缺少的成分,挥动魔法想要或......!)

非常感谢你能提供帮助

----
thisclass: Installer
installerFileName: /E:/Install/0.6.6/[appname]-installer-0.6.6.jar
Adding environment hostname: [SERVERNAME]

Reading installation manifest:
==============================
Manifest Key:Installation-Replacement-Files, value:tomcat/lib/app.properties
Manifest Key:Installation-Property-Order, value:java,env,file
Manifest Key:Installation-Name, value:[appcode]
Manifest Key:Build-Jdk, value:1.7.0_60
Manifest Key:Built-By, value:username
Manifest Key:Manifest-Version, value:1.0
Manifest Key:Installation-Version, value:0.6.6
Manifest Key:Created-By, value:Apache Maven
Manifest Key:Installation-Codebase-Files, value:
Manifest Key:Build-Date, value:20150309-1120
Manifest Key:Main-Class, value:Installer
Manifest Key:Archiver-Version, value:Plexus Archiver

Starting installation:
======================
Installation dir: E:\[appname]\0.6.6\
Installing: tomcat/webapps/ROOT.war
Installing: tomcat/lib/logback.xml
Installing: tomcat/lib/app.properties
Updating tomcat/lib/app.properties
+ Installation changed:
product.name=@@product.name@@
to:
product.name=[appname]
+ Installation changed:
product.version=@@product.version@@
to:
product.version=0.6.6
+ Installation changed:
install.date=@@install.date@@
to:
install.date=Fri Apr 10 09:45:51 BST 2015
Installing: service.bat
Installing: startup.bat
Installing: shutdown.bat
Installing: tomcat/conf/server.xml
Installing: tomcat/conf/web.xml

Congratulations, installation has been successful

1 个答案:

答案 0 :(得分:1)

tomcat需要标记unpackWARs = true以及autoDeploy = true这是在server.xml中完成的。

该日志文件是"安装程序"的输出。 (不是tomcat),这似乎是夸张的过分btw。

tomcat日志说什么?我不认为这是一个Windows conf问题,很可能安装程序已经改变。

相关问题