On 31/07/18 16:44, Mounika Reddy wrote: > Hi all, > > I'm trying to deploy a war file in tomcat and publish to root context. > I have created a ROOT.xml file in > <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat > not picking up war file or neither exploding war file into a > directory. But if I unpack war file into a folder then it's picking up > properly. War file name is cas##1.0.0.war > > Host definition in server.xml: > > <Host name="sso.mysite.com" appBase="webapps" > unpackWARs="true" autoDeploy="true"> > > Contents of ROOT.xml > > <?xml version="1.0" encoding="UTF-8"?> > <Context > docBase="../deploy/cas" > />
The docBase above does not match the file structure below. It looks like you need docBase="../deploy/cas##1.0.0.war" > > My tomcat folder structure: > > <CATALINA_HOME> > -- bin > -- conf > -- deploy > -- cas##1.0.0.war > -- logs > -- lib > -- temp > -- webapps > -- work > > Versions: > Tomcat 9.0.1 > Java 9.0.1 > Windows Server 2012 > > Thanks. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org