IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  Issue with importing external jar file

    Posted Thu October 06, 2005 05:05 PM

    Hi all,

    I am getting following error when I try to import an external jar file to

    <mypacakage>/code/jars and reloaded the package.
    I re-tried by placing it in IS/lib/jars…with no use

    Please advise me ASAP

    Thanks
    Kevin

    /opt/webMethods/IntegrationServer/packages/TestWebServices/code/source/TestWebServices/sample.java:12: package lnt_ibm_registry does not exist
    import lnt_ibm_registry.*;


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Issue with importing external jar file

    Posted Thu October 06, 2005 06:35 PM

    Int_ibm_register looks like the name of the jar file, not the name of a package.

    Review the javadocs that came with the jar or, better yet, sample code that calls the classes you need and review their import statements.

    Mark


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: Issue with importing external jar file

    Posted Thu October 06, 2005 07:15 PM

    Mark,

    Thanks for your reply…

    I am able to import it if I use

    com.* in shared tab of developer…but unable to invoke classes

    The actual directory structure is

    com/ibm/lnt/giftregistry…so I tried to use

    com.ibm.lnt.giftregistry.*. It’s giving me the same error as in the above post.

    Any input???

    Thanks
    Kevin


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: Issue with importing external jar file

    Posted Thu October 06, 2005 08:16 PM

    I got it…

    I mentioned

    com.*
    com.ibm.lnt.giftregistry.util.*
    com.ibm.lnt.giftregistry.common.*



    We need to mention every folder in shared tab…

    Thanks Mark

    Kevin


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services