我正在尝试在前面提到的tomcat应用服务器上部署一个WAR。然而,以下是我在尝试使用tomcat管理器/ ant脚本进行部署时得到的错误。
java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: Error initializaing : java.lang.IllegalArgumentException: The archive [jar:file:/var/lib/tomcat6/webapps/afgretail.war!/] is malformed and will
$ ant deploy
Buildfile: /Users/simpatico/SOLR_HOME/build.xml
deploy:
BUILD FAILED
/Users/simpatico/SOLR_HOME/build.xml:531: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/deploy?path=%2Fsolr
at sun.net.www.protocol.http.HttpURLConnection.get
我使用Ant将war部署到Tomcat服务器,但它给出了以下错误:
BUILD FAILED
/home/deploy/Documents/Work/Deploy_Wars/xrepo/deployment/build.xml:37: The following error occurred while executing this line:
/home/deploy/Documents/Work/Deploy_Wars/xrepo/deployment/ant_scripts/deploy_wars.xml:36: The following error occur
我有一个ant脚本,它在开始时执行一些检查,然后编译代码并将其部署到tomcat服务器。build-war-deploy过程的脚本如下所示:
<target name="build-war-deploy" depends="clean-up,gwtc,check-settings" description="Package GWT app to web archive and deploy to web server">
<war basedir="${war.dir}" destfile="${depl
在eclipse中,为了运行我的动态web应用程序,我执行以下操作:
right-click on the project >> Run as >> Run on server
然后将应用程序部署到tomcat上。
现在,我希望tomcat使用我的ant脚本来构建war,然后部署该war。
我如何在eclipse中做到这一点?
请注意,我在apache tomcat 8.5.56上的docker容器中运行了一个.war应用程序,一切工作正常,但是当我在Kubernetes上创建部署容器时,我可以访问我的应用程序欢迎页面:我看到错误消息
HTTP Status 404 – Not Found
Type Status Report
Message The requested resource [/SmartClass] is not available
Description The origin server did not find a current representation for the target