NoClassDefFoundError

Help
bdunk
2010-11-17
2013-04-17
  • bdunk

    bdunk - 2010-11-17

    Hello,

    I'm trying to run my application on WAS6.1 running on  64-bit AIX v6.1.0.0,  64-bit java 1.5. When I attempt to render a pdf I get the following error:

    Uncaught exception thrown in one of the service methods of the servlet: PrintServlet. Exception thrown : java.lang.NoClassDefFoundError: de.intarsys.cwt.freetype.Freetype (initialization failure)
            at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
            at de.intarsys.pdf.platform.cwt.font.freetype.FreetypeFontFactory.getLibrary(FreetypeFontFactory.java:64)
            at de.intarsys.pdf.platform.cwt.font.freetype.FreetypeFontFactory.createPlatformFont(FreetypeFontFactory.java:135)
            at de.intarsys.pdf.platform.cwt.rendering.CSPlatformDevice.textSetFont(CSPlatformDevice.java:755)
            at de.intarsys.pdf.content.CSDeviceBasedInterpreter.render_Tf(CSDeviceBasedInterpreter.java:759)
            at de.intarsys.pdf.content.CSInterpreter.process(CSInterpreter.java:238)
            at de.intarsys.pdf.content.CSInterpreter.process(CSInterpreter.java:206)
            at de.intarsys.pdf.content.CSDeviceBasedInterpreter.process(CSDeviceBasedInterpreter.java:195)
            at de.intarsys.pdf.content.CSDeviceAdapter.doForm(CSDeviceAdapter.java:163)
            at de.intarsys.pdf.content.CSDeviceAdapter.doXObject(CSDeviceAdapter.java:204)
            at de.intarsys.pdf.content.CSDeviceBasedInterpreter.render_Do(CSDeviceBasedInterpreter.java:329)
            at de.intarsys.pdf.content.CSInterpreter.process(CSInterpreter.java:439)
            at de.intarsys.pdf.content.CSInterpreter.process(CSInterpreter.java:206)
            at de.intarsys.pdf.content.CSDeviceBasedInterpreter.process(CSDeviceBasedInterpreter.java:195)
            at com.sigma.jpod.RenderPDF.renderPage(RenderPDF.java:91)
            at com.sigma.jpod.RenderPDF.renderPages(RenderPDF.java:115)
            at com.sigma.jpod.RenderPDF.render(RenderPDF.java:137)
            at com.sigma.servlet.PrintServlet.doPost(PrintServlet.java:83)
            at com.sigma.servlet.PrintServlet.doGet(PrintServlet.java:41)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
            at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
            at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
            at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
            at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
            at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
            at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:850)
            at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:693)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:589)
            at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534)
            at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
            at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
            at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
            at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
            at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
            at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
            at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
            at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
            at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
            at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
            at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
            at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
            at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
            at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

    The same application works fine on WAS6.1 32-bit windows and java 1.5.

    Any help would be appreciated.

     
  • mtraut

    mtraut - 2010-11-17

    Fonts are parsed using freetype, based on native code.

    On windows we deploy binaries within jPod as freetype normally is not installed. On Mac and *nix jPod assumes there is a freetype installation available - i think this is where your code fails.

     
  • bdunk

    bdunk - 2010-11-17

    thanks mtraut,

    I will look into installing freetype on the server.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks