http://mashb.wordpress.com/2010/03/04/creating-a-rewrite-rule-in-jboss/
http://community.jboss.org/wiki/UsingJBossWithTomcatNativeAndSSL
context.xml és hatásai JBoss Web Context alatt
The table below is a comparison of locations a context.xml can be used in Tomcat and JBossAS. The base directory, CATALINA_HOME, is defined in JBossAS as:
Location |
Tomcat 5.5.x |
JBossAS 4.3 |
Tomcat 6.x |
JBossAS 5.0.0 |
||
---|---|---|---|---|---|---|
CATALINA_HOME/server.xml (Server/Host/Context) |
- |
+ |
- |
+ |
||
CATALINA_HOME/conf/server.xml (Server/Host/Context) |
+ |
- |
+ |
- |
||
CATALINA_HOME/context.xml |
- |
- |
- |
- |
||
CATALINA_HOME/conf/context.xml |
+ |
- |
+ |
- |
||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="75a45131-f612-4c1d-a4e0-d64b86c90a1f"><ac:plain-text-body><![CDATA[ |
CATALINA_HOME/conf/[Engine]/[Host]/context.xml |
+ |
- |
+ |
- |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6901cbb1-4ae3-40c1-843a-18fa979ad68e"><ac:plain-text-body><![CDATA[ |
CATALINA_HOME/conf/[Engine]/[Host]/context.xml.default |
+ |
- |
+ |
- |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5adcca98-ada1-40a2-99dd-5c12b0012bc1"><ac:plain-text-body><![CDATA[ |
CATALINA_HOME/conf/[Engine]/[Host]/[ctxPath].xml |
+ |
- |
+ |
- |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e4687116-544f-406c-a013-d400ea0810fd"><ac:plain-text-body><![CDATA[ |
JBOSS_HOME/server/[config]/conf/[Engine]/[Host]/context.xml |
- |
- |
- |
- |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8faab93f-f460-4192-9104-fbe651fc7a31"><ac:plain-text-body><![CDATA[ |
JBOSS_HOME/server/[config]/conf/[Engine]/[Host]/[ctxPath].xml |
- |
- |
- |
- |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="331ef18d-ee68-4143-8758-1a381b01c571"><ac:plain-text-body><![CDATA[ |
[deployed-web-app]/META-INF/context.xml |
+ |
- |
+ |
- |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="66df9b38-a018-4836-91ed-88532096bdc5"><ac:plain-text-body><![CDATA[ |
[deployed-web-app]/WEB-INF/context.xml |
- |
+ |
- |
+ |
]]></ac:plain-text-body></ac:structured-macro> |
This list explains the effect of each location
\[deployed-web-app\]/WEB-INF/context.xml - Applies only to the web app |
\[deployed-web-app\]/META-INF/context.xml \- Applies only to the web app |
CATALINA_HOME/conf/\[Engine\]/\[Host\]/context.xml.default - Applies to all web apps deployed on \[Host\] by default. A context.xml deployed with a web app will over-ride. |
CATALINA_HOME/server.xml (Server/Host/Context)\- Applies to all web apps deployed on \[Host\]. Can be overridden by context.xml deployed with web app. |
CATALINA_HOME/conf/server.xml (Server/Host/Context) - Applies to all web apps deployed on \[Host\]. Can be overridden by context.xml deployed with a web app. |
CATALINA_HOME/conf/context.xml - Applies to all web apps deployed on \[Host\]. Can be overridden by context.xml deployed with a web app.\\ |
Deploy a custom context by following these points:
The custom context and mbeans-descriptor.xml must be deployed in a JAR to JBOSS_HOME/server/\[config\]/lib |
Edit JBOSS_HOME/server/\[config\]/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml |
Edit JBOSS_HOME/server/\[config\]/deploy/jboss-web.deployer/META-INF/jboss-service.xml |
Deploy the jar file in JBOSS_HOME/server/\[config\]/lib |