Scenerio:
Using ant to call a taskdef that I created. It should log but needed to get the task to see my log4j.properties files.
In the path definition i put a pathelement who’s location pointed directly at the log4j.properties file. This causes the problem as it seems that Ant tries to open any file on the classpath that isn’t a jar.
Solution
Just put the directory where the log4j.properties file is located on the path definition.