Skip to Content
avatar image
Former Member

Imported Archive Class Conflicts

I am using a JAVA user defined function within a message mapping.

The JAVA function class requires classes in two reference libraries org.apache.commons.collections and org.apache.commons.beanutils.

When I try to import these two jar files as archives, there are some classes which exist in both libraries and the import fails.

I'm new to JAVA, is there anything that can be done to resolve this conflict and let me load both libraries as archives ?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 19, 2011 at 01:41 PM

    Hi Paul,

    It sounds like you might have the wrong version of the beanutils package. See below for information I pulled from the apache website:

    Since the 1.7.0 release BeanUtils has distributed three jars:

    u2022commons-beanutils.jar - contains everything <------- You probably have this one

    u2022commons-beanutils-core.jar - excludes Bean Collections classes <------- You want this one

    u2022commons-beanutils-bean-collections.jar - only Bean Collections classes

    The main commons-beanutils.jar has an optional dependency on Commons Collections

    Regards,

    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ryan Crosby

      Thank you Ryan.

      I didn't know the JAR file was zip format. I changed the suffix to ZIP, unzipped, removed the commons-collection elements, zipped it back up and it loads into PI. And the mapping works.

      Thanks for the help.

      Paul

  • Dec 19, 2011 at 12:26 PM

    Hi,

    Could you try importing the jar files in two diffrent archives within same SWCV.

    When you call this from UDF in same SWCV, i think this will work.

    Regards

    Anupam

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 19, 2011 at 11:52 AM

    hello,

    Hope below link will help you.

    http://techplay.plozzle.com/?p=21

    Regards,

    Phani

    Add comment
    10|10000 characters needed characters exceeded