server.xml同样的配置在本地可以跑,但是放到阿里云就启动不了,报:
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /test does not exist or is not a readable directory
server.xml去掉了项目路径而已:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="/" docBase="/test" debug="0"/>
</Host>