On 22/06/2021 07:40, Mohan T wrote:
Hi,
We are using tomcat 8.5.35 on RHEL.
I have a .ear file that has a application.xml file in meta-inf folder. See
below the contents of the application.xml file .
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Application WEB</display-name>
<description>RVWJ Application</description>
<module><web><web-uri>adminWEB.war</web-uri><context-root>/hub/app/classic/admin</context-root></web></module>
<module><web><web-uri>auditWEB.war</web-uri><context-root>/hub/app/classic/audit</context-root></web></module>
<module><web><web-uri>deploymentWEB.war</web-uri><context-root>/hub/app/classic/deployment</context-root></web></module>
<module><web><web-uri>implementationWEB.war</web-uri><context-root>/hub/app/classic/implementation</context-root></web></module>
<module><web><web-uri>securityWEB.war</web-uri><context-root>/hub/app/classic/security</context-root></web></module>
<module><web><web-uri>hubWEB.war</web-uri><context-root>/hub</context-root></web></module>
<module><web><web-uri>daemonWEB.war</web-uri><context-root>/hub/app/classic/daemon</context-root></web></module>
</application>
In each .war file I have the contents of the component along with a web-inf
folder and the web.xml file. See sample contents of the file of audit
component.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp_ID"><display-name>Audit</display-name><description>web.xml for Audit
component</description></web-app>
I am able to deploy individual .war files but the launch page is not getting
set .
My launch page is
http:\\localhost:8080\hub
Kindly guide on how to deploy (Considering the launching page mentioned above)
You can't. Tomcat does not support EARs.
Tomcat also ignores any <context-root>...</context-root> in a WAR file.
As per the Servlet spec, any such setting may be over-ridden by
container specific configuration and since Tomcat derives the context
path from the file name it always overrides any
<context-root>...</context-root>.
The process Tomcat uses to determine the context path is documented at:
http://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Naming
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org