Re: no temp directory creation wanted when embedding Tomcat

2019-05-04 Thread Garret Wilson
On 4/24/2019 12:01 AM, Mark Thomas wrote: If you don't want the baggage associated with a Servlet container it might be worth looking at what other solutions are available. Thanks for being forthright here, Mark. (Mark Wood also suggested the same thing separately.) Indeed I have used Jetty

Re: no temp directory creation wanted when embedding Tomcat

2019-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Garret, On 4/23/19 16:46, Garret Wilson wrote: > On 4/22/2019 7:58 AM, Mark Thomas wrote: >> On 21/04/2019 15:53, Garret Wilson wrote: >>> … But now I realize Tomcat is creating this directory structur >>> inside the "base dir" I specified: >>> >>>

Re: no temp directory creation wanted when embedding Tomcat

2019-04-24 Thread Mark H. Wood
It seems to me that the problem may be, that you are trying to use Tomcat but cut away most of its raison d'etre. Asking Google for "embedded web server java" will give you a lot of other possibilities to explore, some of them extremely simple. -- Mark H. Wood Lead Technology Analyst University

Re: no temp directory creation wanted when embedding Tomcat

2019-04-24 Thread Mark Thomas
On 23/04/2019 21:46, Garret Wilson wrote: > On 4/22/2019 7:58 AM, Mark Thomas wrote: >> On 21/04/2019 15:53, Garret Wilson wrote: >>> … >>> But now I realize Tomcat is creating this directory structur inside the >>> "base dir" I specified: >>> >>> tomcat.8080/work/Tomcat/localhost/ROOT >>> >>> I do

Re: no temp directory creation wanted when embedding Tomcat

2019-04-23 Thread Garret Wilson
On 4/23/2019 5:46 PM, Garret Wilson wrote: 3. Since the temporary working directory is on a per-context basis, and I've only set the "basedir" for the entire `Tomcat` instance, Tomcat must be determining a default temporary directory for the context. Surely I'm allowed to explicitly specify a t

Re: no temp directory creation wanted when embedding Tomcat

2019-04-23 Thread Garret Wilson
On 4/22/2019 7:58 AM, Mark Thomas wrote: On 21/04/2019 15:53, Garret Wilson wrote: … But now I realize Tomcat is creating this directory structur inside the "base dir" I specified: tomcat.8080/work/Tomcat/localhost/ROOT I don't need this directory. I don't want this directory created. How do I

Re: no temp directory creation wanted when embedding Tomcat

2019-04-22 Thread Mark Thomas
On 22/04/2019 14:37, Christopher Schultz wrote: > Garret, > > On 4/22/19 09:36, Christopher Schultz wrote: >> Mark, > >> On 4/22/19 06:58, Mark Thomas wrote: >>> On 21/04/2019 15:53, Garret Wilson wrote: >>>> As I mentioned in other emails, I am

Re: no temp directory creation wanted when embedding Tomcat

