Skip navigation
sprasoonk
Currently Being Moderated

Not able to build a sample tile project on standalone

May 5, 2010 12:16 PM

hi,

 

I am trying to build a sample project which is created in my separate project orhter than sample sxample given by adobe. I created my project in the root directory (c:/97004525/MyProject) and created same directory structure as

 

C:\97004525\MyProject

              --   build.xml

              --   applications  /SampleTile.xml

              ---  catalogs

                       --  descriptor.xml

                       --  Resources

                       --  Tiles   / SampleTile.swf

 

and files as build.xml :

 

<project name="Deploy projects to myserver" default="deploy">
<taskdef resource="mosaic.tasks" classpath="../../bin/mosaicTasks.jar" />
  <property name="protocol" value="http" />
  <property name="server" value="localhost" />
  <property name="port" value="8080" />

<target name="deploy" depends="deploy-catalogs, deploy-applications" />

<target name="deploy-catalogs">
  <delete file="sample_catalog.zip" />
  <zip destfile="sample_catalog.zip">
   <zipfileset dir="catalogs" />
  </zip>
  <mosaic-catalog action="import" name="sample_catalog"
    file="sample_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="SampleTile"
    file="applications/SampleTile.xml"
    property="response"
    server="${server}"
    port="${port}"
    username="designer"
    password="password" />
  <echo message="${response}" />
</target>
</project>

 

 

------------------------------------------------------

 

SampleTile.xml as :

 

<?xml version="1.0" encoding="UTF-8"?>
<app:Application name="Basic" label="Basic" xmlns:view="http://ns.adobe.com/Mosaic/View/1.0/" xmlns:catalog="http://ns.adobe.com/Mosaic/Catalog/1.0/" xmlns:tile="http://ns.adobe.com/Mosaic/Tile/1.0/" xmlns:crx="http://ns.adobe.com/Mosaic/CRXTypes/1.0/" xmlns:app="http://ns.adobe.com/Mosaic/Application/1.0/">
<crx:Metadata>
  <crx:Description>SampleTile Application</crx:Description>
</crx:Metadata>
<app:Shell name="SampleTile" label="Sample Tile">
<catalog:CatalogReference name="myproject" uri="sample_catalog"/>
<view:ViewManager width="100%" height="100%">
  <view:View label="View 1" width="100%" height="100%">
   <view:Panel label="Panel 1" width="100%" height="100%">
    <view:Layout name="FlowLayout"/>
    <tile:TileReference catalog="myproject" name="RetrieveData" label="RetrieveData"/>
   </view:Panel>
  </view:View>
  <view:Layout name="TabNavigatorLayout"/>
</view:ViewManager>
</app:Shell>
</app:Application>
------------------------------------------------------

 

descriptor.xml as

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<catalog:Catalog name="sample_catalog"
     label="Sample Catalog"
     xmlns:shell="http://ns.adobe.com/Mosaic/Shell/1.0/"
     xmlns:catalog="http://ns.adobe.com/Mosaic/Catalog/1.0/"
     xmlns:tile="http://ns.adobe.com/Mosaic/Tile/1.0/"
     xmlns:view="http://ns.adobe.com/Mosaic/View/1.0/"
     xmlns:crx="http://ns.adobe.com/Mosaic/CRXTypes/1.0/">
    <crx:Metadata>
     <crx:Description>Sample Catalog</crx:Description>
    </crx:Metadata>
    <catalog:Categories>
        <catalog:Category name="Component"/>
        <catalog:Category name="Utility"/>
    </catalog:Categories>
    <tile:TileClassList>
        <tile:TileClass initialHeight="400" initialWidth="680" label="Sample Tile" name="SampleTile" catalog="sampleCatalog" fitContent="true">
            <crx:Metadata>
                <crx:Description>Sample Tile</crx:Description>
                <crx:Category>Component</crx:Category>
                <crx:Tag>component</crx:Tag>
                <crx:Tag>menu</crx:Tag>
            </crx:Metadata>
        <tile:Content loadAs="default" contentType="application/x-shockwave-flash" uri="/mosaic/catalogs/sample_catalog/tiles/SampleTile/content"/>
       </tile:TileClassList>
</catalog:Catalog>

--------------------------------------------------

 

While building I am getting my builds failed as


C:\97004525\MyProject>ant
Buildfile: build.xml
  [taskdef] Could not load definitions from resource mosaic.tasks. It could not
be found.

deploy-catalogs:
   [delete] Deleting: C:\97004525\MyProject\sample_catalog.zip
      [zip] Building zip: C:\97004525\MyProject\sample_catalog.zip

BUILD FAILED
C:\97004525\MyProject\build.xml:20: Problem: failed to create task or type mosai
c-catalog
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

 

I don't see any mosaictask.jar in lib folder also don ot gave any wrong name. please help me to come out from this stuck.

 

Thanks.

 
Replies
  • Currently Being Moderated
    May 5, 2010 12:40 PM   in reply to sprasoonk

    Generally that's the correct path.  Do you get a login screen? Is there anything in the tomcat log?  If you have the samples installed can you get access to them?  Have you tried using the AIR tool to access your application?

     
    |
    Mark as:
  • Currently Being Moderated
    May 5, 2010 12:56 PM   in reply to sprasoonk

    There is a typo in the catalog xml associated with the <tile:TileReference> element for your tile. If you have a validating XML editor such as XMLSpy you can view the XML and get a highlight on the error.

     

    To get a build failure in this case, set the failonerror=true flag in the build.xml that is calling the mosaic-catalog task.

     

    Don

     
    |
    Mark as:
  • Currently Being Moderated
    May 6, 2010 5:53 AM   in reply to sprasoonk

    That just means that it can't find the application - pretty much the same as a 404 error.

     

    I noticed a typo in your link in the screen shot.  You have too may "p"s in applications (you have it as appplications)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points