Am Mittwoch, den 06.05.2009, 18:41 +0200 schrieb Sergiu Dumitriu:
> Luke-SuperDude wrote:
> > 
> > 
> > cbowditch wrote:
> >> Luke-SuperDude wrote:
> >>
> >>> Hi,
> >> Hi Luke,
> >>
> >>> I am trying to get a Fop Servlet working in a Godaddy Linux java hosting
> >>> account. I am running a servlet like the example wich a feed with an xml.
> >>> create a fo out of it and try to build a pdf. It works fine locally on my
> >>> own system, but not on this restricted hosting environment. I get the
> >>> following error and i can't figure out what to do. I know it is the fop
> >>> in
> >>> its init doing stuff:
> >>>
> >>> java.security.AccessControlException: access denied
> >>> (java.io.FilePermission
> >>> /root read)
> >>>
> >>> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> >>>
> >>> java.security.AccessController.checkPermission(AccessController.java:427)
> >>>   java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> >>>   java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> >>>   java.io.File.exists(File.java:700)
> >>>   org.apache.fop.fonts.FontCache.getUserHome(FontCache.java:87)
> >>>   org.apache.fop.fonts.FontCache.getDefaultCacheFile(FontCache.java:100)
> >>>   org.apache.fop.fonts.FontCache.load(FontCache.java:117)
> >>>   org.apache.fop.apps.FopFactory.setUseCache(FopFactory.java:692)
> >>>   org.apache.fop.apps.FopFactory.<init>(FopFactory.java:158)
> >>>   org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)
> >>>   DocGen.init(DocGen.java:82)
> >>>   javax.servlet.GenericServlet.init(GenericServlet.java:211)
> >>>   sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
> >> Looks like this error occurs when FOP is checking for its Font Cache. 
> >> You can disable the cacue with the use-cache option as documented here:
> >>
> >> http://xmlgraphics.apache.org/fop/trunk/configuration.html#general-elements
> >>
> >> Simply put the XML element <use-cache>false</use-cache> into the 
> >> fop.xconf file.
> >>
> >> <snip/>
> >>
> >> Chris
> > 
> > 
> > Hi,
> > 
> > i tried this with the <use-cache> option and it appears not to make any
> > difference. (Will try a bit more with it)
> > I am using the 0.95 version, and when i look at the fop-configuration.xsd
> > the <use-cache> option is not there. So i am still a bit confused.
> 
> Try using a trunk build. You won't even have to disable the cache, since 
> it will automatically try to use the system temporary directory instead 
> of the root's home.
> 

Or create the directory /root/.fop with write access for the webserver
user. At least it helps with apache and "/var/www/.fop"
  


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to