Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Alfresco: Practical Solutions for Enterprise Content Management
This is the forum to discuss the Wrox book Professional Alfresco: Practical Solutions for Enterprise Content Management by David Caruana, John Newton, Mike Farman, Michael Uzquiano, Kevin Roast; ISBN: 9780470571040
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Alfresco: Practical Solutions for Enterprise Content Management section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 18th, 2011, 12:28 PM
Registered User
 
Join Date: Apr 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in Chapter 9 KB example?

In attempting to create the KB article (page 221), I get the following error:

01180018 Wrapped Exception (with status template): 01180013 Failed to execute script '/org/example/kb-create.get.js (in repository store workspace://SpacesStore/Company Home/Data Dictionary/Web Scripts Extensions)': Namespace prefix kb is not mapped to a namespace URI

I placed these files in Alfresco from the downloaded data.

Any ideas?

Bruce
  #2 (permalink)  
Old March 17th, 2011, 12:22 PM
Registered User
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi fordville,

I have the excat same problem and don't know how to solve it. I hope someone is reading this and has an idea.

Cheers,
altin
  #3 (permalink)  
Old June 22nd, 2011, 11:40 AM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any updates on this? I'm having the same problem.

best,

- Pat
  #4 (permalink)  
Old June 22nd, 2011, 01:55 PM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I think I figured it out. I'll post it here for anyone else who stumbles upon this thread and has the same problem.

In Chapter 5 of the book, on page 92, they create a custom model called "kb". You need this model in order for the kb-create.get.js file to run correctly. Here's what you need to do:

1) Download and unzip the zip file of all of the examples for this book from wrox.com (link:http://www.wrox.com/WileyCDA/WroxTit...-DOWNLOAD.html).
2) In the Chapter 5 folder, find the file called "kbModel.xml". Open it up and copy its contents.
3) In Alfresco Explorer, under "/Company Home/Data Dictionary/Models" create a new XML file called "kbModel.xml". When you're creating the content, make sure Type is "Content" and Content Type is "XML" (for the two drop downs).
4) Follow the instructions on page 78 of the book to activate the model.

Once this is done, you should be able to run the Web Script and have it work.

Hope this helps.

best,

- Pat


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8 Error MrNoded BOOK: Professional Android 2 Application Development 0 December 28th, 2010 09:42 PM
Transpose Table - Editing the MS KB code gwolfe Access 2 September 14th, 2007 02:48 AM
error with chapter 7 jdz66 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 August 21st, 2006 05:19 PM
Parse error in error handler (Chapter 8) Funky Monk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 August 6th, 2004 08:59 AM
Checking page size in kb G Classic ASP Basics 1 September 24th, 2003 02:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.