How to Run Java Servlet Program using Apache Tomcat Server in Ubuntu Linux

preview_player
Показать описание
In this video, I have shown to run java servlet program using apache tomcat server in ubuntu linux and explained the directory structure of using servlet in apache tomcat server along with a program i.e. basically an example to print hello world on the client browser.

Solution:-

how to install and configure apache tomcat server in ubuntu linux tutorial link :

Рекомендации по теме
Комментарии
Автор

Thank You. This helped me run my first Java Servlet successfully on a Raspberry Pi. A hundred thanks!! :)

jonathangerard
Автор

After running the program, there is 404 error on browser with description: The origin server did not find the current representation for the target source or is not willing to disclose that one exists. Please help

onkar
Автор

sir, how to set the classpath of servlet-api.jar file in java classpath.

abhishekjain
Автор

I have couple questions. 1. How can i restart server after every change in my project. I don't do it manual. Mayby tomcat can restart himself or a plugin with 'watch' function is exist. My editors: Vim, VisualStudioCode. 2. Have you any hint, for hinting :D ... for java objects. It really simplifies writing. you're map you servlet in xm ... i'm using @WebServlet("/SomePath") staff. Could you explain differenece and advanteges both of them ?

prendki
Автор

Installed java-10-oracle there is no jdk or jre folder where to paste servlet-api.jar file

laravindrajvarshan
Автор

and also while compiling it is giving error thet java.servlet package not found

prajaktajadhav
Автор

nice video, but how can you use user packages if environment variable is set up inside tomcat?

Sbatushe
Автор

MyServlet.java:7: error: cannot find symbol
public class MyServlet extends HttpServlet {


javac cannot find HttpServlet
what's the problem. I'm using ubuntu 18.04LTS
Please tell me

ilectron
Автор

now i work with gedit , every thing ok, program is completed but complie automatically pls sir help me

desicomedyking
Автор

On compiling I am getting could not find or load main class for MyServlet

shreyaverma
Автор

Very helpful video for me! but here one thing is missing .you haven't told about setting class path for servlet-api.jar.thanks DevTech Solutions

DeepakGupta-cykz
Автор

6:20 when you compile java program you can make .class file successfully. But in my case I can't. I already set the classpath but unfortunately it can't compile my java program. 😢

AyushKumar-bdgq
Автор

i am getting 500 -internal server error .. how will i solve it

prajaktajadhav
Автор

sir plz help me , i have eclipse so in 4.02 min in this vedio you used emacs, but i try to used eclipse

but eclipse is opened and show error says that file not found

desicomedyking
Автор

I have an java SE edition, but it can't compile. did i need a Java EE edition?

dineshkumaran
Автор

Good video for newbies. I'm getting an error as : "HTTP Status 404 – Not Found"
What shall I do?

nikitaadkar
Автор

Sir is before this vedio, I am not installed apache tomcat

What i do?

desicomedyking
Автор

now last error are solved but now 8 error are come which is packace javax.servlet not exist

desicomedyking
Автор

when i compile error: no source files
what can i do DevTechSolutions

gokulramakrishnan
Автор

helpful video but I am getting http status 404 error on Linux

codenotes
join shbcf.ru