bmdhaker / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

Viewer Extension doesn't load #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I download the code from the svn
2. Compiled using ant -f project.xml
3. Copied the jar generated under the alfresco/tomcat/shared/lib/ directory
4. Copied the web-preview.get.config.xml example from the code to the 
shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/pr
eview
5. Restart tomcat
6. When I try to preview a pdf, the preview doens't show, only a "preparing the 
preview" text is showed.
7. When I debug the js using the chrome web developer tool, it shows me that 
there is an error: Uncaught TypeError: undefined is not a function.
The error is on the line
plugin = new Alfresco.WebPreview.prototype.Plugins[pluginDescriptor.name](this, 
pluginDescriptor.attributes);
of the web-review-min.js (I uncompress the file to trace the error)
And when I review the Alfresco.WebPreview.prototype.Plugins loaded it doesn't 
show any of the plugins of the addon

What version of the add-on are you using? Please provide version of the
downloaded package, or Subversion revision number.
Subversion revision 1051. Compiled with ant -f project.xml
Alfresco 4.0.d on a Windows 2008 Server

What version of Alfresco are you using? On what application server?

What web browser are you using? Please supply browser name and version.
Chrome 20.0.11

Please provide any additional information below.

Original issue reported on code.google.com by gabriel....@gmail.com on 23 Apr 2012 at 3:34

GoogleCodeExporter commented 8 years ago
Issue solved. My mistake, I forget to deploy the module.

Original comment by gabriel....@gmail.com on 28 Apr 2012 at 12:47

GoogleCodeExporter commented 8 years ago
Hi, i do all top steps. but my module not deployed. please help me

Original comment by cpuma...@gmail.com on 20 Jun 2012 at 4:32

GoogleCodeExporter commented 8 years ago
Thanks for the feedback, Gabriel. The sample config will be reviewed for the 
latest version to ensure it is correct.

Original comment by will.abson on 27 Jun 2012 at 2:14