Java EE (J2EE) Tutorial for beginners Part5

preview_player
Показать описание
Java EE (J2EE) Tutorial for beginners Part5: Spring Framework + Spring Webflow + Spring Security + JPA (Hibernate) + JSF 2.0 (PrimeFaces) + Apache Maven 2 + Apache Tomcat + Subclipse + Oracle RDBMS + Eclipse IDE
Рекомендации по теме
Комментарии
Автор

For those of you having problems with the web.xml not being updated to include a servlet-mapping section after adding a new servlet to the project, this is because you are using dynamic web module version 3.0, and not 2.5. I was using apache tomcat v7, which when selected while configuring this will result in having to use dynamic web module 3.0. I had to install Tomcat v6, delete the project, and add the project plus the servlet with dynamic web module set to 2.5 (this time it let me keep this setting after selecting default tomcat v6 configuration). After checking the web.xml file, the serblet-mapping section has been added and I can run the application on the server (after setting the correct URL) successfully.

tonyhoward
Автор

@Arthur Vin

Thank you so much for sharing your knowledge the people, who needed help the way you do. ALL GREAT and please continue ... ( Tibetan )

fromtibet
Автор

Arthur, thank you very much for the tutorials. They are very useful. But, with all the respect you deserve, the only thing to improve would be to raise the volume of your voice and the fluency of your explanations. Thank you. Continue working and being better!

hexodo
Автор

Awesome.
Just a quick note : Since Servlet 3.0, servlets can be mapped by the @WebServlet annotation above the class instead of by web.xml

stephenpaul
Автор

This is great! I hope you continue with this. I am waiting for the next one :)

Автор

It would be great to learn spring webflow ..waiting eagerly for that :)

rohit
Автор

Thanks you very much, I have watch this video and it save for me much time in learning java EE

hishamkhartoum
Автор

Why my XML is not updated after creating a servlet? I am using Tomcat 7.0. 

theoaristi
Автор

great tutorial!!!! I had some problems with PrintWriter... just you should be sure to have "import java.io.PrintWriter; " in the beginning of the servlet file.

mikymouse
Автор

If anyone is still having an issue and getting a '404 not found' error; I had to add " " before the public class in the java file. Hope this helps.

avneethall
Автор

i found the solution for the same problem please folow this steps :

help>Install new software
paste in "work with" click add
give any name you want - plugin
In the list select>"Web, XML, Java EE and OSGi Enterprise Development">Eclipse Java EE

Developer Tools. select and install it.
After restart you will have your Dyanmic web project option.
Thank You.

ArtyNelu
Автор

To everyone who got similar problem : Eclipse displays an error message saying that PrintWriter cannot be resolved to type.and then you get HTTP status 404.
You need to import java.io.PrintWriter. Or java.io.
Or just press Ctrl + Shift + O. It's a shortcut, which Eclipse provides to Organize Imports By default. This imports each class explicitly.

annao
Автор

thanks for this tutorial.. very helpful! :)

diivandi
Автор

Thank you for your good tutorials, unfortunately, I got an error when I am running the ServletJSPExample, the error is:HTTP Status 404 - /ServletJSPExample/, I removed the whole thing, and installed it again, but still have problem, what should I do?

parastookhosrowshahi
Автор

Thank you for tutorial.
I hope doing everything rigt but if i started server than can not finish this part of tutorial because some problem is there. I just changed the port and server started. After this tryed to run on server like in tutorial still browser didnt receive the message Eror 404. if i wanna restart server, after synchronized with projekt finish with eror of server and can not start. Please how to resolve this problem?

johnnyb
Автор

actually in the web.xml servlet tag is not generated...may be thats the problem.please suggest

sohelimran
Автор

I'm using Eclipse Kepler with GlassFish 4.0. When I create servlet nothing appears in web.xml but instead I have for ServletExample class.
Is it just a matter of style?

Chiz
Автор

Thanks! Authur

For me it was giving continuous error until I run this code by doing right click in ServletExample.Java file and select run As-->Run On Server

SaurabhShrivastava
Автор

Hi... Firstly gud tutorials.
I followed all the steps n I'm able to use port 8080.
However, wen I run the proj, the output appears only on the console window and a separate page does not appear, neither does it appear on the web browser.

amrithathorath
Автор

OK, I got mine to work, but I don't know why. In your video you had those server lines in your web.xml, so I added those in and tomcat wouldn't restart to display the webpage. I take them out and it does...hmm very strange.

JasonRichardTesch