#1 Restful Web Services Tutorial | Creating a Jersey Project in Eclipse

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • Support Us Through Donations : goo.gl/5PB5RN
    RESTful Web Services are basically REST Architecture based Web Services.
    A REST API defines a set of functions to process requests and responses via HTTP protocol.
    Rest is just a concept to implement that we need an implementation.
    To create an appliaction for REST you can use Maven Project with Jersey implementation.
    In this video we will see Jersey implentation of REST.
    We will also discuss :
    Different Tools used for REST
    IDE Options : Eclipse, IntelliJ, Netbeans
    We also need a Server for REST. For that we will need Java EE developer version in our IDE
    We will see :
    How to add Server to IDE
    Create Maven project
    Jersey implementation in Maven Project
    Maven Playlist : goo.gl/sSFpv8
    Check out our courses:
    Java Full Stack and Spring AI - go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    DevOps with AWS: From Basics to Mastery : go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : go.telusko.com...
    Coupon: TELUSKO20 (20% Discount)
    Udemy Courses:
    Spring: go.telusko.com...
    Java:- go.telusko.com...
    Java Spring:- go.telusko.com...
    Java For Programmers:- go.telusko.com...
    Python : go.telusko.com...
    Git : go.telusko.com...
    Docker : go.telusko.com...
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusk...
    Follow Navin Reddy on Instagram: / navinreddy20
    Subscribe to our other channel:
    Navin Reddy : / @navinreddy
    Telusko Hindi :
    / @teluskohindi
    Subscribe to the channel and learn Programming in easy way.
    Java Tutorial : goo.gl/p10QfB
    Kotlin Tutorial : goo.gl/JedEzX
    Scala Tutorials for Java Developers : goo.gl/8H1aE5
    C Tutorial Playlist : goo.gl/8v92pu
    Android Tutorial : goo.gl/MzlIUJ
    XML Tutorial : goo.gl/Eo79do
    Design Patterns in Java : goo.gl/Kd2MWE
    Socket Programming in Java : goo.gl/jlMEbg
    Spring MVC Tutorial : goo.gl/9ubbG2
    OpenShift Tutorial for Beginners : goo.gl/s58BQH
    Spring Framework with Maven : goo.gl/MaEluO
    Sql Tutorial for Beginners : goo.gl/x3PrTg
    String Handling in Java : goo.gl/zUdPwa
    Array in Java : goo.gl/uXTaUy
    Java Servlet : goo.gl/R5nHp8
    Exception Handling in Java : goo.gl/N4NbAW

