Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 25/05/2014 22:59:24

Peter
Guest
Registered: 21/05/2014
Posts: 10

Front-office site inaccessible

Je suis en train d'installer Ametys sur un Tomcat existant, à partir de fichier zip.
J'arrive à accéder au back-office site mais je n'arrive pas à configurer le front-office site.
En effet, aucun document n'est disponible dans le Wiki à ce propos - une bref explication concerne seulement la configuration de back-office...  hmm
Lors de la première connexion au site de front-office je suis demandé de configurer l'application. Je suppose que les paramètres des bases doivent être en accord avec la configuration du site back-office. Par contre, je n'arrive pas à trouver les bons paramètres sans documentation.
Est- ce qqn pourrait m'expliquer la configuration?

Offline

#2 26/05/2014 10:32:43

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

Re: Front-office site inaccessible

Bonjour,

En effet la documentation https://wiki.ametys.org/display/AMETYSF … fice(SITE) ne les détaille pas tous, car la plupart sont soit identique au back, soit s'expliquent d'eux même

Quels sont les paramètres qui vous posent problèmes ?


Raphael Franchet
Expert Ametys

Offline

#3 29/05/2014 19:35:26

Peter
Guest
Registered: 21/05/2014
Posts: 10

Re: Front-office site inaccessible

En effet, je n'ai pas pu trouver ce doc la sur votre site.
Avec la bonne procedure ça va mieux mais mon fron-office est toujours inaccessible. Voila le message d'erreur:

Access denied for  anonymous user for URL http://localhost:8080/cms/generate/blog1/en/index.html?_contextPath=/site/site1&_baseServerPath=http://172.31.211.209:8080&_initialRequest=%2Fen%2Findex.htmlorg.ametys.runtime.authentication.AccessDeniedException: Access denied for  anonymous user for URL http://localhost:8080/cms/generate/blog1/en/index.html?_contextPath=/site/site1&_baseServerPath=http://172.31.211.209:8080&_initialRequest=%2Fen%2Findex.html
    at org.ametys.site.GeneratePageAction.act(GeneratePageAction.java:161)
    at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:300)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:49)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:348)
    at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:60)
    at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode.invoke(RedirectToURINode.java:70)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
    at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
    at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
    at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1159)
    at org.ametys.runtime.servlet.RuntimeServlet._doService(RuntimeServlet.java:135)
    at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:92)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)
org.apache.cocoon.ProcessingException: Access denied for  anonymous user for URL http://localhost:8080/cms/generate/blog1/en/index.html?_contextPath=/site/site1&_baseServerPath=http://172.31.211.209:8080&_initialRequest=%2Fen%2Findex.html
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:356)
    at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:60)
    at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode.invoke(RedirectToURINode.java:70)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
    at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
    at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
    at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
    at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1159)
    at org.ametys.runtime.servlet.RuntimeServlet._doService(RuntimeServlet.java:135)
    at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:92)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)
Caused by: org.ametys.runtime.authentication.AccessDeniedException: Access denied for  anonymous user for URL http://localhost:8080/cms/generate/blog1/en/index.html?_contextPath=/site/site1&_baseServerPath=http://172.31.211.209:8080&_initialRequest=%2Fen%2Findex.html
    at org.ametys.site.GeneratePageAction.act(GeneratePageAction.java:161)
    at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
    at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
    at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
    at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:300)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:49)
    at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:348)
    ... 44 more

Il y a une petite particularité dans mon installation - je pense à utiliser un serveur nginx externe comme reverse proxy (pas encore en place). Il n'y a pas d'Apache, donc, seulement le Tomcat (même pour les deux applications pour l'instant).

Offline

#4 29/05/2014 20:43:01

Peter
Guest
Registered: 21/05/2014
Posts: 10

Re: Front-office site inaccessible

OK, j'ai trouvé.
L'adresse de front-office n'etait pas bonne dans la config de cms app.

Offline

#5 04/06/2014 10:03:50

stagiaire
Guest
Registered: 30/04/2014
Posts: 18

Re: Front-office site inaccessible

salut  ,
pouvez vous me donner plus de details pour la configuration du front Office ?
merci

Offline

#6 04/06/2014 17:41:09

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

Re: Front-office site inaccessible

La configuration de l'application front-office se passe de la même façon que la configuration de l'application back-office.
De quelles précisions avez-vous besoins ?


Raphael Franchet
Expert Ametys

Offline

#7 06/06/2014 10:19:47

stagiaire
Guest
Registered: 30/04/2014
Posts: 18

Re: Front-office site inaccessible

bon voila ,
1-j'ai configurer la connection avec la base de donnee mysql et j'ai ajouter le driver de connection dans le repertoire des    laibrairies,
2-au niveau de l'Adresse IP du front office dans l'admin du back-office j'ai precise 127.0.0.1 come adresse,
3-au niveau de l'adresse du back-office dans l'admin du front-office j'ai precise localhost:8080/cms,
mon probleme est l'adresse du front-office dans l'admin du back-office ,je ne sais pas que je doit faire?
merci

Offline

#8 06/06/2014 10:41:23

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

Re: Front-office site inaccessible

alors, en fait
* l'ip sert pour protéger l'accès : donc si dans le frontoffice vous mettez http://localhost:8080/cms ; il faut bien mettre 127.0.0.1 : ça c'est bon.
* ensuite, en plus de l'ip du front, le back a besoin lui aussi d'appeler le tomcat du front office : donc mettez quelque chose du genre : http://localhost:8080 (si votre FO est à la racine du même tomcat)


Raphael Franchet
Expert Ametys

Offline

#9 06/06/2014 10:59:41

stagiaire
Guest
Registered: 30/04/2014
Posts: 18

Re: Front-office site inaccessible

j'ai le repertoire cms et site dans un seul tomcat donc je doit mettre dans l'adresse du front affice dans l'admin du back http://localhost:8080.
j'ai vu dans le wiki.ametys.org qu'il faut definir un fichier root.xml dans le repertoire Catalina du serveur tomcat est ce que c'est la meme chose pour windows?

Offline

#10 06/06/2014 11:09:13

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

Re: Front-office site inaccessible

le root.xml est une manière de déclarer l'application site dans tomcat, si vous le faites en mettant les dossiers dans webapps ça marche aussi oui.
simplement si le dossier s'appelle "site" l'url à mettre est http://localhost:8080/site
et si le dossier s'appelle "ROOT" l'url devient http://localhost:8080


Raphael Franchet
Expert Ametys

Offline

Board footer

Powered by FluxBB