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,
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
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).
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'
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
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
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/
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
: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