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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
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.
--
View this message in context:
http://www.nabble.com/FOP-Servlet-in-restricted-environment-tp23404112p23410135.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]