Skip to content

webx应用petstore启动报错 #30

@junbianchan

Description

@junbianchan

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

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 成功。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions