G
Gugle
Hi all,
I have a query regarding the loading order of jar files in Tomcat. I
have 2 jar files and a class 'Test' is present in both of them. 1 jar
file has a newer version of the class file with extra methods. Tomcat
classloader takes only *.jar.(I tried specifying the exact name of the
jar..it didn't load it). Now when I use a method which is present only
in the newer version of the class file, tomcat throws a NoClassDefFound
error since it is loading the older jar. If i delete this old jar file,
then it works fine. So its confirmed that it is loading the older jar
file first. But due to some issues, it is mandatory for me to have both
the jar files. How does Tomcat decide the load order for jar files? Any
help would be most welcome.
I have a query regarding the loading order of jar files in Tomcat. I
have 2 jar files and a class 'Test' is present in both of them. 1 jar
file has a newer version of the class file with extra methods. Tomcat
classloader takes only *.jar.(I tried specifying the exact name of the
jar..it didn't load it). Now when I use a method which is present only
in the newer version of the class file, tomcat throws a NoClassDefFound
error since it is loading the older jar. If i delete this old jar file,
then it works fine. So its confirmed that it is loading the older jar
file first. But due to some issues, it is mandatory for me to have both
the jar files. How does Tomcat decide the load order for jar files? Any
help would be most welcome.