I have created a standalone project and included its jar file in lib folder as follows :
After constructing my Sample application jar file as sample.jar and trying to include it in my another web project as follows:
and constructed war files as WebSample.war
After deploying it is not able to access jar files of sample application and throwing NoClassDefFoundError. Where as if I am running it as standalone project it is working.
What is best solution to resolve this issue.