IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Running as tomcat4
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New Re: Running as tomcat4
If tomcat4 has permissions to the directories, then the logging should work. Unless you have to fiddle the security settings in the tomcat config file.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New I chmod-ed 777 to make sure
I'm poking around with policytool right now, and besides being broken (fixed-size, non-scrollable window and it doesn't all fit) I don't see it having any effect yet.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New What is this "policytool" of which you speak?
Add the following to the webapps policy file:

permission java.security.AllPermission;

in some reasonably appropriate-looking place.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Trying now -- cool, seems to work[1]
Is this the type of thing I can do for local development, but wouldn't want to do on a real server?



[1] Showing a version mismatch now, but I can fix that in the ant script.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
Expand Edited by drewk Feb. 6, 2005, 09:44:01 PM EST
New If it's your server...
... do with it as you will. The Tomcat default permissions are extremely strict, and really only suited for environments in which you don't necessarily trust everyone running a web application.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New That's what the java secutiry docs said
The default security is to protect the system from the developers, like in a hosting environment. Though if I were doing hosting, I'd have a separate jvm for each vhost.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New If you were doing hosting, you'd go broke
The default security is to protect the system from the developers, like in a hosting environment. Though if I were doing hosting, I'd have a separate jvm for each vhost.

A jvm takes up a lot of RAM. A single server can serve a lot of vhosts. If you don't share the jvm, then you'll run out of RAM with a lot fewer vhosts than someone who does.

Sure, sharing is less secure. It also reduces your costs a lot, allowing you to charge less. Since virtual hosting is a commodity, prices are very competitive and corners like this get cut.

Incidentally the same factor goes a long ways towards explaining why it is easier to get a cheap hosting service to give you PHP than mod_perl. When you have mod_perl you wind up with such open access that you can't prevent one user from interfering with another, so you have to separate them more. PHP is limited enough that you can fairly safely load it into a shared server. So everyone provides PHP, but to get mod_perl you pretty much need to own your own server.

Cheers,
Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
     How do I control file access in Java? - (drewk) - (14)
         What user is Tomcat running as? - (admin) - (8)
             Running as tomcat4 -NT - (drewk) - (7)
                 Re: Running as tomcat4 - (admin) - (6)
                     I chmod-ed 777 to make sure - (drewk) - (5)
                         What is this "policytool" of which you speak? - (admin) - (4)
                             Trying now -- cool, seems to work[1] - (drewk) - (3)
                                 If it's your server... - (admin) - (2)
                                     That's what the java secutiry docs said - (drewk) - (1)
                                         If you were doing hosting, you'd go broke - (ben_tilly)
         System.exec("chmod " + options + " " + filename)? -NT - (tuberculosis) - (4)
             Yes, that what I have in mind now - (Arkadiy) - (3)
                 Wasn't that - (drewk) - (2)
                     You're talking about JVM's access to external files - (Arkadiy)
                     You're only now starting to wonder? - (ben_tilly)

Are you game enough to ICLPRD that subject line?
89 ms