I am creating a custom plugin which has references to 3rd party jars like xmlbe

I am creating a custom plugin which has references to 3rd party jars like xmlbeans, asis-axiom jars etc., I created a plugin project and then created a smart service.
I checked some sample plugins in the forum that has 3rd party dependencies ( for example Base64 Conversion Utilities - has dependency on castor). They just place the 3rd party jars under META-INF / lib and has a plain manifest file that contains only Manifest Version attribute.
I followed the same approach and placed my dependent jars in the META-INF/lib folder and there is a Manifest.MF file under META-INF with just version property.
I deployed this plugin jar , but it didnt work. I got NoClassDefFound Exception always.

I tried adding my depdendency jars in "ClassPath" attribute in Manifest.MF and my manifest now looked like:
Manifest-Version: 1.0
Main-Class:
Class-Path: schemaorg_apache_xmlbeans.jar apache-mime4j-core-0.7.2.jar axiom-api-1.2.13.jar axiom-dom-1.2.13.jar axiom-impl-1.2.1...

OriginalPostID-118374

OriginalPostID-118374

  Discussion posts and replies are publicly visible

Parents
  • ...3.jar axis2-fastinfoset-1.6.2.jar axis2-kernel-1.6.2.jar axis2-xmlbeans-1.6.2.jar neethi-3.0.2.jar xmlbeans-2.3.0.jar wsdl4j-1.6.2.jar XmlSchema-1.4.7.jar axis2-adb-1.6.2.jar axis2-transport-http-1.6.2.jar axis2-transport-local-1.6.2.jar commons-codec-1.3.jar commons-httpclient-3.1.jar commons-logging-1.1.1.jar httpcore-4.0.jar mail-1.4.jar

    This also didnt work out and I got NoClassDefFound Exception.

    Please suggest me how to reference 3rd party jars in an Appian Plugin / Smart Service?

    Thanks,
    Jhothi

Reply
  • ...3.jar axis2-fastinfoset-1.6.2.jar axis2-kernel-1.6.2.jar axis2-xmlbeans-1.6.2.jar neethi-3.0.2.jar xmlbeans-2.3.0.jar wsdl4j-1.6.2.jar XmlSchema-1.4.7.jar axis2-adb-1.6.2.jar axis2-transport-http-1.6.2.jar axis2-transport-local-1.6.2.jar commons-codec-1.3.jar commons-httpclient-3.1.jar commons-logging-1.1.1.jar httpcore-4.0.jar mail-1.4.jar

    This also didnt work out and I got NoClassDefFound Exception.

    Please suggest me how to reference 3rd party jars in an Appian Plugin / Smart Service?

    Thanks,
    Jhothi

Children
No Data