facebook

Unable to reference JARs in EAR lib

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #327047 Reply

    meetsbs
    Member

    Hi,

    I am unable to reference the JARs in EAR/lib at runtime. I am using in-workspace mode. Can you please suggest what should be my settings in the EJB project and the EAR project so that the EJBs can refer the JARs from EAR at runtime.

    Regards,
    Saurabh Shah

    #327073 Reply

    support-swapna
    Moderator

    Saurabh,

    Sorry that you are seeing this issue.

    Can you answer some more questions for us ?

    1. Can you please copy paste the Installation Details from MyEclipse > Installation Summary > Installation Details ?

    2. Which version of Websphere server are you working with?

    3. Did you make an entry in the EJB’s MANIFEST.MF file ?.Any module that wants to use a jar from EAR’s libraries needs to reference the jar in module MANIFEST.MF like:

    Class-Path: lib/TheJarNameHere.jar

    4. If you are still seeing issues, please prepare a sample project with minimum files which exhibits the behavior and send it to us for further investigation.

    #327074 Reply

    meetsbs
    Member

    *** Date:
    Wednesday, June 13, 2012 2:07:32 PM IST

    ** System properties:
    OS=WindowsVista
    OS version=6.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Blue Edition
    Version: 9.1 Blue
    Build id: 9.1-Blue-20110701

    *** Eclipse details:
    MyEclipse Blue Edition

    Version: 9.1 Blue
    Build id: 9.1-Blue-20110701

    Eclipse Platform

    Version: 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
    Build id: M20100909-0800

    Eclipse Java Development Tools

    Version: 3.6.1.r361_v20100714-0800-7z8XFUSFLFlmgLc5z-Bvrt8-HVkH
    Build id: M20100909-0800

    Eclipse Plug-in Development Environment

    Version: 3.6.1.r361_v20100727-7b7mFL-FET3dhESDgE5_bkJ
    Build id: M20100909-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.6.1.v20100908-1100-777B181A3Bz-6B663E7974242
    Build id: 201009132020

    Eclipse RCP

    Version: 3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T
    Build id: M20100909-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86_64
    -showsplash
    -launcher
    C:\Proj-StateOfMontana\EclipseBlue\MyEclipse Blue Edition 9\myeclipse-blue.exe
    -name
    Myeclipse-blue
    –launcher.library
    C:\Proj-StateOfMontana\EclipseBlue\MyEclipse Blue Edition 9\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700\eclipse_3215.dll
    -startup
    C:\Proj-StateOfMontana\EclipseBlue\MyEclipse Blue Edition 9\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    -exitdata
    fac_5c
    -install
    C:\Proj-StateOfMontana\EclipseBlue\MyEclipse Blue Edition 9
    -configuration
    C:\Proj-StateOfMontana\EclipseBlue\MyEclipse Blue Edition 9\configuration
    -vm
    C:\Proj-StateOfMontana\EclipseBlue\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin\javaw.exe

    I am using Websphere 7.0

    EJB’s Manifest contains the jar entries

    #327165 Reply

    support-swapna
    Moderator

    Saurabh,

    Thank you for the details.

    1. Can you please share with us the JEE version of your project ?
    2. Also paste the contents of the MANIFEST.MF file here for us to investigate further ?

    #327171 Reply

    meetsbs
    Member

    Hi,

    I made changes to the EJB and EAR settings. Now i am able to reference the required JARs at runtime.

    Regards,
    Saurabh Shah

    #327211 Reply

    support-swapna
    Moderator

    Saurabh,

    Glad that the issue is resolved.
    Do let us know if you have any issues.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Unable to reference JARs in EAR lib

You must be logged in to post in the forum log in