I have a problem with classpath with commons-httpclient.jar.
The application uses the newer version of commons-httpclient.jar, which is commons-httpclient-3.0.1.jar.
After installing JBOSS, it installs the original version called commons-httpclient.jar in two different directories.
/opt/appname/lib and /opt/appname/server/default/lib
It would be easy to simply delete them, but it turns out that they are used by another application in the system. I would like to know if there is a way to assign the order to which classes are used, for example.
First use commons-httpclient-3.0.1.jar, then use commons-httpclient.jar
Pretty new to Java, so any help would be appreciated.
source share