I have never found an Indian online site teaching so clearly. Its very helpful and very easy to understand. Thanks Koushik
@shobhitsingh77353 жыл бұрын
Honestly, don't have words to describe how beautiful and perfect this tutorial is. Perfection indeed.
@ricardog.p26108 жыл бұрын
One of the best tutorials I saw, with each line explanation! Congratulations to extend you knowledge, over the community
@aliasgar16487 жыл бұрын
This is one of the most mind blowing explanation i have ever come across. Can't thank enough !!
@WholeNewLevel20187 жыл бұрын
The Best tutorial on RestWeb services .... Thanks for the amazing work!
@parth1910799 жыл бұрын
It's great to see this list getting updated with new content and style! Thanks a lot, Koushik!!
@shrutikanachankar49326 жыл бұрын
I was getting 404 after restarting server many types and I had checked code multiple times .. it was absolutely fine. It worked for me when I deleted MessageResource class and rewrote. Thank You Kaushik for great trainings.
@ИльясКаримов-д1з5 жыл бұрын
Thanks Koushik. Your channel is amazing. Very, very good materials. God bless you.
@vamsikrishk9 жыл бұрын
Kudos to you koushik, keep rocking... Simple and very easy to understand the concepts... I wonder by seeing dislikes for this video. Whoever it is, please try to understand that knowledge sharing is not a small thing and think twice before doing that. Please try to explain your view if you are going to dislike it so that people will try to correct it (if any), simple dislike will not take any effect.
@elderofzion7 жыл бұрын
disliked by soap fans
@JonathanGonzalez-kk3zu7 жыл бұрын
absolutely amazing videos.. i cannot thank this guy enough.
@Modern_revolution7 жыл бұрын
Simply simplified tutorial. Thanks a ton!
@gimmeshelter19699 жыл бұрын
Excellent explanation of the coding of REST resource. Thanks!
@anitaramoliya9849 жыл бұрын
Thank you so much Koushik .It is really simple to understand .Please keep publishing such videos .
@sunilkj82812 жыл бұрын
You are an amazing teacher, thanks for explaining so clearly.
@humbertoquintanabarrios45899 жыл бұрын
Great tutorial. I hope you keep doing this. Thanks a lot.
@johnsimons5399 жыл бұрын
Just a heads up, I kept getting a 404 when trying this, make sure the server is started as I had not noticed it prompted me to restart it
@ramireddy47004 жыл бұрын
You done a great job,it helped lot who are more enthusiasm to learn webservices like me,thanks a lot
@zoalallah9 жыл бұрын
Hi, Koushik. @2:28 you could've used Shift+(* of the numeric pad) to expand all folders in that tree. And thank you for the wonderful explanation.
@pkenedysingh9 жыл бұрын
love to see next Video.. Really nice one thanks a lot..
@samdsm20098 жыл бұрын
Koushik, nicely explained. good job. 👍👍
@mmgaleano8 жыл бұрын
Great tutorial. You are a great teacher
@Daily-digital7 жыл бұрын
You are a fantastic teacher.
@REPLYGAURAV787 жыл бұрын
Take a bow Dear :) God bless you..!
@pradyumnakumarsingh62896 жыл бұрын
It's very helpful. Thanks Koushik.
@FromLakshmi9 жыл бұрын
thanku so much. Its been a brilliant share of knowledge. :). We hope to see a good big-sized array of videos talking about Rest.
@Addakar9 жыл бұрын
I look forward to the next parts :)
@sravanthikakani9 жыл бұрын
thank you for videos .. hope to see complete program next videos as soon as possible ,as it is always in my mind
@kefetDtcom9 жыл бұрын
waiting the rest of the videos :)
@adityapachigolla59387 жыл бұрын
Fantastic videos, You made really simple. Thanks
@sripasum31229 жыл бұрын
love these videos; keep them coming
@kishorlohare25899 жыл бұрын
you are simply superb..
@irfanaippu65333 жыл бұрын
Awesome.a big Thanks for this ...
@HeliosFire9ll7 жыл бұрын
For anyone having issues, I'd recommend cleaning and rebuilding the project you're working on. This should update and rebuild your project with the new code you put in.
@soniak88884 жыл бұрын
First of all must say that your sessions are very well articulated and presented. Just wanted to check with you in case you have any sessions on Automatic the Service API's from SIT testing perspective. Let me know in case you need more details regarding my question
@harneetsingh077 жыл бұрын
@9:17 avoid using slash infront of messages. Use @Path("messages") instead of @Path("/messages")
@sagarvyas93679 жыл бұрын
Thanks for sharing and make this open source :)
@milindmore19779 жыл бұрын
Realy Nice tutorial ! Thanks
@sepraveen5 жыл бұрын
If you know the spring MVC this could never be more easy.
@osvaldoleiva6784 жыл бұрын
in the same way know this and then learn spring MVC, i think no?
@juan2416mx9 жыл бұрын
Great video please please publish the others thanks u a lot.
@weijiasun46166 жыл бұрын
Again, you are the best! Thx
@ckbne9 жыл бұрын
Fantastic, thank you so much.
@AK-km2kd6 жыл бұрын
Thank you very much. You made it so simple.
@SaifulIslam-ns6bi9 жыл бұрын
Thx. waiting for the next video..
@AmongDragons6 жыл бұрын
To anyone having the 404 problem and restarting the server/eclipse didn't fix the issue, do this. Project → Properties → Target Runtimes → Apache Tomcat (checkbox and apply and close). This only happens if there is an errorcode "the superclass javax.servlet.http.httpservlet was not found".
@Rajesh-hi6eu9 жыл бұрын
Kudos to you Koushik...easiest to learn ...so simple.simply amazing... Just one query how many more how many more tutorial is there on this and when are you planning to upload?
@shashgo7 жыл бұрын
Kaushik, You put the annotation @GET for the jersee API to find the method, but where in the URL have you specified that it is a get request, so that the API knows to look for the @GET annotation
@edon12579 жыл бұрын
Thanks a lot for those great tutorials. But I have some questions for you: Why have you decided to make RESTful services with JAX-RS and not with Spring MVC . Can you explain me if there is any difference or advantage of using one or another ? And do you plan to make any tutorial about Spring MVC ? Thanks again, you are amazing. Keep going!
@inerc8059 жыл бұрын
It is cool man, thx from Russia
@somyagupta9224 жыл бұрын
very well explained
@barbaraszczygielska45658 жыл бұрын
Thanks a lot for this course :)
@volkerreichel22859 жыл бұрын
Thanks alot! Good explanations.
@ramkrishnadixit88388 жыл бұрын
Hi Koushik, After creating the class MessageResource, when did you build the project ? There should be a build project after creating resource and then only you can see it on browser ?
@mahendrapratap62568 жыл бұрын
yes he might have done that .
@soniamiglani87206 жыл бұрын
It works after number of restart the server.. Also please make sure every thing is as according as mentioned in the video . for ex. @Path before class, GET and Produce before method...
@shashgo7 жыл бұрын
Kaushik, It seems that the ending of the URL "/messages" doesnt care whether the class belongs to the messenger package or to a subpackage of messenger, because in the previous tutorial "/myresource" called on a class that was in the messenger package, and the beginning of the URL was still the same ".../messenger/webapi. In other words, for the previous example, the URL was "localhost:8080/messenger/webapi/myresource" and the class referred to was in the messenger package For the example in this tutorial, the URL is "localhost:8080/messenger/webapi/messages" even though the class referred to is in the messenger.resources class. So, basically the Jersey API is looking for any classes that have paths that match the end of the URL without regard to the actual package. Why then did you create different subpackages and not just create the MessageResource class in the messenger package instead of in a subpackage?
@priyanair20487 жыл бұрын
Good one:) Got it worked
@LearnKuCode7 жыл бұрын
Beautiful, thanks
@PriyaRanjanPrakash9 жыл бұрын
nice series (y)
@erfelipe4 жыл бұрын
Currently I wasted a lot of time to find in the stackoverflow that tomcat 9 cannot be used with jefrey 3. But the examples are great. Thanks for the lessons.
@pavan3698 жыл бұрын
Must see that your 'MessageResource' file is under the same package as the 'MyResource' file. It will work for sure. :)
@MRFix7228 жыл бұрын
Thank you so much!.
@artemgoncharenko6467 жыл бұрын
Can anyone answer: What if I put @GET annotation above the second method in the class? @GET public String getMessages(){...} @GET public String getSomeMessages(){...} How does Jersey know what method to invoke for the url localhost:8080/messenger/webapi/messages ?
@nagarjuna.p72527 жыл бұрын
created new class like MessageResource.while calling webapi/messages gives 404 error
@shashgo7 жыл бұрын
kaushik, What is the 1
@smithdragon64776 жыл бұрын
hey teacher what is the difference between jersy and spring mvc @requestmapping in spring
@Er.AnkitT2 жыл бұрын
Hello Sir When I am clicking on Jersey resource I am getting Tomcat 404 error The origin server did not find a current representation for the target resource or is not willing to disclose that on exists.
@Er.AnkitT2 жыл бұрын
Please Help on this
@paveltuz84037 жыл бұрын
I completely have broken my brain when trying to define package structure looking to eclipce package(Java Resources) tree at 7:35. Why don't you use Intellij IDEA ? It much more convenient
@amanagarwal9907 жыл бұрын
Why do we have @Path("myresource") and not @Path("webapi/myresource") ? How is the link in @Path annotation decided ?
@someperson95364 жыл бұрын
Can a database connection be made in the resource class? I would like to practice making a database connection and retrieving data from a database. Are there any practice databases in the cloud that anyone can use for free?
@prashantsharma83668 жыл бұрын
Hey Koushik, Really Enjoying your videos.Have a Question again "404 exception is occurring when i remove /webapi from the href, servlet mapping of web.xml. Is it necessary for RESTful and where is it defined." Regards Prashant Sharma
@manuelcuambeify Жыл бұрын
If I have multiple Post Method or Get Method how is the mapping work inthis context
@jonassx1006 жыл бұрын
what is there are two methods of different name mith same @GET method
@kirankumar-yw1mo6 жыл бұрын
Hi Kousik, how to add glassfish in jave 1.8. For me , when i add maven project, it is comming like "org.apache.maven.archtypes ". kindly help me with steps
@swamyas56684 жыл бұрын
Wow and Thanks
@Stefan1971HH Жыл бұрын
It works for me with the MyResource Class, but with MessageResource I keep getting 404. I tried all suggestions from the comments (removing the slash, restarting the server...) but no success. Any help? Thanks
@kowserparvez33556 жыл бұрын
i know its an old post .. but i can use some help ... getting errors when i @Produces(MediaType.TEXT_PLAIN).. says testplain cannot be resolve in this field. thanks
@kathy271967 жыл бұрын
My tomcat could not reload the context messenger at will. I have tried save the file + restart the server + run on server, even tried buid project or refresh. Even restating server could not reload the updated version. But it seems tomcat has its own reloading time. Only when it start reloading by itself, the updated version get reloaded.
@philhamilton39469 жыл бұрын
I cannot get this to work. On your web site JavaBrains you have a note: "Make sure your class is in the package configured in Jersey servlet's init-param" What does this mean? How do I make sure? Which package? Enjoy your videos.
@harshghosh22936 жыл бұрын
This webservice creation is not clear Kaushik. Firstly I am not able to replicate the package structure you have. Then without changing the jsp with messages, how servlet will identify them correct java file? Please respond. Generic package name in Web.xml is also not helping. Please respond.
@paveltuz84037 жыл бұрын
If I excludes "webapi" prefix from web.xml and index.jsp to simplify the url for users the application stop working, Have got 404 error. How web.xml url-pattern and index.jsp href must look like to make it work?
@gov9149 жыл бұрын
Thank you!
@ragavkrishna26528 жыл бұрын
Hi Kaushik, Thanks a lot for your tutorial. Every time I add a resource I am not able to access the URL until I restart the server. I created a new resource called 'ExampleResource' similar to the 'MessageResource' and until I restarted the server (right click on project -> run on server -> restart server), I received 404 error. please let me know if this is a configuration issue or if this is a standard procedure. Thanks!
@SahilKaironVlogs3 жыл бұрын
facing the same issue. Have you resolved it. Please reply if there is any issue with the configurations.
@syedwaseemahmed17497 жыл бұрын
Hi Koushik, Can you please tell how to get sourse code of this tutorial?? Thank's & Regard's Sd.Waseem
i get HTTP Status 404 - Not Found error when i click on " jersey resources" . How to resolve it ?
@RamDixitPro8 жыл бұрын
Hi Koushik, I was getting error in eclipse while using annotation @Produces(MediaType.TEXT_PLAIN). because by default eclipse added import of "import javax.enterprise.inject.Produces;" instead of "import javax.ws.rs.Produces". Please mention this in the tutorial itself, to make it easier for beginners.
@errrzarrr8 жыл бұрын
+Ram Dixit because maybe you didn't noticed but you told Eclipse to import that package, which has a Produces class too. Just import the correct one.
@ManojJawalkar8 жыл бұрын
I have imported javax.ws.rs.Produces but still getting error "TEXT_PLAIN cannot be resolved or is not a field". What is the reason?
@ManojJawalkar8 жыл бұрын
Sorry! wrong importjava.awt.PageAttributes. use javax.ws.rs.core.MediaType instead
@bonioctavianus1999 жыл бұрын
i notice there is message on console : "INFO: Reloading Context with name [/...] is completed" every time i make change on code, i think it's like reloading, then after 5 seconds, the changes applied
@kushcabba9 жыл бұрын
It takes a few replays of this videos to really get it. At first I was drowning in all the information lol
@mallikarjunna92657 жыл бұрын
Hi koushik, I am getting error while creating a new resource . I have tried changing the URL restart of the Server,cleaning the project and restarting eclipse but it is not working can any one help me on this.
@minhtruong76057 жыл бұрын
If anyone has 404 error. Just reset your Eclipse. It totally worked for me.
@abhijith22019 жыл бұрын
the @PATH("/messages") is wrong , everyone please try with @PATH("messages") and restart tomcat , it should work
@balaji.r7887 жыл бұрын
Yes its @PATH("Messages").Thanks
@naskar237 жыл бұрын
but it worked perfectly fine with "@Path("/messages")"
@sam.kendrick7 жыл бұрын
I initially got a 404, but I just waited a few seconds and tried it again. I think the server takes a second to reload.
@zookeeper44827 жыл бұрын
It's not wrong.
@NotNotNithin7 жыл бұрын
/messages is not wrong or else how would Koushik get the output? You should restart your server once and it works fine.
@fool1239 жыл бұрын
i get a 404 when going to /messages. any ideea why ? i'm doing it in netbeans 8.0.2 btw, i don't think it matters though and i don't think i've missed anything :-s
@fool1239 жыл бұрын
ASSDQ restarted netbeans and works...fk this ide only had problems with it from the beginning. props on the tutorial too ! thx !
@8o8inSquares9 жыл бұрын
+ASSDQ You had to restart the server lol
@Dragosknight9 жыл бұрын
Intellij Idea HTTP Status 404 - Not Found type Status report message Not Found description The requested resource is not available. Apache Tomcat/8.0.24
@nostalgiaTune9 жыл бұрын
+vinay ganesh.d Did you make the class public?
@tomasreynoso9 жыл бұрын
I used to have the same problem. My getMessages() method doesn't have the public accesibility
@taraszhupnyk29989 жыл бұрын
How to create this project in Intellij IDEA?
@Java.Brains9 жыл бұрын
Taras Zhupnik I'm sure IntelliJ has a Maven project creation function. Look it up!
@SoeaOu9 жыл бұрын
+Java Brains procedure is pretty much the same as in eclipse, it can also be done from command line and then imported to intellij as a maven project
@koushikdas27555 жыл бұрын
I like to know, How servlet internally calls the web resource.
@최진우-y8s9 жыл бұрын
how to setup this project in linux? is it possible?
@SoeaOu9 жыл бұрын
+CHOI JERENO yes, use maven from command line, this is pretty much designed to work on linux machines
@shahidkhan80824 жыл бұрын
i got 404 error i uses 2.6 jax rs java8 and tomcat 9
@milantrehan1784 жыл бұрын
I kept getting 404, and after trying a lot of times I found the thing that I was missing -"public" modifier for getMessages() .
@vnikie19 жыл бұрын
thanks a lot!!
@amitrathod30746 жыл бұрын
HI a i am facing issue while running localhost:8013/messanger/webapi/messages Type Status Report Message Not Found Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. please help me out
@abdussamadibnmoore52199 жыл бұрын
My applicatin work. but it will only accept uppercase Messenger in the url. Anyone knows why?