954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JSP on linux (terminal)

i don't know what setting have to make on linux to run jsp programm using tomcat, please tell me what setting and how to do.

rushikesh jadha
Junior Poster in Training
89 posts since Dec 2011
Reputation Points: 4
Solved Threads: 11
 

Top of JSP forum Java Web Development - Starting [tutorials / resources / faq] explains how to setup Java, Tomcat on other tools under number of operating systems

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

Install tomcat.
Configure tomcat_users.xml (in /etc or /lib something, depends on distro) to have a manager user (see comments)
Start tomcat
Go to http://hostname:8080 (i think thats the port)
login as that user
deploy your compiled .war using the web interface.

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 
Install tomcat. Configure tomcat_users.xml (in /etc or /lib something, depends on distro) to have a manager user (see comments) Start tomcat Go to http://hostname:8080 (i think thats the port) login as that user deploy your compiled .war using the web interface.


Small correction, users configuration is not necessary for running tomcat in bare minimum. Not really need it for one user with local deployment. You would used user configuration when you are trying to administer restriction with larger user team or having it in production.

PS: tomcat_users.xml would be also located in TOMCAT_DIRECTORY/conf if you went for zip/tar package instead of apt-get (debian), yum (fedora)

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

If you are on ubuntu, this guide is good:
https://help.ubuntu.com/11.10/serverguide/C/tomcat.html

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

Post: Markdown Syntax: Formatting Help
You