facebook

External jars in my enterprise deployment

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #314311 Reply

    Glenn Puckett
    Participant

    A few days ago I was looking into adding some dependent external jars in the deployment of my enterprise application. I cannot remember how I was able to do it but when I deploy I get the jar files in the lib directory under WEB-INF of the Web project. The trouble is they are causing me enormous problems. It turns out that they are only available to the WEB project and anything passed from the EJB code to any of the action classes end up with an exception.

    When I look in the lib directory these files aren’t there. They are only added when I deploy. HOW DID I DO THIS!?!?!?!?!?!?!?!?

    I have been searching for hours for a configuration that seems to point to adding these files to the deployment but I can’t find anything. I need to fix the deployment to get these jar files out of the EAR file. Someone please help me.

    #314315 Reply

    support-swapna
    Moderator

    WGPuckett,

    Right click on the project, select Properties > Java Build Path > Libraries tab.
    Here is where you should have added them. You can remove the jars from here.

    Hope this helps.

    #314321 Reply

    Glenn Puckett
    Participant

    I don’t think that is correct. I have always had the external jar files listed the library build path in order to allow my code to compile correctly. But they never were included in the extract file until very recently. It’s a frustrating situation to have done something and can’t remember how I went about doing it in the first place and not able to reverse it. But if I remove my user library from the build path the result will be a ton of syntax errors in the majority of my code.

    I would have assumed that what is included in the deployment would be in the Order and Export tab. I DO NOT have any of my external jar files selected there.

    #314384 Reply

    WGPuckett,
    You might like to take a look at this thread – http://www.myeclipseide.com/PNphpBB2-printview-t-5236-start-0.html. It contains steps and the changes in the preferences that you need to make. For more details, please check the “Advanced Features ” section in the Enterprise application project tutorial – http://www.myeclipseide.com/documentation/quickstarts/earprojects/ .

    Please let us know if you need more help.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: External jars in my enterprise deployment

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