Thursday, November 3, 2016

Steps of building the Rest webservice

I have made a blog on creating a rest application. Just thought giving some steps to follow and check the application building process.

this is based on the link
http://cgenit.blogspot.com/2015/06/creating-webservice.html

1.       Create application “Rest” using maven plugin in eclipse.
2.       Deployed to tomcat and http://localhost:8080/Rest/ loading the home page
4.       Apache CXF , spring , Jaxon, JAXB
5.       Added all the maven dependencies
6.       Build the project  mvn clean package , and redeploy in tomcat server and check home page http://localhost:8080/Rest/  loading fine
7.       Change the web.xml , Initially no entries except for
8.       You cannot just add changes to web.xml and test. It won’t work as web.xml refers beans and etc.
9.       Change web.xml
a.       Added classed
b.      Build and deploy   - not working
c.       My added “java” folder was not inside “Rest\src\main”
d.      I copied ”java” folder
e.      It was not working, cause I have named bean.xml where it should have been beans.xml – which is referred by the web.xml
f.        Make sure names are spelled correctly. Working fine


No comments:

Post a Comment