I follow the JPetStore tutorial and the deploy war file failed with this error message
ManagerURL : http://localhost:8180/manager/html ManagerUsername : administrator Tomcat context : /JPetStore War File : ./JPetStore.war Context XML: Error deploying! : java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8180/manager/html/deploy?path=%2FJPetStore at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:264) at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:210) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at groovy.util.AntBuilder.performTask(AntBuilder.java:260) at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220) at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147) at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170) at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at deploy.run(deploy.groovy:61) at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:266) at groovy.lang.GroovyShell.run(GroovyShell.java:229) at groovy.lang.GroovyShell.run(GroovyShell.java:159) at groovy.ui.GroovyMain.processOnce(GroovyMain.java:550) at groovy.ui.GroovyMain.run(GroovyMain.java:337) at groovy.ui.GroovyMain.process(GroovyMain.java:323) at groovy.ui.GroovyMain.processArgs(GroovyMain.java:120) at groovy.ui.GroovyMain.main(GroovyMain.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:108) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8180/manager/html/deploy?path=%2FJPetStore at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:225) ... 31 more
When I tryed with http://localhost:8180/manager/html/deploy?path=%2FJPetStore, I got 403 access denied.
However, I do have add the <user username="administrator" password="password" roles="manager-gui,manager-script"/> in the tomcat-users.xml
Running tomcat as root would matter. The tasks to upload these would transfere them as the root user and file permissions would be irrelevant.
Answer by Govardhan335009 (1) | Mar 27, 2014 at 05:46 AM
Sorry am not answering your question, here my query is I am able to deploy application.war module into Liberty profile, but application is not able to access when we deploy .war module, the same is working when we modify it to application.war folder(not file).
Is any one has idea on why Liberty Profile is behaving like this?
Thanks for take a look for this issue. Actually it works for me after I recreate the process. I am not sure why and how it is fixed, but it works now!
Answer by Jirong_Hu (77) | Mar 09, 2017 at 12:49 PM
It's noted in the doc: https://www.ibm.com/support/knowledgecenter/SS4GSP_6.1.3/com.ibm.udeploy.tutorial.doc/topics/webapp_application.html
for Tomcat version 7, specify http://localhost:8081/manager/text
Why is deployment of Tomcat chef cookbook in UCD failing to find available version of admin webapps 0 Answers
Deploy JPetStore process failing at Start Tomcat 2 Answers
Failure to run "Deploy JPetStore" process from tutorial 2 Answers
Deploy JPetStore process failing at Undeploy / Deploy Application 1 Answer
losing connectivity between server and agent - does the job continue ? 1 Answer