java.io.filenotfoundexception cfclasses Permission denied

985 views
Skip to first unread message

Mike Henke

unread,
Feb 6, 2010, 11:13:09 AM2/6/10
to Railo
Railo 3.1.2.001 Error (Java.io.filenotfoundexception)
Message /var/wheels/www/WEB-INF/railo/cfclasses/CF_var_wheels_www846/
views/say/hello_cfm$cf.class (Permission denied)

Anyone see this error before? I tried to change the permissions but
didn't work. Any suggestions?
-----
sudo chmod 777 /var/wheels/www/WEB-INF

Todd Rafferty

unread,
Feb 6, 2010, 11:22:14 AM2/6/10
to ra...@googlegroups.com
sudo chmod -R 777 /var/wheels/www/WEB-INF

-R = makes it recursive. In theory, you shouldn't do this as it makes every file / subdirectory in that directory writeable.

Are you running Tomcat or Resin? If you're running Resin, then you should create a user that resin runs as and you should chown all the files over to that user so they have permission to modify this.

This isn't a Railo issue. This is a file permission / linux issue.
--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager ** http://getrailo.org/

Mike Henke

unread,
Feb 6, 2010, 4:05:11 PM2/6/10
to Railo
Thanks. I haven't seen the error again but will keep this handy if I
do.

Scott McAllister

unread,
Oct 30, 2012, 12:04:49 PM10/30/12
to ra...@googlegroups.com
Hello, I'm posting to this thread as I have a question about the exact same error. Is there someplace that we can configure the process that compiles the pages so that the class files are owned by the user and group running Railo, rather than root?

Jordan Michaels

unread,
Oct 30, 2012, 12:43:47 PM10/30/12
to ra...@googlegroups.com
The process that compiles files IS run by the same user and group that Railo runs as. This is determined by the user and group that are running your servlet engine (Tomcat, Jetty, etc). If you used the installer on a Linux system, you configure this user (and group) during install.

Maybe I'm misunderstanding your question. Are you asking how you can change the user and group that Railo runs as?

-Jordan

Scott McAllister

unread,
Oct 30, 2012, 2:09:07 PM10/30/12
to ra...@googlegroups.com
Hi Jordan, Thanks for the speedy response. I think I just realized what is going on. This is my first server building experience, although I did not use the installer, but rather the custom version of Railo for installation, and copied the Railo jars over to the Tomcat lib as described in the steps here:


However, I think my error is that while I'm installing and configuring my CFML apps, sometimes I start Tomcat with my tomcat user and other times I start it with sudo from another user. But, if I'm starting the process with sudo it's essentially running it with root. Thus, the classes are compiled and owned by root. Would that sound right?

--Scott
Reply all
Reply to author
Forward
0 new messages