Discussions

EJB programming & troubleshooting: configuring weblogic 6.1 as HTTP server

  1. configuring weblogic 6.1 as HTTP server (3 messages)

    Ok, this must be simple but I seem to miss something.

    I have a bare-bones "web application" - just a directory stucture:
    >testApp
    -------->WEB-INF
              -------web.xml
              ------->lib
              ------->classes
              ------->src
    --------index.html
    --------index.jsp
    (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)?

    TIA
  2. 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.
  3. 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)).

    Any ideas?

  4. 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:
    http://edocs.bea.com/wls/docs61/adminguide/apache.html#100375