PDFSpoolFileService Error - stack trace: java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400

Date: 3rd January 2007
Product/Release: LANSA Integrator
Abstract: Cannot execute PDFSpoolFileService
Submitted By: LANSA Technical Support


The following error can be generated when using the PDFSpoolFileService:

stack trace: java.lang.NoClassDefFoundError: com/ibm/as400/access/AS400
at java.lang.Throwable.<init>(Throwable.java:195)
at java.lang.Error.<init>(Error.java:49)
at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:40)
at com.lansa.jsm.service.PDFSpoolFileService.do(Unknown Source)
at com.lansa.jsm.service.PDFSpoolFileService.for(Unknown Source)
at com.lansa.jsm.service.PDFSpoolFileService.command(Unknown Source)
at com.lansa.jsm.b.a(Unknown Source)
at com.lansa.jsm.b.run(Unknown Source)


This error can be generated when jt400Native.jar file is missing from the /jsm/instance/jar directory.

  • You will need to have the jt400Native.jar file in /jsm/instance/jar directory.
  • The jt400Native.jar file is located in the /QIBM/ProdData/OS400/jt400/lib directory.
  • This file contains both the normal Toolbox classes plus the native optimizations.
  • Use the jt400Native.jar file instead of jt400.jar file when running on the iSeries.

See the IBM Java Toolbox section in the LANSA Integrator documentation.

Note: You will also need to restart JSM after copying the jt400Native.jar file to the JAR folder, in order for the change to take place.