This week's book giveaway is in the Python forum.
We're giving away four copies of High Performance Python for Data Analytics and have Tiago Rodrigues Antao on-line!
See this thread for details.
Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Getting a NoClassDefFoundError on Class that is in Library List

 
Ranch Hand
Posts: 2091
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting this error even though there is a jar file in the app library with this class listed.

com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet DrawingNumberControllerServlet: java.lang.NoClassDefFoundError: com.itextpdf.io.font.FontProgramFactory (initialization failure)
 
Steve Dyke
Ranch Hand
Posts: 2091
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Steve Dyke wrote:I am getting this error even though there is a jar file in the app library with this class listed.

com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet DrawingNumberControllerServlet: java.lang.NoClassDefFoundError: com.itextpdf.io.font.FontProgramFactory (initialization failure)



This one cleared up after restarting the server however the following is appearing now.

com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet DrawingNumberControllerServlet: java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder

And I have searched my web project and can find only find slf4j-api-2.0.99.jar
 
Steve Dyke
Ranch Hand
Posts: 2091
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did some digging and then added this jar:

slf4j-log4j12-1.7.30.jar

This stopped the java.lang.NoClassDefFoundError however, I get this in the console log:

[1/12/21 13:58:05:906 CST] 00000083 SystemErr     R SLF4J: Class path contains multiple SLF4J bindings.
[1/12/21 13:58:05:906 CST] 00000083 SystemErr     R SLF4J: Found binding in [bundleresource://267.fwk-1729075385:1/org/slf4j/impl/StaticLoggerBinder.class]
[1/12/21 13:58:05:906 CST] 00000083 SystemErr     R SLF4J: Found binding in [wsjar:file:/C:/Users/Steve.Dyke/IBM/rationalsdp/workspace/QMS/QMSWebApp/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[1/12/21 13:58:05:906 CST] 00000083 SystemErr     R SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

I am not sure what jar I need to delete.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic