Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 Re: Paramétrage et intégration » Problème Java » 03/08/2012 09:44:46

Merci pour votre réponse.

Remettre au lendemain permet d'avoir les idées plus clairs. J'ai trouvé ce paramétrage qui était sous mes yeux mais bon.

Par contre une résolution amène une autre erreur, maintenant j'ai le message:

ADMINISTRATION - Resource not found

org.apache.cocoon.ResourceNotFoundException : Resource not found for URL http://localhost:8080/cms/generate/test/fr/index.html?_contextPath=/site&_baseServerPath=http://10.120.2.50:8080&_initialRequest=%2Ffr%2Findex.html

Pourtant j'ai bien appliqué le site Démo donc le site ne doit pas être vide.
Une idée?

#2 Re: Paramétrage et intégration » Problème Java » 02/08/2012 17:42:35

Finalement j'ai réussi à avancer, mais maintenance j'ai cette erreur en voulant accéder au site:

ADMINISTRATION - Access denied

org.ametys.runtime.authentication.AccessDeniedException : Access denied for anonymous user for URL http://localhost:8080/cms/generate/test/fr/index.html?_contextPath=/site&_baseServerPath=http://10.120.2.50:8080&_initialRequest=%2Ffr%2Findex.html

Avec ca dans les logs:

Caused by: org.ametys.runtime.authentication.AccessDeniedException: Access denied for anonymous user for URL http://localhost:8080/cms/generate/test/fr/index.html?_contextPath=/site&_baseServerPath=http://10.120.2.50:8080&_initialRequest=%2Ffr%2Findex.html

J'ai vu sur le forum qu'il fallait autoriser les adresses IP dans une liste, mais sincèrement je ne trouve pas ce menu. HELP

#3 Re: Paramétrage et intégration » Problème Java » 02/08/2012 15:53:48

Je reformule mon problème...dois je modifier dans le fichier de configuration du dossier SITE ceci :
  <!-- plugin.site:SITE_CONFIG_BO_GROUP -->
  <org.ametys.site.bo>http://localhost:8080/cms</org.ametys.site.bo>
</config>

j'ai ceci quand je tape http://@IP_serveur:8081/site

ADMINISTRATION - An error occured

java.lang.IllegalArgumentException : There's no site for server 10.120.2.50, port 8080 and path /site

#4 Re: Paramétrage et intégration » Problème Java » 02/08/2012 15:51:19

Les utilisateurs c'est ok.
La conf sur votre tuto on ne voit pas ou mettre le port de communication de mysql..et vu que le CMS et sur le serveur j'ai changé l'@IP par localhost.

C'est un serveur de test pour l'instant du coup on centralise.
J'ai mit le port 8081 pour le site... par contre j'ai un soucis quand je tape http://@IP:8081/site...je n'arrive pas avoir la page

#5 Re: Paramétrage et intégration » Problème Java » 02/08/2012 15:41:08

Peut on mettre le CMS  et le SITE sur le même serveur ? si oui y'a t'il un port à changer pour le site??

#7 Re: Paramétrage et intégration » Problème Java » 02/08/2012 15:08:36

Ah je viens de corriger des valeurs dans le fichier de configuration du CMS.

Lorsque j'essaye de me connecter au lieu d'avoir l'erreur j'ai :
Nom d'utilisateur ou mot de passe incorrect

Les identifiants de connexion  à l'interface CMS sont lesquels par défaut ??

#8 Re: Paramétrage et intégration » Problème Java » 02/08/2012 14:35:42

Tomcat 6 est utilisé.
Je l'ai redemarré...et en faisait un tailf -f /var/log/tomcat6/catalina.out j'obtiens ceci qui me parait bizzard:

on database directory /var/lib/tomcat6/webapps/cms/WEB-INF/data/repository/workspaces/archives/db

Database Class Loader started - derby.database.classpath=''
2 août 2012 14:32:07 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Déploiement du répertoire site de l'application web
log4j:ERROR Improper initialization for the appender named [servlet].
2 août 2012 14:32:08 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
2 août 2012 14:32:08 org.apache.catalina.startup.Catalina start
INFO: Server startup in 6592 ms

#9 Re: Paramétrage et intégration » Problème Java » 02/08/2012 14:23:23

Oui phpMyAdmin est sur la même machine que le CMS.
Aucun firewall est en place...

Redémarrer la machine vous dites?

#10 Re: Paramétrage et intégration » Problème Java » 02/08/2012 13:47:09

J'utilise comme driver : com.mysql.jdbc.Driver

Avec mysql-connector-java-5.1.21.jar que j'ai mit dans ../cms/WEB-INF/lib cependant ou dois-je le déclarer dans /etc/profile?

#11 Re: Paramétrage et intégration » Problème Java » 02/08/2012 11:48:44

Heuuu j'ai créer la base donnée et executer les scripts .sql du dossier Mysql d'ametys via phpmyadmin.
J'ai par la suite crée l'utilisateur avec tout les privilèges sur la base de donnée ametys.

J'ai bien accès à Mysql.
Mysql est bien démarré.

#12 Paramétrage et intégration » Problème Java » 02/08/2012 11:26:33

denito
Replies: 22

Bonjour,

Je viens d'installer Ametys sur un serveur de test Linux (Debian 6).
Lorsque je rentres mes identifiants pour me connecter à l'interface celui-ci déclenche une erreur.

java.net.ConnectException : Connection refused

Connection refusedSitemap: error when calling sub-sitemap<map:mount>java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) at java.net.Socket.connect(Socket.java:546) at java.net.Socket.connect(Socket.java:495) at java.net.Socket.<init>(Socket.java:392) at java.net.Socket.<init>(Socket.java:235) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2393) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2430) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2215) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:200) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106) at org.ametys.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:98) at org.ametys.runtime.plugins.core.user.jdbc.ModifiableCredentialsAwareJdbcUsersManager.checkCredentials(ModifiableCredentialsAwareJdbcUsersManager.java:101) at org.ametys.runtime.plugins.core.authentication.UsersManagerAuthentication.login(UsersManagerAuthentication.java:55) at org.ametys.runtime.authentication.AuthenticateAction._checkAuth(AuthenticateAction.java:152) at org.ametys.web.WebAuthenticateAction._checkAuth(WebAuthenticateAction.java:69) at org.ametys.runtime.authentication.AuthenticateAction.act(AuthenticateAction.java:74) 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:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) 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:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) 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:134) at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:636) org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:198:109 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:113) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:122) 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:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) 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:134) at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.RuntimeException: Unable to get Connection from pool runtime.datasource.core.jdbc.pool at org.ametys.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:102) at org.ametys.runtime.plugins.core.user.jdbc.ModifiableCredentialsAwareJdbcUsersManager.checkCredentials(ModifiableCredentialsAwareJdbcUsersManager.java:101) at org.ametys.runtime.plugins.core.authentication.UsersManagerAuthentication.login(UsersManagerAuthentication.java:55) at org.ametys.runtime.authentication.AuthenticateAction._checkAuth(AuthenticateAction.java:152) at org.ametys.web.WebAuthenticateAction._checkAuth(WebAuthenticateAction.java:69) at org.ametys.runtime.authentication.AuthenticateAction.act(AuthenticateAction.java:74) 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:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) ... 26 more Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1117) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:350) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2393) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2430) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2215) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334) at java.sql.DriverManager.getConnection(DriverManager.java:620) at java.sql.DriverManager.getConnection(DriverManager.java:200) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106) at org.ametys.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:98) ... 42 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) at java.net.Socket.connect(Socket.java:546) at java.net.Socket.connect(Socket.java:495) at java.net.Socket.<init>(Socket.java:392) at java.net.Socket.<init>(Socket.java:235) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300) ... 61 more

Pourriez-vous m'éclairer merci

Board footer

Powered by FluxBB