I'm using Glassfish with Metro. I want to create my own AssemblerTubelineFactory. Metro contains a mechanism to add Services. Do you know Metro? You have to add an file named like the interface you want to implement. That was no problem until the last version of Metro (1.3), now they also use the ServiceFinder to choose the default class. This means there are two files with the name of the interface. The problem is, the classloader always takes the default file, it's part of the webservice-rt.jar in the glassfish library.
[Message sent by forum member 'jsda' (jsda)]
http://forums.java.net/jive/thread.jspa?messageID=294628