cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I get the file adw.amp?

lucbard
Champ in-the-making
Champ in-the-making
Hi all,

I can't find the amp file for Alfresco Dynamic Website.

I was reading this wiki article but with no success http://wiki.alfresco.com/wiki/Alfresco_Dynamic_Website_Installation

Thank you,
Luc
6 REPLIES 6

robain
Champ in-the-making
Champ in-the-making
Found a project dynamic-website in SVN. isnt that the same ? I tried to build it and deploy but doesnt function once deployed.

http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/dynamic-website/

robain
Champ in-the-making
Champ in-the-making
I am getting error trying deploy this project. The log below seems to be the problem. anybody knows how to get it working or a little background on the store persister. Thanks.

[web.framework.WebFrameworkService] Initializing model type: component-type
[web.framework.WebFrameworkService] Unable to add default store persister for object type id: component-type
[web.framework.WebFrameworkService] Initializing model type: page-type
[web.framework.WebFrameworkService] Unable to add default store persister for object type id: page-type
………………

uzi
Champ in-the-making
Champ in-the-making
Hello,

Those warnings should be benign - they're simply indicating that the default "writable" store for each model object type doesn't exist.  For Dynamic Website, you need those to exist.  You should take a look at the web-framework-model-context.xml file. 

Each model type (i.e. Component, Page, Template Instance) has its own series of Stores into which objects can be persisted and from which they can be loaded.  The ones provided are:

a) ClassPath Store - the read-only directory structure under /classes/alfresco/site-data
b) LocalFileSystem Store - a read/write directory structure located at /web-framework (by default)
c) Remote Store - a Repository Store located in Alfresco

The idea is that you can have read-only stock objects for your web app as well as objects, objects which are received from a deployment event and objects which are loaded out of a sandbox within the AVM.  The result is a really nice, dynamic object layer which supports Web Project sandboxes as well as live production data.

You might contrast this approach with the one used by DB-specific WCM tiers.  Here, the data layer is composed dynamically based on your configuration file and deployed objects.  You can tweak the config file to your preference.  You could even load all of your objects purely from the Alfresco repository (using a layered Store approach, some from AVM, some from DM).  It can get pretty interesting.

Note:  For the 3.0 release, we're probably going to keep things pretty simple but we will support storing all of your custom model objects within a Repository Store.  Thus, you get versioning, workflow, auditing and more.

To get things working, you should probably create a /web-framework directory root-relative to the disk or mount where your application server lives.  That, or change the configuration file.  All told, you would have:

/web-framework/site-data/chrome
/web-framework/site-data/components
/web-framework/site-data/component-types
/web-framework/site-data/configurations
/web-framework/site-data/content-associations
/web-framework/site-data/page-associations
/web-framework/site-data/pages
/web-framework/site-data/page-types
/web-framework/site-data/template-instances
/web-framework/site-data/template-types
/web-framework/site-data/themes

As Luis said, this is still very much in motion but it's really great that you've taken such initiative on this.  That's really quick.  That's one of the best things about open-source - that everyone can participate, try things out right away and give us feedback. 

To that point, if you find have recommendations for improvements or ideas about how things could be tweaked to better suit your use case, I'd love to hear it!

Michael

robain
Champ in-the-making
Champ in-the-making
Thanks for the quick reply on that.

Well i started off with a small error on dynamic.js.jsp page, the code below. figured the method context.getStoreId() doesnt exist anymore - seems like it was recently removed looking at the history.
function getStoreId() {
<%
   String storeId = context.getStoreId();
   if(storeId == null) {
      %>return null;<%
   }
   else {
      %>return "<%=storeId%>";<%
   }
%>

Regarding the persisters, the problem seems like they aren't added to the map since the comparison doesnt hold atleast in my deployment. so everything breaks.
if (store.equals(defaultStore))
{
                    typeIdToDefaultPersisterMap.put(typeIds, persister);
                    addedDefaultStore = true;
}

understand that this is a moving target and things are going to be in a flux. but i would say that having a functional code available on the community accessible repository would be of value.

uzi
Champ in-the-making
Champ in-the-making
Hello,

You are absolutely right.  The Dynamic Website package was building but giving a few errors with JSP files due to refactors.  I was doing some of these refactors to support some new JavaScript library code that we're anticipating.  Thus, the glitch is entirely my doing. 

That said, the update is committed into the Enterprise code branch so feel free to sync and give it a shot.  We're expecting the JS imports on Monday so another cool time to check would be mid-week.  We should have some interesting things in there.  Once again, not guaranteed to work perfectly, but interesting to look at in order to see how things are progressing!

Thanks,

Michael

cham
Champ in-the-making
Champ in-the-making
Hi Folks, the ADW is quite cool, I want to build it from SVN, and idea you could share? Thanks.