wood burning stoves*
The moose likes JSP and the fly likes How can we host a jsp in unix web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How can we host a jsp in unix web server" Watch "How can we host a jsp in unix web server" New topic
Author

How can we host a jsp in unix web server

Pooja Kaushik
Greenhorn

Joined: Mar 16, 2009
Posts: 4
I want to host a jsp in unix web server. how can i do it?
do i need any jars or packages to host them??
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Hi Pooja, welcome to javaranch.

To host a JSP on a Unix Server, you'll need a servlet container installed and running on the Unix system. You can use Tomcat for this and then deploy your web application on tomcat using the tomcat manager or directly...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Joel Krueger
Greenhorn

Joined: Mar 16, 2009
Posts: 1
I use jetty for my container in linux. It's pretty simple and can be picked up here.

Just download and extract and put the app you want loaded into the webapp directory and then go into the bin directory and run 'jetty.sh start etc/jetty.xml'.

You may have to add the path of your 'installation' into the jetty.sh file. For instance mine is in /usr/local/jetty/jetty-6.1.7, so I added the line /usr/local/jetty/ to the STANDARD_LOCATIONS part, and jetty-6.1.7 to the JETTY_DIR_NAMES part.

To view the files open a browser and go to http://127.0.0.1:8080/(folder name of app)/(page you want to look at)

I haven't really played around with apache too much so I can't say much about it, but jetty is pretty strait forward.
Pooja Kaushik
Greenhorn

Joined: Mar 16, 2009
Posts: 4
thanks guys, but i dont want to install tomcat as my unix box is a production server and we may have to raise separate requests for installation of tomcat on the 30+ servers.
We have jdk 1.5 installed and use weblogic and iplanet sun one web server. Can i run the jsp in this?
Also, this jsp should also be able to pick up a flat file from one of the locations and print its details on another jsp..I am currently trying to connect to a unix server and gather some data from other unix servers and post it onto this one. now i want to host the jsp here and display all the details of all the servers on this one.

please provide your suggestions. thank you.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41600
    
  55
Sure, Weblogic includes a servlet container, so you can run Java web apps there.


Ping & DNS - my free Android networking tools app
Pooja Kaushik
Greenhorn

Joined: Mar 16, 2009
Posts: 4
thank you. So in this case where do I place my code? is there a specific folder where i need to keep all my files? like bin directory??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61094
    
  66

The Servlet specification has all the information you need on how to structure web applications.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: How can we host a jsp in unix web server