Getting exception for below code in JBOSS but it is working fine in Tomcat
File path = new File(MyServlet.class.getProtectionDomain().getCodeSource().getLocation().toURI());
Exception:
exception: java.lang.IllegalArgumentException: URI scheme is not "file"
What is there in JBOSS which is giving me above exception but working fine in Tomcat, and what is the alternate to get path of MyServlet Class
Aucun commentaire:
Enregistrer un commentaire