Re: Tomcat, mod_jk, Apache and virtual host

2004-10-06 Thread Glen Ezkovich
Thanks Alex,
Its a good resource but, we were hoping to be able to define the  
context some where besides the server.xml, such as in the appBase. I've  
run across mentions of using xml fragments for this, but as yet haven't  
been able to find out much.

If anyone knows about how this can be done, I'd appreciate hearing  
about it.

On Oct 6, 2004, at 6:12 AM, Alex wrote:
Will this help?
http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg136432.html

On Sun, 3 Oct 2004, Glen Ezkovich wrote:
Date: Sun, 3 Oct 2004 16:55:10 -0500
From: Glen Ezkovich [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Tomcat, mod_jk, Apache and virtual host
We have set up Tomcat and Apache using mod_jk and are using virtual
hosting on both. We can throw a jsp page into our default directory  
and
it displays fine so we know things work.
We have serveral servlets to deploy for each virtual host and we'd
rather not make entries in the main server.xml for each contex. We'd
also like to be able to set a default servlet for each virtual host.
Is there a way to do this in each appBase?

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


Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to  
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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


Tomcat, mod_jk, Apache and virtual host

2004-10-03 Thread Glen Ezkovich
We have set up Tomcat and Apache using mod_jk and are using virtual 
hosting on both. We can throw a jsp page into our default directory and 
it displays fine so we know things work.
We have serveral servlets to deploy for each virtual host and we'd 
rather not make entries in the main server.xml for each contex. We'd 
also like to be able to set a default servlet for each virtual host.  
Is there a way to do this in each appBase?

Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to 
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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


Re: chroot Linux 2.4.20-8 and tomcat 5.0.27

2004-09-19 Thread Glen Ezkovich
Sjoerd,
Thanks for your input. We installed Java within the chroot jail and are 
still having this problem. I have no problem increasing the stack size 
using Xss but I have no idea what property sets the initial thread 
stack location or which would allow us to allocate stack guard pages.

On Sep 19, 2004, at 8:06 AM, Sjoerd van Leent wrote:
Did you install Java within or without the chroot jail?
If it is without the chroot jail, it can't detect certain 
configuration files, with the abcense of these, it doesn't know how to 
initialize itself. You could either:

Use the parameters for the java executable
Copy the needed configuration files (property files)
Install Java within the chroot jail
Regards,
Sjoerd
Glen Ezkovich wrote:
We are trying to run tomcat 5.0.27 in a chroot jail on Linux 2.4.20-8 
. When we start tomcat we always get the following error message:

Java HotSpot(TM) Client VM warning: Can't detect initial thread 
stack location

About 50% of the time its worse.
Java HotSpot(TM) Client VM warning: Can't detect initial thread 
stack location
Java HotSpot(TM) Client VM warning: Attempt to allocate stack guard 
pages failed.
Fatal: Stack size too small. Use 'java -Xss' to increase default 
stack size.

We get the same error running any java application with chroot. I'm 
pretty sure this is because some file with important information is 
not available inside our chrooted file structure.

Does anyone have a solution to this problem?
Thanks,
Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to 
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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


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

Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to 
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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


Re: chroot Linux 2.4.20-8 and tomcat 5.0.27

2004-09-19 Thread Glen Ezkovich
Thanks Oliver, that did the trick. I had the feeling that was the 
directory I needed but for some reason I tried to make a new copy. What 
was I thinking.

On Sep 19, 2004, at 9:42 AM, Olivier Jolly wrote:
Just for checking, have you mounted /proc in the chroot ? It is a 
source of valuable information for any program running inside the jail 
and could explain the misbehaviour.
mount -t proc /proc proc as root in the chroot

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

Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to 
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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


linux, tomcat5, jsvc, chroot and jsvc error:Invalid user name 'nobody' specified

2004-09-19 Thread Glen Ezkovich
I'm trying to run tomcat in chroot jail using jsvc. I can run tomcat 
inside chroot by its self without any problems. I also can run tomcat 
using jsvc as various users outside of chroot. When I attempt to run 
tomcat with jsvc inside of a chroot jail, I get the folowing error 
message:

jsvc error: Invalid user name 'named' specified
No mater what user I specify I get the same error message. I assume 
that jsvc is getting an error when changing the processes uid. 
Obviously, I am missing user information inside my jail. I've tried 
adding copies of /etc/group, /etc/passwd and /etc/shadow but that 
didn't work. (not really surprised).

So, how are users verified and what do I need to do to get them 
rcognized in the chroot jail?

Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to 
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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


chroot Linux 2.4.20-8 and tomcat 5.0.27

2004-09-18 Thread Glen Ezkovich
We are trying to run tomcat 5.0.27 in a chroot jail on Linux 2.4.20-8 . 
When we start tomcat we always get the following error message:

Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
location
About 50% of the time its worse.
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
location
Java HotSpot(TM) Client VM warning: Attempt to allocate stack guard 
pages failed.
Fatal: Stack size too small. Use 'java -Xss' to increase default stack 
size.
We get the same error running any java application with chroot. I'm 
pretty sure this is because some file with important information is not 
available inside our chrooted file structure.

Does anyone have a solution to this problem?
Thanks,
Glen Ezkovich
HardBop Consulting
glen at hard-bop.com
http://www.hard-bop.com - new and improved site coming soon

A Proverb for Paranoids:
If they can get you asking the wrong questions, they don't have to 
worry about answers.
- Thomas Pynchon Gravity's Rainbow

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