When you have web-app version 2.4 it means you are using JAXWS . If you want your app to be portable across java ee containers you must specify version 2.5.
You can tell Netbeans to use webapp 2.5 by creating New Project
New Web Application in that select javaEE version as javaee 5
Regards,
Bhakti
[Message sent by forum member 'bhaktimehta' (bhaktimehta)]
http://forums.java.net/jive/thread.jspa?messageID=255446