在Eclipse上新建“Dynamic Web Project”时需要新建服务器运行环境时出现问题---->
此时需要修改catalina.jar中ServerInfo.properties中相应字段,并重新打包。
o patch you can do the following:
cd [tomcat or tomee home]/lib
mkdir catalina
cd catalina/
unzip ../catalina.jar
vim org/apache/catalina/util/ServerInfo.properties
Make sure it looks like the following (the version numbers all need to start with 8.0):
server.info=Apache Tomcat/8.0.0 server.number=8.0.0 server.built=May 11 2016 21:49:07 UTC
Then:
jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties
cd ..
rm -rf catalina
如果在命令行书jar 命令出现如下问题
此时需要到~/jar/bin的目录下执行jar命令。
原问题的解决链接: http://stackoverflow.com/questions/37024876/how-to-use-tomcat-8-5-x-and-tomee-7-x-with-eclips
转载于:https://blog.51cto.com/tdppro/1836912