When i start a web application during development in the IDE with "Run Project" button,
it will be deployed multiple to my GlassFish V2.1 server.
This causes that the init method of the app is also called multiple.
Seams that the app is deployed to all available virtual servers of GlassFish.
I reported an simular bug for the GlassFish admin gui 2007:
Think best would be if Netbeans deploy app only to one special "localhost" Virtual Server.