• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiple Marker at line

 
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am new to Maven and REST Web Services.I am trying one of the REST tutorial from Google. When i try to add @Path("/") before Service End point interface.
It is throwing below compilation Error.

Multiple markers at this line
- The attribute value is undefined for the annotation
type Path
- Path cannot be resolved to a type

How error I have added below to my pom.xml.

<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0.1</version>
</dependency>


Can anyone please let me know how to resolve this?

In fact i am getting error with other annotation as well (e.g. @GET, @Produces etc.)

Thanks

 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I found solution for this in one of my old post itself.

Solution:
========

I had modified my pom.xml and i didn;t run mvn eclipse:eclipse -Dwtpversion=2.0 after it hence it did not reflected properly in pom.xml
After doing above i refreshed my project and it resolved.
reply
    Bookmark Topic Watch Topic
  • New Topic