cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on Dashlet Report

johnpelquingua
Champ in-the-making
Champ in-the-making
Hi All,

When I installed this add-on http://code.google.com/p/report-dashlet/ It gives me this error:
What does this mean? Did I installed it incorrectly?


<java>
Web Script Status 404 - Not Found

The Web Script /alfresco/s/info/repository/report/stack has responded with a status of 404 - Not Found.

404 Description:    Requested resource is not available.

Message:   01200035 Script url /info/repository/report/stack does not map to a Web Script.

Exception:   org.springframework.extensions.webscripts.WebScriptException - 01200035 Script url /info/repository/report/stack does not map to a Web Script.

org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:173)
org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
java.lang.Thread.run(Thread.java:662)

Server:   Community v4.0.0 (7) schema 5,025
Time:   Feb 20, 2013 2:26:37 PM




11 REPLIES 11

muralidharand
Star Contributor
Star Contributor
You've configured only share application and you've not installed the "report-dashlet-alfresco-extension.amp" in alfresco repo application.
If you've any problem while installing this amp,
Just extract the "report-dashlet-alfresco-extension.amp"  and place files in the following folder.

config/alfresco/extension folder to webapps/alfresco/WEB-INF/classes/alfresco/extension
config/alfresco/module folder to webapps/alfresco/WEB-INF/classes/alfresco/module
Place the report-dashlet-alfresco-extension.jar into web-inf/lib folder.

Please refer their Readme file under report-dashlet-1.1\alfresco-module\README.txt

"Description
———–
This module provides webscripts used by Report Dashlet. This provides
information (chart and table) from repository contents stacked by some property value.


Author
——
Pedro Salido López (psalido@dashlet.info - http://www.dashlet.info)


Pre-requisites
————–
Alfresco 3.4.x  (this package tested on Alfresco Enterprise 3.4.6).
Alfresco 4.0  (this package tested on Alfresco Enterprise 4.0.0).


Installation
————
1. ALWAYS BACKUP YOUR ORIGINAL ALFRESCO.WAR FILE BEFORE APPLYING *ANY* AMPS
   TO YOUR INSTALLATION!!
   Although the apply_amps script will backup your alfresco.war, it's better
   to manually back it up prior to installing *any* AMP files, so that you
   can roll back to a pristine binary if needed.
2. Optionally you can build amp file from source. Run ant from alfresco-module
   proyect folder. Generated AMP will be located at build/dist
3. Copy the provided AMP file into the ${ALFRESCO_HOME}/amps directory
4. Run the ${ALFRESCO_HOME}/apply_amps[.sh|.bat] script to install the AMP
   into your Alfresco instance
"

Hope this helps you.



Hi Murali,

What else should I configure besides the share application? Should I also the configure the explorer as well?

Thanks~
JP

Hi JP,
You need to configure, webapps/alfresco (ie alfresco repo).  Have you installed the amp in alfresco repository  side?
You no need to configure anything in Alfresco explorer application, because their customizations are different.

Hi Murali,

I haven't configured the alfresco repo yet. If I have to configured it what is the file name of that? I've installed the amp file in the webapps/alfresco/WEB-INF/classes/repository/alfresco is this the right path?

Thanks~
JP

johnpelquingua
Champ in-the-making
Champ in-the-making
Hi Murali first of all I installed this add-on in an Alfresco Community not the Enterprise is that ok? Then my Alfresco is intalled locally so that's why I can't find the directory of the following folders you just pointed out. I did follow the Readme.txt instructions and right after I restart Alfresco the localhost:8080/alfresco/share is giving me an error status.

Hope you can help me out Smiley Happy

Thanks~
JP

Hi JP,
The add-ons will work for both Alfresco Community editions and Enterprise edition, unless it is specified.
The default installation will not have extension folder, so you can create a one. Usually the module folder will be present, if not create a new one.

Hope this helps you.

Thanks so much for your immediate reply, Murali.
I'm going to try it now and I'll give you a reply in a while.

I'm reading your blog right now and I find it very interesting. You should post like a beginner type tutorial for a newbie like me in
Alfresco. That would be awesome!

Thanks~
JP

johnpelquingua
Champ in-the-making
Champ in-the-making
Hi Murali,

It's me again I get this error message when I'm trying to install the AMP file:

<code>
C:\>java -jar "C:\Alfresco\tomcat\webapps\share\WEB-INF\lib\report-dashlet.jar" install "C:\Alfresco\amps\report-dashlet-alfresco-extension.amp" "C:\Alfresco\tomcat\webapps\alfresco.war" -preview
Failed to load Main-Class manifest attribute from
C:\Alfresco\tomcat\webapps\share\WEB-INF\lib\report-dashlet.jar

Hi JP,
Your installation command is wrong. You need to mention alfresco-mmt.jar (Module Management Tool jar) file for the installation not the report dashlet,jar file.


Preview:
C:\>java -jar "C:\Alfresco\bin\alfresco-mmt.jar" install "C:\Alfresco\amps\report-dashlet-alfresco-extension.amp" "C:\Alfresco\tomcat\webapps\alfresco.war" -preview

For Installation:
C:\>java -jar "C:\Alfresco\bin\alfresco-mmt.jar" install "C:\Alfresco\amps\report-dashlet-alfresco-extension.amp" "C:\Alfresco\tomcat\webapps\alfresco.war" -verbose


If you placed the amp in the amps folder then just execute the apply_amps.bat file to install the amp and no need to use any command line operation.


Hope this helps you !