To remove the EAR files from WebLogic:

To make adjustments to the EAR files:

  1. Create a directory that will hold the images and HTML content, for example, /usr/local/ATG/BEAImages/ImagesAndHTML.

  2. Copy the images from the <ATG9dir>/CommerceReferenceStore/Store/Storefront/docroot/images directory to the directory you created in step 1, for example:

    cp -r
    /usr/local/ATG/ATG9.3/CommerceReferenceStore/Store/Storefront/docroot
    /images /usr/local/ATG/BEAImages/ImagesAndHTML

  3. Copy the HTML content from <ATG9dir>/CommerceReferenceStore/Store/Storefront/docroot/html to the directory you created in step 1, for example:

    cp -r
    /usr/local/ATG/ATG9.3/CommerceReferenceStore/Store/Storefront/docroot/html
    /usr/local/ATG/BEAImages/ImagesAndHTML

  4. Create these two directories:

    <ATG9dir>/CIM/tmp/ATGPublishing.ear/docroot.war/WEB-INF
    <ATG9dir>/CIM/tmp/ATGProduction.ear/docroot.war/WEB-INF

  5. In both of the WEB-INF directories you just created, create a file called web.xml with the following details:

    <?xml version="1.0" ?>
    <web-app xmlns=
    http://java.sun.com/xml/ns/j2ee
        xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
        xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
        http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd

        version="2.4">
    </web-app>

  6. In both of the WEB-INF directories, create a file called weblogic.xml with the following details. Replace ImagesAndHTMLLocation with the path of the directory you copied the images and HTML content to, for example, /usr/local/ATG/BEAImages/ImagesAndHTML:

    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
        <virtual-directory-mapping>
            <local-path>ImagesAndHTMLLocation</local-path>
            <url-pattern>*</url-pattern>
        </virtual-directory-mapping>
    </weblogic-web-app>

  7. Locate the <ATG9dir>/CIM/tmp/ATGPublishing.ear/META-INF/application.xml and <ATG9dir>/CIM/tmp/ATGProduction.ear/META-INF/application.xml files.

  8. Add the following module to the bottom of both application.xml files, above the closing </application> tag:

    <module>
        <web>
            <web-uri>docroot.war</web-uri>
            <context-root>/</context-root>
        </web>
    </module>

  9. In the <ATG9dir>/CIM/tmp/ATGProduction.ear/storefront.war/WEB-INF directory, create a file called weblogic.xml with the following details:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-web-app
    PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
    "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd" >

    <weblogic-web-app>
        <container-descriptor>
            <prefer-web-inf-classes>true</prefer-web-inf-classes>
        </container-descriptor>
        <container-descriptor>
            <index-directory-enabled>true</index-directory-enabled>
        </container-descriptor>
    </weblogic-web-app>

To redeploy the EAR files:

  1. Return to the WebLogic Server Administration Console.

  2. Redeploy ATGPublishing.ear:

    • Under Domain Structure, click Deployments for your user domain.

    • Click Install.

    • Locate the ATGPublishing.ear you modified in <ATG9dir>/CIM/tmp.

    • Select ATGPublishing.ear and click Next.

    • For a targeting style, accept the default of “Install this deployment as an application” and click Next.

    • For a deployment target, select the ATGPublishing server and click Next.

    • In the Source Accessibility section of the Optional Settings page, select “I will make the deployment accessible from the following location.”

    • Update the Name to ATGPublishing.ear.

    • Click Finish.

  3. Redeploy ATGProduction.ear:

    • Under Domain Structure, click Deployments for your user domain.

    • Click Install.

    • Locate the ATGProduction.ear you modified in <ATG9dir>/CIM/tmp.

    • Select ATGProduction.ear and click Next.

    • For a targeting style, accept the default of “Install this deployment as an application” and click Next.

    • For a deployment target, select the ATGProduction server and click Next.

    • In the Source Accessibility section of the Optional Settings page, select “I will make the deployment accessible from the following location.”

    • Update the Name to ATGProduction.ear.

    • Click Finish.

  4. In the Change Center area, click Activate Changes.

  5. Continue with the section Starting the Publishing and Production Servers.

 
loading table of contents...