2019-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Garret, On 4/22/19 09:36, Christopher Schultz wrote: > Mark, > > On 4/22/19 06:58, Mark Thomas wrote: >> On 21/04/2019 15:53, Garret Wilson wrote: >>> As I mentioned in other emails, I am embedding Tomcat 9 (with >>

Re: no temp directory creation wanted when embedding Tomcat

2019-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 4/22/19 06:58, Mark Thomas wrote: > On 21/04/2019 15:53, Garret Wilson wrote: >> As I mentioned in other emails, I am embedding Tomcat 9 (with >> OpenJDK 11 on Windows 10) to serve static files from `/foo/bar`. >&

Re: no temp directory creation wanted when embedding Tomcat

2019-04-22 Thread Mark Thomas
On 21/04/2019 15:53, Garret Wilson wrote: > As I mentioned in other emails, I am embedding Tomcat 9 (with OpenJDK 11 > on Windows 10) to serve static files from `/foo/bar`. Currently I'm not > supporting Java webapps. I'm not supporting JSP. I just want to serve > static file

no temp directory creation wanted when embedding Tomcat

2019-04-21 Thread Garret Wilson
As I mentioned in other emails, I am embedding Tomcat 9 (with OpenJDK 11 on Windows 10) to serve static files from `/foo/bar`. Currently I'm not supporting Java webapps. I'm not supporting JSP. I just want to serve static files. From your help in another thread, I called the magic

Re: Embedding Tomcat

2013-10-26 Thread Pid
On 25/10/2013 06:22, Olivier Lamy wrote: > On 23 October 2013 08:58, Pïd stèr wrote: >> Hello, >> >> To scratch an itch I've been working on an alternative means to embed >> Tomcat: >> >> https://github.com/pidster-dot-org/embed-apache-tomcat >>

Re: Embedding Tomcat

2013-10-24 Thread Olivier Lamy
On 23 October 2013 08:58, Pïd stèr wrote: > Hello, > > To scratch an itch I've been working on an alternative means to embed > Tomcat: > > https://github.com/pidster-dot-org/embed-apache-tomcat > > There's a core utility for embedding Tomcat[1] and a JUnit Rule[

Embedding Tomcat

2013-10-22 Thread Pïd stèr
Hello, To scratch an itch I've been working on an alternative means to embed Tomcat: https://github.com/pidster-dot-org/embed-apache-tomcat There's a core utility for embedding Tomcat[1] and a JUnit Rule[2] for testing that uses it, e.g. 1. https://github.com/pidster-dot-org/em

Re: Embedding tomcat 7 , several connectors

2011-07-08 Thread Mark Thomas
On 08/07/2011 09:38, Denis Pimenov wrote: > We are using tomcat 6 and org.apache.catalina.startup.Embedded in our > server application, but class Embedded was deprecated in tomcat 7 and > was replaced by org.apache.catalina.startup.Tomcat. This class has only > one connector , but we use 2 differ

Embedding tomcat 7 , several connectors

2011-07-08 Thread Denis Pimenov
We are using tomcat 6 and org.apache.catalina.startup.Embedded in our server application, but class Embedded was deprecated in tomcat 7 and was replaced by org.apache.catalina.startup.Tomcat. This class has only one connector , but we use 2 different connectors for http and https (different p

Re: How to start & stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
> >>> 2011/7/1 Mark Thomas > >>> > >>>> On 01/07/2011 10:07, Rehtron wrote: > >>>>> Dear all, > >>>>> > >>>>> I use org.apache.catalina.startup.Tomcat to do unit test, but the > >>>> instance >

Re: How to start & stop embedding Tomcat correctly?

2011-07-01 Thread Mark Thomas
OS are you using? >> >> Mark >> >>> >>> thanks. >>> >>> 2011/7/1 Mark Thomas >>> >>>> On 01/07/2011 10:07, Rehtron wrote: >>>>> Dear all, >>>>> >>>>> I use org.apache.catalina.s

Re: How to start & stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
> Mark > > > > > thanks. > > > > 2011/7/1 Mark Thomas > > > >> On 01/07/2011 10:07, Rehtron wrote: > >>> Dear all, > >>> > >>> I use org.apache.catalina.startup.Tomcat to do unit test, but the > >> instance

Re: How to start & stop embedding Tomcat correctly?

2011-07-01 Thread Mark Thomas
>>> Dear all, >>> >>> I use org.apache.catalina.startup.Tomcat to do unit test, but the >> instance >>> of which cannot be started or stopped correctly. >>> >>> I start and stop embedding tomcat for each test case, but first test can >> be >>>

Re: How to start & stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
gt; of which cannot be started or stopped correctly. > > > > I start and stop embedding tomcat for each test case, but first test can > be > > passed, the second one will be failed by 503 Service, unavailable, the > > tomcat.start() method has been invoked, but the tomcat

Re: How to start & stop embedding Tomcat correctly?

2011-07-01 Thread Mark Thomas
On 01/07/2011 10:07, Rehtron wrote: > Dear all, > > I use org.apache.catalina.startup.Tomcat to do unit test, but the instance > of which cannot be started or stopped correctly. > > I start and stop embedding tomcat for each test case, but first test can be > passed, t

How to start & stop embedding Tomcat correctly?

2011-07-01 Thread Rehtron
Dear all, I use org.apache.catalina.startup.Tomcat to do unit test, but the instance of which cannot be started or stopped correctly. I start and stop embedding tomcat for each test case, but first test can be passed, the second one will be failed by 503 Service, unavailable, the tomcat.start

Re: java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet when embedding tomcat 7.0.11

2011-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian, On 4/7/2011 5:24 AM, chrish123 wrote: > I added tomcat-jsp-api and tomcat-servlet-api to the classpath, it now > looks like > the following: Please make this mess easier to read in future posts. This is your CLASSPATH if CACHE_DIR=\dev\p

Re: java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet when embedding tomcat 7.0.11

2011-04-07 Thread chrish123
f...@one2team.com > 40 avenue Raymond Poincaré > 75116 Paris > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >

Re: java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet when embedding tomcat 7.0.11

2011-04-07 Thread Francis GALIEGUE
On Thu, Apr 7, 2011 at 10:44, "Christian Hödl" wrote: > Hi, >  I'm trying to start Tomcat 7.0.11 from within an automated test. >  Unfortunately, when I call tomcat.start(), the following >  exception happens: > > Servlet /abc/ threw load() exception > java.lang.ClassNotFoundException: org.apache.

java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet when embedding tomcat 7.0.11

2011-04-07 Thread Christian Hödl
Hi, I'm trying to start Tomcat 7.0.11 from within an automated test. Unfortunately, when I call tomcat.start(), the following exception happens: Servlet /abc/ threw load() exception java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at org.apache.catalina.loader.

Re: Embedding Tomcat 7

2011-02-15 Thread Mark Thomas
On 15/02/2011 17:18, Afkham Azeez wrote: > One more question: Why isn't the Tomcat class used in the mainstream code > and is only used in the test cases? In Tomcat 5.x and 6.x IIRC, Catalina > used to extend Embedded. Because Tomcat provides simplified startup that isn't sophisticated enough for

Re: Embedding Tomcat 7

2011-02-15 Thread Afkham Azeez
eb 15, 2011 at 6:54 PM, Caldarale, Charles R < > > chuck.caldar...@unisys.com> wrote: > > > >>> From: Afkham Azeez [mailto:afk...@gmail.com] > >>> Subject: Embedding Tomcat 7 > >> > >>> We need our webapps to be visible through > &

Re: Embedding Tomcat 7

2011-02-15 Thread Mark Thomas
On 15/02/2011 14:07, Afkham Azeez wrote: > On Tue, Feb 15, 2011 at 6:54 PM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > >>> From: Afkham Azeez [mailto:afk...@gmail.com] >>> Subject: Embedding Tomcat 7 >> >>> We need our webapps to

Re: Embedding Tomcat 7

2011-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Afkam, On 2/15/2011 3:54 AM, Afkham Azeez wrote: > Hi folks, > Is there any documentation available on embedding Tomcat 7? We were using > Tomcat 5.5.23 but the Embedded class has been deprecated. The Tomcat class > is the alternative,

Re: Embedding Tomcat 7

2011-02-15 Thread Afkham Azeez
On Tue, Feb 15, 2011 at 6:54 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Afkham Azeez [mailto:afk...@gmail.com] > > Subject: Embedding Tomcat 7 > > > We need our webapps to be visible through > > multiple connectors. How can this be d

RE: Embedding Tomcat 7

2011-02-15 Thread Caldarale, Charles R
> From: Afkham Azeez [mailto:afk...@gmail.com] > Subject: Embedding Tomcat 7 > We need our webapps to be visible through > multiple connectors. How can this be done? Connectors belong to the Service, so you can attach new ones with this: Tomcat.getService().addConnector() -

Embedding Tomcat 7

2011-02-15 Thread Afkham Azeez
Hi folks, Is there any documentation available on embedding Tomcat 7? We were using Tomcat 5.5.23 but the Embedded class has been deprecated. The Tomcat class is the alternative, but it seems that a single Tomcat instance can only handle a single connector. We need our webapps to be visible

Re: Embedding tomcat and bug in org.apache.catalina.startup.Catalina

2010-02-04 Thread Henning Blohm
ok, done. Thanks, henning Am Mittwoch, den 03.02.2010, 13:08 +0300 schrieb Konstantin Kolinko: > public class MyCatalina extends Catalina { > >public Server getServer() { > >return this.server; > >} > > } > > ---

Re: Embedding tomcat and bug in org.apache.catalina.startup.Catalina

2010-02-03 Thread Konstantin Kolinko
2010/2/1 Henning Blohm : > Hi, > >  this is a question about embedding Tomcat into an application so that > it can still be configured using server.xml and web applications can be > added or removed programmatically. > >  I am using Tomcat 6.0.24. > >  The way I

Embedding tomcat and bug in org.apache.catalina.startup.Catalina

2010-02-01 Thread Henning Blohm
Hi, this is a question about embedding Tomcat into an application so that it can still be configured using server.xml and web applications can be added or removed programmatically. I am using Tomcat 6.0.24. The way I tried to make it work is by instantiating an instance of Catalina

Problem while embedding Tomcat 5.5.23- Class not found

2007-03-14 Thread kz
Hi, I am embedding tomcat in an application. I am using embedded version of Tomcat 5.5.23 but I get the following exception. I have added all the jar files in $CATALINAHOME\lib in my class path. Can anyone help me out? Mar 15, 2007 12:01:23 PM org.apache.catalina.startup.Embedded start INFO

Re: Embedding Tomcat in a standalone JAR

2007-01-03 Thread Martin Gainty
age - From: "Vacuum Joe" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, January 02, 2007 8:43 PM Subject: Re: Embedding Tomcat in a standalone JAR "what/which tasks do you want this embedded tomcat to accomplish?" Very simple tasks! I have a few

Re: Embedding Tomcat in a standalone JAR

2007-01-03 Thread Vacuum Joe
I ended up going with Jetty. It was not too difficult to write my own handlers for content within Jetty. It didn't have any built-in handlers where I could give it a URL as a base, but I was able to write a primitive static content handler and a very primitive Servlet handler which are enough

Re: Embedding Tomcat in a standalone JAR

2007-01-02 Thread Vacuum Joe
"what/which tasks do you want this embedded tomcat to accomplish?" Very simple tasks! I have a few Servlets and a few simple JSPs and a little bit of static content (html files and images) that I need it to run. No other external things, like no DB or anything else. No need for any other fanc

Re: Embedding Tomcat in a standalone JAR

2007-01-02 Thread Martin Gainty
qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, January 02, 2007 8:04 PM Subject: RE: Embedding Tomcat in a st

RE: Embedding Tomcat in a standalone JAR

2007-01-02 Thread Caldarale, Charles R
> From: Vacuum Joe [mailto:[EMAIL PROTECTED] > Subject: Re: Embedding Tomcat in a standalone JAR > > Right, those are two of the places I looked at, including the > source for Catalina.java, and they weren't helpful. They are > all about specifying files on the files

Re: Embedding Tomcat in a standalone JAR

2007-01-02 Thread Vacuum Joe
"There's a bit of real documentation here: http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/cat alina/startup/Embedded.html Unfortunately, the promising "See also:" link doesn't lead to much, but looking at the source code for org/apache/catalina/startup/Catalina.java should be

RE: Embedding Tomcat in a standalone JAR

2007-01-02 Thread Caldarale, Charles R
> From: Vacuum Joe [mailto:[EMAIL PROTECTED] > Subject: Embedding Tomcat in a standalone JAR > > I found a couple of guides to embedding Tomcat There's a bit of real documentation here: http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/cat alina/star

Embedding Tomcat in a standalone JAR

2007-01-02 Thread Vacuum Joe
gin. I found a couple of guides to embedding Tomcat, such as: http://www.onjava.com/lpt/a/1547 but a) it's out of date, because it covers methods that don't exist after Tomcat 5.0 and b) it only talks about serving the app out of the filesystem. Any sug

Embedding Tomcat 5.5.17

2006-10-03 Thread Miguel Correia Ricardo
Hi! I'm embedding tomcat 5.5.17 in my Java Aplication. When I create the engine, it says: "StandardEngine[null]". It works, but is it normal? Shouldn't be: StandardEngine[catalina]? Thanks in advance, Miguel Ricardo --