Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

UrbanCode×

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Deploy war file on tomcat failed

27000187PU gravatar image
Question by 87PU_kerry_xue  (21) | Mar 11, 2014 at 06:54 PM urbancodedeployucdtomcattutorial

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

People who like this

  0   Show 3
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
27000187PU gravatar image 87PU_kerry_xue (21)   Mar 11, 2014 at 06:57 PM 0
Share

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

270005TEAJ gravatar image kschawla (66)   Mar 17, 2014 at 02:38 PM 0
Share

Are you running tomcat as root?

2700069DYA gravatar image kayakMike (76)   Mar 29, 2014 at 02:23 PM 0
Share

Running tomcat as root would matter. The tasks to upload these would transfere them as the root user and file permissions would be irrelevant.

2 answers

  • Sort: 
27000458X4 gravatar image

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?

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
27000187PU gravatar image 87PU_kerry_xue (21)   Mar 27, 2014 at 12:17 PM 0
Share

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!

270001J2W2 gravatar image

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

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

1 person is following this question.

Answers

Answers & comments

Related questions

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

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges