Hello, i want to deploy the applications in Mosaic. I'm following these instructions:
Use the Ant build files provided with the Mosaic ES2 installation to deploy sample applications to the server.
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.
For descriptions of the sample applications, see Sample applications.
In the following directory, run Ant:
[Mosaic ES2 install directory]/samples/
In the following directory, run Ant:
[Mosaic ES2 install directory]/samples/general/
In the following directory, run Ant:
[Mosaic ES2 install directory]/samples/max2009/
I've set the ant_home enviromment variable but it still gives me the 'ant' is not recognized as an internal or external command,
operable program or batch file.
Thanks.
Usually this is because the build.xml file is not able to point to the mosaicTasks.jar.
For example:
<project name="LiveCycle Mosaic MySamples" default="deploy">
<taskdef resource="mosaic.tasks" classpath="../bin/mosaicTasks.jar" />
....
If the classpath statement in the second line can't find the jar file then it will fail. The jar file is used to upload catalogs and applications to the mosaic server
Hodmi, i've done that but now i got this error:
C:\MOSAIC_HOME\samples>ant
Buildfile: build.xml
deploy:
deploy-catalogs:
[delete] Deleting: C:\MOSAIC_HOME\samples\general\sample_catalog.zip
[zip] Building zip: C:\MOSAIC_HOME\samples\general\sample_catalog.zip
[mosaic-catalog] Exception in thread "Thread-2" C:\MOSAIC_HOME\samples\general\b
uild.xml:21: Read failed: Server returned HTTP response code: 403 for URL: http:
//localhost:9080/mosaic/catalogs/sample_catalog
[mosaic-catalog] at com.adobe.mosaic.ant.MosaicTask$Reader.run(MosaicTask
.java:413)
[mosaic-catalog] Caused by: java.io.IOException: Server returned HTTP response c
ode: 403 for URL: http://localhost:9080/mosaic/catalogs/sample_catalog
[mosaic-catalog] at sun.net.www.protocol.http.HttpURLConnection.getInputS
tream(HttpURLConnection.java:1313)
[mosaic-catalog] at com.adobe.mosaic.ant.MosaicTask$Reader.run(MosaicTask
.java:407)
[mosaic-catalog] --- Nested Exception ---
[mosaic-catalog] java.io.IOException: Server returned HTTP response code: 403 fo
r URL: http://localhost:9080/mosaic/catalogs/sample_catalog
[mosaic-catalog] at sun.net.www.protocol.http.HttpURLConnection.getInputS
tream(HttpURLConnection.java:1313)
[mosaic-catalog] at com.adobe.mosaic.ant.MosaicTask$Reader.run(MosaicTask
.java:407)
[echo] ${response}
deploy-applications:
deploy:
deploy-catalogs:
deploy-applications:
deploy:
BUILD SUCCESSFUL
I'm using websphere 6.1.0.2.
I've got the 403 server in websphere.
Is there any procedure or any example to workaround this problem in websphere?
Thanks
Okay, that's good. It means that the LiveCycle UserManager and Repository components are deployed.
The other thing I would check is the username and password sections of the build.xml file. They will need to be set to a user that has the ROLE_MOSAIC_DESIGNER role in Mosaic. By default there should be a user called designer with a password of password that has that role.
....
<mosaic-catalog action="import"
name="FADesktop_catalog"
file="FADesktop_catalog.zip"
property="response"
server="${server}"
port="${port}"
username="designer"
password="password" />
<echo message="${response}" />
</target>
....
<mosaic-application action="import"
name="FADesktop"
file="applications/FADesktop.xml"
property="response"
server="${server}"
port="${port}"
username="designer"
password="password" />
<echo message="${response}" />
....
I already had it well configured i think, and it's not working. 403 error.
<project name="LiveCycle Mosaic Deploy General Samples" default="deploy">
<taskdef resource="mosaic.tasks" classpath="C:\MOSAIC_HOME\bin\mosaicTasks.jar" />
<property name="protocol" value="http" />
<property name="server" value="localhost" />
<property name="port" value="9080" />
<target name="deploy" depends="deploy-catalogs, deploy-applications" />
<target name="deploy-catalogs">
<delete file="max2009_catalog.zip" />
<zip destfile="max2009_catalog.zip">
<zipfileset dir="catalogs" />
</zip>
<mosaic-catalog action="import"
name="max2009_catalog"
file="max2009_catalog.zip"
property="response"
server="${server}"
port="${port}"
username="designer"
password="password" />
<echo message="${response}" />
</target>
<target name="deploy-applications">
<mosaic-application action="import"
name="MAX2009"
file="applications/MAX2009.xml"
property="response"
server="${server}"
port="${port}"
username="designer"
password="password" />
<echo message="MAX2009 : ${response}" />
<mosaic-application action="import"
name="RedMAX2009"
file="applications/RedMAX2009.xml"
property="response"
server="${server}"
port="${port}"
username="designer"
password="password" />
<echo message="RedMAX2009 : ${response}" />
</target>
</project>
Darn, well so much for the easy stuff.
There is another spot where the security may have gotten screwed up, but by default this should be okay. In the mosaic.war file that you deployed to WebSphere is a security.xml file. (You can open the war file using a zip program.) the file is located in the WEB-INF directory.
This file is where the roles are set for each user (like "designer"). Look for a tag marked security:authentication-provider. Make sure the "designer" user has the ROLE_MOSAIC_DESIGNER role. Should look something like:
<security:authentication-provider>
<security:user-service>
<security:user name="user" password="password" authorities="ROLE_MOSAIC_END_USER"/>
<security:user name="designer" password="password" authorities="ROLE_MOSAIC_END_USER, ROLE_MOSAIC_DESIGNER"/>
</security:user-service>
</security:authentication-provider>
If that is set properly then I can only imagine that its something on the IBM side. Perhaps additional security has been attached to the mosaic application when the WAR file was deployed.
North America
Europe, Middle East and Africa
Asia Pacific