cancel
Showing results for 
Search instead for 
Did you mean: 

Error 404 on plugin

crono40
Champ on-the-rise
Champ on-the-rise
Hi all,

I'm using a plugin named share site logo customisation which can be found here : <a href="http://addons.alfresco.com/addons/share-site-logo-customisation">http://addons.alfresco.com/addons/share-site-logo-customisation</a>.

The plugin is correctly installed on my Alfresco, so i can click on the "change site logo" button. However, when i'm trying to upload a new logo, it's not working.

I have a 404 mistake and the plugin can't find the webscript.

"NetworkError: 404 Introuvable - http://127.0.0.1:8080/share/proxy/alfresco//api/site-logo/site/toto?Alfresco-CSRFToken=cPV8U2KR%2BUv..."



Alfresco    Web Script Status 404 - Not Found

The Web Script /alfresco/s/api/site-logo/site/toto has responded with a status of 404 - Not Found.

404 Description:   Requested resource is not available.

Message:   04120008 Script url /api/site-logo/site/toto does not map to a Web Script.
   
Exception:   org.springframework.extensions.webscripts.WebScriptException - 04120008 Script url /api/site-logo/site/toto 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:132)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
   org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   java.lang.Thread.run(Thread.java:724)
   
Server:   Community v4.2.0 (r56674-b4848) schema 6 033
Time:   12 mai 2014 10:47:49
   


Could you help me please ? Smiley Happy
5 REPLIES 5

aaditvmajmudar
Confirmed Champ
Confirmed Champ
Error logs is looking for Webscript with URL "api/site-logo/site" but not able to find in your code.

Can you please check that the webscript with the URL "api/site-logo/site" is available or not by navigating to this link.

<host>:<port>/alfresco/service/index and then click on "Browse by Web Script URI".

Hello,

Thanks for  your answer. Effectively, I don't have any scripts with this URI Name.

/api/server
/api/site/folder/{site}/{container}
/api/site/folder/{site}/{container}/{path}
/api/sites
/api/sites/query
/api/sites/shareUrl
/api/sites/{shortname}
/api/sites/{shortname}/export
/api/sites/{shortname}/invitations
/api/sites/{shortname}/invitations/{invitationId}
/api/sites/{shortname}/invitations/{inviteId}
/api/sites/{shortname}/memberships
/api/sites/{shortname}/memberships/{authorityname}
/api/sites/{shortname}/potentialmembers
/api/sites/{shortname}/roles
/api/solr/aclchangesets


However, when i go to this URL : http://localhost:8080/share/service/index and when I click on "Browse by Web Script URI", I have two scripts :


/components/site/site-logo
/components/site-finder
/components/site-groups
/components/site-logo


When i click on the link, the description seems to be the good one :


Change Site Logo
GET /share/page/components/site/site-logo
Description:   Change Site Logo Tool
Authentication:   none
Transaction:   none
Format Style:   any
Default Format:   html
Id:   org/alfresco/components/site/site-logo.get
Description:   classpath:alfresco/web-extension/site-webscripts/org/alfresco/components/site/site-logo.get.desc.xml


Any ideas ?? Smiley Happy

crono40
Champ on-the-rise
Champ on-the-rise
Up please !

Could someone help ? Thanks a lot.

aaditvmajmudar
Confirmed Champ
Confirmed Champ
The webscript with URL "/api/site-logo/site/" is Data webscript so it should be available under /alfresco/service/index.

I have checked out the code and I show that "customise-site-logo-alfresco" folder is there and this webscript is available in this folder.

So while installation of this plugin, this webscript should be available in you code.

Can you please tell me how you have installed this module?

I juste forget to put the first jar (customise-site-logo-alfresco-2.0-SNAPSHOT.jar) in the lib folder.

Thanks a lot for your help Smiley Happy