Run and Debug Java Web Application in Tomcat using VS Code | Use VS Code Community Server Connector

  Рет қаралды 41,311

LearningFromExperience

LearningFromExperience

Күн бұрын

Пікірлер: 48
@Tactical_Ninja0806
@Tactical_Ninja0806 Жыл бұрын
Thanks a lot man......was really struggling to get this tomcat and VSCode run together. Thanks mate
@learningfromexperience
@learningfromexperience Жыл бұрын
Glad it helped .
@kshitizchandra1223
@kshitizchandra1223 9 ай бұрын
best video ever i was not able to open my tomcat manager page and this guy did it in single hit....thanks man.
@learningfromexperience
@learningfromexperience 9 ай бұрын
Glad it helped
@yash1152
@yash1152 Жыл бұрын
0:56 './conf/tomcat-users.xml': configuring tomcat users 1:37 './bin/startup.{sh,bat}': tomcat startup scripts 1:48 run any of above to run tomcat via CLI (awesome :) 3:51 the vscode part _seems_ to start from here
@leonardoqoliveira1584
@leonardoqoliveira1584 Жыл бұрын
thank you so much, i'm from Brazil and it's realy hard to find some good tutorials, like this
@learningfromexperience
@learningfromexperience Жыл бұрын
Glad you like them!
@sivaraamtk4418
@sivaraamtk4418 Жыл бұрын
Thank you so much bro, I can' t find a single good tutorial other than this
@learningfromexperience
@learningfromexperience Жыл бұрын
Glad I could help
@brunoweber3423
@brunoweber3423 Ай бұрын
After 2 hours, finally done.
@williansdutra
@williansdutra Жыл бұрын
so well done explained!
@learningfromexperience
@learningfromexperience Жыл бұрын
Glad it was helpful!
@SoloScholar0202
@SoloScholar0202 Жыл бұрын
Hi, the server is not starting up for me. It says neither the java_home nor java_main is set up even though I have added the environment variables properly.
@learningfromexperience
@learningfromexperience Жыл бұрын
Not sure about the exact problem but would suggest you to try the following . 1.Check the JAVA_HOME 2.Try to start the tomcat using apache-tomcat-\bin\startup.bat file . 3.Tomcat stores its log files in the logs directory within the Tomcat installation folder, e.g., C:\Tomcat\apache-tomcat-\logs. Check the logs .
@phuongooooo
@phuongooooo Жыл бұрын
If you don't see the file there you can type "mvn package" at the terminal in vscode, it will appear in the target folder
@22manohar08
@22manohar08 Жыл бұрын
How to do hotreload when running on server? Like eclipse
@yatharthlashkari3166
@yatharthlashkari3166 Жыл бұрын
Can't access Manager-GUI. After opening localhost:8080 for accessing manager inputting username and password "admin" still not allowing me to access. Can you please tell me what wrong step I am taking?
@learningfromexperience
@learningfromexperience Жыл бұрын
Not exactly sure .Would request you to enter correct uid/password and share the exact error message you are getting if still the problem exits.
@karishmaclasses
@karishmaclasses Жыл бұрын
Sir your simpleweb.war file which type of program was stored in that so. That it was showing login page I can't understand that file please give some response
@learningfromexperience
@learningfromexperience Жыл бұрын
I did not get your question actually .the simpleweb.war is WAR file deployed in Tomcat here .It contains few html pages and servlet java classes.
@roanbaga
@roanbaga 10 ай бұрын
I have Tomcat inside a local docker in my computer. How can I connect it with my vscode
@Adi-zu1vz
@Adi-zu1vz 3 ай бұрын
when i am creating a new server from local disk, it is showing error "Unable to create the server: Extension backend error - unable to contact the rsp server." it is thrown via extension Runtime Server Protocol UI pls tell solution
@Insighttutorials19
@Insighttutorials19 2 ай бұрын
Really helped thanks man 🙂🙂
@learningfromexperience
@learningfromexperience Ай бұрын
Glad it helped
@Testchannel-ds4yt
@Testchannel-ds4yt Жыл бұрын
Unable to create the server: Extension backend error - could not detect any server at `path-to-tomcat\apache-tomcat-11.0.0-m6`! How do I fix this? The server files are in the mentioned directory, yet it wouldn't detect them
@soumyaranjansahoo4100
@soumyaranjansahoo4100 10 ай бұрын
Same problem here
@soumyaranjansahoo4100
@soumyaranjansahoo4100 10 ай бұрын
Solution plz
@thatvu5568
@thatvu5568 Жыл бұрын
I want to using tomcat 10 for study but community connect server can't run and get errorr " Configuration error java.io.FileNotFoundException: 'd:\TomCatSever\apache-tomcat-10.1.7\conf\logging.properties' (The filename, directory name, or volume label syntax is incorrect)" can i fix that
@learningfromexperience
@learningfromexperience Жыл бұрын
It seems the Tomcat server is unable to find the logging.properties file in the specified path. Not exactly sure but you can try the following 1.Check if the apache-tomcat-10.1.7 directory is present in the TomCatSever folder on the D: drive and if the logging.properties file exists in the conf directory. 2.Update the file path in Tomcat configuration: If the path to the logging.properties file is incorrect, update the Tomcat configuration to point to the correct location. Look for the java.util.logging.config.file system property in the Tomcat startup script and update its value to the correct path. For Windows, open the catalina.bat file (located in the bin directory of your Tomcat installation) and locate the following line: set "JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"" Update the path in the -Djava.util.logging.config.file option if necessary. For Linux, open the catalina.sh file (located in the bin directory of your Tomcat installation) and locate the following line: JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties" Update the path in the -Djava.util.logging.config.file option if necessary. 3.Restart the Tomcat server: Once you have resolved the issue with the logging.properties file, restart the Tomcat server to apply the changes.
@AlexVargas-rq7bl
@AlexVargas-rq7bl 9 ай бұрын
Option "run on server" does not appear to me. Do I need some special extension for that?
@learningfromexperience
@learningfromexperience 9 ай бұрын
The "Run On Server" option not appearing in Eclipse typically indicates an issue with the configuration or setup related to server runtime environments or the project itself. Following are few most common reasons and solutions: 1.Eclipse IDE Version: Ensure you are using an Eclipse version that supports server integration, such as Eclipse IDE for Enterprise Java and Web Developers. 2.Server Runtime Environment Not Configured: Eclipse needs a server runtime environment to deploy and run web applications. Go to Window > Preferences > Server > Runtime Environments to check if a server is configured. If not, add a new server runtime environment that matches your target server (e.g., Tomcat). 3.Dynamic Web Module Facet Version: The project must be a Dynamic Web Project or have the Dynamic Web Module facet enabled with a compatible version. Right-click on the project > Properties > Project Facets > check if Dynamic Web Module is selected and set to an appropriate version.
@iradukundairenee1326
@iradukundairenee1326 Жыл бұрын
thank you you may share with us tom cat link you use so that we can download it
@learningfromexperience
@learningfromexperience Жыл бұрын
Glad it helped
@vikaskatla
@vikaskatla Жыл бұрын
for html files .warfile is not generating
@stknguyn2806
@stknguyn2806 Жыл бұрын
.war file not found sir. Please check and fix that
@Robert8989X
@Robert8989X Жыл бұрын
I followed your steps. Once I entered user/id(admin/admin) on the login page, I got this error. Thanks ------------------- HTTP Status 404 - Not Found Type Status Report Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Apache Tomcat/10.1.8
@starkendeavours7072
@starkendeavours7072 Жыл бұрын
first..open the tomcat manager application and do the same as per video just for once.. and reload the page..from the next time right click on server and show in localhost:8080/ "_your directory name_"
@anuragbotke888
@anuragbotke888 8 ай бұрын
Could you please deploy my .war file on server. I’m ready to pay for it.
@theuntoldtruth-bk8iz
@theuntoldtruth-bk8iz Жыл бұрын
mine says "maven executable path not found"
@learningfromexperience
@learningfromexperience Жыл бұрын
Apologies for the delayed response .There is a probability that maven is not correctly set in your system or with the VS Code. Please check this page for Maven setup related issues in VS Code github.com/microsoft/vscode-maven/blob/main/Troubleshooting.md
@kamranastanov5016
@kamranastanov5016 Жыл бұрын
Thanks a lot
@learningfromexperience
@learningfromexperience Жыл бұрын
Happy to help
@swarnalatapanigrahy6968
@swarnalatapanigrahy6968 Жыл бұрын
War file is not finding
@DuongTran-zh6td
@DuongTran-zh6td 8 ай бұрын
master pro
@yash1152
@yash1152 Жыл бұрын
0:56 './conf/tomcat-users.xml': configuring tomcat users 1:37 './bin/startup.{sh,bat}': tomcat startup scripts 1:48 run any of above to run tomcat via CLI (awesome :) 3:51 the vscode part _seems_ to start from here
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 83 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Setup Maven Java Project in Visual Studio Code || Run & Debug in VSC
25:08
Naveen AutomationLabs
Рет қаралды 34 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 180 М.
Debugging a Java Web App using Tomcat & VS Code
9:12
Brandon Donnelson
Рет қаралды 47 М.
My Visual Studio Code Setup for Web Development
13:56
ForrestKnight
Рет қаралды 1,1 МЛН
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 665 М.
Servlet Program using Eclipse (2022) | Simple Servlet using Tomcat and Eclipse
13:02
Maven + Spring Boot + VS Code: Your Ultimate Setup Guide
13:58
LearningFromExperience
Рет қаралды 86
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 83 МЛН