I think ServletContext.getResourceAsStream() is more safe to use, since its
servlet container api. And question was about this method.
Beside that, if i have 2 jar files in my lib wich have same files, and i must get them, what should i do... in this case a cant use class loaders because this files may not have any classes at all.
In scwcd book i've read that this method supports jar files, but i can't find any information how to work with jars this fashion.