Thanks Christian.

This is just what I needed.

Jean-Robert Haddad
Directeur R&D 
KHEOPS technologies
tél.: 514.285.1211


-----Original Message-----
From: Christian Bongiorno [mailto:[EMAIL PROTECTED]] 
Sent: 18 décembre, 2001 21:18
To: Tomcat Users List
Subject: Re: Embedding Tomcat 4

I have embedded TC 4 into my JBuilder IDE and I have to believe it is
the
exact same thing for your situation

the class with main is org.apache.catalina.startup.Bootstrap

// java commandline
java -classpath
$CLASSPATH:/home/tomcat/bin/bootstrap.jar -Dcatalina.base=/home/tomcat
-Dcat
alina.home=/home/tomcat org.apache.catalina.startup.Bootstrap

or Call this from your app.

System.getProperties().put("catalina.base"."/home/tomcat");
System.getProperties().put("catalina.home"."/home/tomcat");

org.apache.catalina.startup.Bootstrap.main(new String[] {"start"});

That's it!


----- Original Message -----
From: "Arvind Gudipati" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 5:20 PM
Subject: RE: Embedding Tomcat 4


Embedded class doesnot deploy the .war files dynamically. You have to
add
contexts to the embedded tomcat manually.

I was having the same trouble initially until i started debugging and
realised that there are some configuration issues that also cause other
problems.
The regular Bootstrap class which starts up Tomcat loads the classes for
you, however you need to work that out too when you are using the
Embedded
class.

Arvind


-----Original Message-----
From: Jean-Robert Haddad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: Embedding Tomcat 4


Hello everyone.

I am trying to embed Tomcat 4.01 in my application. I use the
org.apache.catalina.startup.Embedded class. I simply copied code from
the main method, as indicated in the documentation.

My question is regarding contexts. Why do I have to create the contexts
manually? Can't I have all directories inside webapps be mapped to
contexts automatically? Why are the .war files not decompressed
automatically anymore? If I can't have the contexts created
automatically, how can I process the .war files?

Should I try to start Tomcat by using
org.apache.catalina.startup.Bootstratp class main method instead?

Thanks.

Jean-Robert Haddad
Directeur R&D
KHEOPS technologies
tél.: 514.285.1211

CONFIDENTIALITY NOTICE:  E-mail may contain confidential information
that is
legally protected.  Do not read this e-mail if you are not the intended
recipient. This e-mail transmission, and any documents, files or
previous
e-mail messages  attached to it may contain confidential information
that is
legally protected.  If you are not the intended recipient or a person
responsible for delivering it to the intended recipient,  you are hereby
notified that any disclosure, copying, distribution or use of any of the
information contained in or attached to this transmission is STRICTLY
PROHIBITED.  If you have received this transmission in error, please
immediately notify us by reply e-mail, by forwarding this to
[EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy
the
original transmission and its attachments without reading or saving in
any
manner.  Thank you.  For information about PANACYA Inc., please visit
our
website at http://www.panacya.com.



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to