Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 21/10/2013 23:42:12

ptivier
Guest
From: Reunion
Registered: 12/09/2013
Posts: 47

Administration Ametys Application cms page blanche

Depuis hier je n'arrive plus à accéder à la partie admin de l'application cms et des icônes sont manquantes dans l'application cms. Auriez-vous une idée d'où vient mon erreur alors qu'auparavant tout fonctionnait correctement?

Cordialement, Olivier.

L'erreur que j'obtiens dans le log du cms est :

2013-10-21 23:20:11,801 ERROR [org.ametys.plugins.gadgets.generators.GadgetsLibraryManager] (cms.sername.re-startStop-1;) Unable to get gadget specification for url '' and language 'fr'
org.apache.shindig.gadgets.spec.SpecParserException: org.apache.shindig.common.xml.XmlException: Premature end of file. At: (-1,-1)
        at org.apache.shindig.gadgets.AbstractSpecFactory.fetchFromNetwork(AbstractSpecFactory.java:146)
        at org.ametys.plugins.gadgets.AmetysGadgetSpecFactory.fetchFromNetwork(AmetysGadgetSpecFactory.java:92)
        at org.ametys.plugins.gadgets.AmetysGadgetSpecFactory.fetchFromNetwork(AmetysGadgetSpecFactory.java:40)
        at org.apache.shindig.gadgets.AbstractSpecFactory.getSpec(AbstractSpecFactory.java:90)
        at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.getGadgetSpec(DefaultGadgetSpecFactory.java:81)
        at org.ametys.plugins.gadgets.generators.GadgetsLibraryManager.configureGadgets(GadgetsLibraryManager.java:325)
        at org.ametys.plugins.gadgets.generators.GadgetsLibraryManager.configureGroups(GadgetsLibraryManager.java:240)
        at org.ametys.plugins.gadgets.generators.GadgetsLibraryManager.readGadgets(GadgetsLibraryManager.java:211)
        at org.ametys.plugins.gadgets.generators.GadgetsLibraryManager.loadLibrary(GadgetsLibraryManager.java:129)
        at org.ametys.plugins.gadgets.Init.init(Init.java:108)
        at org.ametys.runtime.servlet.RuntimeServlet._initPlugins(RuntimeServlet.java:210)
        at org.ametys.runtime.servlet.RuntimeServlet.init(RuntimeServlet.java:173)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.shindig.common.xml.XmlException: Premature end of file. At: (-1,-1)
        at org.apache.shindig.common.xml.XmlUtil.parse(XmlUtil.java:305)
        at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.parse(DefaultGadgetSpecFactory.java:93)
        at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.parse(DefaultGadgetSpecFactory.java:40)
        at org.apache.shindig.gadgets.AbstractSpecFactory.fetchFromNetwork(AbstractSpecFactory.java:144)
        ... 28 more
Caused by: org.xml.sax.SAXParseException; Premature end of file.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at org.apache.shindig.common.xml.XmlUtil.parse(XmlUtil.java:303)
        ... 31 more

Offline

#2 22/10/2013 08:56:29

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,111

Re: Administration Ametys Application cms page blanche

L'erreur que vous indiquez concerne la librairie des Gadgets. Il serait étonnant qu'elle bloque l'application.
Eteignez vos tomcats, effacez-en le cache (en effaçant le contenu des répertoires tomcat/work/** et tomcat/temp/** mais pas les répertoires eux-même).
Effacez le cache de votre navigateur (CTRL+SHIFT+SUPPR sur la plupart de navigateurs)
Effacez les logs de tomcat (logs/catalina.out entre autres) et ceux du cms (cms/WEB-INF/logs)
Et redémarrez tout ça.

Est-ce que vos logs contiennent seulement l'erreur ci-dessus ?


Raphael Franchet
Expert Ametys

Offline

#3 22/10/2013 11:12:23

ptivier
Guest
From: Reunion
Registered: 12/09/2013
Posts: 47

Re: Administration Ametys Application cms page blanche

Bonjour, mes logs contenaient que l'erreur ci-dessus. Je fais toutes les manip que vous m'avez conseillées et je donne le résultat ensuite.

Offline

#4 22/10/2013 11:25:10

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,111

Re: Administration Ametys Application cms page blanche

L'erreur indique qu'un des widgets utilisé est défecteux :
C'est un widget qui affiche le programme télé.
Je vous invite à le mettre en commentaire et à redémarrer tomcat.

Pour le mettre en commentaire, ça se passe dans le fichier cms/WEB-INF/param/gadgets.xml
Ajoutez <!-- au début et la ligne 47 et --> à la fin pour obtenir ceci

        <gadget url="http://fly3.net/gadgets/hotel-c-fr.xml"/>
<!--         <gadget url="http://widget.programme-tv.net/ptv.xml"/> -->
        <gadget url="http://hosting.gmodules.com/ig/gadgets/file/117607102371509503962/femme-actuelle.xml"/>
       </group>   

Raphael Franchet
Expert Ametys

Offline

#5 22/10/2013 11:58:52

ptivier
Guest
From: Reunion
Registered: 12/09/2013
Posts: 47

Re: Administration Ametys Application cms page blanche

Je n'ai plus d'erreur mais toujours les mêmes soucis  sad

Offline

#6 22/10/2013 12:04:04

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,111

Re: Administration Ametys Application cms page blanche

pouvez-vous 1) fournir une capture d'écran ? 2) afficher la console javascript et la copier ici ?


Raphael Franchet
Expert Ametys

Offline

#7 22/10/2013 12:24:13

ptivier
Guest
From: Reunion
Registered: 12/09/2013
Posts: 47

Re: Administration Ametys Application cms page blanche

L'imprime écran de la partie cms/admin c'est simple c'est une page blanche.

Comment récupérer la console javascript?

Offline

#8 22/10/2013 14:08:58

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,111

Re: Administration Ametys Application cms page blanche

via un outil développeur de navigateur : ils se lancent en général via la touche F12 du navigateur.
Recharcher la page une fois l'outil ouvert.

Les logs de tomcat sont-ils vide ? notamment le catalina.out ?


Raphael Franchet
Expert Ametys

Offline

#9 22/10/2013 15:12:04

ptivier
Guest
From: Reunion
Registered: 12/09/2013
Posts: 47

Re: Administration Ametys Application cms page blanche

Ok je pensais que c'était une console inclus avec l'application cms  neutral
Alors voila ce que la console me renvoit comme erreur lors de l'accès au cms/admin. Je ne comprends pas vu que ça fonctionnait bien auparavant.

GET  404 (Not Found) index.html:3
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76
GET  404 (Not Found) index.html:76

Offline

#10 22/10/2013 16:16:40

ptivier
Guest
From: Reunion
Registered: 12/09/2013
Posts: 47

Re: Administration Ametys Application cms page blanche

Je m'excuse mais l'erreur vient de moi. J'ai décommenté ces deux lignes dans le virutalhost :

# RewriteRule  ^/plugins/([a-zA-Z0-9]*)/resources/(.*)$    /plugins/$1/resources/$2              [L]
# RewriteRule  ^/kernel/resources/(.*)$                    /kernel/resources/$1                  [L]

J'ai nouveau accès à tout. Merci pour votre aide.

Cordialement, Olivier.

Offline

#11 23/10/2013 09:47:11

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,111

Re: Administration Ametys Application cms page blanche

Ok smile.


Raphael Franchet
Expert Ametys

Offline

Board footer

Powered by FluxBB