- This topic has 3 replies, 3 voices, and was last updated 13 years, 9 months ago by support-neeraj.
-
AuthorPosts
-
Glenn PuckettParticipantA 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.
support-swapnaModeratorWGPuckett,
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.
Glenn PuckettParticipantI 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.
support-neerajMemberWGPuckett,
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.
-
AuthorPosts