You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Noah Cantor <no...@gmail.com> on 2010/07/13 17:23:20 UTC

Tomcat/webapp bundled deployment

Hello, I would like to deploy Tomcat bundled with a few applications (both
webapps and non-web applications).  Preferably, this would all be stored in
one file (be it a jar, ear, or any other format), and upon decompressing, I
could simply run a script that would activate the server, load the webapps
onto the server, and launch the non-web applications.  My first question is
how can I package Tomcat along with all other necessary source/class files,
scripts and whatnot.  I would be interested in packaging via Eclipse, but
any other method would be fine as well.

I am currently running Tomcat v6.0.18 on Windows XP, but I plan to deploy on
both Windows XP and Linux (various possible flavors).

If more information is needed, please let me know, and I will reply as
quickly as I can.  Thanks for your help.

RE: weird bug?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: michel [mailto:compukat@videotron.ca]
> Subject: weird bug?
> 
> I probaly have some configuation all wrong

So post your server.xml and the web.xml for your webapp.  Remove all comments and obscure any privileged information (eg, passwords).  Lots of configuration things have changed since Tomcat 4.

> If I have this code in a jsp that is in the 
> appBase="webapps/supergrow"

That would be an extremely odd and probably erroneous setting for appBase; let's hope you meant docBase.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: weird bug?

Posted by Konstantin Kolinko <kk...@apache.org>.
2010/7/14 Len Popp <le...@gmail.com>:
> Suggestion: In future, when deriding someone for "hijacking" threads,
> do it in a private email instead of annoying everyone else on the
> list. Thanks.

1. The "don't hijack threads" messages are important.
2. Private emails are discouraged, per policy.

Best regards,
Konstantin Kolinko

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


Re: weird bug?

Posted by Len Popp <le...@gmail.com>.
On Tue, Jul 13, 2010 at 17:42, Caldarale, Charles R
<Ch...@unisys.com> wrote:
> You really don't know how to create a new e-mail message, rather than hitting the reply button?  What seriously deficient e-mail client are you using?
>
>  - Chuck

You really don't know that most people don't understand your problem,
because we use email clients that recognize threads properly? All of
the hundreds of "don't hijack threads" messages I see on this list are
nothing but spam, AFAIC.

Suggestion: In future, when deriding someone for "hijacking" threads,
do it in a private email instead of annoying everyone else on the
list. Thanks.
--
Len

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


Re: weird bug?

Posted by Bob Hall <rf...@yahoo.com>.
--- On Tue, 7/13/10 at 2:50 PM, michel <co...@videotron.ca> wrote:

> You could have just answered my
> question, instead of making such a snarky reply.
> 

Perhaps this will help:

  http://en.wikipedia.org/wiki/User:DonDiego/Thread_hijacking

- Bob


      

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


Re: weird bug?

Posted by michel <co...@videotron.ca>.
You could have just answered my question, instead of making such a snarky 
reply.



Michel


----- Original Message ----- 
From: "Caldarale, Charles R" <Ch...@unisys.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Tuesday, July 13, 2010 5:42 PM
Subject: RE: weird bug?


> From: michel [mailto:compukat@videotron.ca]
> Subject: Re: weird bug?
>
> Please explain how to start a new thread, versus hijacking one.

You really don't know how to create a new e-mail message, rather than 
hitting the reply button?  What seriously deficient e-mail client are you 
using?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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


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


RE: weird bug?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: michel [mailto:compukat@videotron.ca]
> Subject: Re: weird bug?
> 
> Please explain how to start a new thread, versus hijacking one.

You really don't know how to create a new e-mail message, rather than hitting the reply button?  What seriously deficient e-mail client are you using?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: weird bug?

Posted by michel <co...@videotron.ca>.

> Please don't hijack threads. If you'd like to try again in a new thread...
>
> Mark


Please explain how to start a new thread, versus hijacking one.


Michel 


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


Re: weird bug?

Posted by Mark Thomas <ma...@apache.org>.
On 13/07/2010 22:06, michel wrote:
> I probaly have some configuation all wrong, but with Apache Tomcat
> Version 6.0.26 I have this weird new bug that I didn't have in Tomcat 4.1.
> 
> 
> If I have this code in a jsp that is in the appBase="webapps/supergrow"
> directory the import seems to work
> 
> 
> <%@ page import="compukat.io.FileUtil" %>
> 
> 
> but if I have the JSP in webapps/supergrow/canscale it stops working ...

Please don't hijack threads. If you'd like to try again in a new thread...

Mark



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


weird bug?

Posted by michel <co...@videotron.ca>.
 I probaly have some configuation all wrong, but with Apache Tomcat Version 
6.0.26 I have this weird new bug that I didn't have in Tomcat 4.1.


If I have this code in a jsp that is in the appBase="webapps/supergrow" 
directory the import seems to work


<%@ page import="compukat.io.FileUtil" %>


but if I have the JSP in webapps/supergrow/canscale it stops working ...


Thank you



Michel






 


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


Re: Tomcat/webapp bundled deployment

Posted by David Fisher <df...@jmlafferty.com>.
That is pretty much what i do, but I recommend that you adopt an overlay approach. It will make it easy for you to take new versions of Tomcat when they are available.

Here is how I currently deploy to Solaris.

(1) I use a blessed tomcat distribution from http://tomcat.apache.org/download-60.cgi

(2) I build a tarball that contains files to be installed relative to the tomcat directory

- bin/setenv.sh - to configure the environment.
- conf/server.xml - to configure tomcat hosts
- conf/tomcat-users.xml - to enable a user for jmx and the manager
- conf/context.xml - to configure the context.
- Catalina/<domainname>/manager.xml - to manage my domain.
- lib/*.jar  - common jar files - poi, lucene, log4j, etc.
- webapps-wars/ROOT.war - my webapp - I separate the base in server.xml

(3) I have an installation script that always assumes that there is either a previous install or a fresh installation of Tomcat.

- stops tomcat.
- makes sure that examples and other default tomcat applications are removed.
- changes the directory to the tomcat base.
- untars the tarball over tomcat.
- modifies the jvmroute in the conf/server.xml so my apache front ends can load balance with mod_jk.

If you can use cygwin then you may be able to create a single script for both Windows and Linux.

Regards,
Dave

On Jul 13, 2010, at 8:23 AM, Noah Cantor wrote:

> Hello, I would like to deploy Tomcat bundled with a few applications (both
> webapps and non-web applications).  Preferably, this would all be stored in
> one file (be it a jar, ear, or any other format), and upon decompressing, I
> could simply run a script that would activate the server, load the webapps
> onto the server, and launch the non-web applications.  My first question is
> how can I package Tomcat along with all other necessary source/class files,
> scripts and whatnot.  I would be interested in packaging via Eclipse, but
> any other method would be fine as well.
> 
> I am currently running Tomcat v6.0.18 on Windows XP, but I plan to deploy on
> both Windows XP and Linux (various possible flavors).
> 
> If more information is needed, please let me know, and I will reply as
> quickly as I can.  Thanks for your help.


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