无法在CF中托管简单的HelloWorld应用程序或通过本地主机访问

问题描述 投票:0回答:2

我正在学习“S / 4HANA Cloud SDK:创建和交付Cloud-Native SAP S / 4HANA扩展”课程

项目的构建和安装按预期工作。但在尝试做mvn tomee:run应用程序时,无法在localhost中打开。既不能在CF帐户中托管应用程序,也会在启动时遇到错误。

附上CF的日志。

2019-03-27T11:25:48.952+0000 [API/6] OUT Created app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:25:54.116+0000 [API/28] OUT Updated app with guid b07d82eb-c0a9-4778-97a3-0027cb123871 ({"route"=>"e986a5a5-d86c-4fbe-a866-f388a4c33b5f", :verb=>"add", :relation=>"routes", :related_guid=>"e986a5a5-d86c-4fbe-a866-f388a4c33b5f"})

2019-03-27T11:25:59.566+0000 [API/11] OUT Uploading bits for app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:26:08.930+0000 [API/19] OUT Creating build for app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:26:09.191+0000 [API/19] OUT Updated app with guid b07d82eb-c0a9-4778-97a3-0027cb123871 ({"state"=>"STARTED"})

2019-03-27T11:26:09.504+0000 [STG/0] OUT Downloading sap_java_buildpack...

2019-03-27T11:26:09.534+0000 [STG/0] OUT Downloaded sap_java_buildpack

2019-03-27T11:26:09.535+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 creating container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:10.084+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 successfully created container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:10.280+0000 [STG/0] OUT Downloading app package...

2019-03-27T11:26:10.983+0000 [STG/0] OUT Downloaded app package (19.9M)

2019-03-27T11:26:11.036+0000 [STG/0] OUT Compiling Java application...

2019-03-27T11:26:12.795+0000 [STG/0] OUT Java XS Buildpack Version: 1.8.6

2019-03-27T11:26:12.810+0000 [STG/0] OUT Downloaded 'TomEE Runtime', version '1.7.5-jaxrs' in 0.2 s.

2019-03-27T11:26:13.236+0000 [STG/0] OUT Downloaded 'XS Authenticator', version '1.8.4' in 0.0 s.

2019-03-27T11:26:13.239+0000 [STG/0] OUT Downloaded 'SAPJWT', version '1.1.20' in 0.0 s.

2019-03-27T11:26:13.245+0000 [STG/0] OUT Downloaded 'SAPJVM Statistics Provider', version '1.8.8' in 0.0 s.

2019-03-27T11:26:13.250+0000 [STG/0] OUT Downloaded 'SAP JVM Memory Calculator', version '1.8.8' in 0.0 s.

2019-03-27T11:26:13.317+0000 [STG/0] OUT Downloaded 'XS Hystrix Plugin Hook', version '1.8.8' in 0.1 s.

2019-03-27T11:26:13.329+0000 [STG/0] OUT Downloaded 'JVMKill', version '1.12.0.RELEASE' in 0.0 s.

2019-03-27T11:26:21.716+0000 [STG/0] OUT Exit status 0

2019-03-27T11:26:21.716+0000 [STG/0] OUT Uploading droplet, build artifacts cache...

2019-03-27T11:26:21.716+0000 [STG/0] OUT Uploading droplet...

2019-03-27T11:26:21.716+0000 [STG/0] OUT Uploading build artifacts cache...

2019-03-27T11:26:21.752+0000 [STG/0] OUT Uploaded build artifacts cache (132B)

2019-03-27T11:26:23.772+0000 [API/9] OUT Creating droplet for app with guid b07d82eb-c0a9-4778-97a3-0027cb123871

2019-03-27T11:26:32.113+0000 [STG/0] OUT Uploaded droplet (130.1M)

2019-03-27T11:26:32.279+0000 [STG/0] OUT Uploading complete

2019-03-27T11:26:32.653+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 stopping instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:32.653+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 destroying container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:33.440+0000 [STG/0] OUT Cell a1379abe-e72b-472c-a795-54efe92805e0 successfully destroyed container for instance 810291d7-8da8-4265-b3d1-b59432076711

2019-03-27T11:26:34.068+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e creating container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:34.559+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e successfully created container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:38.628+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:26:38.705+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:26:38.715+0000 [APP/PROC/WEB/0] OUT Exit status 127

