When you use the wizard to create the first Java web service in a project, you have to select the J2EE or Java EE version using the Select Deployment Platform page, which looks like this:
The options are:
Once you have selected a version, all other web services you subsequently create in the same project will automatically use the same version.
Copyright © 1997, 2009, Oracle. All rights reserved.