小编Joe*_*Joe的帖子

错误R10(引导超时) - > Web进程在启动后60秒内无法绑定到$ PORT - Heroku

我正在尝试在heroku上部署我的服务器.我收到了这个错误:

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Run Code Online (Sandbox Code Playgroud)

这是我的Java类:

package introsde.document.endpoint;
import javax.xml.ws.Endpoint;

import introsde.assignment.soap.PeopleImpl;

public class PeoplePublisher {
public static String SERVER_URL = "http://localhost";
public static String PORT = "6902";
public static String BASE_URL = "/ws/people";

public static String getEndpointURL() {
    return SERVER_URL+":"+PORT+BASE_URL;
}

public static void main(String[] args) {
    String endpointUrl = getEndpointURL();
    System.out.println("Starting People Service...");
    System.out.println("--> Published at = "+endpointUrl);
    Endpoint.publish(endpointUrl, new PeopleImpl());
}
}
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?

谢谢

java soap heroku

7
推荐指数
4
解决办法
9901
查看次数

标签 统计

heroku ×1

java ×1

soap ×1