27.11.04

Deploying Blojsom on Orion J2EE Server

As many of you might know already is Oracle J2EE technology based on Orion J2EE server. Currently these two servers go their separate ways in development, but there are still quite a lot similarities. I use this container at home for my personal web projects (family home pages etc). The installation of blojsom Blog server is pretty much the same as in Oracle J2EE server, with the exception of different name in http web site XML configuration file.

Here is the steps to deploy the blojsom blogging application on ORION J2EE container. Tested on 2.0.5 version.

  1. Download the WAR file for blojsom (http://sourceforge.net/project/showfiles.php?group_id=72754)

  2. Copy blojsom.war to it's own directory, without any other files in it.

  3. Make subdirectory META-INF

  4. cd META-INF

  5. Create/edit application.xml -file with following content:


  6. <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
    <application>
    <display-name>Blojsom</display-name>
    <module>
    <web>
    <web-uri>blojsom.war</web-uri>
    <context-root>blojsom</context-root>
    </web>
    </module>
    </application>

  7. Change directory to the root directory where blojsom.war exists. Create an EAR file out of the directory:

  8. <path_to_your_jdk_home>\jdk\bin\jar cvf blojsom.ear *
    You should see something like:
    added manifest
    adding: blojsom.war(in = 2493553) (out= 2449558)(deflated 1%)
    adding: web-inf/(in = 0) (out= 0)(stored 0%)
    adding: web-inf/application.xml(in = 387) (out= 240)(deflated 37%)
  9. Copy this *.ear file to ORION_HOME/applications -directory

  10. Edit ORION_HOME/config/server.xml

  11. Add following line under the application-server -root element:
    <application name="blojsom" path="../applications/blojsom.ear" auto-start="true" />

  12. Edit ORION_HOME/config/default-web-site.xml

  13. Add following line:
    <web-app application="blojsom" name="blojsom" load-on-startup="true" root="/blojsom" />

  14. Start the ORION server

  15. Auto-deployment should start at this point.
  16. Edit ORION_HOME/applications/blojsom/blojsom/WEB-INF/default/blog.properties

  17. Change the blog-base-url and blog-url to point to your server and ORION port.
    Change also other meaningful descriptive parameters to match your needs.
  18. Restart the ORION server

  19. Point your browser to url http://localhost:<port>/blojsom/blog/default/

No comments: