Skip to Content
avatar image
Former Member

java.lang.NoClassDefFoundError: org.apache.commons.httpclient.HttpMethod

Dear Experts,

I m having a java.lang.NoClassDefFoundError exception.

Basically what i have done is create an external library DC with 2 public parts.

One for compilation and the other one for assembly.

Then create a J2ee server/library and add the 2 public parts of the external library DC as the the used DC.

In CMS, after doing the assembly and successfully deployed to the TEST server, why do i still have the

java.lang.NoClassDefFoundError: org.apache.commons.httpclient.HttpMethod

I have also check that the SDA file contains the Jars by unzipping it.

FYI, my SDA file structure:

commons-codec-1.3.jar

commons-httpclient-3.0-rc3.jar

commons-logging.jar

commons-logging-api.jar

meta-inf\Manifest.mf

meta-inf\Sap_manifext.mf

meta-inf\sda-dd.xml

server\provider.xml

Please let me know your views.

Thanks in advance.

Rgds,

Daniel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 13, 2008 at 05:59 AM

    Hi Daniel,

    As you have created the J2EE Server Library project and deployed it successfully, you will need to,

    1. Add the Public part of the J2EE server Lib project to the project where you need to use those jars.

    2. If it is a Web Dynpro project, then you need to add the name of the J2EE Server Library project to the

    project Properties -> Project References -> Library References.

    Regards,

    Alka.

    Add comment
    10|10000 characters needed characters exceeded