RE: Managing automatic deployment with multiple virtual hosts

2005-06-12 Thread Ben Rometsch
That seems to have been the solution! Thanks very much. 

Is this documented anywhere in the official Tomcat documentation?  

-Original Message-
From: charly [mailto:[EMAIL PROTECTED] 
Sent: 11 June 2005 10:08
To: Tomcat Users List
Subject: Re: Managing automatic deployment with multiple virtual hosts

Hello,

have you tried naming the war files
ROOT.war??
Because I think there is a special naming convention for the root
context.
This means if you have different applications you need to deploy them
into different folders.

Karl-Heinz

- Original Message -
From: Ben Rometsch [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, June 10, 2005 10:34 PM
Subject: Managing automatic deployment with multiple virtual hosts


Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk.

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application

List:

www.sitea.com/
localhost/sitea

www.siteb.com/
localhost/siteb

www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host:

Host name=www.sitea.com

Context path= docBase=/opt/tomcat/webapps/sitea debug=0

reloadable=true/

/Host

Host name=www.siteb.com

Context path= docBase=/opt/tomcat/webapps/siteb debug=0

reloadable=true/

/Host

Host name=www.sitec.com

Context path= docBase=/opt/tomcat/webapps/sitec debug=0

reloadable=true/

/Host

I still have the localhost set up in the server.xml file:

Host name=localhost appBase=webapps unpackWARs=true

autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM.

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files?

Thanks in advance,

Ben


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
anmelden: http://mail.yahoo.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Managing automatic deployment with multiple virtual hosts

2005-06-10 Thread Ben Rometsch
Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk. 

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application
List: 

www.sitea.com/
localhost/sitea
www.siteb.com/
localhost/siteb
www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host: 

Host name=www.sitea.com
  Context path= docBase=/opt/tomcat/webapps/sitea debug=0
reloadable=true/
/Host

Host name=www.siteb.com
  Context path= docBase=/opt/tomcat/webapps/siteb debug=0
reloadable=true/
/Host

Host name=www.sitec.com
  Context path= docBase=/opt/tomcat/webapps/sitec debug=0
reloadable=true/
/Host

I still have the localhost set up in the server.xml file: 

Host name=localhost appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM. 

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files? 

Thanks in advance,
Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Managing automatic deployment with multiple virtual hosts

2005-06-10 Thread Ben Rometsch
Hi There,

I am running Tomcat 5.5.9 in production, using 1 tomcat instance to
service several websites (each with their own hostname) via virtual
hosts. I have Apache 2 running in front of Tomcat, connecting via
mod_jk. 

I am having OutOfMemory issues, and have noticed that, due to my webapps
structure, I appear to be deploying 2 instances of each site. When I
look in the manager application I see the following in the Application

List: 

www.sitea.com/ 
localhost/sitea

www.siteb.com/ 
localhost/siteb

www.sitec.com/
localhost/sitec

Etc. etc. My current directory structure is simply placing the war files
for each application into the tomcat/webapps folder. I then add a Host
declaration in the server.xml file for each virtual host: 

Host name=www.sitea.com

Context path= docBase=/opt/tomcat/webapps/sitea debug=0

reloadable=true/

/Host

Host name=www.siteb.com

Context path= docBase=/opt/tomcat/webapps/siteb debug=0

reloadable=true/

/Host

Host name=www.sitec.com

Context path= docBase=/opt/tomcat/webapps/sitec debug=0

reloadable=true/

/Host

I still have the localhost set up in the server.xml file: 

Host name=localhost appBase=webapps unpackWARs=true

autoDeploy=true xmlValidation=false xmlNamespaceAware=false

I presume this is the culprit. The problem I am having is that I cant
figure out how to get Tomcat to auto-deploy war files without then
creating a second running instance in memory with a context path of
/sitea. I've tried a variety of different directory structures, but am
unable to deploy a war file without it correctly deploying to a / path,
and thus not consuming more memory within the VM. 

Is there a best practise way of doing this? Should I be putting
context.xml declarations in the META-INF directory of my war files? 

Thanks in advance,

Ben


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can anyone Undeploy an Existing Application in 4.1.10?

2002-09-12 Thread Ben Rometsch

Hi,

I am getting this error in both Windows XP and Gentoo Linux:

http://localhost:8080/manager/undeploy?path=/outreach

Always results in:

FAIL - Cannot remove document base for path /outreach

With, curiously, the following being logged:

2002-09-12 12:37:13 Manager: undeploy: Undeploying web
application at '/outreach'

I can't find any error messages in any of the log files. Running 

http://localhost:8080/manager/list

Shows that the application is still there. Has ANYONE managed to get
this working in 4.1.10? Otherwise, I'll submit a bug...

Thanks,
Ben


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Can anyone Undeploy an Existing Application in 4.1.10?

2002-09-12 Thread Ben Rometsch

Yes I have. You can't undeploy an existing application through that app.
You  can only remove an application, which is different. 

I'm pretty sure the
http://localhost:8080/manager/undeploy?path=/webapp component is not
working - has anyone managed to get it functioning properly?

-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]] 
Sent: 12 September 2002 12:46
To: Tomcat Users List
Subject: RE: Can anyone Undeploy an Existing Application in 4.1.10?


