In jar:
Class A {getter setter}
In war:(load above jar runtime)
Class B {A a=new A()}
Problem :
Now the actual problem was when I deploy the war without adding that jar dependency (in pom), but want to pick that jar from some local sys
folder when I deploy that war.
I tried URLClassLoader
, problem here is I am able to load all the classes from jar, but still Class A
is unable to resolve.