<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SURF Part 3 &#8211; Alfresco WCM Content</title>
	<atom:link href="http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/</link>
	<description>Web Content Management and Alfresco</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:07:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: admin</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-18655</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 13 Aug 2010 07:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-18655</guid>
		<description>Thanks for letting me know Jorge.  I migrated hosts some time back and it looks like the permissions were not set correctly.  Should be OK now.  If you are interested in using Spring Surf with OpenCMIS, we will be releasing the WCM Quick Start in a few weeks (http://wiki.alfresco.com/wiki/Roadmap#WCM_Quick_Start).

Regards, Ben.</description>
		<content:encoded><![CDATA[<p>Thanks for letting me know Jorge.  I migrated hosts some time back and it looks like the permissions were not set correctly.  Should be OK now.  If you are interested in using Spring Surf with OpenCMIS, we will be releasing the WCM Quick Start in a few weeks (<a href="http://wiki.alfresco.com/wiki/Roadmap#WCM_Quick_Start" rel="nofollow">http://wiki.alfresco.com/wiki/Roadmap#WCM_Quick_Start</a>).</p>
<p>Regards, Ben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Elizondo</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-18621</link>
		<dc:creator>Jorge Elizondo</dc:creator>
		<pubDate>Thu, 12 Aug 2010 17:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-18621</guid>
		<description>Hi Ben,

When I click on this link, http://www.benh.co.uk/wp-content/uploads/2009/03/surf-sample.zip
I get the &quot;You 404’d it. Gnarly, dude&quot; message

thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi Ben,</p>
<p>When I click on this link, <a href="http://www.benh.co.uk/wp-content/uploads/2009/03/surf-sample.zip" rel="nofollow">http://www.benh.co.uk/wp-content/uploads/2009/03/surf-sample.zip</a><br />
I get the &#8220;You 404’d it. Gnarly, dude&#8221; message</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-2165</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 22 May 2009 18:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-2165</guid>
		<description>Hi Ben,

Thanks for the article.  I am still struggling with this.  A few questions:
1. Are there any configs that need to be done to the Alfresco DM to allow Surf to grab webscripts?
2. Is there a good way to test if Alfresco is releasing webscripts: e.g. going to a link lik ehttp://localhost:8585/alfresco/s...... something?
3. I just pulled a new Surf and it has a config file called, web-framework-config-remote.xml.  It is here, in the war file, that I am setting the remote endpoint.  Do you see any problem here?
4. Is there a special way to refer to remote webscripts from the  tags in the Surf templates?

Any advise is appreciated. 

Thanks, Mark</description>
		<content:encoded><![CDATA[<p>Hi Ben,</p>
<p>Thanks for the article.  I am still struggling with this.  A few questions:<br />
1. Are there any configs that need to be done to the Alfresco DM to allow Surf to grab webscripts?<br />
2. Is there a good way to test if Alfresco is releasing webscripts: e.g. going to a link lik ehttp://localhost:8585/alfresco/s&#8230;&#8230; something?<br />
3. I just pulled a new Surf and it has a config file called, web-framework-config-remote.xml.  It is here, in the war file, that I am setting the remote endpoint.  Do you see any problem here?<br />
4. Is there a special way to refer to remote webscripts from the  tags in the Surf templates?</p>
<p>Any advise is appreciated. </p>
<p>Thanks, Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volek</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-1721</link>
		<dc:creator>volek</dc:creator>
		<pubDate>Wed, 13 May 2009 12:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-1721</guid>
		<description>Thanks, ric!
I had wrong path too. 
/www/avm_webapps/ROOT/content/products/source is valid path to me.</description>
		<content:encoded><![CDATA[<p>Thanks, ric!<br />
I had wrong path too.<br />
/www/avm_webapps/ROOT/content/products/source is valid path to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ric</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-1447</link>
		<dc:creator>ric</dc:creator>
		<pubDate>Thu, 07 May 2009 10:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-1447</guid>
		<description>I figured it out. The path was wrong. The way I did things the path was actually &lt;strong&gt; var path = (”/www/avm_webapps/ROOT/content/products/source”);&lt;/strong&gt;. Notice ROOT instead of SURF.

Here&#039;s how I found out. There are some sample scripts in &lt;strong&gt;http://localhost:8080/alfresco/service/index/package/org/alfresco/sample&lt;/strong&gt; and one of them lists AVM stores &lt;strong&gt;http://localhost:8080/alfresco/service/sample/avm/stores&lt;/strong&gt;

Browse through the demo store (if you&#039;re using the default values for this example) and you&#039;ll see the correct path.</description>
		<content:encoded><![CDATA[<p>I figured it out. The path was wrong. The way I did things the path was actually <strong> var path = (”/www/avm_webapps/ROOT/content/products/source”);</strong>. Notice ROOT instead of SURF.</p>
<p>Here&#8217;s how I found out. There are some sample scripts in <strong><a href="http://localhost:8080/alfresco/service/index/package/org/alfresco/sample" rel="nofollow">http://localhost:8080/alfresco/service/index/package/org/alfresco/sample</a></strong> and one of them lists AVM stores <strong><a href="http://localhost:8080/alfresco/service/sample/avm/stores" rel="nofollow">http://localhost:8080/alfresco/service/sample/avm/stores</a></strong></p>
<p>Browse through the demo store (if you&#8217;re using the default values for this example) and you&#8217;ll see the correct path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ric</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-1414</link>
		<dc:creator>ric</dc:creator>
		<pubDate>Wed, 06 May 2009 16:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-1414</guid>
		<description>I&#039;m getting the same problem as buckweat.

I&#039;ve checked the source code for products.get.js and the path is:

var path = (&quot;/www/avm_webapps/surf/content/products/source&quot;);

which doesn&#039;t exist (at least in our case). I don&#039;t have the CIFS well configured so I did a bulk import for the admin staging area (that could be the problem). The other stuff works so I assume that the problem could be that path.</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the same problem as buckweat.</p>
<p>I&#8217;ve checked the source code for products.get.js and the path is:</p>
<p>var path = (&#8220;/www/avm_webapps/surf/content/products/source&#8221;);</p>
<p>which doesn&#8217;t exist (at least in our case). I don&#8217;t have the CIFS well configured so I did a bulk import for the admin staging area (that could be the problem). The other stuff works so I assume that the problem could be that path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buckwheat219</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-562</link>
		<dc:creator>buckwheat219</dc:creator>
		<pubDate>Wed, 15 Apr 2009 04:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-562</guid>
		<description>Hello Loseba ,please say much more about how you solve the bug so 
Thanks alot
&quot;
Alfresco Web Script Status 500 - Internal Error

The Web Script /surf/service/products/left has responded with a status of 500 - Internal Error.

500 Description: An error inside the HTTP server which prevented it from fulfilling the request.

Message: Failed to load script ‘org.alfresco.web.scripts.LocalFileSystemStore$LocalFileSystemStoreScriptContent@e7b1c3′: TypeError: Cannot read property “length” from undefined (/surf-sample/sample/deploy/alfresco/site-webscripts/products.left.get.js#23)

Exception: org.mozilla.javascript.EcmaError - TypeError: Cannot read property “length” from undefined (/surf-sample/sample/deploy/alfresco/site-webscripts/products.left.get.js#23)

&quot;</description>
		<content:encoded><![CDATA[<p>Hello Loseba ,please say much more about how you solve the bug so<br />
Thanks alot<br />
&#8221;<br />
Alfresco Web Script Status 500 &#8211; Internal Error</p>
<p>The Web Script /surf/service/products/left has responded with a status of 500 &#8211; Internal Error.</p>
<p>500 Description: An error inside the HTTP server which prevented it from fulfilling the request.</p>
<p>Message: Failed to load script ‘org.alfresco.web.scripts.LocalFileSystemStore$LocalFileSystemStoreScriptContent@e7b1c3′: TypeError: Cannot read property “length” from undefined (/surf-sample/sample/deploy/alfresco/site-webscripts/products.left.get.js#23)</p>
<p>Exception: org.mozilla.javascript.EcmaError &#8211; TypeError: Cannot read property “length” from undefined (/surf-sample/sample/deploy/alfresco/site-webscripts/products.left.get.js#23)</p>
<p>&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-301</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 08 Apr 2009 13:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-301</guid>
		<description>Hi Peter,

If i understand you correctly, you are trying to store the SURF files within the AVM, and then deploy them to your surf application?  If this is the case, this is exactly what the example above demonstrates.  It seperates the two different types of content i.e. the Surf files (web scripts, templates etc) and also the typical content produced via web forms and anything else uploaded via CIFS (e.g. xml, html etc).  All of these files are then deployed to the target surf app, placing the relavent files in their correct locations e..g overwriting the surf framework files and adding to the xml, html etc into the required folders.

There are two example config files located in C:\surf-sample\sample\shared\classes\alfresco\web-extension.  These are:

1)  custom-web-framework-application-context.xml - This sets the local store i.e. where the static files are, and also the web scripts local store.

2) web-framework-config-custom.xml - this sets the alfresco repo end point however this is only required for the &quot;products&quot; example that connects back to the repo and loads content dynamically.

Let me know if i have mis-understood!

Regards, Ben.</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>If i understand you correctly, you are trying to store the SURF files within the AVM, and then deploy them to your surf application?  If this is the case, this is exactly what the example above demonstrates.  It seperates the two different types of content i.e. the Surf files (web scripts, templates etc) and also the typical content produced via web forms and anything else uploaded via CIFS (e.g. xml, html etc).  All of these files are then deployed to the target surf app, placing the relavent files in their correct locations e..g overwriting the surf framework files and adding to the xml, html etc into the required folders.</p>
<p>There are two example config files located in C:\surf-sample\sample\shared\classes\alfresco\web-extension.  These are:</p>
<p>1)  custom-web-framework-application-context.xml &#8211; This sets the local store i.e. where the static files are, and also the web scripts local store.</p>
<p>2) web-framework-config-custom.xml &#8211; this sets the alfresco repo end point however this is only required for the &#8220;products&#8221; example that connects back to the repo and loads content dynamically.</p>
<p>Let me know if i have mis-understood!</p>
<p>Regards, Ben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-99</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 25 Mar 2009 13:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-99</guid>
		<description>Hi Ben, hope you can help explain this a bit more, specifically how to base an entire surf website out of a WCM project, instead of only pulling out content or the odd web script? Surf is great on its own but being able to use CIFS to dump stuff in using AVM instead of putting everything in the classpath would be brilliant. Both the classpath and possible localstore locations are in this case on a remote development server to which I only have command-line access, and SCPing everything kind of sucks! 
I understand that what I want to do should require the modification of the beans for model objects as well as the search paths to use the remotestore (wherever you have used localstore), but I am having a difficult time making this work, and I think I&#039;m missing something fairly obvious. I have AVM and Surf working perfectly in isolation, but can&#039;t get them to talk.

So, I&#039;ve got as far as defining an (abstract) remote store with the end point pointing to http://server/alfresco/s, api is /avmstore as per the Surf deployment configurations wiki page, and also have set the storeId to &quot;test03--admin&quot; (which is a web project in my Alfresco install).

Looking over my own config I seem to have covered everything - remote store set up with right endpoint, search paths and model objects have the remotestore in the relevant place (it&#039;s the first item in the searchpaths), web project exists with the surf structire in /WEB-INF/classes/alfresco, in the admin&#039;s sandbox. Can&#039;t get it to work though :( Either it starts up fine but wont work, or it sits forever at deployment when starting Tomcat - presumably while something times out again and again.
I&#039;m using the URL structure from the &quot;Surf as a Preview Server&quot; section of the wiki, where you specify storeId, user and page on the URL. Even with just http://server/alfwf/page?p=test it won&#039;t work either, though.

The wiki is woeful at explaining around the subject, so being a non-expert I&#039;m rather at a dead end., and hope you can shed some light on the matter.

Best,
Peter.</description>
		<content:encoded><![CDATA[<p>Hi Ben, hope you can help explain this a bit more, specifically how to base an entire surf website out of a WCM project, instead of only pulling out content or the odd web script? Surf is great on its own but being able to use CIFS to dump stuff in using AVM instead of putting everything in the classpath would be brilliant. Both the classpath and possible localstore locations are in this case on a remote development server to which I only have command-line access, and SCPing everything kind of sucks!<br />
I understand that what I want to do should require the modification of the beans for model objects as well as the search paths to use the remotestore (wherever you have used localstore), but I am having a difficult time making this work, and I think I&#8217;m missing something fairly obvious. I have AVM and Surf working perfectly in isolation, but can&#8217;t get them to talk.</p>
<p>So, I&#8217;ve got as far as defining an (abstract) remote store with the end point pointing to <a href="http://server/alfresco/s" rel="nofollow">http://server/alfresco/s</a>, api is /avmstore as per the Surf deployment configurations wiki page, and also have set the storeId to &#8220;test03&#8211;admin&#8221; (which is a web project in my Alfresco install).</p>
<p>Looking over my own config I seem to have covered everything &#8211; remote store set up with right endpoint, search paths and model objects have the remotestore in the relevant place (it&#8217;s the first item in the searchpaths), web project exists with the surf structire in /WEB-INF/classes/alfresco, in the admin&#8217;s sandbox. Can&#8217;t get it to work though <img src='http://www.benh.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Either it starts up fine but wont work, or it sits forever at deployment when starting Tomcat &#8211; presumably while something times out again and again.<br />
I&#8217;m using the URL structure from the &#8220;Surf as a Preview Server&#8221; section of the wiki, where you specify storeId, user and page on the URL. Even with just <a href="http://server/alfwf/page?p=test" rel="nofollow">http://server/alfwf/page?p=test</a> it won&#8217;t work either, though.</p>
<p>The wiki is woeful at explaining around the subject, so being a non-expert I&#8217;m rather at a dead end., and hope you can shed some light on the matter.</p>
<p>Best,<br />
Peter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.benh.co.uk/alfresco/surf-part-3-alfresco-wcm-content/comment-page-1/#comment-90</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 23 Mar 2009 10:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=292#comment-90</guid>
		<description>Hi Marie,
When I have seen this error in the past it has been due to the meta data being broken i.e. the rendition is not associated with the xml as it should be.

Try Will&#039;s repair script to fix the association - http://wabson.wordpress.com/2008/08/04/web-script-repair-web-project/
Regards, Ben.</description>
		<content:encoded><![CDATA[<p>Hi Marie,<br />
When I have seen this error in the past it has been due to the meta data being broken i.e. the rendition is not associated with the xml as it should be.</p>
<p>Try Will&#8217;s repair script to fix the association &#8211; <a href="http://wabson.wordpress.com/2008/08/04/web-script-repair-web-project/" rel="nofollow">http://wabson.wordpress.com/2008/08/04/web-script-repair-web-project/</a><br />
Regards, Ben.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
