2017-07-18 151 views
0

我已經使用以下設置生成了新的jhipster項目。試圖登錄到管理屏幕,我得到錯誤 Failed to sign in! Please check your credentials and try again. 命令行顯示以下錯誤。生成的jhipster項目發生錯誤

[HPM] Error occurred while trying to proxy request /api/profile-info from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common _system_errors)

我使用[email protected]

與jhipster配置

{ 
    "generator-jhipster": { 
    "promptValues": { 
     "packageName": "com.ae" 
    }, 
    "jhipsterVersion": "4.6.1", 
    "baseName": "ex", 
    "packageName": "com.ae", 
    "packageFolder": "com/ae", 
    "serverPort": "8080", 
    "authenticationType": "jwt", 
    "hibernateCache": "ehcache", 
    "clusteredHttpSession": false, 
    "websocket": false, 
    "databaseType": "sql", 
    "devDatabaseType": "mysql", 
    "prodDatabaseType": "mysql", 
    "searchEngine": false, 
    "messageBroker": false, 
    "serviceDiscoveryType": false, 
    "buildTool": "maven", 
    "enableSocialSignIn": false, 
    "jwtSecretKey": "replaced-by-jhipster-info", 
    "clientFramework": "angularX", 
    "useSass": false, 
    "clientPackageManager": "yarn", 
    "applicationType": "monolith", 
    "testFrameworks": [ 
     "gatling" 
    ], 
    "jhiPrefix": "jhi", 
    "enableTranslation": false 
    } 
} 

環境和工具

Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true 
openjdk version "1.8.0_131" 
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11) 
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode) 

git version 2.7.4 

node: v6.11.1 

npm: 5.0.3 

yeoman: 2.0.0 

yarn: 0.27.5 

回答

1
localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) 

這意味着的WebPack-DEV-服務器無法連接到您的Java應用程序來代理所有的API調用,所以你可能只跑了yarn start並忘記運行與mvnw Java應用程序。見documentation