LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-25-2010, 05:16 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
Help me hosting webpages(jspx) in linux machine.


Hi guys,

I have developed a small website using jspx pages.
Now i want to host the website to a server which is a linux machine.

The linux machine which i m referring to is already hosting some web pages(jspx) through a web server Which is running at port 8888.
My first question would be "How would i check which web server is installed in the server?"


Due to my little knowledge about linux machine .I have copied some simple html pages to /var/www/html location. The pages are getting accessed correctly on port number 80.

But how would i go about hosting jspx pages .Please help.

Some information that might be helpful

PHP Code:
[root@~]# httpd -v
Server versionApache/2.0.52
Server built
:   Jun 11 2008 19:01:13 
PHP Code:
[root@ ~]# java -v
Warning: -v not understoodIgnoring.
Usagegij [OPTION] ... CLASS [ARGS] ...
          
to invoke CLASS.main, or
       
gij -jar [OPTION] ... JARFILE [ARGS] ...
          
to execute a jar file
Try `gij --help' for more information. 

PHP Code:
Linux machine information is as below 
LSB Version
:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID
EnterpriseEnterpriseAS
Description
:    Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
Release:        4
Codename
:       OctoberUpdate7 
 
Old 03-25-2010, 08:25 AM   #2
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
I may be wrong when it comes to .jspx files. But I assume they are similar to jsp files. If so, you need a servlet container such as tomcat or application server (jboss, glassfish) to run you web application
 
Old 03-25-2010, 11:30 PM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by sreeharsha.t View Post
I may be wrong when it comes to .jspx files. But I assume they are similar to jsp files. If so, you need a servlet container such as tomcat or application server (jboss, glassfish) to run you web application
You are indeed right but how would i determine which application server exist in my linux machine.

I have got following location of existing jspx file .


PHP Code:
/opt/oc4j/j2ee/home/applications/OVS/webapp1/infrastructure/OVS_Login.jspx 

PHP Code:
[rootapp]# java -version
java version "1.4.2"
gcj (GCC3.4.6 20060404 (Red Hat 3.4.6-10.0.1)
Copyright (C2006 Free Software FoundationInc.
This is free softwaresee the source for copying conditions.  There is NO
warranty
not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
 
Old 03-26-2010, 12:53 AM   #4
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
I don't know where the application server is installed by default. I doubt whether one will be installed by default, it depends on what packages you have selected during Redhat installation.

However, you can always download and install (nothing more than extracting the tar package) Tomcat or Jboss, copy your application files into the Webapps folder which will be present in the extracted folder and run the server. You can do this in your home directory itself.

Last edited by sreeharsha.t; 03-26-2010 at 06:06 AM. Reason: typo..
 
1 members found this post helpful.
Old 03-26-2010, 01:41 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Yes any java server should be able to host your jspx files. And if you have not installed any java server, then it is possible there is none installed on your machine by default. There are Apache Tomcat, JBoss, or Glassfish that you can choose from.
 
1 members found this post helpful.
Old 03-26-2010, 02:35 AM   #6
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
You caann't run jspx pages without a java based application server . Like above all said first install any application server( probably Tomcat is engough for you ) and configure it accordingly ...
 
Old 03-26-2010, 04:22 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,671

Rep: Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454
From wiki "Portable framework
runs on almost every Application Server without extra efforts."


Looks like I need to study this page. http://jspx-bay.sourceforge.net/

Seems it is running under ajax. An opensolaris distro might be supported faster but I'm sure linux could do it.

Last edited by jefro; 03-26-2010 at 04:26 PM.
 
1 members found this post helpful.
Old 03-28-2010, 10:39 PM   #8
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by hardcorelinux View Post
You caann't run jspx pages without a java based application server . Like above all said first install any application server( probably Tomcat is engough for you ) and configure it accordingly ...
Thanks for your response .But as i mentioned above I m working on a server which is already hosting .jspx files .But My Question is.

"How would i determine which java server exist in the server ."


Please help.
 
Old 03-29-2010, 02:18 AM   #9
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
Quote:
Originally Posted by pinga123 View Post
Thanks for your response .But as i mentioned above I m working on a server which is already hosting .jspx files .But My Question is.

"How would i determine which java server exist in the server ."


Please help.
can you please run following output and paste the output here ..

ps -aux | grep -i java
 
Old 03-29-2010, 03:41 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,671

Rep: Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454
Sorry, I read the question wrong.
 
Old 03-29-2010, 11:07 PM   #11
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by hardcorelinux View Post
can you please run following output and paste the output here ..

ps -aux | grep -i java
Output
PHP Code:
[]# ps -aux | grep -i java
Warningbad syntaxperhaps a bogus '-'See /usr/share/doc/procps-3.2.3/FAQ
nsm       4973  0.0  2.3 1839896 49296 
?     Sl   Mar28   0:11 /usr/netscreen/De
vSvr
/lib/jre/bin/java -DNSROOT=/usr/netscreen -Dprocname=.devSvrDataCollector -D
java
.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Djava.aw
t
.headless=true -DgloPROdc=/usr/netscreen/DevSvr -DNSDIR=/usr/netscreen/DevSvr/v
ar
/be -DLOG4J_CFG=/usr/netscreen/DevSvr/var/be/cfg/datacollector.lcf -XX:PermSiz
e
=64M -XX:MaxPermSize=64M -Xms128000000 -Xmx1700000000 com.netscreen.sme.dc.SmeD
-conf /usr/netscreen/DevSvr/var/be/cfg/datacollector.xml
nsm       5184  0.0 25.4 1383624 525612 
?    Sl   Mar28   0:38 /usr/netscreen/De
vSvr
/lib/jre/bin/java -DNSROOT=/usr/netscreen -Dprocname=.devSvrDirectiveHandler
 
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Djava
.awt.headless=true -DgproDDM=/usr/netscreen/DevSvr -DNSDIR=/usr/netscreen/DevSvr
/var/be -DSTART_PATH=/usr/netscreen/DevSvr -DBE_CFG=/usr/netscreen/DevSvr/var/be
/cfg/be_cfg.txt -DLOG4J_CFG=/usr/netscreen/DevSvr/var/be/cfg/deviceservice.lcf -
Dfile.encoding=utf8 -XX:PermSize=128M -XX:MaxPermSize=256M -Xms128000000 -Xmx102
4000000 com
.netscreen.devicecomm.DeviceDirectiveManager -repo /usr/netscreen/Dev
Svr
/deviceservice -conf /usr/netscreen/DevSvr/var/be/cfg/deviceservice.xml
root     21589  0.1 10.3 1359856 212904 
?    Sl   Mar26  10:26 /opt/oc4j/java/jd
k1.5.0_11
/bin/java -XX:PermSize=256m -XX:MaxPermSize=512m -jar /opt/oc4j/j2ee/ho
me
/oc4j.jar -config /opt/oc4j/j2ee/home/config/server.xml -userThreads
nsm      23227  0.0  1.7 1159160 36788 
?     Sl   Mar23   0:12 /usr/netscreen/Gu
iSvr
/lib/jre/bin/java -DNSROOT=/usr/netscreen -Dprocname=.guiSvrMasterController
 
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Djava
.awt.headless=true -DgloPROmc=/usr/netscreen/GuiSvr -XX:PermSize=64M -XX:MaxPerm
Size
=64M -Xms128000000 -Xmx1024000000 com.netscreen.sme.mc.SmeMc
nsm      23382  0.0  6.4 1244880 132584 
?    Sl   Mar23   0:41 /usr/netscreen/Gu
iSvr
/lib/jre/bin/java -DNSROOT=/usr/netscreen -Dprocname=.guiSvrDirectiveHandler
 
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dgpro
GDM
=/usr/netscreen/GuiSvr -DNSDIR=/usr/netscreen/GuiSvr/var/be -DSTART_PATH=/usr
/netscreen/GuiSvr -DBE_CFG=/usr/netscreen/GuiSvr/var/be/cfg/be_cfg.txt -DLOG4J_C
FG
=/usr/netscreen/GuiSvr/var/be/cfg/nbiservice.lcf -Dfile.encoding=utf8 -XX:Perm
Size
=64M -XX:MaxPermSize=128M -Xms128000000 -Xmx1024000000 -Djava.library.path=/
usr/netscreen/GuiSvr/lib:/usr/netscreen/GuiSvr/utils/subversion-1.4.4/lib -DXDB_
HOME
=/usr/netscreen/GuiSvr/var/xdb com.netscreen.devicecomm.GUIDirectiveManager
-repo /usr/netscreen/GuiSvr/nbiservice -conf /usr/netscreen/GuiSvr/var/be/cfg/nb
iservice
.xml
nsm      23526  0.0  1.3 276320 28904 
?      Sl   Mar23   0:05 /usr/netscreen/Gu
iSvr
/lib/jre/bin/java -DNSROOT=/usr/netscreen -Dprocname=.guiSvrLicenseManager -
Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -DgproGD
M
=/usr/netscreen/GuiSvr -DNSDIR=/usr/netscreen/GuiSvr/var/be -DSTART_PATH=/usr/n
etscreen
/GuiSvr -DBE_CFG=/usr/netscreen/GuiSvr/var/be/cfg/be_cfg.txt -DGPGDIR=/u
sr
/netscreen/GuiSvr/var/license/.gnupg -DIDTOOL=/usr/netscreen/GuiSvr/utils/.ins
tallIdTool 
-XX:PermSize=64M -XX:MaxPermSize=64M -Xms16000000 -Xmx128000000 net.j
uniper
.nsm.license.LicenseMain
nsm      23902  0.0  3.5 686840 73240 
?      Sl   Mar23   0:11 /usr/netscreen/Gu
iSvr
/lib/jre/bin/java -DNSROOT=/usr/netscreen -Dprocname=.guiSvrWebProxy -DNSDIR
=/usr/netscreen/GuiSvr/lib/classes -Djava.nio.channels.spi.SelectorProvider=sun.
nio.ch.PollSelectorProvider -DWEBDIR=/usr/netscreen/GuiSvr/lib/webproxy -Dlog.di
r
=/usr/netscreen/GuiSvr/var/errorLogs -Dlog4j.configuration=/usr/netscreen/GuiSv
r
/lib/webproxy/conf/webproxy.lcf net.juniper.webproxy.main.WebProxy
root     32660  0.0  0.0  5144  684 pts
/1    R+   09:30   0:00 grep -i java
You have 
new mail in /var/spool/mail/root 
 
Old 03-29-2010, 11:27 PM   #12
hardcorelinux
Member
 
Registered: Jan 2005
Location: India
Distribution: RHEL,CentOS,SUSE,Solaris10
Posts: 183

Rep: Reputation: 31
I can see only NSM server is running , from my knowledge NSM is not a application server to host java based files and all . So you need to try something else try following

ps -eaf | grep tomcat

ps -eaf | grep -i jboss
 
Old 03-29-2010, 11:36 PM   #13
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,274

Rep: Reputation: 148Reputation: 148
As you said this web server running on port 8888 so just check the default page(http://ipaddress:8888). I think you may get some clue if there is default page. if it is tomcat or jboss there should be a default page(most probably)

Last edited by kirukan; 03-29-2010 at 11:38 PM.
 
Old 03-30-2010, 04:59 AM   #14
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by kirukan View Post
As you said this web server running on port 8888 so just check the default page(http://ipaddress:8888). I think you may get some clue if there is default page. if it is tomcat or jboss there should be a default page(most probably)
Thank you very much i have oracle application server installed on my machine.

How come no one has mentioned oracle application server?
Is it not so popular?
What is the reason behind not using tomcat or jboss?
 
  


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
Hosting webpages on localhost rozilla Linux - Server 4 07-07-2008 08:42 AM
Access webpages of linux from Windows machine haripriya.yerra Linux - Distributions 2 04-24-2008 01:43 AM
Suggestions for new hosting machine mikelbeck Linux - Server 3 12-08-2007 02:47 PM
cheap hosting v hosting on my home machine rblampain Linux - Security 4 09-22-2007 12:11 AM
LXer: Web Hosting Provider Zen Internet Offer Linux Hosting Trial for 1 ... LXer Syndicated Linux News 0 04-20-2006 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 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