Configuration Problems

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
umesfpasricha
Posts: 4
Joined: 2008/10/03 17:20:25

Configuration Problems

Post by umesfpasricha » 2008/10/03 17:34:34

We have tried using java code to create sub-folders inside some main folders in the main directory, but this has consistently thrown an exception.

Please, see below an example of the exception thrown. This exception was thrown in an attempt to dynamically create a pdf sub-folder inside a main folder in the main directory:-.

/////

org.apache.jasper.JasperException: /home/.sites/28/site1/web/pdfs/htmls/CWUK1A0103455719.html (Permission denied)

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:361)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.io.FileNotFoundException: /home/.sites/28/site1/web/pdfs/htmls/CWUK1A0103455719.html (Permission denied)

java.io.FileOutputStream.open(Native Method)

java.io.FileOutputStream.(FileOutputStream.java:179)

java.io.FileOutputStream.(FileOutputStream.java:70)

//////

live link: http://www.citywest.co.uk:8080/admin/

test user name: test
test password: test

All help to reslove would be appreciated.

yyagol
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E
Contact:

Configuration Problems

Post by yyagol » 2008/10/06 19:33:37

[quote]java.io.FileNotFoundException: /home/.sites/28/site1/web/pdfs/htmls/CWUK1A0103455719.html (Permission denied)[/quote]
as you can see the problem is just permissions . are you using SELinux ?
what are the permissions on the root directory ?

umesfpasricha
Posts: 4
Joined: 2008/10/03 17:20:25

Re: Configuration Problems

Post by umesfpasricha » 2008/10/07 16:37:45

It's was 755 and has been changed to 777.

umesfpasricha
Posts: 4
Joined: 2008/10/03 17:20:25

Re: Configuration Problems

Post by umesfpasricha » 2008/10/07 17:11:26

Also SELinux is not enabled.

umesfpasricha
Posts: 4
Joined: 2008/10/03 17:20:25

Re: Configuration Problems

Post by umesfpasricha » 2008/10/14 20:09:48

Any help from anyone?

Post Reply

Return to “CentOS 4 - Server Support”