Dépendances incomplètes dans une instance créée par SIM

Request description

Bonjour,

nous rencontrons un problème lors de l’import d’un projet dans Eclipse.
Le plugin maven semble bien télécharger les dépendances a priori, mais dans Eclipse les objets de l’API simplicité ne sont pas reconnus.

Après investigation, on a remarqué que les packages .jar de com.simplicite.simplicite-api dans le repository local de maven, ainsi que leur source dans le repository de l’instance (url de l’instance/maven) sont bien présents, mais vides.
Ils ne font qu’1ko et ne contiennent que le META-INF.

Merci pour votre aide

Steps to reproduce

Simplicité v5.2.29 :

  1. Création de l’instance par Simplicité Instances Manager en v5r
  2. Lien du projet avec notre serveur gitlab et commit
  3. Clone du projet depuis gitlab dans Eclipse sous forme de projet git avec smart import (directement reconnu comme projet avec nature Maven)
  4. Maven Update

Technical information

Instance /health
[Platform]
Status=OK
Version=5.2.29
BuiltOn=2023-01-27 18:37
Git=5.2/6c1bbbc6f2526232e90323dbfcdc699fdb07f8e6
Encoding=UTF-8
EndpointIP=127.0.0.1
EndpointURL=https://dev-sim:10773/passcommerce
TimeZone=Europe/Paris
SystemDate=2023-01-30 16:35:02

[Application]
ApplicationVersion=1.0.0
ContextPath=/passcommerce
ContextURL=http://passcommerce.dev-sim.cr-bretagne.fr/passcommerce
ActiveSessions=3
TotalUsers=8
EnabledUsers=6
LastLoginDate=2023-01-30 16:29:43

[Server]
ServerInfo=Apache Tomcat/9.0.71
ServerType=WEB
ServerActiveSessions=0
ServerSessionTimeout=30

[OS]
Name=Linux
Architecture=amd64
Version=3.10.0-1062.9.1.el7.x86_64
SystemEncoding=UTF-8

[Disk]
DiskFree=18430
DiskUsable=16010
DiskTotal=57303

[JavaVM]
Version=11.0.6
Vendor=Oracle Corporation
VMName=OpenJDK 64-Bit Server VM
VMVersion=11.0.6+10-LTS
ScriptEngine=rhino
ScriptEngineVersion=Rhino 1.7.13 2020 09 02
HeapFree=131192
HeapSize=317440
HeapMaxSize=524288
TotalFreeSize=338040

[Cache]
ObjectCache=226
ObjectCacheMax=10000
ObjectCacheRatio=2
ProcessCache=13
ProcessCacheMax=10000
ProcessCacheRatio=0
APIGrantCache=0
APIGrantCacheMax=1000
APIGrantRatio=0

[Database]
Vendor=2
ProductName=MySQL
ProductVersion=5.5.5-10.2.9-MariaDB-10.2.9+maria~stretch
DriverName=MySQL Connector/J
DriverVersion=mysql-connector-j-8.0.32 (Revision: fa4912a849140828e48162a2c396c8df0091bed7)
DBDate=2023-01-30 16:35:02
DBDateOffset=0
DBPatchLevel=5;P02;51e36da51a79b8c1941bdc15bd63f2b0
UsingBLOBs=true

[Healthcheck]
Date=2023-01-30 16:35:02
ElapsedTime=21

Other relevant information

Eclipse v2022-12 (4.26.0)

Simplicité expose un repo Maven sur /maven.

Celui-ci expose le JAR “API java” Simplicité ;


Et celui ci n’est pas vide:

Il expose aussi un POM qui donne la liste des JARs tiers:


Coté IDE quand on récupère un module on a un pom.xml qui pointe sur ce repo Maven de l’instance et récupère les JARs = le JAR Simplicité depuis l’instance et les JARs tiers indiqués depuis Maven central.

Je ne constate pas de pb avec cette mécanique Maven. Personnellement je travaille dans VSCode ou en ligne de commande mais je ne vois pas pourquoi Eclipse poserait pb.

Bonjour David,

Le repository maven de notre instance existe bien :

Mais si j’ouvre le package com/simplicite/simplicite-api/5.2-SNAPSHOT/simplicite-api-5.2-20230127.183700-1.jar qui s’y trouve, voici tout ce qu’il contient :

image

Est-il possible que quelque chose se soit mal généré?
Merci

Je n’ai pas souvenir qu’on nous ait déjà signalé un pb avec le repo Maven exposé par l’instance. Il y a donc forcément quelque chose qui cloche dans votre cas particulier… peut être un file system full ou dans le genre ?

