Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web server configuration

 
Sriram Sankar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic