RE: Virtual Hosting with Auto Deploy

2008-06-01 Thread Vin Miller
Chuck, I think you are right that it is a permission problem. Each
appBase is a separate hosting account having a different directory
owner. I'm concerned that I'll weaken security if I grant group write
access. In this case, I can probably deal with running apps from the
war, or manually expanding if necessary.

Thanks,
Vin

-Original Message- 
From: Caldarale, Charles R [EMAIL PROTECTED]
Sent: 5/31/2008 3:59:11 PM
To: users@tomcat.apache.org
Subject: RE: Virtual Hosting with Auto Deploy

 From: Vin Miller [mailto:[EMAIL PROTECTED]
 Subject: Re: Virtual Hosting with Auto Deploy

 I've tried a bunch of different configurations and it seems
 that nothing will result in the war files being unpacked.

Permissions problem? Does the uid Tomcat is running under have full
access to
all of the appBase directories?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.
 


Re: Virtual Hosting with Auto Deploy

2008-05-31 Thread Pid

Vin Miller wrote:

Hello,
 
I have searched the internet extensively and have not been able to find

an answer to my problem. I have a Virtual Private Server hosting account
pre configured with Tomcat 5.5.26. My goal is to have multiple domain
names, each with their own java app, served by this one instance of
Tomcat, and to be able to redeploy each app at any time without
restarting Tomcat. I've gotten through the first part, but am having
some strange behaivor regarding deployment.
 
For each Host in server.xml, both unpackWARs and autoDeploy are set to

true. When I place a .war file in the appBase directory as definied by
the Host, the app deploys, but the .war file doesn't expand. It seems
that the app is being run directly from the .war file. How is this
happening?




I have read that the .war will not unpack if the Context is in
server.xml. I took it out and moved it as suggested by the
documentation. Not only does the .war still not expand, the app is no
longer accessible. 


Moved it to where, have you defined a context.xml file in the .war, and 
if so, is it in META-INF/?


What is in your context definition?


Lastly, if I manually expand the .war file, and get rid of the .war file
itself, the app will not run regardless of where the Context is.
 
I should also mention that the appBase of each Host is the respective

domain's home directory rather than a directory under webapps.


As long as docBase != appBase...

Are you also using HTTPD or just Tomcat?



I am running out of ideas. If anyone has any advice, I'd greatly
appreciate hearing it.


Post the Host fragment for one site, and the matching context.xml, and 
 describe where you put it (as above).


p



Thanks,
Vin
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual Hosting with Auto Deploy

2008-05-31 Thread Vin Miller
Post the Host fragment for one site, and the matching context.xml,
and 
 describe where you put it (as above).

Host name=tennisladderpro.com appBase=/home/tlp/public_html
unpackWARs=true autoDeploy=true xmlValidation=false
xmlNamespaceAware=false
Aliaswww.tennisladderpro.com/Alias 
/Host

War file:
/home/tlp/public_html/ROOT.war

Context:
In war (required by Netbeans): META-INF/context.html
?xml version=1.0 encoding=UTF-8?
Context path=/

I also tried putting contexts in the following places with
docBase=/home/tlp/public_html/ROOT.war.
/usr/local/tomcat/conf/Catalina/tennisladderpro.com/ROOT.xml
/usr/local/tomcat/conf/Catalina/localhost/ROOT.xml

I've tried a bunch of different configurations and it seems that nothing
will result in the war files being unpacked.