Posted by
hospbene on
URL: https://discuss.orbeon.com/Seperate-deployment-in-tomcat-6-0-29-tp3214139.html
We created a simple dynamic webproject containing the page-flow.xml and a view.xhtml (the xforms-hello example).
The web.xml looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://java.sun.com/xml/ns/javaee" xmlns:web="
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>mini_orbeon_test</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name>orbeon-xforms-filter</filter-name>
<filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
<init-param>
<param-name>oxf.xforms.renderer.context</param-name>
<param-value>/orbeon-CE</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>orbeon-xforms-filter</filter-name>
<url-pattern>/mini_orbeon_test/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>orbeon-xforms-filter</filter-name>
<url-pattern>/orbeon-CE/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
</web-app>
Then we created a context.xml in the META-INF directory:
<Context path="/mini_orbeon_test"
docBase="mini_orbeon_test.war"
crossContext="true"></Context>
Then we created a orbeon-CE.xml in catalina/localhost:
<Context path="/orbeon-CE"
docBase="orbeon-CE.war"
crossContext="true"></Context>
We copied the "orbeon-xforms-filter.jar" into the WEB-INF/lib of the "mini_orbeon_test"-Project.
The project looks like:
META-INF WEB-INF page-flow.xml view.xhtml
./META-INF:
MANIFEST.MF context.xml
./WEB-INF:
classes lib web.xml
./WEB-INF/classes:
./WEB-INF/lib:
orbeon-xforms-filter.jar
The deployment of both war-Files was successfull.
What did we do wrong. the webapp is neither reachable under
localhost:8080/mini_orbeon_test
nor under
localhost:8080/orbeon-CE/mini_orbeon_test
Any hints are welcome. THX