关于tomcat 6.0配置问题 本帖最后由 buqibushe 于 2011-06-10 08:31:54 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考下http://tomcat.apache.org/tomcat-6.0-doc/config/context.html<Context path="/myapp" docBase="C:/jakarta-tomcat-6.0.29/webapps/myapp" debug="0" reloadable="true"/> 应该是你加错地方了<Context docBase="chlw" path="/chlw" reloadable="true" source="org.eclipse.jst.jee.server:chlw"/><Context docBase="jrtcms" path="/" reloadable="true" source="org.eclipse.jst.jee.server:jrtcms"/></Host> 我不知道你们的Context标签是哪来的?我的server.xml下没有一个Context????而且我的server.xml下面是appBase,而不是docBase,????大家指教,我的server.xml是安装目录下的conf下的 你在host标签里面嵌套个<Context path="/你web工程" docBase="你工程路径" reloadable="true"> </Context> 还是要重启,请大家帮忙看看我的server.xml中的host节点,多谢了 <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" reloadable="true" xmlValidation="false" xmlNamespaceAware="false"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> --><Context path="/ne5" docBase="C:/Users/longhu/own/work/home/jsp/ne5" debug="0" reloadable="true"/> </Host> 楼主是不是用的eclipse的发布(deploy)功能发布到了tomcat的webapps下?方法1:如果是那就不要发布了,把发布的ne5文件夹删掉用<Context path="/ne5" docBase="C:/Users/longhu/own/work/home/jsp/ne5" debug="0" reloadable="true"/> 或者方法2:保留webapps下的ne5 context改为修改为:<Context path="/ne5" docBase="ne5" debug="0" reloadable="true"/> 建议用方法1,省的每次都发布。 我不是用eclipse发布的,直接用appBase(server.xml下的appBase,不是docBase,因为没有这个属性)下的目录,用操作系统的ie访问,按你的说法,我的配置就是你的方法一,没什么区别,但为什么还是不行????多谢了 java中如果一个类的父类是ServiceReturn,而这个类的每个方法的返回类型也是这个类,这样我们应该怎么理解? 精通java ee的朋友,谈谈你的学习经历和使用体会 java里html解析类 数据库查询问题 在weblogic9 下怎么设置WEB缓存 50分求解jsf简单问题 带体自定义标签的问题,谢谢! 晕,在web.xml中写filter的<url-pattern>出错 请问EJB实体bean中,用主键类有什么好处??? (up有分) 哪里有关于J2EE,EJB的电子书下载 求助!刷帖思路! 用java代码如何实现过期邮件的转移?
<Context path="/myapp" docBase="C:/jakarta-tomcat-6.0.29/webapps/myapp" debug="0" reloadable="true"/>
我不知道你们的Context标签是哪来的?我的server.xml下没有一个Context????而且我的server.xml下面是appBase,而不是docBase,????大家指教,我的server.xml是安装目录下的conf下的
</Context>
还是要重启,请大家帮忙看看我的server.xml中的host节点,多谢了 <Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true" reloadable="true"
xmlValidation="false" xmlNamespaceAware="false"> <!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
--> <!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
<Context path="/ne5" docBase="C:/Users/longhu/own/work/home/jsp/ne5" debug="0" reloadable="true"/> </Host>
方法1:如果是那就不要发布了,把发布的ne5文件夹删掉
用
<Context path="/ne5" docBase="C:/Users/longhu/own/work/home/jsp/ne5" debug="0" reloadable="true"/>
或者
方法2:保留webapps下的ne5 context改为
修改为:
<Context path="/ne5" docBase="ne5" debug="0" reloadable="true"/>
建议用方法1,省的每次都发布。
我不是用eclipse发布的,直接用appBase(server.xml下的appBase,不是docBase,因为没有这个属性)下的目录,用操作系统的ie访问,按你的说法,我的配置就是你的方法一,没什么区别,但为什么还是不行????多谢了