[opencms-dev] Error uploading images, NoClassDefFoundError

Seth Lenzi lenzi at jimmy.harvard.edu
Wed Feb 20 21:15:09 CET 2008


Getting this error in the opencms log when uploading images. This 
particular stack trace was from uploading a 1 megabyte jpg file.  Do I 
need to include some other libraries?


20 Feb 2008 14:59:24,684 ERROR [rg.opencms.workplace.CmsDialog:1423] The 
workplace dialog caused an error.
java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
         at 
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
         at 
com.alkacon.simapi.Simapi.ensureImageIsSystemType(Simapi.java:351)
         at com.alkacon.simapi.Simapi.read(Simapi.java:287)
         at com.alkacon.simapi.Simapi.read(Simapi.java:259)
         at 
org.opencms.loader.CmsImageScaler.<init>(CmsImageScaler.java:177)
         at 
org.opencms.file.types.CmsResourceTypeImage$CmsImageAdjuster.adjust(CmsResourceTypeImage.java:112)
         at 
org.opencms.file.types.CmsResourceTypeImage.createResource(CmsResourceTypeImage.java:296)
         at org.opencms.file.CmsObject.createResource(CmsObject.java:733)
         at 
org.opencms.db.CmsImportFolder.importZipResource(CmsImportFolder.java:322)
         at org.opencms.db.CmsImportFolder.<init>(CmsImportFolder.java:107)
         at 
org.opencms.workplace.explorer.CmsNewResourceUpload.actionUpload(CmsNewResourceUpload.java:434)
         at 
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.newresource_005fupload_jsp._jspService(newresource_005fupload_jsp.java:110)
         at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
         at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at 
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:193)
         at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
         at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:999)
         at 
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:422)
         at 
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
         at 
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:233)
         at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:575)
         at 
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:948)
         at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1492)
         at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:171)
         at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:183)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
         at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
         at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
         at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
         at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
         at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)




More information about the opencms-dev mailing list