Java/Tomcat. After some time there are exceptions of Class loading

38 Views Asked by At

Upon deployment my application works but after some time it happens that there are java.lang.NoClassDefFoundError at javax/imageio/impl/IIOInvalidTreeException at com.github.jaiimageio.impl.plugins.tiff.TIFFImageWriterSpi.createWriterInstance

It is a maven built war file deployed in Tomcat so there is no tampering with the supplied jar-files. The time it works before the problem appears vary between the occasions. By doing

$ mvn dependency:tree

and grep-ing for "image" I can with certainity say that the only jar-files included are

com.github.jai-imageio:jai-imageio-core:jar:1.4.0 com.github.jai-imageio:jai-imageio-jpeg2000:jar:1.4.0

I would like to know if this should be an impossible situation? Could this happen with errors by programming? There are also considerations in the deployment environment but I do not want to point to those before I have done some work with my part of this.

I am mostly dissappointed with the lack of determinism of this.

0

There are 0 best solutions below