remote logging

2002-12-08 Thread Jonas Björnerstedt
Hello,

I just got around to using logging. Although *really* simple to use, it
would be even better with remote logging. I did some searching in the
archives and on the net, without finding much. Before writing my own servlet
that dumps the logs/stderr.log as a response, I thought I would ask if
anybody has seen something better. I want to page through the log file in a
web browser, preferably html-formatted.

Jonas


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




manager/reload = restart?

2002-12-07 Thread Jonas Björnerstedt
Hello,

While developing a Struts application I have to restart it frequently. Using
the Tomcat 4.1 manager makes this quicker. What is not clear to me after
reading through the documentation is the difference between stop/start and
reload. The latter does not reload my struts-config.xml, while the former
combination does. According to tomcat-docs/manager-howto.html reload is used
to

Signal an existing application to shut itself down and reload. This can be
useful when [...] you've made other changes (such as to conf/web.xml) that
are not automatically recognized by Tomcat.

According to

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg73895.html

reload will be faster(one command vs two), but start/stop will allow
web.xml to be read again.

What is the difference between reload and stop/start?

Jonas


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




RE: manager/reload = restart?

2002-12-07 Thread Jonas Björnerstedt
Thank's for the reply.

 For the particular case of a Struts app, most of the time you're just
 changing struts-config.xml, not web.xml, so reload is usually the quickest
 way to update your app to test the things you just added or changed.

That was my problem, reload doesn't reload struts-config.xml. For some
reason my app is not updated on reload when struts-config.xml is changed,
whereas stop/start works. (Tomcat 4.10 + Struts 1.1b2)

Jonas


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




RE: manager/reload = restart?

2002-12-07 Thread Jonas Björnerstedt
 You might want to try this with the released version of Tomcat (4.1.12)
 also, instead of an intermediate build like 4.1.10.

I reinstalled with 4.1.16. Same thing. The Tomcat logs for reload and
stop/start are below. It's not a serious problem, with two browser windows
restarting takes a couple of more steps. But it is a bit strange.

Jonas

--
2002-12-08 00:55:44 Manager: restart: Reloading web application at
'/digester'
2002-12-08 00:55:44 StandardContext[/digester]: Reloading this Context has
started
2002-12-08 00:55:44 WebappLoader[/digester]: Deploying class repositories to
work directory C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\digester
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy class files
/WEB-INF/classes to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\classes
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-beanutils.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-collections.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-dbcp.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-dbcp.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-digester.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-fileupload.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-fileupload.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-lang.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-lang.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-logging.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-pool.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-pool.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-resources.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-resources.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-services.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-services.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-validator.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-validator.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\jakarta-oro.jar
2002-12-08 00:55:44 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/struts.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\struts.jar
2002-12-08 00:55:44 StandardWrapper[/digester:default]: Loading container
servlet default
2002-12-08 00:55:44 StandardWrapper[/digester:invoker]: Loading container
servlet invoker
2002-12-08 00:55:46 StandardManager[/digester]: Seeding random number
generator class java.security.SecureRandom
2002-12-08 00:55:46 StandardManager[/digester]: Seeding of random number
generator has been completed
2002-12-08 00:55:46 StandardContext[/digester]: Reloading this Context is
completed

2002-12-08 00:55:51 Manager: stop: Stopping web application at '/digester'
2002-12-08 00:55:51 StandardHost[localhost]: standardHost.stop /digester
2002-12-08 00:55:55 Manager: start: Starting web application at '/digester'
2002-12-08 00:55:55 StandardHost[localhost]: standardHost.start /digester
2002-12-08 00:55:55 WebappLoader[/digester]: Deploying class repositories to
work directory C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\digester
2002-12-08 00:55:55 WebappLoader[/digester]: Deploy class files
/WEB-INF/classes to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\classes
2002-12-08 00:55:55 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-beanutils.jar
2002-12-08 00:55:55 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-collections.jar
2002-12-08 00:55:55 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-dbcp.jar to C:\Program Files\Apache Group\Tomcat
4.1\webapps\digester\WEB-INF\lib\commons-dbcp.jar
2002-12-08 00:55:55 WebappLoader[/digester]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to C:\Program Files\Apache Group\Tomcat

Virtual host application directories in Tomcat 3.2 and 4.0

2001-05-21 Thread Jonas Björnerstedt

Although I haven't tried it, in Tomcat 4.0 each Host directive can specify
an application base directory (webapps/) for the host. The appBase attribute
specifies for each host where applications will be deployed.

Can the same thing be done in 3.2, if virtual hosts are specified with the
Host directive? The only way I have found for specifying the directory, is
by using the home attribute to the ContextManager directive. This can't be
the right approach, as each host is specified within the ContextManager
directive. 

Does anybody have any suggestions?

Jonas



RE: Virtual host application directories in Tomcat 3.2 and 4.0

2001-05-21 Thread Jonas Björnerstedt

I want to have a webapps/ directory for each virtual host. A home directory
such as this allows the user to add subdirectories without explicitly adding
the contexts to server.xml. Using a Context element as you suggested will
only give me one application. I suppose I could specify each application as
a Context element, but the ease of use and flexibility of the webapps/
directory is then lost.

Jonas

-Original Message-
From: Williamson, James [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 2:48 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Virtual host application directories in Tomcat 3.2 and 4.0


Jonas,
Try using the absolute path in the docBase attribute within the Context
element. Hazarding a guess, I would expect if you used a relative path it
would be 'relative' to the docBase in the ContextManager element.
Regards,
James
-Original Message-
From: Jonas Björnerstedt [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2001 09:58
To: '[EMAIL PROTECTED]'
Subject: Virtual host application directories in Tomcat 3.2 and 4.0


Although I haven't tried it, in Tomcat 4.0 each Host directive can specify
an application base directory (webapps/) for the host. The appBase attribute
specifies for each host where applications will be deployed.
Can the same thing be done in 3.2, if virtual hosts are specified with the
Host directive? The only way I have found for specifying the directory, is
by using the home attribute to the ContextManager directive. This can't be
the right approach, as each host is specified within the ContextManager
directive.
Does anybody have any suggestions?
Jonas


**
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**




Virtual hosts and individual webapps directories

2001-05-19 Thread Jonas Björnerstedt

Is there any way to configure Tomcat to have multiple webapps directories,
one for each user / virtual host? I want each user to have a webapps
directory where explicit specification of the context path is not necessary.
As it is, I have to enter a new Context path  entry in the Host name 
for every context a user has.

Jonas