Re: Tomcat v7 Embedded

2012-11-03 Thread joe
Jesse Farinacci jieryn at gmail.com writes:

 
 Greetings,
 
 I am trying to embed Tomcat v7.0.11 into a self-contained, executable
 jar. The jar is created using Maven (assembly plugin) which packages
 the required Tomcat embedded classes and also an unpacked WAR archive.
 The listed Main-Class does a very simple creation of a Tomcat server
 and launches it. The unpacked WAR exploits Servlet 3.0 classpath
 scanning.
 
 Is there no way to point the docBase at the executable jar itself,
 again which contains the unpacked WAR, and have it auto-extract itself
 or otherwise be useful? Embedded Jetty provides this capability and it
 is exceptionally useful.
 
 So, right now Tomcat 7 is firing up and serving requests. I just can
 not figure out the magic incantation to get it to locate the embedded
 and unpacked WAR where it itself is executing from. Thanks in advance,
 
 -Jesse
 


Have you tried pointing tomcat to expect the exploded 
war in a folder that is a sibling to the jar file?

If you did this and then added logic to extract and 
explode the war to that folder as the first activity
 in your main class (using java's zip libraries) then forward 
on execution to tomcat, perhaps it would pick 
up the war?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat v7 Embedded

2012-11-03 Thread joe
Jesse Farinacci jieryn at gmail.com writes:

 
 Greetings,
 
 I am trying to embed Tomcat v7.0.11 into a self-contained, executable
 jar. The jar is created using Maven (assembly plugin) which packages
 the required Tomcat embedded classes and also an unpacked WAR archive.
 The listed Main-Class does a very simple creation of a Tomcat server
 and launches it. The unpacked WAR exploits Servlet 3.0 classpath
 scanning.
 
 Is there no way to point the docBase at the executable jar itself,
 again which contains the unpacked WAR, and have it auto-extract itself
 or otherwise be useful? Embedded Jetty provides this capability and it
 is exceptionally useful.
 
 So, right now Tomcat 7 is firing up and serving requests. I just can
 not figure out the magic incantation to get it to locate the embedded
 and unpacked WAR where it itself is executing from. Thanks in advance,
 
 -Jesse
 


Have you tried pointing tomcat to expect the exploded 
war in a folder that is a sibling to the jar file?

If you did this and then added logic to extract and 
explode the war to that folder as the first activity
 in your main class (using java's zip libraries) then forward 
on execution to tomcat, perhaps it would pick 
up the war?





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat v7 Embedded

2012-11-03 Thread Jesse Farinacci
Greetings,

On Sat, Nov 3, 2012 at 1:22 PM, joe jjverder...@gmail.com wrote:
 Have you tried pointing tomcat to expect the exploded
 war in a folder that is a sibling to the jar file?

I abandoned effort on this work after Olivier Lamy provided automatic
embedded mode support in the excellent Apache Tomcat Maven Plugin.

http://tomcat.apache.org/maven-plugin-2.0/
http://tomcat.apache.org/maven-plugin-2.0/executable-war-jar.html

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat v7 Embedded

2011-03-21 Thread Jesse Farinacci
Bump! :-)

On Thu, Mar 17, 2011 at 5:12 PM, Jesse Farinacci jie...@gmail.com wrote:

 I am trying to embed Tomcat v7.0.11 into a self-contained, executable
 jar. The jar is created using Maven (assembly plugin) which packages
 the required Tomcat embedded classes and also an unpacked WAR archive.
 The listed Main-Class does a very simple creation of a Tomcat server
 and launches it. The unpacked WAR exploits Servlet 3.0 classpath
 scanning.

 Is there no way to point the docBase at the executable jar itself,
 again which contains the unpacked WAR, and have it auto-extract itself
 or otherwise be useful? Embedded Jetty provides this capability and it
 is exceptionally useful.

 So, right now Tomcat 7 is firing up and serving requests. I just can
 not figure out the magic incantation to get it to locate the embedded
 and unpacked WAR where it itself is executing from. Thanks in advance,

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat v7 Embedded

2011-03-21 Thread Mark Thomas
On 21/03/2011 12:55, Jesse Farinacci wrote:
 Bump! :-)

This feature doesn't (yet) exist. Patches welcome.

Mark

 
 On Thu, Mar 17, 2011 at 5:12 PM, Jesse Farinacci jie...@gmail.com wrote:

 I am trying to embed Tomcat v7.0.11 into a self-contained, executable
 jar. The jar is created using Maven (assembly plugin) which packages
 the required Tomcat embedded classes and also an unpacked WAR archive.
 The listed Main-Class does a very simple creation of a Tomcat server
 and launches it. The unpacked WAR exploits Servlet 3.0 classpath
 scanning.

 Is there no way to point the docBase at the executable jar itself,
 again which contains the unpacked WAR, and have it auto-extract itself
 or otherwise be useful? Embedded Jetty provides this capability and it
 is exceptionally useful.

 So, right now Tomcat 7 is firing up and serving requests. I just can
 not figure out the magic incantation to get it to locate the embedded
 and unpacked WAR where it itself is executing from. Thanks in advance,
 
 -Jesse
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat v7 Embedded

2011-03-17 Thread Jesse Farinacci
Greetings,

I am trying to embed Tomcat v7.0.11 into a self-contained, executable
jar. The jar is created using Maven (assembly plugin) which packages
the required Tomcat embedded classes and also an unpacked WAR archive.
The listed Main-Class does a very simple creation of a Tomcat server
and launches it. The unpacked WAR exploits Servlet 3.0 classpath
scanning.

Is there no way to point the docBase at the executable jar itself,
again which contains the unpacked WAR, and have it auto-extract itself
or otherwise be useful? Embedded Jetty provides this capability and it
is exceptionally useful.

So, right now Tomcat 7 is firing up and serving requests. I just can
not figure out the magic incantation to get it to locate the embedded
and unpacked WAR where it itself is executing from. Thanks in advance,

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org