Hi,
I am getting below error while reading image on UNIX server. However, it is working fine on window machine.
java.lang.NoClassDefFoundError: Could not initialize class org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage
com.thompson.handbook.publish.export.ExportToWord.newImage(ExportToWord.java:657)
com.thompson.handbook.publish.export.ExportToWord.getHdr(ExportToWord.java:623)
com.thompson.handbook.publish.export.ExportToWord.createHeaderPart(ExportToWord.java:618)
com.thompson.handbook.publish.export.ExportToWord.exportWordDocument(ExportToWord.java:224)
handbook.logic(handbook.java:133)
lf.BasePage.getTemplateName(BasePage.java:165)
lf.LFServlet.handle(LFServlet.java:56)
org.webmacro.servlet.WMServlet.doRequest(WMServlet.java:255)
org.webmacro.servlet.WMServlet.doGet(WMServlet.java:195)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:404)
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:136)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
I am using docx4j.jar for it and also the missing class "BinaryPartAbstractImage" is existing in jar.
Even i replaced the docx4j .jar of unix machine with one i have on window machine and restarted the server but did not help.
I dont know why it is happening.
Please assist.