resin 版本:resin-pro-4.0.41
系统环境:win7
本文大部分内容是对官网的翻译,及自己配置后的一些体会。
一、 基于win ,resin基本安装
1、安装jdk1.6或更高版本
2、配置环境变量JAVA-HOME ,RESIN-HOME
3、配置classpath %RESIN-HOME%\lib\resin.jar
否则报异常:com.caucho.loader.SystemClassLoader
4、解压resin
5、 点击resin.exe运行,或者进入cmd中 java -jar d:/resin/lib/resin.jar start
6、启动成功后输入http://localhost:8080看到resin的管理页面。
二,在conf/resin.xml里发布自己的工程
1、无论是项目文件还是war包,直接把项目扔进:resin-pro-4.0.41\webapps
2、使用绝对路径(admin2):
<host id="" root-directory=".">
<!--
- webapps can be overridden/extended in the resin.xml
-->
<web-app id="/" root-directory="webapps/ROOT"/>
<web-app id="/admin2" root-directory="D:\webapps\admin2"/>
</host>
主要参考:
http://www.blogjava.net/zhaoguo543166/articles/372356.html