LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2010, 07:03 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
Need a little help in running jsp pages(Tomcat server).


Hi,

I have installed
following software on my linux machine.

Quote:
jdk-6u20-linux-i586-rpm.bin
jre-6u20-linux-i586-rpm.bin
apache-tomcat-5.5.29.tar.gz

Is there anything else required to run jsp pages on linux machine?
Please Help

Here are some details that might be helpful.

Code:
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release:        5.2
Codename:       Carthage
Code:
# echo $JAVA_HOME
/usr/java/jdk1.6.0_20/
# echo $JRE_HOME
/usr/java/jre1.6.0_20/
# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
# javac -version
javac 1.6.0_20
Code:
# /install/apache-tomcat-5.5.29/bin/startup.sh   Using CATALINA_BASE:   /install/apache-tomcat-5.5.29
Using CATALINA_HOME:   /install/apache-tomcat-5.5.29
Using CATALINA_TMPDIR: /install/apache-tomcat-5.5.29/temp
Using JRE_HOME:        /usr/java/jre1.6.0_20/
Using CLASSPATH:       /install/apache-tomcat-5.5.29/bin/bootstrap.jar
 
Old 05-06-2010, 08:14 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,517

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

You should be OK.
To test point your browser to http://localhost:8080 to see if you get the tomcat welcome page

Regards
 
Old 05-06-2010, 09:36 AM   #3
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

Your config looks pretty much OK.

You don't "run" the JSP's in Linux, your JSP's are deployed to your servlet container (in your case Tomcat). Thus in summary, your next step would be to:

1. Either create your own OR download the web application that you wish to run (I assume it has JSP built in).
2. Deploy the web application to Tomcat
3. Restart the application server.

Depending on the way you define your context, you would be able to hit a local URL on your browser and the JVM/Tomcat will run your application and render your JSP.

I really suggest you read:

http://tomcat.apache.org which gives you an overview of how Tomcat works.

Also http://java.sun.com/products/jsp/ is also something that would help you understand how JSPs and servlets work
 
Old 05-07-2010, 12:31 AM   #4
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by alli_yas View Post
Hi

Your config looks pretty much OK.

You don't "run" the JSP's in Linux, your JSP's are deployed to your servlet container (in your case Tomcat). Thus in summary, your next step would be to:

1. Either create your own OR download the web application that you wish to run (I assume it has JSP built in).
2. Deploy the web application to Tomcat
3. Restart the application server.

Depending on the way you define your context, you would be able to hit a local URL on your browser and the JVM/Tomcat will run your application and render your JSP.

I really suggest you read:

http://tomcat.apache.org which gives you an overview of how Tomcat works.

Also http://java.sun.com/products/jsp/ is also something that would help you understand how JSPs and servlets work
In my collage days i used to create war file and deploy it on tomcat .But it seems that they have exclude admin part into it.
Do they still follow the same procedure?
 
Old 05-07-2010, 03:33 AM   #5
ultimate_linux
Member
 
Registered: Mar 2010
Distribution: Ubuntu 10.04,opensolaris
Posts: 30
Blog Entries: 3

Rep: Reputation: 0
if you have any doubt, use Netbeans IDE
 
0 members found this post helpful.
Old 05-07-2010, 04:07 AM   #6
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by ultimate_linux View Post
if you have any doubt, use Netbeans IDE
What kind of answer is this?
 
Old 05-07-2010, 06:16 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,517

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

For tomcat 5.5.x you can use the manager application to deploy your apps. Admin comes in a different archive and you have to install it manually

Regards
 
Old 05-10-2010, 03:21 AM   #8
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
In my collage days i used to create war file and deploy it on tomcat .But it seems that they have exclude admin part into it.
Do they still follow the same procedure?
As per the previous reply, if you are trying to deploy a WAR file (for Tomcat 5.5.X or higher) simply drop it into $CATALINA_HOME/webapps - which will auto-deploy the application.

To see if the deployment was successful; tail $CATALINA_HOME/logs/catalina.out and in a separate terminal restart Tomcat.

Hope this helps...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
it is neccessary to install both server tomcat5 and apache2 for running JSP with SSL nomis SUSE / openSUSE 10 04-16-2008 12:44 AM
Tomcat : unable to access the jsp pages minil Programming 11 01-28-2006 10:19 AM
how to connect to 10g database from jsp using tomcat server? host Red Hat 0 12-05-2005 01:37 AM
Install tomcat as a module of Apache for running JSP kernelvn Linux - Networking 1 09-28-2004 12:41 AM
Apache/Tomcat : jsp = "No Host matches server name" ghow961 Linux - Networking 0 07-01-2004 07:20 PM


All times are GMT -5. The time now is 01:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration