404 Not Found: Requested route ('firedetect.bosh-lite.com') does not exist.


Deepak Arn <arn.deepak1@...>
 

I have deployed the java web application on local cloud foundry. While running the application, getting 404 not found
I have checked the recent logs:

cf logs FireDetect --recent
Connected, dumping recent logs for app FireDetect in org system / space Inter-PC as admin...

2017-04-03T22:18:59.35-0400 [API/0] OUT Created app with guid 829bbb00-93ea-4205-bd54-6d877cb9336c
2017-04-03T22:18:59.88-0400 [API/0] OUT Updated app with guid 829bbb00-93ea-4205-bd54-6d877cb9336c ({"route"=>"27ee5901-3836-4f1c-9b3a-38c43f5b4997", :verb=>"add", :relation=>"routes", :related_guid=>"27ee5901-3836-4f1c-9b3a-38c43f5b4997"})
2017-04-03T22:19:12.63-0400 [API/0] OUT Updated app with guid 829bbb00-93ea-4205-bd54-6d877cb9336c ({"state"=>"STARTED"})
2017-04-03T22:19:12.75-0400 [STG/0] OUT Downloading dotnet_core_buildpack...
2017-04-03T22:19:12.95-0400 [STG/0] OUT Downloading nodejs_buildpack...
2017-04-03T22:19:12.95-0400 [STG/0] OUT Downloading python_buildpack...
2017-04-03T22:19:12.95-0400 [STG/0] OUT Downloading go_buildpack...
2017-04-03T22:19:14.85-0400 [STG/0] OUT Downloading php_buildpack...
2017-04-03T22:19:53.18-0400 [STG/0] OUT Downloaded staticfile_buildpack (2.6M)
2017-04-03T22:19:53.18-0400 [STG/0] OUT Downloading ruby_buildpack...
2017-04-03T22:24:08.41-0400 [STG/0] OUT Downloaded python_buildpack (296.8M)
2017-04-03T22:24:08.41-0400 [STG/0] OUT Downloading binary_buildpack...
2017-04-03T22:24:47.28-0400 [STG/0] OUT Downloaded go_buildpack (340.7M)
2017-04-03T22:24:59.45-0400 [STG/0] OUT Downloaded ruby_buildpack (280.2M)
2017-04-03T22:25:12.93-0400 [STG/0] OUT Downloaded php_buildpack (332.7M)
2017-04-03T22:25:34.85-0400 [STG/0] OUT Downloaded dotnet_core_buildpack (437.4M)
2017-04-03T22:25:35.05-0400 [STG/0] OUT Downloaded binary_buildpack (49.1K)
2017-04-03T22:25:35.09-0400 [STG/0] OUT Creating container
2017-04-03T22:25:42.51-0400 [STG/0] OUT Successfully created container
2017-04-03T22:25:43.01-0400 [STG/0] OUT Downloading app package...
2017-04-03T22:25:43.41-0400 [STG/0] OUT Downloaded app package (310.5K)
2017-04-03T22:25:43.41-0400 [STG/0] OUT Staging...
2017-04-03T22:26:45.84-0400 [STG/0] OUT -----> Java Buildpack Version: v3.14 | https://github.com/cloudfoundry/java-buildpack.git#d5d58c6
2017-04-03T22:26:52.12-0400 [STG/0] OUT -----> Downloading Open Jdk JRE 1.8.0_121 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_121.tar.gz (5.9s)
2017-04-03T22:26:53.67-0400 [STG/0] OUT Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s)
2017-04-03T22:26:59.87-0400 [STG/0] OUT -----> Downloading Open JDK Like Memory Calculator 2.0.2_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-2.0.2_RELEASE.tar.gz (6.1s)
2017-04-03T22:26:59.90-0400 [STG/0] OUT Memory Settings: -Xms681574K -XX:MetaspaceSize=104857K -Xss349K -Xmx681574K -XX:MaxMetaspaceSize=104857K
2017-04-03T22:27:00.15-0400 [STG/0] OUT -----> Downloading Container Certificate Trust Store 2.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-2.0.0_RELEASE.jar (0.2s)
2017-04-03T22:27:00.91-0400 [STG/0] OUT Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.7s)
2017-04-03T22:27:07.23-0400 [STG/0] OUT -----> Downloading Tomcat Instance 8.0.43 from https://java-buildpack.cloudfoundry.org/tomcat/tomcat-8.0.43.tar.gz (6.3s)
2017-04-03T22:27:07.45-0400 [STG/0] OUT Expanding Tomcat Instance to .java-buildpack/tomcat (0.2s)
2017-04-03T22:27:07.56-0400 [STG/0] OUT -----> Downloading Tomcat Lifecycle Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-lifecycle-support/tomcat-lifecycle-support-2.5.0_RELEASE.jar (0.1s)
2017-04-03T22:27:12.67-0400 [STG/0] OUT -----> Downloading Tomcat Logging Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-logging-support/tomcat-logging-support-2.5.0_RELEASE.jar (5.1s)
2017-04-03T22:27:12.79-0400 [STG/0] OUT -----> Downloading Tomcat Access Logging Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-access-logging-support/tomcat-access-logging-support-2.5.0_RELEASE.jar (0.1s)
2017-04-03T22:27:51.62-0400 [STG/0] OUT Exit status 0
2017-04-03T22:27:51.62-0400 [STG/0] OUT Staging complete
2017-04-03T22:27:51.62-0400 [STG/0] OUT Uploading droplet, build artifacts cache...
2017-04-03T22:27:51.62-0400 [STG/0] OUT Uploading build artifacts cache...
2017-04-03T22:27:51.62-0400 [STG/0] OUT Uploading droplet...
2017-04-03T22:27:57.11-0400 [STG/0] OUT Uploaded build artifacts cache (52.7M)
2017-04-03T22:28:06.15-0400 [STG/0] OUT Uploaded droplet (52.1M)
2017-04-03T22:28:06.17-0400 [STG/0] OUT Uploading complete
2017-04-03T22:28:06.40-0400 [STG/0] OUT Destroying container
2017-04-03T22:28:09.78-0400 [STG/0] OUT Successfully destroyed container
2017-04-03T22:28:15.00-0400 [CELL/0] OUT Creating container
2017-04-03T22:28:15.73-0400 [CELL/0] OUT Successfully created container
2017-04-03T22:28:22.72-0400 [CELL/0] OUT Starting health monitoring of container
2017-04-03T22:28:36.65-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Initializing ProtocolHandler ["http-nio-8080"]
2017-04-03T22:28:36.66-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Initialization processed in 1663 ms
2017-04-03T22:28:36.71-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Starting service Catalina
2017-04-03T22:28:36.72-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardEngine INFO Starting Servlet Engine: Apache Tomcat/8.0.43
2017-04-03T22:28:36.75-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.HostConfig INFO Deploying web application directory /home/vcap/app/.java-buildpack/tomcat/webapps/ROOT
2017-04-03T22:28:37.53-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.jasper.servlet.TldScanner INFO At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2017-04-03T22:28:37.65-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.HostConfig INFO Deployment of web application directory /home/vcap/app/.java-buildpack/tomcat/webapps/ROOT has finished in 900 ms
2017-04-03T22:28:37.65-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Starting ProtocolHandler ["http-nio-8080"]
2017-04-03T22:28:37.67-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.tomcat.util.net.NioSelectorPool INFO Using a shared selector for servlet write/read
2017-04-03T22:28:37.69-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Server startup in 1028 ms
2017-04-03T22:28:39.42-0400 [CELL/0] OUT Container became healthy
2017-04-03T22:30:46.29-0400 [APP/PROC/WEB/0]OUT hey i m here
2017-04-03T22:30:46.30-0400 [APP/PROC/WEB/0]OUT Thread1 running
2017-04-03T22:30:46.30-0400 [APP/PROC/WEB/0]OUT Exception caught
2017-04-03T22:30:46.30-0400 [APP/PROC/WEB/0]OUT selected source = sf(a)192.168.188.131:9003
2017-04-03T22:30:46.49-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-04T02:30:46.229+0000] "GET / HTTP/1.1" 200 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36" "10.244.0.34:33632" "10.244.16.4:61000" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"d5ac0346-2133-47ba-5aee-e4485154f298" response_time:0.136038798 app_id:"829bbb00-93ea-4205-bd54-6d877cb9336c" app_index:"0"
2017-04-03T22:30:47.38-0400 [APP/PROC/WEB/0]ERR sf(a)192.168.188.131:9003 died - exiting (java.net.ConnectException: Connection refused (Connection refused))
2017-04-03T22:30:47.38-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Pausing ProtocolHandler ["http-nio-8080"]
2017-04-03T22:30:47.59-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Stopping service Catalina
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.loader.WebappClassLoaderBase WARNING The web application [ROOT] appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Object.wait(Native Method)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Object.wait(Object.java:502)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.packet.PhoenixSource.awaitStartup(Unknown Source)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.message.MoteIF.init(Unknown Source)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.message.MoteIF.<init>(Unknown Source)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT com.srk.pkg.MsgReader.<init>(MsgReader.java:73)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT com.srk.pkg.MsgReader$Deepak.run(MsgReader.java:43)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Thread.run(Thread.java:745)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.loader.WebappClassLoaderBase WARNING The web application [ROOT] appears to have started a thread named [Thread-5] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Object.wait(Native Method)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Thread.join(Thread.java:1249)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Thread.join(Thread.java:1323)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:106)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:46)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Shutdown.runHooks(Shutdown.java:123)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Shutdown.sequence(Shutdown.java:167)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Shutdown.exit(Shutdown.java:212)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Runtime.exit(Runtime.java:109)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.System.exit(System.java:971)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.packet.PhoenixSource.error(Unknown Source)
2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.packet.PhoenixSource.run(Unknown Source)
2017-04-03T22:30:47.66-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Stopping ProtocolHandler ["http-nio-8080"]
2017-04-03T22:30:47.67-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Destroying ProtocolHandler ["http-nio-8080"]
2017-04-03T22:30:47.69-0400 [APP/PROC/WEB/0]OUT Exit status 2
2017-04-03T22:30:47.82-0400 [CELL/0] OUT Exit status 0
2017-04-03T22:30:47.85-0400 [CELL/0] OUT Destroying container
2017-04-03T22:30:49.58-0400 [API/0] OUT Process has crashed with type: "web"
2017-04-03T22:30:49.88-0400 [API/0] OUT App instance exited with guid 829bbb00-93ea-4205-bd54-6d877cb9336c payload: {"instance"=>"", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 2 error(s) occurred:\n\n* Exited with status 2\n* cancelled\n* cancelled", "crash_count"=>1, "crash_timestamp"=>1491273047827277685, "version"=>"a6d981d9-72eb-4169-8808-5925218cf408"}
2017-04-03T22:30:49.96-0400 [CELL/0] OUT Successfully destroyed container
2017-04-03T22:30:50.04-0400 [CELL/0] OUT Creating container
2017-04-03T22:30:50.89-0400 [CELL/0] OUT Successfully created container
2017-04-03T22:30:53.04-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-04T02:30:47.829+0000] "GET /favicon.ico HTTP/1.1" 502 0 67 "http://firedetect.bosh-lite.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36" "10.244.0.34:33632" "10.244.16.4:61000" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"29e17fac-ef03-4e5e-693c-a24052fd3046" response_time:5.216576128 app_id:"829bbb00-93ea-4205-bd54-6d877cb9336c" app_index:"0"
2017-04-03T22:30:56.68-0400 [CELL/0] OUT Starting health monitoring of container

Anyone please suggest

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.