在项目的webRoot目录下面新建一个resin.xml文件
文件内容为:
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin/core">
<log name="" level="info" path="stdout:"/>
<server>
<http server-id="" host="*" port="8080"/>
<resin:import path="D:\soft\resin-3.0.21\resin-3.0.21/conf/app-default.xml"/>
<host id="" root-directory=".">
<web-app id="/" document-directory="D:\eclipsehelloworspace\项目名称\WebRoot"/>
</host>
</server>
</resin>
然后localhost:8080访问就可以