Expand my Community achievements bar.

Unable to deploy custom Tile because of error "tile content not found in archive"

Avatar

Level 2

Hi All,

I have developed a custom tile in Flash Builder. But when deploying this tile in a catalog via ant script am getting following error. I am running Mosaic on my own Tomcat server version 6.0.29.  I have followed steps given in http://help.adobe.com/en_US/LiveCycleMosaic/9.0/getStart/WSe851854fd1e0856a-2169537a128406c16bb-8000...

----------------------------start of error while running ant script--------------------------

<crx:Response timestamp="2010-09-19T20:20:06.452-05:00" method="POST" result="failure" request="/mosaic/catalogs/ContactManagementCatalog" xmlns:crx="http://ns.adobe.com/Mosaic/CRXTypes/1.0/">

    <crx:Error code="CAT_E40000">

        <crx:Message>Error importing catalog {} : {}.</crx:Message>

        <crx:Key position="0">ContactManagementCatalog</crx:Key>

        <crx:Key position="1">tile content not found in archive for tile ContactListTile</crx:Key>

        <crx:StackTrace>com.adobe.livecycle.mosaic.common.MosaicServerException: Error importing catalog [ContactManagementCatalog, tile content not found in archive for tile ContactListTile] : {}.

at com.adobe.livecycle.mosaic.service.rest.catalogservice.CatalogServiceImportResourceRestHandler$CatalogServiceAppModelImportFilter.terminate(CatalogServiceImportResourceRestHandler.java:180)

at com.adobe.livecycle.mosaic.appmodel.impl.AppModelFacade.importArchive(AppModelFacade.java:132)

at com.adobe.livecycle.mosaic.service.rest.catalogservice.CatalogServiceImportResourceRestHandler.handleRequest(CatalogServiceImportResourceRestHandler.java:84)

at com.adobe.livecycle.rest.RestRequestRouter.routeRequest(RestRequestRouter.java:19)

at com.adobe.livecycle.rest.RestServlet.doAction(RestServlet.java:46)

at com.adobe.livecycle.rest.RestServlet.doPost(RestServlet.java:37)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

... 40 more

</crx:StackTrace>

    </crx:Error>

</crx:Response>

----------------------------end of error while running ant script--------------------------

----------------------------start of Zip file content--------------------------

ContactManagementCatalog.zip

  • tiles (Folder)
    • descriptor.xml
    • ContactListTile(Folder)
      • ContactListTile.swf

----------------------------End of Zip file content--------------------------

-----------------------------start descriptor.xml-------------------------------

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<catalog:Catalog name="ContactManagementCatalog" label="Contact Management 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>Contact Management Catalog</crx:Description>

    </crx:Metadata>

    <catalog:Categories>

        <catalog:Category name="Contact_Management_Category"/>

    </catalog:Categories>

   <tile:TileClassList>

        <tile:TileClass label="Contact List"

        name="ContactListTile"

        initialWidth="100%"

        catalog="ContactManagementCatalog"

        initialHeight="100%" height="100%" width="100%">

        <crx:Metadata>

        <crx:Description>Contact List</crx:Description>

        <crx:Category>

        Contact_Management_Category

        </crx:Category>

        </crx:Metadata>

        <tile:Content loadAs="default"

        contentType="application/x-shockwave-flash"

        uri="/mosaic/catalogs/ContactManagementCatalog/tiles/ContactListTile/content" />

       

        </tile:TileClass>

   </tile:TileClassList>

</catalog:Catalog>

-----------------------------End descriptor.xml-------------------------------

6 Replies

Avatar

Employee

Double-check the catalog zip file. The descriptor.xml should be a peer to the TIles directory, and the ContactListTile directory should be spelled exactly as it is inside of the descriptor.xml. The failure to import the catalog is probably due to a typo somewhere.

Don

Avatar

Level 2

Thanks for the Reply.

I was getting this error because my eclipse development environment was pointing to standalone tomcat shipped with LiveCycle Mosaic and i was using eclipse to start the server. I was able to deploy same catalog zip on fresh tomcat (v6.0.29) instance downloaded from apache.

But now i am having new issue and not able to login using Mosaic AIR client as it gives me "Error 500". On Tomcat server i can see following stack trace.

----------------Start of the error-----------------------

Sep 21, 2010 12:10:34 AM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet jsp threw exception

java.lang.IllegalAccessError: tried to access method com.adobe.livecycle.mosaic.common.impl.BeanLookupMixin.<init>()V from class org.apache.jsp.login_jsp

at org.apache.jsp.login_jsp._jspService(login_jsp.java:58)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)

at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)

at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:619)

----------------Start of the error-----------------------

Also let me know if you want me to start new thread for this error.

Avatar

Level 8

Just to tow the official company line - Adobe supports Mosaic in the Stand Alone server for development.  For full production Adobe requires the LiveCycle server running on one of the supported J2EE platforms.  I don't believe that Adobe supports installing Mosaic on a custom Tomcat enviroment (other that the one that is shipped).

Personally, I use Eclipse as my dev/testing environment, but I always start the Stand Alone server outside of Eclipse, using the startup script file.

Having said that - it looks like a security issue.  Mosaic uses Spring security for authorization and authentication of users.  The mosaic-context.XML file contains the Spring configuration information.  This file has some default classes and users (user, designer, etc.) but it can be configured to use 3rd party systems for authorization and authentication.

It looks like Spring security can't find one of the classes that is injected into the Mosaic code.  com.adobe.livecycle.mosaic.common.impl.BeanLookupMixin seems to be missing or unavailable.

Was there anything odd in the installation?  Can you login via the browser?

Avatar

Level 2

Thanks for the reply.

I was using Tomcat along with Eclipse so that I can change Java code for LCDS Assemblers and have quickly test changes. Eclipse has feature to auto deploy changes to servers. I am pretty use to this kind of setup.

When running LCDS.war on Mosaic standalone I was facing some unknown issues for which I was not getting any trace logs. (I did not dig into details of this.) So was trying to deploy Mosaic on Tomcat where I have my LCDS,MySQL configured. I did follow steps given under "Installing Mosaic 9.5 on a Tomcat server you provide" in link http://help.adobe.com/en_US/LiveCycleMosaic/9.0/getStart/WSe851854fd1e0856a-2169537a128406c16bb-8000...

Regarding installation I downloaded Mosaic and was using mosaic.war from \deploy\war\log4j-logging\debug. I also tried release version of war file but it did not helped.

From Browser after redirection to http://locahost:8080/mosaic/# it gives me a blank screen.

Thanks,

Divyakumar Jain

Deloitte Consulting LLP |Mobile: +1 713 876 9178 |Fax: +1 469 417 5031|Email: divyjain@deloitte.com | www.deloitte.com

Avatar

Level 8

Interesting, looks like you have the right version of the Mosaic war.  I wonder if there is some conflict with the LCDS setup, or one of the services that are configured.

BTW -

The link for the browser has to have the application name in the URL: http://server:port/mosaic/#/applications/appName

For example:  http://localhost:8080/mosaic/#/applications/myApp

Avatar

Level 2

I was able to run my application by deploying LCDS application on standalone tomcat which comes along with Mosaic. This standalone server was started outside eclipse.