How do I resolve sun.print.CUPSPrinter class initialization errors in JBoss?

Solution Verified - Updated -

Issue

  • The following stacktrace appears on the console or in log/server.log:

    java.lang.NoClassDefFoundError: Could not initialize class sun.print.CUPSPrinter
            at sun.print.UnixPrintServiceLookup.getDefaultPrintService(UnixPrintServiceLookup.java:503)
            at sun.print.UnixPrintServiceLookup.refreshServices(UnixPrintServiceLookup.java:186)
            at sun.print.UnixPrintServiceLookup.getPrintServices(UnixPrintServiceLookup.java:170)
    

Environment

  • any JBoss product release

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.