Stop customizing this file

Bug and problem reporting

Moderators: hugo, alexandre, rmvanarkel

Post Reply
duric
Posts: 219
Joined: Mon Mar 19, 2007 8:49 pm
Contact:

Stop customizing this file

Post by duric »

Logged user admin

Path /do/admin/stopCustomizingFile

Parameters fileId= 49

Java error details

java.io.IOException: File '/usr/local/www/data/virtual/cromalternativemoney.org/cromland/htdocs/pages/general/layout/head.jsp' cannot be written to
at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:168)
at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1109)
at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1124)
at nl.strohalm.cyclos.controls.customization.files.StopCustomizingFileAction.executeAction(StopCustomizingFileAction.java:81)
at nl.strohalm.cyclos.controls.BaseAction.execute(BaseAction.java:176)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at nl.strohalm.cyclos.struts.CyclosRequestProcessor.processActionPerform(CyclosRequestProcessor.java:160)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.strohalm.cyclos.http.TransactionFilter.runInTransaction(TransactionFilter.java:190)
at nl.strohalm.cyclos.http.TransactionFilter.access$000(TransactionFilter.java:57)
at nl.strohalm.cyclos.http.TransactionFilter$1.doInTransaction(TransactionFilter.java:108)
at nl.strohalm.cyclos.http.TransactionFilter$1.doInTransaction(TransactionFilter.java:106)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at nl.strohalm.cyclos.http.TransactionFilter.execute(TransactionFilter.java:106)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.strohalm.cyclos.http.RequestThrottlingFilter.execute(RequestThrottlingFilter.java:96)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.strohalm.cyclos.http.EncodingFilter.execute(EncodingFilter.java:85)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.strohalm.cyclos.http.LoggedUserFilter.execute(LoggedUserFilter.java:75)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at nl.strohalm.cyclos.http.SanitizerFilter.execute(SanitizerFilter.java:65)
at nl.strohalm.cyclos.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
duric
Posts: 219
Joined: Mon Mar 19, 2007 8:49 pm
Contact:

Post by duric »

By the way,
I have tried to insert meta data, but they are not visible when I controll HTML source code for the login page - why?
Thanks for reply...

<title><%=settings.getApplicationName()%></title>
<meta name="description" content="blablablablabla" />
<meta name="keywords" content="blablablablabla" />
<cyclos:customizedFilePath type="style" name="style.css" var="styleUrl" groupId="${param.login ? param.groupId : ''}" groupFilterId="${param.login ? param.groupFilterId : ''}" />
hugo
Posts: 633
Joined: Sun Jun 18, 2006 1:40 pm

Post by hugo »

It looks that Cyclos has no permissions to write local files.
Make sure the tomcat user has those permissions set.
duric
Posts: 219
Joined: Mon Mar 19, 2007 8:49 pm
Contact:

Post by duric »

Thanks a lot, everything is ok now :lol:
Post Reply