Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webx应用petstore启动报错 #30

Open
junbianchan opened this issue Mar 14, 2016 · 0 comments
Open

webx应用petstore启动报错 #30

junbianchan opened this issue Mar 14, 2016 · 0 comments

Comments

@junbianchan
Copy link

使用最新代码在本地进行编译运行过程中报错。

1、环境
本地环境:OS X 10.10.4 (14E46)
Java :java version “1.7.0_80" Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Maven: Apache Maven 3.3.9

2、操作
按照http://openwebx.org/ 首页教程:

git clone https://github.com/webx/citrus-sample.git
cd citrus-sample/petstore
mvn clean install
cd web
mvn jetty:run-war

进行操作之后,报下面错误,但是可以启动:

Caused by: com.alibaba.sample.petstore.biz.StoreManagerException: Could not get upload directory from ResourceLoader: /petstore/upload
    at com.alibaba.sample.petstore.biz.impl.StoreManagerImpl.afterPropertiesSet(StoreManagerImpl.java:77)

然后访问 http://127.0.0.1:8081,页面报错,HTTP报文头:

Request URL:http://127.0.0.1:8081/
Request Method:GET
Status Code:503 Service Unavailable
Remote Address:127.0.0.1:8081

实际上,应该将教程中的
mvn jetty:run-war
修改成:
mvn jetty:run

这样的话,应用正常启动,访问http://127.0.0.1:8081 成功。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant