EJB programming & troubleshooting: configuring weblogic 6.1 as HTTP server
Ok, this must be simple but I seem to miss something.
- Posted by: Manavendra Gupta
- Posted on: July 30 2002 02:57 EDT
I have a bare-bones "web application" - just a directory stucture:
(files beginning with ">" are directories).
My App server is weblogic 6.1. I can access my testApp via http://localhost:7001/testApp/ (index pages have been defined the welcome files), but what are the exact steps that I need to do to be able to access the web application via http://localhost/testApp (configuring weblogic to run as HTTP server)?
You need to create or modified your domain to listen to port 80 instead of 7001. Take a look at config.xml under your domain directory.
Thanks for the reply, but perhaps I wasn't detailed enough.
I have just one box where weblogic is installed (I'm still exploring it and learning j2ee).
If i reconfigure my domain to listen to port 80 instead of the default port, will the applications be served from the new port? If yes, then that means I still will have just "one" server - an application and a webserver coupled together.
In product environments, would you generally not keep the two of them separate? I saw some documentation about configuring weblogic to run with Apache add-in, and similar documentation on configuring weblogic for web applications. But what I need is to have two "separate" servers (so the webserver serves pages (html, images), while the app server serves the server-side components (jsp, servlets, ejb)).
In a production environment,it's generally desirable to use WEBLOGIC to serve mainly EJB and other J2EE functionality (JMS,Servlets,...). So configuring weblogic to run with Apache add-in is a good idea. The apache server can act as a proxy and forward relevant requests to a weblogic server or even cluster of weblogic servers.Read online doc on how to configure apache: