在Resin下怎么实现像在tomcat下发布一个web工程啊(在server.xml文件里修改<context path=""/>)?在Resin里怎么修改Resin.conf文件呢? http://dev.csdn.net/article/40/40073.shtm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 修改Resin配置文件D:\Resin-2.0.1\conf\Resin.conf 找到这一行:<app-dir>doc</app-dir> 改成:<app-dir>D:/Apache/htdocs</app-dir> 保存即可试试 如下: <host id='www.jewerly.con'> <welcome-file-list>index.jsp, index.htm, index.html </welcome-file-list> <error-log id='logs/qgear.con.log'/> <doc-dir>E:\inetpub\wwwroot\101Jewelry.Com\WebSite</doc-dir> <web-app id='/'> <classpath id='WEB-INF/classes' source='WEB-INF/classes' compile='false'/> <servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/> <servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/> <servlet-mapping url-pattern='*.htm' servlet-name='jsp'/> <servlet-mapping url-pattern='*.html' servlet-name='jsp'/> <session-config> <session-max>4096</session-max> <session-timeout>30</session-timeout> <enable-cookies>true</enable-cookies> <enable-url-rewriting>true</enable-url-rewriting> </session-config> </web-app> </host>可以直接配置连接池<resource-ref> <res-ref-name>jdbc/lp</res-ref-name> <res-type>javax.sql.DataSource</res-type> <init-param driver-name="org.gjt.mm.mysql.Driver"/> <init-param url="jdbc:mysql://localhost:3306/lp?useUnicode=true&characterEncoding=GBK"/> <init-param user="root"/> <init-param password=""/> <init-param max-connections="120"/> <init-param max-idle-time="3"/> </resource-ref> 求高手赐教,apache+tomcat整合问题 急求Java实现 RSS发布与订阅 struts在什么情况下会跳转到空也面上去啊?一片空白。不知道什么原因 struts action执行的东西太多,返回页面超时 JBOSS 安装问题。 《张孝祥IT课堂》BT下载大家快来啊! hsqldb 救急! jtree如何實現拖 放(在線等) 非常烦的cmr问题 我有java2的语法等基础,想学j2ee,请高手们推荐一本书。 java用socket传输文件时发生莫名错误 ~~~~~~紧急问题求助,答对马上给分
找到这一行:<app-dir>doc</app-dir>
改成:<app-dir>D:/Apache/htdocs</app-dir>
保存即可
试试
<host id='www.jewerly.con'>
<welcome-file-list>index.jsp, index.htm, index.html </welcome-file-list>
<error-log id='logs/qgear.con.log'/>
<doc-dir>E:\inetpub\wwwroot\101Jewelry.Com\WebSite</doc-dir>
<web-app id='/'>
<classpath id='WEB-INF/classes'
source='WEB-INF/classes'
compile='false'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='jsp'/>
<servlet-mapping url-pattern='*.htm' servlet-name='jsp'/>
<servlet-mapping url-pattern='*.html' servlet-name='jsp'/>
<session-config>
<session-max>4096</session-max>
<session-timeout>30</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
</session-config>
</web-app>
</host>可以直接配置连接池
<resource-ref>
<res-ref-name>jdbc/lp</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<init-param driver-name="org.gjt.mm.mysql.Driver"/>
<init-param url="jdbc:mysql://localhost:3306/lp?useUnicode=true&characterEncoding=GBK"/>
<init-param user="root"/>
<init-param password=""/>
<init-param max-connections="120"/>
<init-param max-idle-time="3"/>
</resource-ref>