不用这样的,你直接将你的war文件copy到webapp目录下,启动resin的时候就自动发布了。至于你的错误的主要原因是<web-app id='/agehouse' app-dir='/opt/agehouse'>的app-dir是无效的属性,你不能这样写的。
解决方案 »
- 关于图片左右滚动特效
- <package name="user" namespace="/user" extends="struts-default">
- 一个对象池的问题
- 更新某一行的所有数据
- 求一存储过程(往一张表查入1000W条数据),测试用
- 统计:您发布的tomcat应用多长时间重起一次
- 我下载了resin3.0.8,不知道javabean的class文件放在哪,请各位高手帮帮忙!!!
- 请问java中有这样的函数吗?
- JBoss 和JBuilder 9协同工作时,那里有JBossOpenTool For JBuilder 9下载呢?
- 我的数据库已连上,为什么对表操作会出错,附代码
- 不能有不在同一个包中的同名文件吗?调用本地接口的问题,请帮我看看
- Expresso Framework
- Temporary minimal resin.conf during 3.0 refactoring.
-->
<resin xmlns="http://caucho.com/ns/resin">
<!--
- Logging configuration for the JDK logging API.
-->
<log name='' level='info' path='stderr:' timestamp='[%H:%M:%S.%s] '/> <!--
- For production sites, change dependency-check-interval to something
- like 60s, so it only checks for updates every minute.
-->
<dependency-check-interval>2s</dependency-check-interval> <!--
- You can change the compiler to "javac" or jikes.
- The default is "internal" only because it's the most
- likely to be available.
-->
<javac compiler="internal" args=""/> <!--
- Sample database pool configuration
- The JDBC name is java:comp/env/jdbc/test
-->
<database>
<name>jdbc/agehouse</name>
<driver-class>com.caucho.jdbc.mysql.Driver</driver-class>
<driver-url>jdbc:mysql_caucho://localhost:3306/agehouse</driver-url>
<user>root</user>
<password>dhdl543</password>
<max-connections>100</max-connections>
<max-idle-time>30s</max-idle-time>
</database> <server>
<!-- The http port -->
<http id='' host='*' port='8080'/> <!--
- SSL port configuration:
-
- <http port=8443>
- <openssl>
- <certificate-file>keys/gryffindor.crt</certificate-file>
- <certificate-key-file>keys/gryffindor.key</certificate-key-file>
- <password>test123</password>
- </openssl>
- </http>
--> <!--
- The local cluster, used for load balancing and distributed
- backup.
-->
<cluster>
<srun id='' host='127.0.0.1' port='6802'/>
</cluster> <!--
- If starting bin/resin as root on Unix, specify the user name
- and group name for the web server user.
-
- <user-name>resin</user-name>
- <group-name>resin</group-name>
--> <!--
- Default host configuration applied to all virtual hosts.
-->
<host-default>
<class-loader>
<!--
- If true, the classloader order follows the Servlet spec.
- If false, the classloader order follows the JDK spec.
-->
<servlet-hack>false</servlet-hack> <compiling-loader path='webapps/WEB-INF/classes'/>
<library-loader path='webapps/WEB-INF/lib'/>
</class-loader> <!-- creates the webapps directory for .war expansion -->
<web-app-deploy path='webapps'/>
</host-default> <!-- includes the web-app-default for default web-app behavior -->
<resin:include href="app-default.xml"/> <!-- configures the default host, matching any host name -->
<host id=''>
<document-directory>doc</document-directory> <!-- configures the root web-app -->
<web-app id='/'>
<!-- adds xsl to the search path -->
<class-loader>
<simple-loader path="$host-root/xsl"/>
</class-loader>
</web-app>
<web-app id='/agehouse/' document-dir='/opt/agehouse/'>
<classpath id='/opt/agehouse/classes' source='/opt/agehouse/classes' complie='true'>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet-mapping url-pattern='*.xtp'
servlet-name='com.caucho.jsp.XtpServlet'/>
<servlet-mapping url-pattern='*.jsp'
servlet-name='com.caucho.jsp.JspServlet'/>
<welcome-file-list>index.html,index.jsp</welcome-file-list>
</web-app>
</host>
</server>
</resin>