I got a Tomcat Server running. And it's possible to upload jar-files within the web interface. Now the server is able to invoke methods of the uploaded jar-file. The problem is, that I got some relative paths to some files in my jar-file. If I run my jar-file locally it's no problem but on the server the paths don't fit anymore.
The place where the jar file is uploaded is given through this:
arg0.getServletContext().getRealPath(File.separator) + "WEB-INF" + File.separatorChar + "lib" + File.separatorChar;
From my jar-file I don't have the option to get the Servlet Context because it's an closed environment within the jar-file.
Any Idea how I can access the files?
Tanks