U
U
Ulyan Romanov2015-09-20 00:50:53
Java
Ulyan Romanov, 2015-09-20 00:50:53

How to run demo service on tomcat?

  1. Note : Create a new client with the following redirect uri -
    localhost:8080/BasicWebDemo/handleInstagramToken - as I understand it, you just had to register the application, where we specify this URL for the response.
  2. Import the maven project in your favorite IDE. -Imported libraries.
  3. Open the config.properties in src/main/webapp/resources folder.
    Replace the clientId, clientSecret and callbackUrl with the values ​​used during Client registration on Instagram Developer website. - put in your details
  4. Build the project and deploy the war file in your web server. - assembled and packaged in war, then threw \apache-tomcat-8.0.26\webapps along the path, restarted, hangs in the manager, but issues 404
  5. Open the following URL : localhost:8080/BasicWebDemo - 404 error

Please help, because for the first time I work with a web server and for the first time for the API, using third-party libraries.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasilij Aleksashin, 2015-09-24
@TerraMorf

The 404 message indicates that the server has taken off. Servlets are required to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question