КОМЕНТАРІ • 102

  • @kesarrawat9211
    @kesarrawat9211 7 років тому +1

    I am so happy that you start getting Ads in UA-cam
    Your hard is paying off 😀👍

    • @someguy007
      @someguy007 4 роки тому

      Yes he deserved it. Best guy

  • @onurcantasyurek7534
    @onurcantasyurek7534 6 років тому +15

    Hi beginners,
    Do not try to do this with Intellij Idea (Community Edition), because it does not support it.
    However Intellij Idea (Ultimate Edition) supports it.

    • @lennoxbaylor8155
      @lennoxbaylor8155 3 роки тому

      Pro trick: you can watch movies at KaldroStream. Been using them for watching lots of of movies lately.

    • @crewriver7956
      @crewriver7956 3 роки тому

      @Lennox Baylor Definitely, been using kaldrostream for months myself =)

  • @nshaiman
    @nshaiman 7 років тому

    i have seen many Software Engineers, But you are Awesome...

  • @PiotrKoneV
    @PiotrKoneV 6 років тому +1

    If you have error like "out of memory error" you have to do:
    1.Go to your Eclipse setup folder
    2. Open eclipse.ini file
    3. Change below parameters
    -Xms512m
    -Xmx3000m
    4. Add below parameters
    -XX:PermSize=256m
    -XX:MaxPermSize=512m

  • @madhukumar3097
    @madhukumar3097 4 роки тому

    Awesome Job Naveen.

  • @cppxaxa
    @cppxaxa 4 роки тому

    Thank you for the wonderful explanation ! It was the most clear way to teach somebody and really effective !!!

  • @PRK839
    @PRK839 7 років тому +1

    wonderful explanation!! Looking forward for more videos like this on different latest technologies, that covers both theory and hands on in such a detailed way. Can we expect a session on SCIM api from you?

  • @TarekFaham
    @TarekFaham 3 роки тому

    Thank you so much for this tutorial...

  • @anandyelchatwar5012
    @anandyelchatwar5012 6 років тому +3

    Hi Sir,
    I am new to REST API and learning it myself. After watching your video I tried to implement the same on my machine. But getting below error, could you please let me know where I am wrong and how to resolve this error.
    21/06/18, 9:07:08 AM IST: [WARN] The POM for com.sun.jersey:jersey-servlet:jar:1.20-SNAPSHOT is missing, no dependency information available
    21/06/18, 9:07:08 AM IST: [WARN] The POM for com.sun.jersey:jersey-json:jar:1.20-SNAPSHOT is missing, no dependency information available
    21/06/18, 9:07:08 AM IST: [WARN] The POM for com.sun.jersey:jersey-client:jar:1.20-SNAPSHOT is missing, no dependency information available
    21/06/18, 9:07:08 AM IST: [INFO] Imported and configured 1 project(s) in 2 sec
    21/06/18, 9:07:08 AM IST: [WARN] The POM for com.sun.jersey:jersey-servlet:jar:1.20-SNAPSHOT is missing, no dependency information available
    21/06/18, 9:07:08 AM IST: [WARN] The POM for com.sun.jersey:jersey-json:jar:1.20-SNAPSHOT is missing, no dependency information available
    21/06/18, 9:07:08 AM IST: [WARN] The POM for com.sun.jersey:jersey-client:jar:1.20-SNAPSHOT is missing, no dependency information available

    • @abdulwahid_mohammed
      @abdulwahid_mohammed 6 років тому

      have you solved the problem?
      if yes pls tell me how

    • @soumyareddyvatte1560
      @soumyareddyvatte1560 6 років тому +1

      Most probably this might be due to the jersey version you have configured is not available. Update the property for Jersey version in the pom.xml as below or your desired version:
      1.19.1

  • @JayeshGharat7
    @JayeshGharat7 6 років тому

    Awesome start music really increases attention to the content

  • @saidevops6801
    @saidevops6801 7 років тому

    wonderful explanation navin sir,keep post

  • @RahulKumar-cq8vu
    @RahulKumar-cq8vu 5 років тому +1

    jersey is still not coming after changing the preference. Downloaded the jersey as well

  • @katta4424
    @katta4424 7 років тому

    Really nice videos.short and useful information.

  • @msh1996
    @msh1996 5 років тому +1

    Nice tutorial

  • @Ravikumar265539
    @Ravikumar265539 7 років тому +1

    sir, can u arrange the following topics in order to learn first to last.... jsp, hibernate, rest api, spring, maven...

  • @dileepg.eeregowda4235
    @dileepg.eeregowda4235 6 років тому

    have to explain little bit in detail for beginners, about how to get jersey jars in maven.thanks

  • @vigneshv1517
    @vigneshv1517 7 років тому

    keep rocking sir!!

  • @sowmiyasakthi1645
    @sowmiyasakthi1645 3 роки тому

    sir i got error while creating a maven project in that restapi1 lecture ..error occur in srcfile index.jsp sir.

  • @jagannivasa
    @jagannivasa 5 років тому +3

    sir can you send me pdf of this lecture so that i will revised and do practical later on my self

  • @kaviyarasukavi9387
    @kaviyarasukavi9387 3 роки тому

    Can we use gradle instead if maven?

  • @poojatikhe2046
    @poojatikhe2046 3 роки тому

    sir in my case, it is showing an error in pom.xml for jersey version cannot be downloaded what to do sir?

  • @vodafoneinfotainment6113
    @vodafoneinfotainment6113 6 років тому +1

    Not able to fine the jersey Project. Followed the same process as described in this.
    Please provide the below details:
    Archetype Group ID
    Archetype Artifact ID
    Archetype Version
    Repository URL

  • @vipulsinghpundir8588
    @vipulsinghpundir8588 4 роки тому

    If I select those 4 checkbox then updating indices never stops.
    What I actually do to add jersey archetype is by doing this:-
    Go to Preferences -> Maven -> Archetypes ->Add Remote Catalog and add these parameters:
    Catalog File: repo1.maven.org/maven2/archetype-catalog.xml
    Description: maven catalog

  • @divergenny
    @divergenny 2 роки тому

    @Telusko
    Could you please help me ? Why is there are no jersey in archetype in intellij ?

  • @ocherki
    @ocherki 4 роки тому +1

    Make sure you choose jersey-quickstart-webapp with org.glassfish.jersey.archetypes Group Id and not with com.sun.jersey.archtypes Group Id. I was inattentive and got some errors.

  • @himaniagarwal1518
    @himaniagarwal1518 7 років тому +15

    Hi Navin, I am trying to create a jersey project for REST.I followed the same steps as mentioned in the vedio.
    1. Downloaded eclipse neon JAVA-EE version
    2. Checked the 4 boxes in preferences-->Maven
    Still i am not able to see jersey archetypes while creating maven project. Is there anything missing or any mistake i am doing?

    • @saravanasubburaj4544
      @saravanasubburaj4544 7 років тому +33

      Go to Windows -> Preferences -> Maven.
      Click on "Archetypes".
      Add Remote Catalog.
      Give URL : repo1.maven.org/maven2/archetype-catalog.xml
      Description : *something*
      Click 'OK".
      Now Eclipse will retrieve the jersey archetypes.Wait for it.
      Now you should be able to create a project of 'jersey' archetype.
      After creating project if you get any errors in pom.xml change the jersey version to an older one.

    • @gautamtyagi8846
      @gautamtyagi8846 7 років тому +1

      the same issue I was facing and I tried to do add remote catalog as per ur steps. But in eclipse right bottom page it shows retrieving archtypes and finally says Out of memory error has occurred. Please suggest.

    • @satishr2071
      @satishr2071 7 років тому

      Thansk Saravana i was trying from long days ago and it's working now:)

    • @AZHARKHAN-fw5mv
      @AZHARKHAN-fw5mv 7 років тому

      how to add new jersey version in eclipse

    • @arun1993apr
      @arun1993apr 7 років тому

      still i didn't get jersey....how to solve

  • @sagarsaxena4569
    @sagarsaxena4569 6 років тому +3

    sir help..!!
    i m unable to find jersey web architect under maven project setup,i checked all the 4 items as u said still esclipse (oxygen) unable to list jersey..wht to do now?

    • @vivekkumarsingh4423
      @vivekkumarsingh4423 5 років тому +1

      same here bro

    • @mrsubbu3825
      @mrsubbu3825 5 років тому

      Yeah,i got same problem.
      How to get Jersey in eclipse ,pls help me

  • @dasturlash
    @dasturlash 5 років тому

    Hello Navin Reddy.
    Thanks a lot for making such helpful video. But can't find jersey-quickstart-webapp Artifact Id from the list of "New Maven project" window.
    I tried using "Add Archetype..." button.
    Wrote "org.glassfish.jersey.archetypes" to the "Group Id:" field.
    "jersey-quickstart-webapp" to the "Artifact Id:" field,
    "2.26-b06" to the "Archetype Version:" field.
    But then Eclipse is saying: "Can't resolve Archetype org.glassfish.jersey.archetypes:jersey-quickstart-webapp:2.26-b06
    org.eclipse.core.runtime.CoreException: Could not resolve artifact ". Could you please help me to fix this problem?
    Thanks in advance.

    • @pallavimanan4124
      @pallavimanan4124 4 роки тому

      You can try by adding an archetype using the button "Add Archetype" in Create Maven project popup. Mention the following:
      Group id: org.glassfish.jersey.archetypes
      Artifact id: jersey-quickstart-webapp
      Version: 2.19
      This worked for me.

  • @shashgo
    @shashgo 6 років тому

    Sir, please can you show us step by step how to install eclipse, that is what jdk, etc, cause for some reason Im not able to make it work

  • @dipankardas-wl6ho
    @dipankardas-wl6ho 4 роки тому

    Why updating index is taking such a long time during Repositories download on Eclipse and Maven

  • @shaistanazar4457
    @shaistanazar4457 6 років тому

    i marked options you said in preferences, but found no item on filtering "jersey".

  • @saivaraprasad6114
    @saivaraprasad6114 5 років тому

    i could not able to load the jersey artifact even after ticking the four check boxes

  • @roliverma9511
    @roliverma9511 5 років тому

    nothing is populated when I tick those 4 check marks and search jersey

  • @yojanaregmi8201
    @yojanaregmi8201 6 років тому

    hello warm greetings!I have a question navin :) . Will this code work the same for android studio? I mean are there few changes i have to consider? in both jersey and spring? Hope you will answer as soon as possible. :)

  • @priyankasawant2083
    @priyankasawant2083 4 роки тому

    sir i have a error could not calculate build plan:plugin

  • @shashgo
    @shashgo 6 років тому +1

    Hello Navin,
    Whenever we try making maven project, the jar versions that are downloaded by maven may not work. For example, I am using eclipse Oxygen which is the download they had. And I started a maven project, but I had to add a remote catalog to see the jersey quickstart archetype, whereas you did not have to, maybe cause its a different version of eclipse. Then when I tried to run the rest api project as is, tomcat would not start and the error I got on the pom.xml file was "missing-artifact-com-sun-jerseyjersey-servlet-jar". I did a google search and found out on stackoverflow that I had to replace the jersey version of 1-20.SNAPSHOT with 1.19.1. How would we know what version to use, I mean without having to google it, how did the people at stackoverflow know?

    • @abdulwahid_mohammed
      @abdulwahid_mohammed 6 років тому

      same problem with me
      have you solve it?

    • @shashgo
      @shashgo 6 років тому +1

      Abdulwahid Mohammed I just followed the cells from Google and stack Overflow to find out what I needed to add to make it work. Beyond that I don't know what else to do but I think this is working

    • @abdulwahid_mohammed
      @abdulwahid_mohammed 6 років тому

      shashgo thank you so much sir.
      I will try to do that.

  • @keshavlohani6069
    @keshavlohani6069 7 років тому

    Hello sir i have a basic question, i am an alien to this technology and i just want to know that what kind of server/application i should buy to run restapi at public domain, i have my domain and web hosting( linux based), And now i m confused that all .war file are deployed in webapps folder in the tomcat server, where should i deploy my .war file in public html..?? i bought the domaiin from godaddy.

  • @saikrishnareddem7013
    @saikrishnareddem7013 7 років тому

    Hello Sir! This video was not included in your Rest playlist

  • @muhammadroshan7315
    @muhammadroshan7315 6 років тому

    Sir your tutorial is outdated now. As Tomcat 8.0 is now depreciated now only 7, 8.5 and 9 are available. where your current tutorial does not work. Please help us

  • @iliyasmohammed6192
    @iliyasmohammed6192 6 років тому

    Plz help..getting this..."Setup Maven plugin connectors" popup..
    in that 2 errors..
    1.maven-compiler -plugin: 2.5.1:compile
    2.maven -compiler -plugin :2.5.1:testCompile
    Actions:
    1.Install Groovy-Eclipse m2e configurator
    2.Install Maven Integration for Eclipse JDT Annotation Processor Toolkit. m2e-apt must be enabled in Window > Preferences > Maven > Annotation Processing.
    3.Install M2E connector for the Eclipse JDT Compiler
    4.Resolve Later
    5.Do Not Execute (add to pom)
    6.Do Not Execute (add to parent)
    7.Do Not Execute (add to workspace)
    which one i have to choose??

  • @karthickm8042
    @karthickm8042 4 роки тому

    Can anyone pls explain difference between the Jersey and Resteasy implementation of RestAPI

  • @aravinda4199
    @aravinda4199 3 роки тому

    I didn't get jercy?

  • @chumanpatel114
    @chumanpatel114 5 років тому

    in filter jersey archetype is not coming even i clicking the four download archetype in maven.whats the problem.....

    • @pallavimanan4124
      @pallavimanan4124 4 роки тому +1

      You can try by adding an archetype using the button "Add Archetype" in Create Maven project popup. Mention the following:
      Group id: org.glassfish.jersey.archetypes
      Artifact id: jersey-quickstart-webapp
      Version: 2.19
      This worked for me.

  • @orz5516
    @orz5516 6 років тому

    Hey Navin,
    I made a small app with jersey following your tutorials but i am trying to find something to program that will look impresive in an interview.
    any ideas? i programmed and login/signup for now (including web of course and the server is written in java).
    thank you!

  • @nikhilgadkari3409
    @nikhilgadkari3409 6 років тому

    Can we make Jersey project in STS??

  • @je426
    @je426 7 років тому

    thanks for your sharing, but I'm foreigner. Can u open the subtitles function. I'm very interested in your videos.

  • @riteshapat8447
    @riteshapat8447 6 років тому

    while importing in pom.xml am getting an error - Missing artifact com.sun.jersey:jersey-servlet:jar:1.20-SNAPSHOT.
    Am not getting ,did i miss any jar files??

  • @rkroneey9825
    @rkroneey9825 6 років тому

    Eclipse Oxyzen: Error-"Could not create Java virtual machine, A fatal exception occurred" please help, its not running, my Java JDK n jre path are all correct but still not running?

    • @beastcircuits1064
      @beastcircuits1064 6 років тому +1

      I solved this problem by downloading java JDk 8 and adding it to the server path, but keep java 10.0 in the eclipse path to keep running current eclipse projects.

  • @khananam3059
    @khananam3059 5 років тому

    I have followed your video but still I couldn't find jursey library...so what shoul I do now

    • @sreevishal2223
      @sreevishal2223 5 років тому

      You can do it manually
      1)In the maven project option click "Add archetypes"
      2)And from the video copy the Group-id, Artifact-id, and version
      3)Enter in the necessary fields and click Ok

  • @sudhakara9798
    @sudhakara9798 3 роки тому

    Group I'd we can give anything??

  • @AZHARKHAN-fw5mv
    @AZHARKHAN-fw5mv 7 років тому

    got error how can i solve
    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

    • @machinelearningfromscratch9873
      @machinelearningfromscratch9873 6 років тому

      delete all files under this location
      C:\Users\"you username"\.m2
      epository.
      then after create new project, it take too much time to time redownload all this deleted file but got get 0 error!!

    • @soydy9082
      @soydy9082 6 років тому

      Life Infinity not working though. Please help me

  • @veenasharma6345
    @veenasharma6345 6 років тому

    Jersey not loading in my machine

  • @onurcantasyurek7534
    @onurcantasyurek7534 6 років тому +2

    If you did not find jersey.heroku-webapp:
    Open Wİndow > Preferences
    Open Mevan > Archetypes > Add Remote Catalog
    Catalog File: repo1.maven.org/maven2/archetype-catalog.xml
    Description: maven catalog
    Restart eclipse
    Create new Mevan Project
    Choose maven catalog
    Pick up jersey.heroku-webapp
    It is work.

  • @EswaranRamaiah
    @EswaranRamaiah 7 років тому

    Nice

  • @ahmedmar3y984
    @ahmedmar3y984 7 років тому

    please sir ... write maven dependencies here .

  • @bondamanasa2716
    @bondamanasa2716 5 років тому

    Hi Navin, can't we do with ANT?

  • @geld5220
    @geld5220 6 років тому

    aliens???

  • @shishiragrahari6412
    @shishiragrahari6412 6 років тому

    Hey sir I'm using bluej...how to add tomcat and other things

  • @rojamanjare3129
    @rojamanjare3129 6 років тому

    hi sir can you pls tell me the microservices

  • @nitheshp6566
    @nitheshp6566 6 років тому

    do you learn from chad darby?

  • @janafernandes1167
    @janafernandes1167 6 років тому

    Hi Sir,
    I am trying to create a jersey project for REST. But I am getting below error, could you please help me?
    JAX-RS (REST Web Services) 2.1 can not be installed : One or more constraints have not been satisfied.
    JAX-RS (REST Web Services) 2.1 requires Java 1.8 or newer.

  • @monoi8726
    @monoi8726 4 роки тому

    xxxx

  • @johnDoe-gs3br
    @johnDoe-gs3br 5 років тому

    I am sorry to say but your accent is unbearable - I can not understand what you are saying

  • @swapnil.shekhar
    @swapnil.shekhar 6 років тому

    This course is fake!

  • @naveendagumati1
    @naveendagumati1 Рік тому

    i have some doughts while opening jersey web apps not create folder to me

  • @varnanthirugnanasambandan559
    @varnanthirugnanasambandan559 4 роки тому

    sir i am getting this error:message Servlet.init() for servlet Jersey Web Application threw exception