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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Project References

    Posted 12/03/09 12:50 PM

    Hi,

    I need an urgent solution for the below query.

    i have two portlet application projects ,

    One project is referring some utility classes from another project

    what I did is ,i just refer that utility project in “java Build Path” this is not working, Even i tried to refer it from "projectReferences "

    but at runtime it showing "ClassNotFoundException "

    Note: i don’t want export the utility project as JAR file and deploy it on server/lib folder.

    regards,
    Suman


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: Project References

    Posted 12/07/09 10:59 AM

    Hi
    if I understood correctly, you are trying to use some classes from your portlet project A in your portlet project B. If this is right, I don’t think that will work.
    I would create a Java EE Utility Project (you’ll need to activate this feature in Designer) containing those classes and refer to that project from your portlet projects.

    regards
    Javier


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 3.  RE: Project References

    Posted 12/16/09 11:07 AM

    Javier,

    As i posted above the two are portlet application projects not the Utility Project

    regards
    Suman


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 4.  RE: Project References

    Posted 02/26/10 01:32 PM

    Hi
    that will not work, since, as you probably know…

    • at runtime the project cannot access other project’s jar files
    • Designer does not produce a jar file to be packed in the war file

    You will need to add a “Builder” (probably ant-based) to your “utility” project which produces this jar file. You can then add this jar file to the project “Java EE Module Dependencies”.

    Hope this helps,
    Javier


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine