Import javax.ws cannot be allowed on Eclipse

I am developing a RESTful Webservice for java using Eclipse with the following steps:

File> New> Dynamic Web Project

Then I set up the following options:

Target runtime: Apache Tomcat v7.0;

Dynamic web module version: 2.5 (because I use Axis2);

Configuration: The default configuration for Apache Tomcat v7.0 and (both options)

In the Change label, I added Axis2 Web Services and JAX-RS (REST Web Services)

Then, when I created my new class, I added

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

Eclipse

javax.ws .

  • .jar WebContent/WEB-INF/lib?
  • , , WebContent/WEB-INF/lib-RESTproyect?
  • , ?
+4

Source: https://habr.com/ru/post/1599301/


All Articles