java.lang.NoClassDefFoundError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This means you're missing a class that Java needs for this program. Check if you're not missing the jsr305-1.3.7.jar from your classpath, it's the jar that contains the class javax.annotation.Nullable.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Re: Error deploying roller.war tomcat7
    via by Gaurav,
  • Re: Error deploying roller.war tomcat7
    via by Gaurav,
  • Mybatis2 does not work
    via GitHub by btmiyashitasts
    ,
    • java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46) at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:140) at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:616) at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:421) at com.liferay.portal.kernel.image.ImageToolUtil.read(ImageToolUtil.java:183) at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:281) at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:79) at com.liferay.portlet.documentlibrary.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:53) at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.generate(ImageProcessorMessageListener.java:31) at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:65) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) ... 16 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    treefolktreefolk
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    TahirTahir
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    444 more bugmates