En tout cas le repo Maven se génère lors du démarrage de la plateforme, essayez un arret/relance de l’instance (sim stop puis sim start) et surveillez les logs (Tomcat et Simplicite) pour voir s’il n’y a pas d’erreurs qui indiqueraient la cause du pb.

J’ai tenté un redémarrage de l’instance mais le problème est toujours là.

J’ai vu une erreur dans les logs systèmes (“Error during checksums verification [/home/passcommerce/tomcat/webapps/passcommerce/passcommerce/images…”).

Pas d’alerte d’espace disque ou de mémoire sur le serveur a priori.

Logs système :

2023-01-31 11:39:10,306|SIMPLICITE|INFO|No modules import specification
2023-01-31 11:39:09,501|SIMPLICITE|INFO|Platform on endpoint [https://dev-sim:10773/passcommerce] has (re)started
2023-01-31 11:39:09,501|SIMPLICITE|INFO||https://dev-sim:10773/passcommerce|/passcommerce|INFO|system|com.simplicite.util.engine.CoreCache|deserialize||Deserialization success from cache/core.ser
2023-01-31 11:39:08,571|SIMPLICITE|INFO||https://dev-sim:10773/passcommerce|/passcommerce|INFO|system|com.simplicite.util.engine.CoreCache|getClassLoader||Loaded dynamic JARs
2023-01-31 11:39:08,570|SIMPLICITE|INFO||https://dev-sim:10773/passcommerce|/passcommerce|INFO|system|com.simplicite.util.engine.DynamicClassLoader|DynamicClassLoader||Instanciate DynamicClassLoader@28f4f300
2023-01-31 11:39:08,493|SIMPLICITE|INFO||https://dev-sim:10773/passcommerce|/passcommerce|INFO|system|com.simplicite.util.engine.CoreCache|initProcessCache||PROCESS_CACHE_SIZE=10000
2023-01-31 11:39:08,491|SIMPLICITE|INFO||https://dev-sim:10773/passcommerce|/passcommerce|INFO|system|com.simplicite.util.engine.CoreCache|initObjectCache||OBJECT_CACHE_SIZE=10000
2023-01-31 11:39:08,428|SIMPLICITE|INFO|Secondary (physical) document repository: /home/passcommerce/tomcat/webapps/passcommerce/WEB-INF/dbdoc
2023-01-31 11:39:08,425|SIMPLICITE|INFO|Principal document repository: BLOB
2023-01-31 11:39:08,420|SIMPLICITE|INFO|Project dir: /home/passcommerce/tomcat/webapps/passcommerce/WEB-INF
2023-01-31 11:39:08,415|SIMPLICITE|INFO|Platform on endpoint [https://dev-sim:10773/passcommerce] is (re)starting...
2023-01-31 11:39:08,384|SIMPLICITE|INFO|Platform is up-to-date
2023-01-31 11:39:08,384|SIMPLICITE|INFO|Current database version = 5, patch level = 2, patch level files MD5 hash = 51e36da51a79b8c1941bdc15bd63f2b0
2023-01-31 11:39:08,384|SIMPLICITE|INFO|Platform version = 5, patch level = 2, patch level files MD5 hash = 51e36da51a79b8c1941bdc15bd63f2b0
2023-01-31 11:39:08,349|SIMPLICITE|INFO|Database is ready
2023-01-31 11:39:08,257|SIMPLICITE|INFO|Initializing datasource jdbc/simplicite with database product name = [mysql]
2023-01-31 11:39:08,006|SIMPLICITE|INFO|Autoupgrade lock
2023-01-31 11:39:07,999|SIMPLICITE|INFO|Data directory is ready
2023-01-31 11:39:07,999|SIMPLICITE|INFO|Data directory: /home/passcommerce/tomcat/webapps/passcommerce/WEB-INF
2023-01-31 11:39:07,999|SIMPLICITE|INFO|Base data directory from webapp environment [/home/passcommerce/tomcat/webapps/passcommerce/WEB-INF]
2023-01-31 11:39:07,999|SIMPLICITE|INFO|Endpoint: IP=127.0.0.1, URL=https://dev-sim:10773/passcommerce
2023-01-31 11:39:07,978|SIMPLICITE|ERROR|Error during checksums verification [/home/passcommerce/tomcat/webapps/passcommerce/passcommerce/images (Aucun fichier ou dossier de ce type)], this should not happen!
2023-01-31 11:39:07,973|SIMPLICITE|INFO|Using Java version: 11
2023-01-31 11:39:07,973|SIMPLICITE|INFO|Using Git base dir: /home/passcommerce/git
2023-01-31 11:39:07,964|SIMPLICITE|INFO|Platform: Simplicite 5.P02 2023-01-27 18:37 (revision 29) / UTF-8
2023-01-31 11:39:07,924|SIMPLICITE|INFO|Server: tomcat 9 (WEB), websockets: true
2023-01-31 11:39:07,910|SIMPLICITE|INFO|Application name:
2023-01-31 11:39:07,901|SIMPLICITE|INFO|Webapp for context path [/passcommerce] is initializing...
2023-01-31 11:39:07,894|SIMPLICITE|INFO|

Apps.log:

2023-01-31T11:39:12+01:00 INFO  Exec log = [+++ Begin script ++++++++++]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Action [start] with parameter(s) [passcommerce] at Tue Jan 31 11:39:03 CET 2023]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Calling pre-start hook]
2023-01-31T11:39:12+01:00 INFO  Exec log = [-------------------------------------------]
2023-01-31T11:39:12+01:00 INFO  Exec log = [CRB : Configure JBDC driver]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Name = passcommerce]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Version =]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Database =]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Dir = /home/passcommerce]
2023-01-31T11:39:12+01:00 INFO  Exec log = [-------------------------------------------]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Suppression de la config du pool de connexions CRB, si elle existe]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Injection de la config. du pool de connexion CRB]
2023-01-31T11:39:12+01:00 INFO  Exec log = [-------------------------------------------]
2023-01-31T11:39:12+01:00 INFO  Exec log = [CRB : Configure WAF]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Name = passcommerce]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Version =]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Database =]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Dir = /home/passcommerce]
2023-01-31T11:39:12+01:00 INFO  Exec log = [-------------------------------------------]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Suppression de la config WAF CRB, si elle existe]
2023-01-31T11:39:12+01:00 INFO  Exec log = [-------------------------------------------]
2023-01-31T11:39:12+01:00 INFO  Exec log = [CRB : Configure autopatch]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Name = passcommerce]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Version =]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Database =]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Dir = /home/passcommerce]
2023-01-31T11:39:12+01:00 INFO  Exec log = [-------------------------------------------]
2023-01-31T11:39:12+01:00 INFO  Exec log = [L'autopatch est déjà configuré : SERVICE_AUTOUPGRADE=true]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Done]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Enabling tomcat start script]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Done]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Starting tomcat for passcommerce]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Tomcat seems not to be started yet (0), sleeping 3s]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Done]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Enabling nginx reverse proxy configuration]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Done]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Requesting nginx configuration reload]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Done]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Calling post-start hook]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Done]
2023-01-31T11:39:12+01:00 INFO  Exec log = [Status = 0]
2023-01-31T11:39:12+01:00 INFO  Exec log = [+++ End script ++++++++++]
2023-01-31T11:39:12+01:00 DEBUG --- End action = [start] for name = [passcommerce] ----------
2023-01-31T11:39:12+01:00 DEBUG === End API ==========
2023-01-31T11:39:13+01:00 DEBUG === Begin API for username simplicite ==========
2023-01-31T11:39:13+01:00 DEBUG SOURCE = [UI]
2023-01-31T11:39:13+01:00 DEBUG ACTION = [list]
2023-01-31T11:39:13+01:00 DEBUG NAME = []
2023-01-31T11:39:13+01:00 DEBUG --- Begin action = [list] for name = [] ----------
2023-01-31T11:39:13+01:00 DEBUG --- End action = [list] for name = [] ----------
2023-01-31T11:39:13+01:00 DEBUG === End API ==========

catalina.out:

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
2023-01-31 11:39:04,737|CATALINA|INFOS|Nom version serveur :              Apache Tomcat/9.0.71
2023-01-31 11:39:04,752|CATALINA|INFOS|Serveur compilé :                  Jan 9 2023 22:33:01 UTC
2023-01-31 11:39:04,752|CATALINA|INFOS|Version du serveur :               9.0.71.0
2023-01-31 11:39:04,754|CATALINA|INFOS|Nom de l'OS :                      Linux
2023-01-31 11:39:04,754|CATALINA|INFOS|Version OS :                       3.10.0-1062.9.1.el7.x86_64
2023-01-31 11:39:04,754|CATALINA|INFOS|Architecture :                     amd64
2023-01-31 11:39:04,755|CATALINA|INFOS|Java Home :                        /usr/lib/jvm/java-11-openjdk-11.0.6.10-1.el7_7.x86_64
2023-01-31 11:39:04,755|CATALINA|INFOS|Version JVM :                      11.0.6+10-LTS
2023-01-31 11:39:04,755|CATALINA|INFOS|Fournisseur de la JVM :            Oracle Corporation
2023-01-31 11:39:04,756|CATALINA|INFOS|CATALINA_BASE :                    /home/passcommerce/tomcat
2023-01-31 11:39:04,756|CATALINA|INFOS|CATALINA_HOME :                    /home/passcommerce/tomcat
2023-01-31 11:39:04,766|CATALINA|INFOS|La librairie Apache Tomcat Native basée sur APR qui permet des performances optimales dans les environnements de production n'a pas été trouvée sur le java.library.path : [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]
2023-01-31 11:39:05,461|CATALINA|INFOS|Le connecteur ["http-nio-10778"] a été configuré pour supporter la mise à niveau de HTTP vers [h2c]
2023-01-31 11:39:05,462|CATALINA|INFOS|Initialisation du gestionnaire de protocole ["http-nio-10778"]
2023-01-31 11:39:05,503|CATALINA|INFOS|Le connecteur ["http-nio-10773"] a été configuré pour supporter la mise à niveau de HTTP vers [h2c]
2023-01-31 11:39:05,504|CATALINA|INFOS|Initialisation du gestionnaire de protocole ["http-nio-10773"]
2023-01-31 11:39:05,505|CATALINA|INFOS|L'initialisation du serveur a pris [1090] millisecondes
2023-01-31 11:39:05,581|CATALINA|INFOS|Démarrage du service [Catalina]
2023-01-31 11:39:05,581|CATALINA|INFOS|Démarrage du moteur de Servlets : [Apache Tomcat/9.0.71]
2023-01-31 11:39:05,595|CATALINA|INFOS|Déploiement du répertoire d'application web [/home/passcommerce/tomcat/webapps/passcommerce]
2023-01-31 11:39:07,901|GLOBAL|INFOS|SIMPLICITE: Webapp for context path [/passcommerce] is initializing...
2023-01-31 11:39:07,999|GLOBAL|INFOS|SIMPLICITE: Data directory is ready
2023-01-31 11:39:08,349|GLOBAL|INFOS|SIMPLICITE: Database is ready
2023-01-31 11:39:08,416|GLOBAL|INFOS|SIMPLICITE: Platform on endpoint [https://dev-sim:10773/passcommerce] is (re)starting...
2023-01-31 11:39:09,501|GLOBAL|INFOS|SIMPLICITE: Platform on endpoint [https://dev-sim:10773/passcommerce] has (re)started
2023-01-31 11:39:22,629|GLOBAL|INFOS|SIMPLICITE: API grant cache created (size = 1000, expiry = 86400 seconds)
2023-01-31 11:39:22,630|GLOBAL|INFOS|SIMPLICITE: Default session timeout [30] minutes
2023-01-31 11:39:22,630|GLOBAL|INFOS|SIMPLICITE: Webapp for context path [/passcommerce] initialized in 0:00:15.394
2023-01-31 11:39:24,625|GLOBAL|INFOS|SIMPLICITE: Webapp for context path [/passcommerce] is ready
2023-01-31 11:39:24,649|CATALINA|INFOS|Le déploiement du répertoire [/home/passcommerce/tomcat/webapps/passcommerce] de l'application web s'est terminé en [19 052] ms
2023-01-31 11:39:24,649|CATALINA|INFOS|Déploiement du répertoire d'application web [/home/passcommerce/tomcat/webapps/ROOT]
2023-01-31 11:39:24,668|CATALINA|INFOS|Le déploiement du répertoire [/home/passcommerce/tomcat/webapps/ROOT] de l'application web s'est terminé en [19] ms
2023-01-31 11:39:24,671|CATALINA|INFOS|Démarrage du gestionnaire de protocole ["http-nio-10778"]
2023-01-31 11:39:24,692|CATALINA|INFOS|Démarrage du gestionnaire de protocole ["http-nio-10773"]
2023-01-31 11:39:24,695|CATALINA|INFOS|Le démarrage du serveur a pris [19189] millisecondes

Bonjour,

Nous allons effectuer des vérification, c’est peut-être lié à la configuration de votre SIM en déploiement sur context path non vide (URL en /passcommerce) qui est un cas d’usage peu fréquent.

On revient vers vous rapidement.

Problème reproduit, on corrige ça dès que possible, si possible pour la v5.2.30 en fin de semaine.

1 Like

Je confirme que ça sera livré dans la 5.2.30, pensez à vous abonner aux annonces et à configurer vos préférences du forum pour être notifiés.

Entendu, merci pour votre réactivité :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.