How To Store The Application:
-create a folder of your project in webapps.
-inside that folder create a folder WEB-INf.
-inside WEB-INF create 2 more folders namely, classes and lib.
-Make a web.xml in WEB-INf.
To run your project, you need to configure the xml file ,i.e., web.xml.
where you'll store, say, the servlet name and the url pattern which you'll use to open it in your browser.
classes folder will contain the compiled files of your java program (.class).
go to browser and type: http://localhost:8080/app-folder/url-pattern
give localhost or (IP of the connected system)
on running start tomcat manager but it'll ask for username and password. So, configure a file:
tomcat->conf->tomcat-users
modify/add username and password for manager.
Now, start the tomcat from terminal by start.bat and go for the URL in the browser. After the completion just type shutdown.bat in command prompt.
Note: while installing this, you need to kill all the processes related to tomcat.
Note: Netbeans and web-browser etc are just clients. So, same URL need to be passed in order to run the app.
-create a folder of your project in webapps.
-inside that folder create a folder WEB-INf.
-inside WEB-INF create 2 more folders namely, classes and lib.
-Make a web.xml in WEB-INf.
To run your project, you need to configure the xml file ,i.e., web.xml.
where you'll store, say, the servlet name and the url pattern which you'll use to open it in your browser.
classes folder will contain the compiled files of your java program (.class).
go to browser and type: http://localhost:8080/app-folder/url-pattern
give localhost or (IP of the connected system)
on running start tomcat manager but it'll ask for username and password. So, configure a file:
tomcat->conf->tomcat-users
modify/add username and password for manager.
Now, start the tomcat from terminal by start.bat and go for the URL in the browser. After the completion just type shutdown.bat in command prompt.
Note: while installing this, you need to kill all the processes related to tomcat.
Note: Netbeans and web-browser etc are just clients. So, same URL need to be passed in order to run the app.
Comments
Post a Comment