Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
UserConfig question

UserConfig question

2003-12-22       - By John Beamon

 Back
Reply:     1     2     3     4  

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 Source code of org.apache.catalina.startup.UserConfig"
        homeBase="/var/www" directoryName="tomcat" debug="1"
        userClass="org.apache.catalina.startup.HomesUserDatabase Source code of 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 (See http://TTP-404.ora-code.com),
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 Source code of 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: jbeamon@(protected)
web: www.franklinamerican.com



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.