Re: Permissions for Sun JSF RI and Security Manager under Tomcat 6.0?

2008-06-25 Thread Michael Anstis
Hi, I think I have found the cause! My application code contains the following:- FacesContext fc = FacesContext.getCurrentInstance(); ExpressionFactory ef = fc.getApplication().getExpressionFactory(); ELContext elc = fc.getELContext(); ValueExpression ve = ef.createValueExpression(elc, expr,

Re: Permissions of File Created by Tomcat

2008-04-20 Thread Alan Chaney
This is really a linux permissions issue. How are you starting tomcat? with the $TOMCAT_HOME/bin/startup.sh or with jsvc or are you using an ubuntu startup script? You don't say anything about the user who will run the java application. Generally, the way to control the access permissions

Re: Permissions of File Created by Tomcat

2008-04-20 Thread Daniel J Hulme
Alan, this is very useful, thank you. After a bit of Googling I decided to upgrade to Tomcat6 (apparently is has less security ussies with Ubuntu). This means that the files/dirs are now created (from the tomcat app) by 'root:root' (with the same permissions described in my first post).

Re: Permissions of File Created by Tomcat

2008-04-20 Thread Alan Chaney
Hi Daniel Really the issues are to do with the JVM and linux rather more than tomcat directly. I can't claim to be a linux guru but you should look at it in the following way Any application which runs on linux is 'owned' by a user. There two classifications - 'system' users and 'normal'

Re: Permissions of File Created by Tomcat

2008-04-20 Thread Daniel J Hulme
SORTED! Thanks Alan. In the end I created a new user, and I'm running tomcat and my java app with this new user. Thanks again, you've been a great help. Daniel Alan Chaney wrote: Hi Daniel Really the issues are to do with the JVM and linux rather more than tomcat directly. I can't

Re: Permissions

2007-08-01 Thread David Smith
Looks like the path to your jar file is wrong. grant codeBase file:${catalina.home}/webapps/ROOT/WEB-INF/lib/mysql-connector-java-3.1.14-bin.jar { permission java.security.AllPermission; } or to pull an example from the catalina.policy file distributed with tomcat: grant codeBase

RE: Permissions

2007-08-01 Thread Martin Gainty
Good Morning Alexander in $CATALINA_HOME/conf/catalina.policy your environment is currently pointing to 127.0.0.1:8080 You will need to change this to 137.250.38.190:8080 I would suggest that you implement local (127.0.0.1) first then re-implement on other servers e.g. 137.250.38.190 HTH/

Re: RE: Permissions

2007-08-01 Thread Alexander Osherenko
in the archive tag as WEB-INF/lib/applet.jar? Cheers Alexander Original-Nachricht Datum: Wed, 01 Aug 2007 09:43:24 -0400 Von: Martin Gainty [EMAIL PROTECTED] An: users@tomcat.apache.org Betreff: RE: Permissions Good Morning Alexander in $CATALINA_HOME/conf/catalina.policy your

Re: Permissions

2007-08-01 Thread David Smith
:43:24 -0400 Von: Martin Gainty [EMAIL PROTECTED] An: users@tomcat.apache.org Betreff: RE: Permissions Good Morning Alexander in $CATALINA_HOME/conf/catalina.policy your environment is currently pointing to 127.0.0.1:8080 You will need to change this to 137.250.38.190:8080 I would suggest