Re: running packed WAR files with embedded tomcat

2014-01-23 Thread Valery Shyshkin
ry. > > It seems to me that the WAR is still needing to be unpacked prior to > running. > > --john > > > > On Wed, Jan 22, 2014 at 12:16 AM, Valery Shyshkin >wrote: > > > The code below works fine on my Win 7 PC > > > > final Tomcat tomcat =

Re: running packed WAR files with embedded tomcat

2014-01-21 Thread Valery Shyshkin
dWebapp("/WebApplication2", "D:\\VnsTestApps\\Nb74Jetty\\WebApplication2\\dist\\WebApplication2.war"); tomcat.start(); tomcat.getServer().await(); 2014/1/22 Valery Shyshkin > By the way it's not a suggestion it's a signature of the addWebApp > method. > I'l

Re: running packed WAR files with embedded tomcat

2014-01-21 Thread Valery Shyshkin
By the way it's not a suggestion it's a signature of the addWebApp method. I'll try to find my working code and send it. 2014/1/22 Valery Shyshkin > Try: > > File baseDir = new File(System.getProperty("java.io.tmpdir")); > tomcat.addContext("",

Re: running packed WAR files with embedded tomcat

2014-01-21 Thread Valery Shyshkin
> > > On Tue, Jan 21, 2014 at 8:12 AM, Valery Shyshkin >wrote: > > > May be tomcat.addWebapp(contextName,pathToWarFile) instead of > > tomcat.addWebapp(pathToWarFile, contextName) will help yoo. > > > > > > 2014/1/21 John Cartwright - NOAA Federal &

Re: running packed WAR files with embedded tomcat

2014-01-21 Thread Valery Shyshkin
May be tomcat.addWebapp(contextName,pathToWarFile) instead of tomcat.addWebapp(pathToWarFile, contextName) will help yoo. 2014/1/21 John Cartwright - NOAA Federal > Hello All, > > I'm trying to create a very basic embeded tomcat 7 application to host a > packed WAR file. My code looks like: >