The expected behavior was outlined below.

>>I would like for them to be able to drop wars in ~/tomcat/ and have
>>them deploy without manually adding Contexts.

I found the extracted contents under work/Standalone/localhost/ from an earlier experiment. Copying them under ~jbeamon/tomcat/ made the .class and .java visible, but they were not interpreted and run like a webapp. I'm not sure it extracted completely.

I'm under the distinct, printed impression that UserConfig should work like UserDir in apache. That's what I'm looking for. I'm not certain whether it will extract wars or just display jsps.

-j


Shapira, Yoav wrote:
Howdy,
First of all, what is the expected and/or desired behavior for the three
URLs you tested?

What happens if you copy the contents of the unpacked test war into the
~jbeamon directory?


Yoav Shapira
Millennium ChemInformatics



-----Original Message-----
From: John Beamon [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 12:37 PM
To: Tomcat Users List
Subject: UserConfig question

I have a team of developers, each with a $HOME/tomcat/ directory.  They
are authenticating against nss-LDAP, so they are not in /etc/passwd.  I
would like for them to be able to drop wars in ~/tomcat/ and have them
deploy without manually adding Contexts.  I've tried this...

=====
<Host name="localhost" debug="1" appBase="webapps"
      unpackWARs="true" autoDeploy="true">


<Listener className="org.apache.catalina.startup.UserConfig" homeBase="/var/www" directoryName="tomcat" debug="1" userClass="org.apache.catalina.startup.HomesUserDatabase" />


=====


... with proper closing of the Listener and Host.  I have a
"/var/www/jbeamon/tomcat/testwar.war" available.  ~jbeamon shows me a
directory listing of testwar.war.  ~jbeamon/testwar answers HTTP-404,
and ~jbeamon/testwar.war shows me the ASCII version of the compiled

war.


I have the following log output.

=====
# tail -f UserConfig.2003-12-19.log
2003-12-19 15:03:52 UserConfig[localhost]: Deploying user web

applications


2003-12-19 15:03:52 HostConfig[localhost]: BACKGROUND THREAD Starting
2003-12-19 15:03:52 UserConfig[localhost]: Deploying web application

for


user jbeamon
2003-12-19 15:03:52 WebappLoader[/~jbeamon]: Deploying class
repositories to work directory

/var/tc4/work/Standalone/localhost/~jbeamon


2003-12-19 15:03:52 ContextConfig[/~jbeamon]: Missing application
web.xml, using defaults only
2003-12-19 15:03:52 StandardManager[/~jbeamon]: Seeding random number
generator
class java.security.SecureRandom
2003-12-19 15:03:52 StandardManager[/~jbeamon]: Seeding of random

number


generator has been completed
2003-12-19 15:03:52 StandardWrapper[/~jbeamon:default]: Loading
container servlet default
2003-12-19 15:03:52 StandardWrapper[/~jbeamon:invoker]: Loading
container servlet invoker
2003-12-19 15:04:07 HostConfig[localhost]: Deploying discovered web
applications2003-12-19 15:04:22 HostConfig[localhost]: Deploying
discovered web applications
2003-12-19 15:05:15 StandardHost[localhost]: Mapping request URI
'/index.jsp'
2003-12-19 15:05:15 StandardHost[localhost]:  Mapped to context ''
2003-12-19 15:05:20 StandardHost[localhost]: Mapping request URI
'/~jbeamon'
2003-12-19 15:05:20 StandardHost[localhost]:  Mapped to context

'/~jbeamon'


2003-12-19 15:05:20 StandardHost[localhost]: Mapping request URI
'/~jbeamon/'
2003-12-19 15:05:20 StandardHost[localhost]:  Mapped to context

'/~jbeamon'


2003-12-19 15:05:22 HostConfig[localhost]: Deploying discovered web
applications2003-12-19 15:05:27 StandardHost[localhost]: Mapping

request


URI '/~jbeamon/testwar'
2003-12-19 15:05:27 StandardHost[localhost]:  Mapped to context

'/~jbeamon'


2003-12-19 15:05:37 HostConfig[localhost]: Deploying discovered web
applications2003-12-19 15:05:52 HostConfig[localhost]: Deploying
discovered web applications
=====

I don't know what I'm missing, but I'm open to suggestions. Every doc

I


find online about this copy-pastes the same instructions, including the
"C:\homes" and comment about hosting on Windows.  Can someone offer
something from experience?  Thanks in advance.

--

John Beamon
Systems Administrator
Franklin American Mortgage
eml: [EMAIL PROTECTED]
web: www.franklinamerican.com



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



Reply via email to