Author: sheetal Date: Fri Nov 20 23:24:00 2009 New Revision: 882777 URL: http://svn.apache.org/viewvc?rev=882777&view=rev Log: OLIO-134 Modified the build script to be generic
Modified: incubator/olio/docs/java_setup.html Modified: incubator/olio/docs/java_setup.html URL: http://svn.apache.org/viewvc/incubator/olio/docs/java_setup.html?rev=882777&r1=882776&r2=882777&view=diff ============================================================================== --- incubator/olio/docs/java_setup.html (original) +++ incubator/olio/docs/java_setup.html Fri Nov 20 23:24:00 2009 @@ -592,15 +592,22 @@ $WEBAPP/ws/apps/webapp/web/WEB-INF/web.xml to point to where your geocoder application is deployed.</li> </ul> - <li>Set JAVA_HOME, ANT_HOME accordingly in your environment.<br> + <li>Set JAVA_HOME, ANT_HOME accordingly in your environment.</li> + <li>Set javaee.server.type=<app server type> in +build.properties file located at <span style="font-family: monospace;"><$WEBAPP>/ws/bp-project. +Ex: </span>javaee.server.type=glassfish</li> + <li>Create <app server type>-app-server.properties and copy +contents from +app-server.properties.template file and set the values specific to the +app server you are using. For example, create +glassfish-app-server.properties and set the glassfish relevant build +details.<br> </li> - <li>In the $WEBAPP/ws/bp-project directory, copy the -build.properties.template to build.properties. Edit the -build.properties for the relevant build details. - Note that $WEBAPP was introduced in the section "Downloading the + <li>Note that $WEBAPP was introduced in the section "Downloading the Source":<br> <span style="font-family: monospace;">$ vi -<$WEBAPP>/ws/bp-project/build.properties<br> +<$WEBAPP>/ws/bp-project/<app server +name>-app-server.properties<br> <br> </span>Note that javaee.home needs to be pointed to the your Java EE 5 application server home directory, or if you're using @@ -727,6 +734,12 @@ will just have to add the target 'weave' in the -post-compile step.<br> <div style="margin-left: 40px;"> <ol> + <li>Set javaee.server.type=weblogic in build.properties file located +at <span style="font-family: monospace;"><$WEBAPP>/ws/bp-project.</span></li> + <li>Create weblogic-app-server.properties and copy contents from +app-server.properties.template file and set the values specific to +weblogic.<br> + </li> <li>Open build.xml in the <span style="font-family: monospace;"><$WEBAPP>/ws/apps/webapp </span>directory. </li> <li> Comment line 30 of build.xml :<br> @@ -750,75 +763,84 @@ (see step 3 of <a href="java_setup.html#GlassFish_Installation_and_Configuration">GlassFish Installation and Configuration</a>)</li> - <li>Specify the weblogic.lib environment variable in the ant call so -that appropriate jar files can be found:<br> - <br> -eg.<span style="font-family: monospace;"> ant --Dweblogic.lib=$my_weblogic_path/oracle/middleware/modules<br> - </span>Note that the <span style="font-family: monospace;">weblogic.lib</span> -environment variable needs to be specified on the command line because -of the call to the StaticWeaveAntTask and cannot read the -variables within the build.xml or its imported build files.<br> - </li> - <li>You should note that the <span style="font-family: monospace;">copy-persistence-config, -define.weave</span> and <span style="font-family: monospace;">weave</span> -steps has taken place in the output. You can deploy the resulting -WAR file to WebLogic.<br> -...<br> - <span style="font-family: monospace;">include-jmaki-local:</span><br - style="font-family: monospace;"> - <br style="font-family: monospace;"> - <span style="font-family: monospace;">include-jmaki:</span><br - style="font-family: monospace;"> - <span style="font-family: monospace;">copy-persistence-config:</span><br - style="font-family: monospace;"> - <span style="font-family: monospace;"> -[copy] Copying 1 file to -/Users/klichong/projects/olio/webapp/java/trunk/ws/apps/webapp/build/classes/META-INF</span><br - style="font-family: monospace;"> - <span style="font-family: monospace;"> -[copy] Copying 1 file to -/Users/klichong/projects/olio/webapp/java/trunk/ws/apps/webapp/build/classes/META-INF</span><br - style="font-family: monospace;"> - <br style="font-family: monospace;"> - <span style="font-family: monospace;">define.weave:</span><br - style="font-family: monospace;"> - <br style="font-family: monospace;"> - <span style="font-family: monospace;">weave:</span><br - style="font-family: monospace;"> - <br style="font-family: monospace;"> - <span style="font-family: monospace;">-post-compile:</span><br - style="font-family: monospace;"> - <span style="font-family: monospace;"> -[copy] Copying 3 files to -/Users/klichong/projects/olio/webapp/java/trunk/ws/apps/webapp/build/classes<br> -....<br> - </span></li> - <li><span style="font-family: monospace;"></span> - <p>You will have to deployed the two libraries in the + <li>Copy the jsfcompounds-core-0.0.6.jar and +javax.jsf_1.2.0.1.jar to the <span style="font-family: monospace;">$WEBAPP_HOME/ws/lib</span> +directory.</li> + <li>You will have to deployed the two libraries in the <$weblogic>/common/deployable-libraries for the application to work:<br> - </p> <ul> <li> jsf-1.2.war</li> <li>jstl-1.2.war <br> </li> </ul> - <p><br> -CLI command:<br> + <p>CLI command:<br> </p> + <p> </p> <pre>java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic</pre> <pre> -password weblogic -deploy -targets myserver1,myserver2</pre> <pre> -library ./deployable-libraries/XXXX.war</pre> <p><br> -If you're using the weblogic admin UI, then make sure "Install this + </p> + <p>If you're using the weblogic admin UI, then make sure "Install +this deployment as a library" box is checked and click Next. Accept the defaults and click Finish to complete installation. <br> </p> + <p> </p> </li> </ol> - <br> + For the application to use +the above two deployed libraries, create weblogic.xml file in <span + style="font-family: monospace;"><$WEBAPP>/ws/apps/webapp/web/WEB-INF/ +with the following content. </span><br> +<pre> <?xml version="1.0" encoding="UTF-8"?><br> <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <br> xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd"><br> <context-root>/webapp</context-root><br> <library-ref><br> <library-name>jstl</library-name><br> <specification-version>1.2</specification-version><br> <exact-match>true</exact-match><br> </library-ref><br> <library-ref><br> <library-name>jsf</library-name><br> <specification-version>1.2</specification-version><br> <implementation-version>1.2.9.0</implementation-version><br> <exact-match>false</exact-match><br> </library-ref><br> </weblogic-web-app><br></pre> <br> + 9. Run the ant command from <span + style="font-family: monospace;"><$WEBAPP>/ws/apps/webapp +directory.<br> +</span><br> + 10. You should note that the <span + style="font-family: monospace;">copy-persistence-config, +define.weave</span> and <span style="font-family: monospace;">weave</span> +steps has taken place in the output. You can deploy the resulting +WAR file to WebLogic.<br> + ...<br> +<span style="font-family: monospace;"> + include-jmaki-local:</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> + include-jmaki:</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + copy-persistence-config:</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + [copy] Copying 1 file to +/Users/klichong/projects/olio/webapp/java/trunk/ws/apps/webapp/build/classes/META-INF</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + [copy] Copying 1 file to +/Users/klichong/projects/olio/webapp/java/trunk/ws/apps/webapp/build/classes/META-INF</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> + define.weave:</span><br + style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> + weave:</span><br style="font-family: monospace;"> +<br style="font-family: monospace;"> +<span style="font-family: monospace;"> + -post-compile:</span><br + style="font-family: monospace;"> +<span style="font-family: monospace;"> + [copy] Copying 3 files to +/Users/klichong/projects/olio/webapp/java/trunk/ws/apps/webapp/build/classes<br> + ....</span><br> +<span style="font-family: monospace;"> +</span> </div> <h2>Deploying the Web Application</h2> Deploy