I ran the application on TOMCAT and it gave me the following response : Is it correct ?
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <http://localhost:8080/Bookmarks/rest/bookmarks#> <feed xmlns="* http://www.w3.org/2005/Atom*" xmlns:ns2="* http://a9.com/-/spec/opensearch/1.1/*" xmlns:ns3="* http://www.w3.org/1999/xhtml*" xml:base="* http://localhost:8080/Bookmarks/rest/bookmarks*"> <id>urn:collection:bookmarks</id> <updated>2012-10-27T19:33:43.612+05:30</updated> <title type="*text*">My Bookmarks</title> <link rel="*self*" href="*http://localhost:8080/Bookmarks/rest/bookmarks* " /> <link rel="*alternate*" type="*application/atom+xml*" href="* http://localhost:8080/Bookmarks/rest/bookmarks?alt=application%2Fatom%2Bxml* " /> - <http://localhost:8080/Bookmarks/rest/bookmarks#> <entry xml:base="* http://localhost:8080/Bookmarks/rest/bookmarks*"> <id>3</id> <title type="*text*">My Bookmark 3</title> <published>2012-10-27T19:33:43.615+05:30</published> <link rel="*self*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/3*" /> <link rel="*edit*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/3*" /> <link rel="*alternate*" type="*application/atom+xml*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/3?alt=application%2Fatom%2Bxml *" /> <content type="*text*">Third demo bookmark</content> </entry> - <http://localhost:8080/Bookmarks/rest/bookmarks#> <entry xml:base="* http://localhost:8080/Bookmarks/rest/bookmarks*"> <id>2</id> <title type="*text*">My Bookmark 2</title> <published>2012-10-27T19:33:43.631+05:30</published> <link rel="*edit*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/2*" /> <link rel="*self*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/2*" /> <link rel="*alternate*" type="*application/atom+xml*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/2?alt=application%2Fatom%2Bxml *" /> <content type="*text*">Second demo bookmark</content> </entry> - <http://localhost:8080/Bookmarks/rest/bookmarks#> <entry xml:base="* http://localhost:8080/Bookmarks/rest/bookmarks*"> <id>1</id> <title type="*text*">My Bookmark 1</title> <published>2012-10-27T19:33:43.632+05:30</published> <link rel="*self*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/1*" /> <link rel="*edit*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/1*" /> <link rel="*alternate*" type="*application/atom+xml*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/1?alt=application%2Fatom%2Bxml *" /> <content type="*text*">First demo bookmark</content> </entry> - <http://localhost:8080/Bookmarks/rest/bookmarks#> <entry xml:base="* http://localhost:8080/Bookmarks/rest/bookmarks*"> <id>my-bookmark</id> <title type="*text*">My Bookmark my-bookmark</title> <published>2012-10-27T19:33:43.633+05:30</published> <link rel="*alternate*" type="*application/atom+xml*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/my-bookmark?alt=application%2Fatom%2Bxml *" /> <link rel="*edit*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/my-bookmark*" /> <link rel="*self*" href="* http://localhost:8080/Bookmarks/rest/bookmarks/my-bookmark*" /> <content type="*text*">My demo bookmark</content> </entry> </feed> On Sat, Oct 27, 2012 at 7:28 PM, Srineel Mazumdar <[email protected]>wrote: > Hi, > > Checked them. I have not made any change in pom.xml or web.xml. Everything > is according to what you mention except in lib I have wink 1.2 jar which I > believe will not cause problem. I have done Maven build from Eclipse using > plugin. Also I believe ANT build is not required. > > My Regards, > > > On Sat, Oct 27, 2012 at 7:06 AM, Shameera Rathnayaka < > [email protected]> wrote: > >> Think you haven't changed the pom.xml file or build.xml file or web.xml >> file. If so when you run mvn clean install command you can see >> Bookmarks.war file inside the target directory. could you please check the >> folder structure of that war. it should be >> >> META-INF/DEPENDENCIES >> META-INF/DISCLAIMER >> META-INF/LICENSE >> META-INF/MANIFEST.MF >> META-INF/maven/org.apache.wink.example/Bookmarks/pom.properties >> META-INF/maven/org.apache.wink.example/Bookmarks/pom.xml >> META-INF/NOTICE >> WEB-INF >> WEB-INF/application >> WEB-INF/bookmarks.properties >> WEB-INF/classes/META-INF/DEPENDENCIES >> WEB-INF/classes/META-INF/DISCLAIMER >> WEB-INF/classes/META-INF/LICENSE >> WEB-INF/classes/META-INF/NOTICE >> WEB-INF/classes/org/apache/wink/example/bookmarks/BookmarksResource.class >> WEB-INF/classes/org/apache/wink/example/bookmarks/BookmarkStore.class >> WEB-INF/lib/activation-1.1.jar >> WEB-INF/lib/commons-lang-2.3.jar >> WEB-INF/lib/geronimo-annotation_1.1_spec-1.0.jar >> WEB-INF/lib/jaxb-api-2.2.jar >> WEB-INF/lib/jaxb-impl-2.2.1.1.jar >> WEB-INF/lib/jsr311-api-1.1.1.jar >> WEB-INF/lib/slf4j-api-1.6.1.jar >> WEB-INF/lib/stax-api-1.0-2.jar >> WEB-INF/lib/wink-common-1.3.0-incubating-SNAPSHOT.jar >> WEB-INF/lib/wink-server-1.3.0-incubating-SNAPSHOT.jar >> WEB-INF/web.xml >> >> Thanks, >> Shameera. >> >> >> On Sat, Oct 27, 2012 at 12:37 AM, Srineel Mazumdar >> <[email protected]>wrote: >> >>> Hi, >>> >>> The error is >>> >>> *requested resource (/Bookmarks/rest/bookmarks) is not available.* >>> * >>> * >>> *Same in Tomcat >>> * >>> On Fri, Oct 26, 2012 at 9:55 AM, Srineel Mazumdar >>> <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> I have run Maven build and trying to run the Bookmark example in >>>> GlassFish server. However I am getting the following error : >>>> >>>> http://localhost:8080/Bookmarks/rest/bookmarks >>>> >>>> Previously I was getting NP exception >>>> >>>> URL used : >>>> >>>> http://localhost:8080/Bookmarks/rest/bookmarks. >>>> >>>> Please help. >>>> >>>> My Regards. >>>> >>> >>> >> >> >> -- >> Shameera Rathnayaka >> Undergraduate >> Department of Computer Science and Engineering >> University of Moratuwa. >> Sri Lanka. >> >> Blog : http://shameerarathnayaka.blogspot.com/ >> >> >
