java - The import javax.ws cannot be resolved on Eclipse -


i developing restful's webservice on java using eclipse next steps:

file>new>dynamic web project

then configured these options:

target runtime: apache tomcat v7.0;

dynamic web module version: 2.5 (because using axis2);

configuration: default configuration apache tomcat v7.0 , (both options)

in label "modify" added "axis2 web services" , "jax-rs (rest web services)"

next, when created new class, 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;

but eclipse launches notice

the import javax.ws cannot resolved

i don't know the next question

  • is necessary add files .jar path webcontent/web-inf/lib ?
  • or can create, example, new path webcontent/web-inf/lib-restproyect?
  • if choose second option, have problem in future project?

import jar file: javax.ws.rs-api-2.0.jar , add java build path. issue resolved in windows.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -