Skip to main content
Kofax

MarkView Application Server - Error: 'java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment'

5245

Applies To

  • ERP System: All
  • MarkView Version:  All

Behavior

  • The MarkView viewer displays the 'java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)' error message when opening an image or running Verify MarkView (On Markview ->Administration -> Verify MarkView -> Open Image)

 

  • The log file error contains an message similar to:

ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.springframework.remoting.support.RemoteInvocationTraceInterceptor:87:ADMIN - Processing of HessianServiceExporter remote call resulted in fatal exception: com.markview.docserver.ui.DocumentUIService.getPageRendition
java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)

Known Causes

  • WebLogic is running on a non-windows environment without a graphical interface. When running WLS on a non-windows interface, it does not initiate all the appropriate AWT graphical window system libraries required for P6 web access, and when attempting to access the library this error will occur."

Resolution

  • In order for the Sun or JRockit JVM to implement AWT in software when running under Weblogic on non-windows, append the following after the Primavera bootstrap variable:

            -Djava.awt.headless=true

  • Then re-start the application server.

Related Articles


Revision History

18 SEP 2012 Answer Created