You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeff Hoffman <je...@headland-media.com> on 2000/04/17 22:20:27 UTC

Possible Enhancement

I can think of a few possible enhancements for the tomcat product, and would like to bounce the ideas off everyone...

1) Make it so you can run tomcat as a user rather than the user that starts the process. Apache you can tell to run as user blah and group blah, I can't believe that this isn't implemented in tomcat.

2) It would be nice to be able to do directives in the server.xml file so that when you set up a context, you could also set up logging for all the stuff that tomcat does with regards to that context. Basically, splitting out logs similar to the way that vhosts can be set up in apache to each have their own error and access logs.

The next question I have is about the apache-tomcat.conf file. When exactly is that read and by what process. I would think that it's being read by apache when apache starts up, but the only thing that I have in my httpd.conf is a reference to include the tomcat.conf file which doesn't reference anywhere the tomcat-apache.conf file that I can find. Can anyone explain where that's at. I'd like to take that information and put it into the vhosts definitions for my virtual hosts if possible. Any thoughts on this?

Craig, your email helped a little, and I figured I'd toss some ideas out here. Thanks in advance for any help.

-jeff hoffman
headland digital media : webmaster
513 755 0086

What does this error mean?

Posted by Charles Luo <ch...@allsofts.com>.
hi, guys,

I have installed Apache-1.3.9 + Tomcat-3.0 on RH6.0 Linux.

When running JSP / Servlet examples provided by Tomcat distribution, I got
the following error message from error_log.log of Apache:

child pid 927 exit signal Segmentation fault (11)

What kind of error could cause this error to be happened? And what I should
do?

Any suggestion would be appreciated. Thank you in advance.

cheers,
charles

----------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


Re: Does anyone know about Java packages?

Posted by "grobe.org" <ga...@grobe.org>.
the package tree is mirrored under WEB-INF/classes

so, in the top of your file, you may have:
package myPackA.myPackB.ThisPackage;

then, the path under tomcat may look like:

/usr/local/tomcat/webapps/myApp/WEB-INF/classes/myPackA/myPackB/ThisPackage

btw - take a look at Ant (on the jakarta.apache.org site) it'll place all
this for you.

----- Original Message -----
From: "jeff hoffman" <je...@headland-media.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, April 18, 2000 4:41 AM
Subject: Does anyone know about Java packages?


> Does anyone know how to implement java packages under tomcat? My
developers
> are crying about it and I haven't seen anything in the documentation.
> (though I have a long plane ride tomorrow to SF to read the 2.2 spec a lot
> more closely on...)
>
> Thanks in advance.
> -jeff hoffman
>
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>


Does anyone know about Java packages?

Posted by jeff hoffman <je...@headland-media.com>.
Does anyone know how to implement java packages under tomcat? My developers
are crying about it and I haven't seen anything in the documentation.
(though I have a long plane ride tomorrow to SF to read the 2.2 spec a lot
more closely on...)

Thanks in advance.
-jeff hoffman



Re: Possible Enhancement

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.

Jeff Hoffman wrote:

> I can think of a few possible enhancements for the tomcat product, and
> would like to bounce the ideas off everyone... 1) Make it so you can
> run tomcat as a user rather than the user that starts the process.
> Apache you can tell to run as user blah and group blah, I can't
> believe that this isn't implemented in tomcat. 2) It would be nice to
> be able to do directives in the server.xml file so that when you set
> up a context, you could also set up logging for all the stuff that
> tomcat does with regards to that context. Basically, splitting out
> logs similar to the way that vhosts can be set up in apache to each
> have their own error and access logs. The next question I have is
> about the apache-tomcat.conf file. When exactly is that read and by
> what process. I would think that it's being read by apache when apache
> starts up, but the only thing that I have in my httpd.conf is a
> reference to include the tomcat.conf file which doesn't reference
> anywhere the tomcat-apache.conf file that I can find. Can anyone
> explain where that's at. I'd like to take that information and put it
> into the vhosts definitions for my virtual hosts if possible. Any
> thoughts on this? Craig, your email helped a little, and I figured I'd
> toss some ideas out here. Thanks in advance for any help.
> -jeff hoffman
> headland digital media : webmaster
> 513 755 0086

(1) Apache can only do this if you start it as root.  If you have root
access, it's trivially easy -- just make a root-executable script that
does an "su" command to the correct username.

    su - myusername -c "cd $TOMCAT_HOME ; ./bin/startup.sh"

(2) The current architecture of Tomcat is not really set up for this --
it's a good idea.  It's also useful to be able to log at the virtual
host level (i.e. all the web apps that belong to a particular virtual
host) as well.  Both of these are already designed in to the Catalina
architecture proposal I'm working on, to be ready in time for Tomcat
4.x.  For further information, download a source distribution of Tomcat
(or get it via anonymous CVS access) and check out the
"proposals/catalina" subdirectory.

(3)  I primarily use Tomcat stand-alone, so pretty much all I know about
apache-tomcat.conf is what the user's guide has to say.  In particular,
the file "$TOMCAT_HOME/conf/tomcat-apache.conf" is generated each time
you start Tomcat, based on the server.xml configuration.  If you don't
need anything special, you can just include this file in your httpd.conf
-- otherwise, you can use this as a model for doing your own.  But it is
up to you to choose what to include in "httpd.conf" -- Tomcat does NOT
change "httpd.conf" for you.  The user's guide is in
"$TOMCAT_HOME/doc/uguide/tomcat_ug.html" in the release.

Craig





Re: Possible Enhancement

Posted by Guillaume Rousse <Gu...@univ-reunion.fr>.
Le mar, 18 avr 2000, vous avez �crit :
> 
> I can think of a few possible enhancements for the tomcat product, and would like to bounce the ideas off everyone...
> 
> 1) Make it so you can run tomcat as a user rather than the user that starts the process. Apache you can tell to run as user blah and group blah, I can't believe that this isn't implemented in tomcat.
> 
> 2) It would be nice to be able to do directives in the server.xml file so that when you set up a context, you could also set up logging for all the stuff that tomcat does with regards to that context. Basically, splitting out logs similar to the way that vhosts can be set up in apache to each have their own error and access logs.
> 
> The next question I have is about the apache-tomcat.conf file. When exactly is that read and by what process. I would think that it's being read by apache when apache starts up, but the only thing that I have in my httpd.conf is a reference to include the tomcat.conf file which doesn't reference anywhere the tomcat-apache.conf file that I can find. Can anyone explain where that's at. I'd like to take that information and put it into the vhosts definitions for my virtual hosts if possible. Any thoughts on this?
apache-tomcat.conf is automatically generated by tomcat every time it starts,
from server.xml content : it's content is dynamic. tomcat.conf is the static
version. So you can use one of the other. For my part, i'm still looking what
template use tomcat for building tomcat-apache.conf, as i would like to use
it with some minor changes (like the directory to my mod_jserv module, for
example).


> Craig, your email helped a little, and I figured I'd toss some ideas out here. Thanks in advance for any help.
> 
> -jeff hoffman
> headland digital media : webmaster
> 513 755 0086
----------------------------------------

-- 
Guillaume Rousse
Iremia - Universit� de la R�union

Sleep doesn't exists. Just lack of cafeine.