Bug 57206

Summary: Different result getting in tomcat 8.0.12 and 8.0.0
Product: Tomcat 8 Reporter: Arunava Tah <arunavatah1>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 8.0.12   
Target Milestone: ----   
Hardware: PC   
OS: All   

Description Arunava Tah 2014-11-13 12:31:51 UTC
We use CodeSource codeSource = Common.class.getProtectionDomain().getCodeSource(); this code is to get the path where jar is running. In tomacat 8.0.0 i am getting the path up to jar location like "jar:file:/C:/apache-tomcat-7.0.27/webapps/synergy/WEB-INF/lib/ISFaxAPIConnector.jar", but in 8.0.12 ,I ma getting different path location that is up to class location like "jar:file:/C:/apache-tomcat-7.0.27/webapps/synergy/WEB-INF/lib/ISFaxAPIConnector.jar!/com/ensim/escm/plugin/apiconnector/isfax/common/Common.class" .
So can you please clarify, what is reason behind this? It is creating a blocking issue to find a file using this path.
Comment 1 Konstantin Kolinko 2014-11-13 13:07:34 UTC
Test with the current 8.0.15.

*** This bug has been marked as a duplicate of bug 57038 ***