警告: A docBase ** inside the host appBase has been specified, and will be ignored
2013-07-22 18:18
323 查看
错误:警告: A docBase D:\apache-tomcat-6.0.35\webapps\16S inside the host appBase has been specified, and will be ignored
原因:部署工程 "myApp"后, 放到了${catalina.home}/webapps 下。(这相当于隐性的定义了一个 docBase ,指向" ${catalina.home}/webapps/myApp " )。同时在 /conf/Catalina/localhost 下建立了配置文件 myApp.xml ,在其中定义了 docBase , 目标指向 " ${catalina.home}/webapps/myApp " 。这样,在 Tomcat 启动的时候,先找到了 myApp.xml 配置文件中定义的 docBase, 然后 Tomcat 自动检测 ${catalina.home}/webapps 下是否存放了合法的工程,并自动加载(根据配置文件的设置)。然后,Tomcat 又找到了一个相同的 docBase, 所以输出了错误信息。
解决:
方法一:将myApp工程从${catalina.home}/webapps 目录移出,然后修改配置文件myApp.xml 指向该目录。
方法二:将Tomcat目录下\conf\Catalina\localhost中的myApp.xml删除。
原因:部署工程 "myApp"后, 放到了${catalina.home}/webapps 下。(这相当于隐性的定义了一个 docBase ,指向" ${catalina.home}/webapps/myApp " )。同时在 /conf/Catalina/localhost 下建立了配置文件 myApp.xml ,在其中定义了 docBase , 目标指向 " ${catalina.home}/webapps/myApp " 。这样,在 Tomcat 启动的时候,先找到了 myApp.xml 配置文件中定义的 docBase, 然后 Tomcat 自动检测 ${catalina.home}/webapps 下是否存放了合法的工程,并自动加载(根据配置文件的设置)。然后,Tomcat 又找到了一个相同的 docBase, 所以输出了错误信息。
解决:
方法一:将myApp工程从${catalina.home}/webapps 目录移出,然后修改配置文件myApp.xml 指向该目录。
方法二:将Tomcat目录下\conf\Catalina\localhost中的myApp.xml删除。
相关文章推荐
- 警告: A docBase E:/Tomcat/webapps/Test inside the host appBase has been specified, and will be ignored
- 警告: A docBase inside the host appBase has been specified, and will be ignore2
- Tomcat 错误“inside the host appBase has been specified, and will be ignored”
- 【明哥报错簿】之【inside the host appBase has been specified, and will be ignored】和【did not find a matching property.】
- 警告: A docBase has been specified, and will be ignored
- 警告: A docBase D:\apache-tomcat-6.0.53\webapps\webapps\projectname inside the host appBase has been
- Eclipse中启动Tomcat出现错误A docBase E:/Tomcat/webapps/lovemu inside the host appBase has been specified
- Eclipse中启动Tomcat出现错误A docBase E:/Tomcat/webapps/lovemu inside the host appBase has been specified
- 解决警告:View.propTypes has been deprecated and will be removed in a future version of ReactNative
- Apache2.4.6添加虚拟主机提示:NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf
- Apache配置多域名 AH00548: NameVirtualHost has no effect and will be removed in the next release
- One or more breakpoints cannot be set and have been disable.Execution will stop at the begining of the programe
- The WinHTTP Web Proxy Auto-Discovery Service has been idle for 15 minutes,it will be shut down.
- Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the beginning of the program."
- Android报错:The content of the adapter has changed...与Channel is unrecoverably broken and will be disposed的分析与解决办法
- warning D9035 : option 'Wp64' has been deprecated and will be removed in a future
- Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
- Silverlight + WCF + EF4 调用出错,Server 端的Exception:The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
- The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
- [bug]The file ‘/xxx/xxx.aspx’ has not been pre-compiled, and cannot be requested