When you defined it as a webapp with version 2.4 Glassfish thinks it is a JAXWS based app and hence expects sun-jaxws.xml to be packaged.
However to ensure portablity across javaee containers you have done the right thing to define it as a 2.5 version. The JSR 109 spec has more information about this
[Message sent by forum member 'bhaktimehta' (bhaktimehta)]
http://forums.java.net/jive/thread.jspa?messageID=255187