Re: TOMCAT and wars outside webapps folder
Rick Noelle <[email protected]>
| Newsgroups | gmane.org.user-groups.ajug.members |
|---|---|
| Message-ID | <CAGObpv5DCU3eGsrQXf3DMZ4fJj74+Rs_4i1t-bp1VeYFyqbfrA@mail.gmail.com> |
This is the conf/Catalina/localhost/xyz.xml file that is created by Netbeans IDE when I create a simple maven web project and deploy it to Tomcat: <?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" docBase="/home/rnoelle/NetBeansProjects/xyz/target/xyz-1.0-SNAPSHOT" path="/xyz"/> The name of the war, as you can guess, is xyz-1.0-SNAPSHOT.war. The war file is never unpacked. Even if I add unpackWAR="true" as a key/value pair in the context tag and bounce Tomcat, the war file is not unpacked. This corresponds to what Tim pointed out. Is it possible that the artifacts you are looking at that appear to be incomplete are leftover from a build? I would make sure the directory is completely cleaned out, other than the war file, and bounce Tomcat and see what happens. Also, I'd verify that the user running as Tomcat has permissions to access the folder. Rick On Thu, Jun 27, 2013 at 9:45 AM, Tim Watts <[email protected]> wrote: > According to the docs on the unpackWAR attribute: "Note that WAR files > located outside of a Host's appBase are never unpacked." > > > http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Standard_Implementation > > > On Thu, 2013-06-27 at 08:58 -0400, Narahari 'n' Savitha wrote: > > Friends: (Thanks in advance for your help) > > > > > > We are trying to deploy war files outside of the webapps folder. The > > war file name is xyz.war. The approach is the xyz.xml in the > > conf/Catalina/localhost folder. In that file the docBase is set > > to /opt/testing/mywebapps/xyz > > > > > > The xyz.war is located or placed in the folder /opt/testing/mywebapps > > folder. > > > > > > The deployment happens but the unarchiving of the war file is not. > > When I go to the work folder, I see the xyz.war file unarchived but I > > dont see the WEB-INF/web.xml file along with a few other missing jsp > > files as well. Essentially the unarchiving of the .war file is not > > occuring correctly. > > > > > > Not sure what attributes tot he <Context> element I am missing or what > > nested elements I am supposed to put. > > > > > > ================== > > > > > > When I unarchive the xyz.war by myself in the /opt/testing/mywebapps > > folder then the app seems to work. > > > > > > So what gives ? > > > > > > Kindly help. > > > > > > -N > > _______________________________________________ > > ajug-members mailing list > > [email protected] > > http://www.ajug.org/mailman/listinfo/ajug-members > > > _______________________________________________ > ajug-members mailing list > [email protected] > http://www.ajug.org/mailman/listinfo/ajug-members > > _______________________________________________ ajug-members mailing list [email protected] http://www.ajug.org/mailman/listinfo/ajug-members