GeeCON Prague 2014*
The moose likes Websphere and the fly likes web server configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "web server configuration" Watch "web server configuration" New topic
Author

web server configuration

Sriram Sankar
Greenhorn

Joined: Mar 01, 2001
Posts: 22
Hi,
I just wanted to know how we can make our servlets run in IBM HTTP Server.is there any documentation available on net which can guide me through the whole process.we have IBM HTTP Server 1.3.12
we have applets as well as servlets which needs to be deployed in IBM HTTP Server

Regards
Sriram
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
Sriram
You cannot deploy servlets on an HTTP Server. You need an application server like WebSphere 3.5 etc to use servlets.

Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
If however you do have an application server like websphere installed on your system. To just test out the concept of servlets you need to put your servlets in the
websphere\appserver\servlets

folder and invoke them through your browser using
http:\\localhost\servlets\HelloWorldServlet
where HelloWorldServlet.class is a servlet in the servlets folder.
Pradyumn Daga
Greenhorn

Joined: Jun 05, 2001
Posts: 9
Also, if you want to deploy JSPs, they must be in the path:
<code>
\\<websphere install path>\hosts\default_host\<app server>\web
</code>. For example, \\Shankar\d\WebSphere\AppServer\hosts\default_host\wbidc\web.


To run the JSP, you will use the following URL on your browser:
<code>http://<fully qualified server name>/webapp/<app server>/<JSP file>
</code>. For example, http://shankar.dvlp.com/webapp/myServer/SimpleJSP.jsp.


Hope it helps. Cheers, pd
Originally posted by Sriram Sankar:

I just wanted to know how we can make our servlets run in IBM HTTP Server.is there any documentation available on net which can guide me through the whole process.we have IBM HTTP Server 1.3.12
we have applets as well as servlets which needs to be deployed in IBM HTTP Server

Sriram Sankar
Greenhorn

Joined: Mar 01, 2001
Posts: 22
Yes, i have an Websphere 3.5 for deploying my servlets and EJBs. But i also have another problem. How do the HTTP server know that the servlets are in the webpath of the App server.
We have something called a server root and document root in HTTP server. If i put my htmls there, my applets are getting invoked but when i specify the path of the appserver root/servlets/ in the server root, there is no response.
Another question?. Can i install my websphere in another machine and configure the HTTP server to get the servlets from there?. But i think that applets and servlets should be in the same machine to work properly.
Pls advise.
Thanks for the help
Sriram
Harish SK
Greenhorn

Joined: Jun 01, 2001
Posts: 20
I have not used IBM HTTP server and websphere in a different machine yet. But you can deploy servlets from the Administrator's console easily. Just refer to the already deployed sample servlets. Mostly you will have to set classpath where the servlet class is available and the URL to be used to access the servlet.
 
GeeCON Prague 2014
 
subject: web server configuration