什么是“来源”? Apache Tomcat配置文件的Context元素的属性是什么? [英] What is the "source" attribute of the Context element of an Apache Tomcat configuration file for?

查看:133
本文介绍了什么是“来源”? Apache Tomcat配置文件的Context元素的属性是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它在某种程度上与Eclipse有关。例如:

 < Host> 
<上下文docBase = foo path = / foo reloadable = true
source = org.eclipse.jst.j2ee.server:foo />
< / Host>


解决方案

Eclipse WTP source 属性添加到与项目相关的< Context> ; 元素来标识与上下文关联的源代码的位置(因此,工作空间中的实际项目已从Eclipse内部部署到该服务器)。



如果由于Tomcat启动期间的警告而对此表示怀疑,则从Tomcat 6.0.16开始, context.xml 或 server.xml 会在启动过程中对其发出警告,尽管实际上没有DTD的方法。



<只需忽略它。 Tomcat可以正常工作,Eclipse对此感到满意。带有有价值的WAR文件的实际生产环境中不会发生这种情况。


It's somehow related to Eclipse. For example:

<Host>
    <Context docBase="foo" path="/foo" reloadable="true"
        source="org.eclipse.jst.j2ee.server:foo" />
</Host>

解决方案

Eclipse WTP adds the source attribute to the project-related <Context> element to identify the location of the source code associated with the context (thus, the actual project in the workspace which has been deployed to this server from inside Eclipse).

If you wondered about this due to a warning during Tomcat's startup, since Tomcat 6.0.16 any "unrecognized" XML tags and attributes in the context.xml or server.xml will produce a warning about it during the startup, although there's actually no means of a DTD.

Just ignore it. Tomcat shall work fine and Eclipse is happy with it. It won't occur in real production environment with a worthfully WAR file.

这篇关于什么是“来源”? Apache Tomcat配置文件的Context元素的属性是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