Results 1 to 2 of 2
  1. #1
    Randy_Dennis is offline Member
    Join Date
    Mar 2009
    Location
    Alabama
    Posts
    4
    Rep Power
    0

    Question No ClassDefFound Error

    :rolleyes: Hi All,

    I've modified a JAVA application from Conway that we are using to create an XML request to pull proof of delivery images. The application utilizes JDOM. I've downloaded JDOM 1.1 and have put the jdom.jar file on the iSeries. I use a CL program to run the JAVA application. Below is the CL PGM Code:

    PGM PARM(&PARMS)

    DCL VAR(&PARMS) TYPE(*CHAR) LEN(250)
    ADDENVVAR ENVVAR(NEWPATH) +
    VALUE('.:/QIBM/ProdData/HTTP/Public/jt400/l+
    ib/jt400.jar:/QIBM/ProdData/Java400/jt400nt+
    v.jar:/home/tntsvrtst:/home/tntsvrtst/lib/j+
    dom/xerces.jar:/home/tntsvrtst/lib/jdom/jdom+
    .jar:/home/tntsvrtst/com/tnt/conway:/home+
    /tntsvrtst/com/tnt/util:/QIBM/ProdData/+
    Java400/jdk14') LEVEL(*JOB) REPLACE(*YES)

    ADDENVVAR ENVVAR(QIBM_JAVA_PROPERTIES_FILE) +
    VALUE('/home/conwaytst/cnwy.properties') +
    LEVEL(*JOB) REPLACE(*YES)

    SBMJOB CMD(RUNJVA +
    CLASS(com.tnt.conway.XMLImageRequest) +
    PARM(&PARMS)) JOB(CNWYPODS) JOBQ(QGPL/EDI)

    RMVENVVAR ENVVAR(QIBM_JAVA_PROPERTIES_FILE) LEVEL(*JOB)
    ENDPGM

    I've used this CL pgm before, without the addition of the path for the jdom.jar (:/home/tntsvrtst/lib/jdom/jdom.jar) statement and it works just fine. I do have the jdom.jar file on the iSeries in the /home/tntsvrtst/lib/jdom path.

    :eek: But, when I run this CL pgm from the command line I get the following error in my logging: java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder. :eek:

    The CL pgm and XMLImageRequest.java files both compile without errors.

    So, does anyone see what I'm missing??

    Thanks in advance for your input,

  2. #2
    Randy_Dennis is offline Member
    Join Date
    Mar 2009
    Location
    Alabama
    Posts
    4
    Rep Power
    0

    Thumbs up No Class Def Found error solution...

    I've found a solution to this issue: Changing the CPYENVVAR value to *YES on the SMBJOB command seems to have solved the problem. The error is no longer occurring in the log.

Similar Threads

  1. Replies: 3
    Last Post: 01-23-2009, 09:53 AM
  2. error 530 error authentication required
    By rgale in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-12-2008, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •