Pergunta

I am working with Mura CMS on the VivioTech installer of Railo which is railo on tomcat and am getting the following error when I try to upload an image to the content. More specifically it is when CF tries to read the image from the file that gets uploaded that the error happens.

The context of the error is on line 79 of the following:

77: <cfset tempFile= "#serverDirectory##createUUID()#.#listLast(source,'.')#"/>
78: <cffile action="copy" source="#arguments.source#" destination="#tempFile#"/>
79: <cfimage action="READ" source="#tempFile#" name="img"> 
80: <cfelse>     
81: <cfimage action="READ" source="#arguments.source#" name="img">

I can't test with another image format as the system won't let me upload anything but JPEG

Foi útil?

Solução

Are you running on some sort of headless Linux server (i.e. one without a graphical window manager installed)? The Java class may be looking for a library not installed on your server OS. Read this thread for possible leads:

NoClassDefFoundError while accessing GraphicsEnvironment.getLocalGraphicsEnvironment on Tomcat

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top