Sample ApplicationsThe sample applications demonstrate Mosaic functionality using real-world content and tasks. The samples are fully functional and you can use them to create your own applications. To access Mosaic sample applications, deploy the samples to the standalone Tomcat server included with Mosaic. Or you can deploy them to a Mosaic server deployed to LiveCycle ES2.5. Ensure that the sample roles and users are defined on the server before you attempt to access the samples. Deploying the sample applicationsUse the Ant build files provided with the Mosaic installation to deploy sample applications to the server. By default, the build files are configured to deploy the samples to a Mosaic server using the following values: <property name="protocol" value="http" /> <property name="server" value="localhost" /> <property name="port" value="8080" /> <property name="username" value="designer" /> <property name="password" value="password" /> Before you begin, ensure that you have Ant 1.7.0 or later installed. To deploy to a different server location, modify the Ant build files with the new information before running Ant. You can also modify the Ant build files to use a different user or password. To run Ant, type ant from the command line. When you do not provide arguments, Ant looks for a build.xml file in the current directory. Note: If you encounter a timeout error while deploying sample applications
or catalogs, add a maxwait attribute with a large value to the corresponding
build.xml file. For example, the following change to the build.xml
file located in the [Mosaic installation directory]/samples/general
folder sets the maxwait attribute value to 60000000000 seconds:
<mosaic-application action="import"
name="Basic"
file="applications/Basic.xml"
property="response"
protocol="${protocol}"
server="${server}"
port="${port}"
username="${username}"
password="${password}"
maxwait="60000000000" />
Accessing Mosaic sample applicationsOnce you deploy Mosaic samples to a Mosaic server, you can access the sample applications using the desktop client or browser client. The desktop client displays all deployed applications on the My Apps tab. To access sample applications using the browser client, type http://[host name]:[port]/mosaic/#/applications/[application name] in the URL line of a web browser. The application name corresponds to the name attribute specified in the Ant task used to deploy the application to the Mosaic server. For example, if you installed Mosaic on the standalone server, you can use the following URLs to connect to the sample applications:
To access the samples, you enter a user account and password. For example, the default user accounts include user and designer, which both use password as their password. For more information, see Mosaic users and roles. |
|