Have you try the html version: http://localhost:8080/manager/html ?

I hope this will work

-Mensaje original-
De: Ben Rometsch [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 12 de septiembre de 2002 13:39
Para: [EMAIL PROTECTED]
Asunto: Can anyone Undeploy an Existing Application in 4.1.10?

Hi,

I am getting this error in both Windows XP and Gentoo Linux:

http://localhost:8080/manager/undeploy?path=/outreach

Always results in:

FAIL - Cannot remove document base for path /outreach

With, curiously, the following being logged:

2002-09-12 12:37:13 Manager: undeploy: Undeploying web
application at '/outreach'

I can't find any error messages in any of the log files. Running

http://localhost:8080/manager/list

Shows that the application is still there. Has ANYONE managed to get
this working in 4.1.10? Otherwise, I'll submit a bug...

Thanks,
Ben


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Best way to redeploy a war file?

2002-09-11 Thread Ben Rometsch

Hi There,

Apologies if this has been asked before. I'm running tomcat 4.0 in
production and looking to move up to 4.1. Can someone explain the
simplest and least intrusive method of redeploying a war file to update
an application?

At the moment my method (in 4.0) is:

- Remove /webapps/app.war
- Upload new app.war to /webapps
- Shutdown tomcat
- rm -Rf webapps/app
- Startup tomcat

Which all seems a bit over the top. Is there a simpler method that does
not involve taking tomcat down?

In 4.1, I've tried using the http manager app to undeploy and then
redeploy the application, but the undeploy does not seem to work. I
always get the error:

FAIL - Cannot remove document base for path /outreach

Is this a bug? I've tried it on the /examples app as well and I get the
same error. 

Many thanks in advance,
Ben Rometsch


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Website for Tomcat/Apache Integration...

2002-05-16 Thread Ben Rometsch

How is mod_jk different from mod_webapp, and where does coyote fit into
all of this? Jserv is the old version of all this, correct?

Will this setup:

Apache (1.3)
   |
   |
mod_jk
   |
   |
Tomcat (4.0.3)

allow me to run 1 instance of apache, using virtual hosts, to serve
multiple instances of tomcat, 1 for each host?

Ben

-Original Message-
From: Chris Herrmann [mailto:[EMAIL PROTECTED]] 
Sent: 16 May 2002 02:14
To: 'Tomcat Users List'
Subject: RE: Website for Tomcat/Apache Integration...


perhaps the abundance of information is confusing...


in ten words or less, all you need to do is:

Setup apache, and get it to load mod_jk , and the mod_jk.conf

Setup tomcat, edit mod_jk.conf, and a workers.properties

Restart apache, and you should be cooking with gas.

Ignore the bits about jserv, unless you know you need them. They'll just
confuse you.

it looks a little like this...


Apache
   |
   |
mod_jk
   |
   |
Tomcat

I'll let you find the detail of how to do each of these bits in the
doco.

Cheers,

Chris

|-Original Message-
|From: Ben Rometsch [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, 16 May 2002 09:44
|To: [EMAIL PROTECTED]
|Subject: Website for Tomcat/Apache Integration...
|
|
|Hi There,
|
|Is there a website out there that I have yet to find that details 
|common setups for Tomcat/Apache/Linux ? I cant seem to find any 
|coherent information on this at all. I've been reading and reading and 
|reading (especially about connectors) and I'm still confused...
|
|I'd be happy to set up a small site with a few example configurations 
|along with step-by-step instructions on how to get things running under

|Linux/Windows. Maybe also detailing what the different connectors are, 
|how the different versions of tomcat and apache affect each other etc. 
|etc.
|
|Would anyone be interested in helping me out?
|
|Thanks,
|Ben Rometsch
|
|
|--
|To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Website for Tomcat/Apache Integration...

2002-05-15 Thread Ben Rometsch

Hi There,

Is there a website out there that I have yet to find that details common
setups for Tomcat/Apache/Linux ? I cant seem to find any coherent
information on this at all. I've been reading and reading and reading
(especially about connectors) and I'm still confused...

I'd be happy to set up a small site with a few example configurations
along with step-by-step instructions on how to get things running under
Linux/Windows. Maybe also detailing what the different connectors are,
how the different versions of tomcat and apache affect each other etc.
etc.

Would anyone be interested in helping me out? 

Thanks,
Ben Rometsch


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Doing some work when an image is requested

2002-05-14 Thread Ben Rometsch

Hi there,

I dont think this has been asked before...Apologies if it has. 

I want to trigger Tomcat (4.0.3) into doing some work (writing a record
to a DB, so ideally I want to execute a javabean method) when a specific
image is requested. Is there any way of doing this?

Many thanks,
Ben Rometsch


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Doing some work when an image is requested

2002-05-14 Thread Ben Rometsch

Hi There,

Sorry - could you explain a little further? I'm not quite sure where
you're coming from...

Many thanks for the reply,
Ben

-Original Message-
From: Simon Stewart [mailto:[EMAIL PROTECTED]] 
Sent: 14 May 2002 13:14
To: Tomcat Users List
Subject: Re: Doing some work when an image is requested


On Tue, May 14, 2002 at 12:42:31PM +0100, Ben Rometsch wrote:
 Hi there,
 
 I dont think this has been asked before...Apologies if it has.
 
 I want to trigger Tomcat (4.0.3) into doing some work (writing a 
 record to a DB, so ideally I want to execute a javabean method) when a

 specific image is requested. Is there any way of doing this?

Couldn't you just put a filter in front of the request? Tomcat supports
them, and it's simple to set up and non-intrusive.

Cheers,

Simon

-- 
I like to torture my plants by watering them with ice cubes.
 Steven Wright

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat 3.2.2 and Xerces

2001-06-19 Thread Ben Rometsch

Hi There,

I'm new to the group - apologies if this has been asked 100 times before.

I'm writing a web application that parses an XML file with SAX in order to
retrieve database connection details. The beans responsible for this make
use of the xerces XML parser. Testing the beans in JBuilder, everything
works fine.

When I compile the class files and attempt to invoke the methods through a
jsp page in Tomcat, it throws a java.lang.NoClassDefFoundError error.

I've been scouring Deja and the tomcat documentation. It sounds like I can't
use another XML parser on top of the one tomcat uses to parse its
configuration information. Is this correct? If this is the case, is the only
solution to re-write the SAX parser bean to make use of JAXP?

Thanks in advance,
Ben
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.262 / Virus Database: 132 - Release Date: 12/06/2001