-
-
Save okeefm/1006332 to your computer and use it in GitHub Desktop.
release-webapp: | |
BUILD FAILED | |
/Users/s-mokeef/code/intermine_0_96/imbuild/application.xml:124: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080//manager/deploy?path=%2Fmalariamine | |
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) | |
at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:223) | |
at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:201) | |
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) | |
at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) | |
at org.apache.tools.ant.Task.perform(Task.java:348) | |
at org.apache.tools.ant.Target.execute(Target.java:390) | |
at org.apache.tools.ant.Target.performTasks(Target.java:411) | |
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) | |
at org.apache.tools.ant.Project.executeTarget(Project.java:1368) | |
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) | |
at org.apache.tools.ant.Project.executeTargets(Project.java:1251) | |
at org.apache.tools.ant.Main.runBuild(Main.java:809) | |
at org.apache.tools.ant.Main.startAnt(Main.java:217) | |
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) | |
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) | |
Total time: 43 seconds |
release-webapp: | |
[tomcat-deploy] FAIL - Failed to deploy application at context path /malariamine | |
BUILD FAILED | |
/Users/s-mokeef/code/intermine_0_96/imbuild/application.xml:124: FAIL - Failed to deploy application at context path /malariamine |
# Web application deployment properties | |
# location of tomcat server and path of webapp - e.g. access http://localhost:8080/malariamine | |
webapp.deploy.url=http://localhost:8080/ | |
webapp.path=malariamine | |
# tomcat username and password needed to deploy webapp | |
webapp.manager= manager | |
webapp.password= H3GjVjrt | |
# 'Home' link | |
webapp.baseurl=http://localhost:8080 |
<!-- RELEASE / REMOVE FROM TOMCAT --> | |
<target name="release-webapp" depends="-init-properties, init"> | |
<taskdef name="tomcat-deploy" classname="org.apache.catalina.ant.DeployTask" | |
classpath="${webapp.xml.basedir}/lib/catalina-ant.jar"/> | |
<tomcat-deploy url="${webapp.deploy.url}/manager/text" | |
username="${webapp.manager}" | |
password="${webapp.password}" | |
path="/${webapp.path}" | |
war="file://${dist.war}"/> | |
</target> | |
<target name="remove-webapp" depends="-init-properties, init"> | |
<taskdef name="tomcat-undeploy" classname="org.apache.catalina.ant.UndeployTask" | |
classpath="${webapp.xml.basedir}/lib/catalina-ant.jar"/> | |
<tomcat-undeploy url="${webapp.deploy.url}/manager/text" | |
username="${webapp.manager}" | |
password="${webapp.password}" | |
path="/${webapp.path}" | |
failOnError="false"/> | |
</target> | |
<target name="start-webapp" depends="-init-properties, init"> | |
<taskdef name="tomcat-start" classname="org.apache.catalina.ant.StartTask" | |
classpath="${webapp.xml.basedir}/lib/catalina-ant.jar"/> | |
<tomcat-start url="${webapp.deploy.url}/manager/text" | |
username="${webapp.manager}" | |
password="${webapp.password}" | |
path="/${webapp.path}" | |
failOnError="true"/> | |
</target> | |
<target name="stop-webapp" depends="-init-properties, init"> | |
<taskdef name="tomcat-stop" classname="org.apache.catalina.ant.StopTask" | |
classpath="${webapp.xml.basedir}/lib/catalina-ant.jar"/> | |
<tomcat-stop url="${webapp.deploy.url}/manager/text" | |
username="${webapp.manager}" | |
password="${webapp.password}" | |
path="/${webapp.path}" | |
failOnError="false"/> | |
</target> |
404 Not found | |
The page you tried to access (/manager/deploy) does not exist. | |
The Manager application has been re-structured for Tomcat 7 onwards and some of URLs have changed. All URLs used to access the Manager application should now start with one of the following options: | |
* /manager/html for the HTML GUI | |
* /manager/text for the text interface | |
* /manager/jmxproxy for the JMX proxy | |
* /manager/status for the status pages | |
Note that the URL for the text interface has changed from "/manager" to "/manager/text". | |
You probably need to adjust the URL you are using to access the Manager application. However, there is always a chance you have found a bug in the Manager application. If you are sure you have found a bug, and that the bug has not already been reported, please report it to the Apache Tomcat team. |
While I releasing the webapps.displays Error message as given below. How to solve it?
release-webapp:
[tomcat-deploy] FAIL - Failed to deploy application at context path /malariamine
BUILD FAILED
/home/it/Documents/intermine_Latest/imbuild/application.xml:157: FAIL - Failed to deploy application at context path /malariamine
at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:258)
at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:201)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
How to solve this error?whether the problem occurs on ant/mine project?