NoClassDefFoundError in WebServer process after adding database actions

Clovertech Forums Cloverleaf NoClassDefFoundError in WebServer process after adding database actions

  • Creator
    Topic
  • #122025
    Diana de Bruin
    Participant

      Using windows Cloverleaf v20.1.3

      We have created a ws-server webservice on our development server.
      The webserver thread has a route to a database-outbound thread and uses a translation containing a .tbl that references a SQL table.
      After some initial java errors when we started making the webserver thread we had no further problems running the webserver and updating our SQL table.

      We are now installing the process on our production server, but as soon as we add the DatabaseOutbound thread we get an error and our webserver thread gets status ‘error’:

      Call to protocol class loader to load com.infor.cloverleaf.gjdws.WSServer had an exception
      java.lang.NoClassDefFoundError: com/lawson/cloverleaf/driver/ToCloverleafLink

      These java files are used:
      ..\integrator\CAA\ws\lib\GJDWS.jar
      ..\integrator\CAA\ws\lib\GJDWS_lib

      [java:init:ERR /0: wsPatient:05/09/2025 14:18:01] Call to protocol class loader to load com.infor.cloverleaf.gjdws.WSServer had an exception
      java.lang.NoClassDefFoundError: com/lawson/cloverleaf/driver/ToCloverleafLink
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      ……. 23 more
      [java:init:ERR /0: wsPatient:05/09/2025 14:18:01] Class loader returned null for class com.infor.cloverleaf.gjdws.WSServer
      [java:init:ERR /0: wsPatient:05/09/2025 14:18:01] Call to pdjSetClass failed.
      [pd :pdtd:ERR /0: wsPatient:05/09/2025 14:18:01] PD initialization FAILED!

      All .jar files are whitelisted and de database connection has a max pool size of 5 (we’ve had problems with the max pool size of 1 in te past).

      There are some old forum threads pointing to wrong values in the Java CLASSPATH value, but because of the error the classpath is not displayed in our process log.

      When we stopped de webserver thread on our development server it suddenly started working on out production server (for a while).
      But we can’t really think of any resource that both environments share – except our Cloverleaf Service account.

       

      Any and all advice is welcome,

      Diana

      LUMC -Leiden University Medical Centre
      The Netherlands

    Viewing 0 reply threads
    • Author
      Replies
      • #122026
        David Barr
        Participant

          It does sound like a CLASSPATH problem. I’m not very familiar with how environment variables are set in Cloverleaf under Windows. I’m more familiar with Linux. If you can get tech support from Infor that would probably help.

          I would see if starting the process from the command line (hcienginerun command) vs. starting through the host server vs. having the processes auto-start with the service makes a difference in how it behaves.

      Viewing 0 reply threads
      • You must be logged in to reply to this topic.