2019-03-27T11:26:39.015+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e stopping instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:39.015+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e destroying container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:39.081+0000 [API/17] OUT Process has crashed with type: "web"

2019-03-27T11:26:39.103+0000 [API/17] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"0e9c9ab9-7f0e-4ff3-4291-a01f", "index"=>0, "cell_id"=>"35f8dc07-edbb-496b-8286-58d05d7d2e2e", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>1, "crash_timestamp"=>1553685998989822967, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:26:39.321+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b creating container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:39.712+0000 [CELL/0] OUT Cell 35f8dc07-edbb-496b-8286-58d05d7d2e2e successfully destroyed container for instance 0e9c9ab9-7f0e-4ff3-4291-a01f

2019-03-27T11:26:39.849+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b successfully created container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:43.763+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:26:43.833+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:26:43.844+0000 [APP/PROC/WEB/0] OUT Exit status 127

2019-03-27T11:26:44.200+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b stopping instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:44.200+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b destroying container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:44.211+0000 [API/16] OUT Process has crashed with type: "web"

2019-03-27T11:26:44.220+0000 [API/16] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"30138f08-341f-497f-7f2d-0861", "index"=>0, "cell_id"=>"145bc1b7-519c-4329-a748-f81bb6e4322b", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>2, "crash_timestamp"=>1553686004169760016, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:26:44.531+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd creating container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:44.886+0000 [CELL/0] OUT Cell 145bc1b7-519c-4329-a748-f81bb6e4322b successfully destroyed container for instance 30138f08-341f-497f-7f2d-0861

2019-03-27T11:26:45.081+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd successfully created container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:48.954+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:26:49.085+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:26:49.095+0000 [APP/PROC/WEB/0] OUT Exit status 127

2019-03-27T11:26:49.241+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd stopping instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:49.241+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd destroying container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:26:49.297+0000 [API/14] OUT Process has crashed with type: "web"

2019-03-27T11:26:49.308+0000 [API/14] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"54cb5da2-e6be-4c9f-5584-04b0", "index"=>0, "cell_id"=>"dcee36cd-b198-4815-bc83-659c0ff008fd", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>3, "crash_timestamp"=>1553686009236498655, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:26:49.804+0000 [CELL/0] OUT Cell dcee36cd-b198-4815-bc83-659c0ff008fd successfully destroyed container for instance 54cb5da2-e6be-4c9f-5584-04b0

2019-03-27T11:27:32.185+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa creating container for instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:32.802+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa successfully created container for instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:36.588+0000 [CELL/0] OUT Starting health monitoring of container

2019-03-27T11:27:36.703+0000 [APP/PROC/WEB/0] ERR bash: S/4HANA: No such file or directory

2019-03-27T11:27:36.717+0000 [APP/PROC/WEB/0] OUT Exit status 127


2019-03-27T11:27:36.921+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa stopping instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:36.922+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa destroying container for instance 9c622d48-b55e-4976-55d0-6926

2019-03-27T11:27:36.976+0000 [API/24] OUT Process has crashed with type: "web"

2019-03-27T11:27:37.191+0000 [API/24] OUT App instance exited with guid b07d82eb-c0a9-4778-97a3-0027cb123871 payload: {"instance"=>"9c622d48-b55e-4976-55d0-6926", "index"=>0, "cell_id"=>"a6b77746-e396-440d-84bb-041074ae56fa", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>4, "crash_timestamp"=>1553686056917496012, "version"=>"ce5d1861-170d-4eb6-a3b9-02738dea412f"}

2019-03-27T11:27:37.516+0000 [CELL/0] OUT Cell a6b77746-e396-440d-84bb-041074ae56fa successfully destroyed container for instance 9c622d48-b55e-4976-55d0-6926
s4sdk sap-cloud-sdk
2个回答
5
投票

请检查项目所在的路径。似乎文件路径中S/4HANA字符串中的斜杠存在问题:ERR bash: S/4HANA: No such file or directory


4
投票

堆栈跟踪包含TomEE的关闭端口8005已在使用中的错误。请配置TomEE Maven插件以使用其他端口或停止在该端口上运行的进程。

更多细节在http://tomee.apache.org/maven/run-mojo.html#tomeeShutdownPort

© www.soinside.com 2019 - 2024. All rights reserved.