Closed quoidautre closed 4 years ago
En passant par le packaging, erreurs aussi :( :
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ remocra ---
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ remocra ---
org.aspectj.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18
at org.aspectj.apache.bcel.classfile.Constant.readConstant(Constant.java:133)
at org.aspectj.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:45)
at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:186)
at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:424)
at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:376)
at org.aspectj.weaver.World.resolveToReferenceType(World.java:485)
at org.aspectj.weaver.World.resolve(World.java:326)
at org.aspectj.weaver.World.resolve(World.java:236)
at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:97)
at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:41)
at org.aspectj.weaver.bcel.BcelObjectType.ensureGenericSignatureUnpacked(BcelObjectType.java:810)
at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredInterfaces(BcelObjectType.java:257)
at org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:626)
at org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:82)
at org.aspectj.weaver.patterns.TypePattern.matchesSubtypes(TypePattern.java:178)
at org.aspectj.weaver.patterns.ExactTypePattern.matchesSubtypes(ExactTypePattern.java:74)
at org.aspectj.weaver.patterns.TypePattern.matchesStatically(TypePattern.java:130)
at org.aspectj.weaver.patterns.DeclareParents.match(DeclareParents.java:63)
at org.aspectj.weaver.patterns.DeclareParents.findMatchingNewParents(DeclareParents.java:358)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doDeclareParents(AjLookupEnvironment.java:880)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:730)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:652)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doPendingWeaves(AjLookupEnvironment.java:427)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:213)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:616)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:357)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1027)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:271)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:184)
at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
at org.aspectj.tools.ajc.Main.run(Main.java:371)
at org.aspectj.tools.ajc.Main.runMain(Main.java:248)
at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:360)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Internal compiler error
org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java/lang/CharSequence.class': Invalid byte tag in constant pool: 18
at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:424)
at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:376)
at org.aspectj.weaver.World.resolveToReferenceType(World.java:485)
at org.aspectj.weaver.World.resolve(World.java:326)
at org.aspectj.weaver.World.resolve(World.java:236)
at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:97)
at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:41)
at org.aspectj.weaver.bcel.BcelObjectType.ensureGenericSignatureUnpacked(BcelObjectType.java:810)
at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredInterfaces(BcelObjectType.java:257)
at org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:626)
at org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:82)
at org.aspectj.weaver.patterns.TypePattern.matchesSubtypes(TypePattern.java:178)
at org.aspectj.weaver.patterns.ExactTypePattern.matchesSubtypes(ExactTypePattern.java:74)
at org.aspectj.weaver.patterns.TypePattern.matchesStatically(TypePattern.java:130)
at org.aspectj.weaver.patterns.DeclareParents.match(DeclareParents.java:63)
at org.aspectj.weaver.patterns.DeclareParents.findMatchingNewParents(DeclareParents.java:358)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doDeclareParents(AjLookupEnvironment.java:880)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:730)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:652)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doPendingWeaves(AjLookupEnvironment.java:427)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:213)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:616)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:357)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1027)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:271)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:184)
at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
at org.aspectj.tools.ajc.Main.run(Main.java:371)
at org.aspectj.tools.ajc.Main.runMain(Main.java:248)
at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:360)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] ABORT
déc. 13, 2017 10:26:14 AM org.aspectj.weaver.tools.Jdk14Trace info
INFOS: Dumping to /var/www/sdis-remocra/packaging/remocrapackage/cloned/remocra/remocra/./ajcore.20171213.102614.463.txt
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:55 min
[INFO] Finished at: 2017-12-13T10:26:15+01:00
[INFO] Final Memory: 37M/520M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project remocra: Compiler errors :
[ERROR] error at (no source information available)
[ERROR] /var/www/sdis-remocra/packaging/remocrapackage/cloned/remocra/remocra/src/main/java/fr/sdis83/remocra/domain/remocra/CadastreSection_Roo_Jpa_Entity.aj:0::0 Internal compiler error
[ERROR] org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java/lang/CharSequence.class': Invalid byte tag in constant pool: 18
[ERROR] at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
[ERROR] at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
[ERROR] at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:424)
[ERROR] at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:376)
[ERROR] at org.aspectj.weaver.World.resolveToReferenceType(World.java:485)
[ERROR] at org.aspectj.weaver.World.resolve(World.java:326)
[ERROR] at org.aspectj.weaver.World.resolve(World.java:236)
[ERROR] at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:97)
[ERROR] at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:41)
[ERROR] at org.aspectj.weaver.bcel.BcelObjectType.ensureGenericSignatureUnpacked(BcelObjectType.java:810)
[ERROR] at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredInterfaces(BcelObjectType.java:257)
[ERROR] at org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:626)
[ERROR] at org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:82)
[ERROR] at org.aspectj.weaver.patterns.TypePattern.matchesSubtypes(TypePattern.java:178)
[ERROR] at org.aspectj.weaver.patterns.ExactTypePattern.matchesSubtypes(ExactTypePattern.java:74)
[ERROR] at org.aspectj.weaver.patterns.TypePattern.matchesStatically(TypePattern.java:130)
[ERROR] at org.aspectj.weaver.patterns.DeclareParents.match(DeclareParents.java:63)
[ERROR] at org.aspectj.weaver.patterns.DeclareParents.findMatchingNewParents(DeclareParents.java:358)
[ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doDeclareParents(AjLookupEnvironment.java:880)
[ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:730)
[ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:652)
[ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doPendingWeaves(AjLookupEnvironment.java:427)
[ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:213)
[ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:616)
[ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:357)
[ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
[ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1027)
[ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:271)
[ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:184)
[ERROR] at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
[ERROR] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
[ERROR] at org.aspectj.tools.ajc.Main.run(Main.java:371)
[ERROR] at org.aspectj.tools.ajc.Main.runMain(Main.java:248)
[ERROR] at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:360)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Bonjour,
Je ne peux malheureusement vous fournir que des pistes pour le moment. Je vous répondrai plus précisément dès que possible après votre retour sur les éléments suivants.
Pour la compilation Si je comprends bien, votre environnement de build est une VM provisionnée avec Vagrant. Dans cette VM, vous utilisez la version 1.8.0_151 de java pour la compilation. Or cette dernière doit être faite avec une JDK 1.7. Je vous invite à lire la page :
Pour le serveur de données Avez-vous essayé de voir si la base et son schéma sont présents après la création du conteneur Docker et l'application des scripts telle que décrite dans le paragraphe "Premier run" ? Par exemple :
PGPASSWORD=postgres psql -h localhost -U postgres -l
PGPASSWORD=postgres psql -h localhost -U postgres -d remocra -c "\d remocra.utilisateur"
Pour le serveur GeoServer Avez-vous testé l'URL suivante après la création du conteneur ?
Bonjour, Merci pour votre aide.
Oui, j'utilise une VM provisionné avec Vagrant-PuPHPet. J'avais bien lu qu'il fallait la version 1.7 du JDK, mais je ne pensais pas qu'une version plus récente poserais problème. D'ailleurs, la JDK 1.7 n'est pas d'actualité.
J'ai bien le geoserver d'actif, ici.
Infos de la bdd. Il y a bien des enregistrements.
$ PGPASSWORD=postgres /var/www/sdis-remocra/server/sdis-remocra/home/postgres/remocra_db/dev/data_tests.sh
Insertion des données de référence et du jeu de données
Avertissement
$ PGPASSWORD=postgres psql -h localhost -U postgres remocra -f data_tests_01.sql > data_tests_01.log 2> data_tests_01_error.log
[01:46 ]-[vagrant@vm]-[/var/www/sdis-remocra/server/sdis-remocra/home/postgres/remocra_db/dev]-[git master]
$ cat data_tests_01_error.log
psql:data_tests_01.sql:24: ERROR: more than one row returned by a subquery used as an expression
psql:data_tests_01.sql:26: ERROR: current transaction is aborted, commands ignored until end of transaction block
psql:data_tests_01.sql:28: ERROR: current transaction is aborted, commands ignored until end of transaction block
[01:47 ]-[vagrant@vm]-[/var/www/sdis-remocra/server/sdis-remocra/home/postgres/remocra_db/dev]-[git master]
$ cat data_tests_01.log
BEGIN
SET
SET
SET
SET
SET
SET
SET
INSERT 0 1
INSERT 0 1
UPDATE 1
ROLLBACK
$ /var/www/sdis-remocra/db-docker/geoserver/dev/datatest.sh
Création du workspace remocra
:Workspace named 'remocra' already exists. Création du datastore remocra
:Store 'remocra' already exists in workspace 'remocra' Création du style remocra_hydrant
:Style named 'remocra_hydrant' already exists in workspace remocra Création de la couche v_hydrant_pibi (style : remocra_hydrant)
:Layer named 'v_hydrant_pibi' already exists. Création de la couche v_hydrant_pena (style : remocra_hydrant)
:Layer named 'v_hydrant_pena' already exists. Création du style remocra_pibi_prescrit
:Style named 'remocra_pibi_prescrit' already exists in workspace remocra Création de la couche hydrant_prescrit (style : remocra_pibi_prescrit)
:Layer named 'hydrant_prescrit' already exists. Création du style remocra_permis
:Style named 'remocra_permis' already exists in workspace remocra Création de la couche v_permis (style : remocra_permis)
:Layer named 'v_permis' already exists. Création de la couche zone_competence (style : polygon)
:Layer named 'zone_competence' already exists. Création de la couche zone_speciale (style : polygon)
:Layer named 'zone_speciale' already exists. Création du style remocra_oldeb
:Style named 'remocra_oldeb' already exists in workspace remocra Création de la couche oldeb_zonage (style : remocra_oldeb)
:Layer named 'oldeb_zonage' already exists.Vidage du cache
F.
J'ai essayé de changer de version de java, mais... :
$ dpkg -l *java*jdk*
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description
+++-======================================-========================-========================-==================================================================================
un java-jdk <aucune> <aucune> (aucune description n'est disponible)
un java2-jdk <aucune> <aucune> (aucune description n'est disponible)
un java5-jdk <aucune> <aucune> (aucune description n'est disponible)
un java6-jdk <aucune> <aucune> (aucune description n'est disponible)
un java7-jdk <aucune> <aucune> (aucune description n'est disponible)
un java8-jdk <aucune> <aucune> (aucune description n'est disponible)
un oracle-java7-jdk <aucune> <aucune> (aucune description n'est disponible)
un oracle-java8-jdk <aucune> <aucune> (aucune description n'est disponible)
un sun-java5-jdk <aucune> <aucune> (aucune description n'est disponible)
un sun-java6-jdk <aucune> <aucune> (aucune description n'est disponible)
et
$ sudo apt-get install oracle-java7-jdk
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Le paquet oracle-java7-jdk est un paquet virtuel fourni par :
oracle-java9-installer 9.0.1-1~webupd8~0
oracle-java8-installer 8u151-1~webupd8~0
oracle-java7-installer 7u80+7u60arm-0~webupd8~1
Vous devez explicitement sélectionner un paquet à installer.
E: Le paquet « oracle-java7-jdk » n'a pas de version susceptible d'être installée
La solution propre consiste à faire une montée en version des composants de la plateforme.
Dans l'attente, vous pouvez essayer la solution suivante en développement :
Java 1.8 Dans le fichier remocra/pom.xml, remplacer :
<aspectj.version>1.6.12</aspectj.version>
<java.version>1.6</java.version>
par
<aspectj.version>1.8.13</aspectj.version>
<java.version>1.8</java.version>
Jetty Puis utiliser
mvn clean jetty:run
plutôt que
mvn clean tomcat:run
Bonjour, Il semble que cela ne fonctionne pas vraiment :(. Désolé. Problème de dépendances je pense.
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project remocra: Compiler errors :
[ERROR] error invalid source option, source is either '1.3' or '1.4': 1.8.13
[ERROR] error no sources specified
Du coup, j'ai testé en changeant :
532 <plugin>
533 <groupId>org.codehaus.mojo</groupId>
534 <artifactId>aspectj-maven-plugin</artifactId>
535 <version>1.4</version>
Mais toujours une erreur :
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project remocra: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] javac: invalid target release: 1.8.13
[ERROR] Usage: javac <options> <source files>
[ERROR] use -help for a list of possible options
[ERROR]
[ERROR]
[ERROR] -> [Help 1]
J'ai essayé de lui mettre la "véritable " version du jdk, sans succès non plus :
17 <properties>
18 <aspectj.version>1.8.0</aspectj.version>
19 <java.version>1.8.0</java.version>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project remocra: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] javac: invalid target release: 1.8.0
[ERROR] Usage: javac <options> <source files>
[ERROR] use -help for a list of possible options
F.
Bonjour, J'ai installé openjdk 1.7 (en changeant pom.xml) et j'ai relancé, mais encore des erreurs :
$ sudo update-alternatives --config javac
Il existe 2 choix pour l'alternative javac (qui fournit /usr/bin/javac).
Sélection Chemin Priorité État
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/bin/javac 1081 mode automatique
* 1 /usr/lib/jvm/java-7-openjdk-amd64/bin/javac 1071 mode manuel
2 /usr/lib/jvm/java-8-oracle/bin/javac 1081 mode manuel
Appuyez sur <Entrée> pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :^C
[10:10 ]-[vagrant@vm]-[/var/www/sdis-remocra/remocra]-[git master]
$ sudo update-alternatives --config java
Il existe 2 choix pour l'alternative java (qui fournit /usr/bin/java).
Sélection Chemin Priorité État
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 mode automatique
* 1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 mode manuel
2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 mode manuel
Appuyez sur <Entrée> pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :
$ mvn install:install-file -Dfile=lib/irstv-cts.jar -DgroupId=org.cts -DartifactId=cts -Dversion=1.69 -Dpackaging=jar && mvn tomcat:run
[INFO] Scanning for projects...
Downloading from spring-maven-release: http://maven.springframework.org/release/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom
Downloading from spring-maven-milestone: http://maven.springframework.org/milestone/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom
Downloading from spring-roo-repository: http://spring-roo-repository.springsource.org/release/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
Downloading from spring-maven-release: http://maven.springframework.org/release/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar
Downloading from spring-maven-milestone: http://maven.springframework.org/milestone/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar
Downloading from spring-roo-repository: http://spring-roo-repository.springsource.org/release/org/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Could not find artifact org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in spring-maven-release (http://maven.springframework.org/release)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building remocra 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ remocra ---
[INFO] Installing /var/www/sdis-remocra/remocra/lib/irstv-cts.jar to /home/vagrant/.m2/repository/org/cts/cts/1.69/cts-1.69.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.982 s
[INFO] Finished at: 2017-12-14T10:01:49+01:00
[INFO] Final Memory: 11M/128M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building remocra 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat-maven-plugin:1.1:run (default-cli) > compile @ remocra >>>
Downloading from spring-maven-release: http://maven.springframework.org/release/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
Downloading from spring-maven-milestone: http://maven.springframework.org/milestone/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
Downloading from spring-roo-repository: http://spring-roo-repository.springsource.org/release/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
Downloading from OSGEO GeoTools repo: http://download.osgeo.org/webdav/geotools/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
Downloading from Hibernate Spatial repo: http://www.hibernatespatial.org/repository/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
Downloading from opengeo: http://repo.opengeo.org/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
Downloading from boundless: http://repo.boundlessgeo.com/main/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/postgis/postgis-jdbc/1.5.3/postgis-jdbc-1.5.3.pom
[WARNING] The POM for org.postgis:postgis-jdbc:jar:1.5.3 is missing, no dependency information available
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ remocra ---
org.aspectj.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18
at org.aspectj.apache.bcel.classfile.Constant.readConstant(Constant.java:133)
at org.aspectj.apache.bcel.classfile.ConstantPool.
[ERROR] ABORT déc. 14, 2017 10:03:21 AM org.aspectj.weaver.tools.Jdk14Trace info INFOS: Dumping to /var/www/sdis-remocra/remocra/./ajcore.20171214.100321.801.txt [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:28 min [INFO] Finished at: 2017-12-14T10:03:22+01:00 [INFO] Final Memory: 41M/203M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project remocra: Compiler errors : [ERROR] error at (no source information available) [ERROR] /var/www/sdis-remocra/remocra/src/main/java/fr/sdis83/remocra/domain/remocra/TypeRciDegreCertitude_Roo_Configurable.aj:0::0 Internal compiler error [ERROR] org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java/lang/CharSequence.class': Invalid byte tag in constant pool: 18 [ERROR] at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192) [ERROR] at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131) [ERROR] at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:424) [ERROR] at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:376) [ERROR] at org.aspectj.weaver.World.resolveToReferenceType(World.java:485) [ERROR] at org.aspectj.weaver.World.resolve(World.java:326) [ERROR] at org.aspectj.weaver.World.resolve(World.java:236) [ERROR] at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:97) [ERROR] at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:41) [ERROR] at org.aspectj.weaver.bcel.BcelObjectType.ensureGenericSignatureUnpacked(BcelObjectType.java:810) [ERROR] at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredInterfaces(BcelObjectType.java:257) [ERROR] at org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:626) [ERROR] at org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:82) [ERROR] at org.aspectj.weaver.patterns.TypePattern.matchesSubtypes(TypePattern.java:178) [ERROR] at org.aspectj.weaver.patterns.ExactTypePattern.matchesSubtypes(ExactTypePattern.java:74) [ERROR] at org.aspectj.weaver.patterns.TypePattern.matchesStatically(TypePattern.java:130) [ERROR] at org.aspectj.weaver.patterns.DeclareParents.match(DeclareParents.java:63) [ERROR] at org.aspectj.weaver.patterns.DeclareParents.findMatchingNewParents(DeclareParents.java:358) [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doDeclareParents(AjLookupEnvironment.java:880) [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:730) [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:652) [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doPendingWeaves(AjLookupEnvironment.java:427) [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:213) [ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:616) [ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:357) [ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371) [ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1027) [ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:271) [ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:184) [ERROR] at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112) [ERROR] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60) [ERROR] at org.aspectj.tools.ajc.Main.run(Main.java:371) [ERROR] at org.aspectj.tools.ajc.Main.runMain(Main.java:248) [ERROR] at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:360) [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:353) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) [ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955) [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290) [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:194) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.lang.reflect.Method.invoke(Method.java:498) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [ERROR] [ERROR] [ERROR] -> [Help 1]
F.
Bonjour,
Pas de solution alors ?
F.
Edition pour proxy Geoserver
Bonjour,
Pour faire plus simple dans votre cas (puisque vous avez déjà installé Docker) , je pense que vous pouvez passer par un conteneur Docker qui a une JDK7 et un Maven 3. Cette solution reste à valider.
Dans la procédure décrite dans la page https://github.com/atolcd/sdis-remocra/blob/master/remocra/README.md, remplacez :
cd ~/projets/sdis-remocra/remocra
mvn install:install-file -Dfile=lib/irstv-cts.jar -DgroupId=org.cts -DartifactId=cts -Dversion=1.69 -Dpackaging=jar
mvn tomcat:run
par
cd ~/projets/sdis-remocra/remocra
docker run -it --rm --name remocra-mvn \
-v ~/.m2:/root/.m2 -v "$PWD":/usr/src/remocra -w /usr/src/remocra \
maven:3.5.2-jdk-7 \
mvn install:install-file -Dfile=lib/irstv-cts.jar -DgroupId=org.cts -DartifactId=cts -Dversion=1.69 -Dpackaging=jar
docker run -it --rm --name remocra-mvn \
-v ~/.m2:/root/.m2 -v "$PWD":/usr/src/remocra -w /usr/src/remocra \
--expose 8080 -p 127.0.0.1:8080:8080 \
--link dbdocker_postgres_1:postgis.sdisxx.fr --link dbdocker_geoserver_1:geoserver.sdisxx.fr \
maven:3.5.2-jdk-7 \
mvn tomcat:run -Ddatabase.url=jdbc:postgresql://postgis.sdisxx.fr:5432/remocra
Pour la configuration du proxy GeoServer :
PGPASSWORD=postgres psql -h localhost -U postgres remocra -c "update remocra.param_conf set valeur='http://geoserver.sdisxx.fr:8080/geoserver' where cle='WMS_BASE_URL'"
Merci de me faire un retour sur cette solution.
Bonjour,
Je suis en train de tester, mais j'ai juste quelques interrogations :
au lieu de cela :
-p 127.0.0.1:8080:8080
ce n'est pas plutôt ? :
-p 127.0.0.1:8080
et cela est normal ? : jdbc:postgresql://postgres_servername:5432/remocra ?
J'ai aussi une erreur dans le geoserver (mais je peux quand même l'utiliser) :
postgres_1 | ERROR: relation "remocra.gt_pk_metadata" does not exist at character 15
postgres_1 | STATEMENT: SELECT * FROM remocra.GT_PK_METADATA WHERE 1 = 0
Donc, le http://vm.geo-remocra:8090/geoserver s'affiche, mais pas les pages avec le port 8080
Par contre, si je fais ,depuis la VM, un wget 127.0.0.1:8080/remocra
, j'ai bien le code HTML.
Fabrice
C'est bien -p 127.0.0.1:8080:8080
que je voulais écrire pour exposer le port 8080 du conteneur au niveau du host (-p 127.0.0.1:<HOST_PORT>:<CONTAINER_PORT>
).
Vous ferez attention, j'avais édité ma note précédente : remplacement de l'alias postgres_servername
par postgis.sdisxx.fr
et utilisation de l'alias geoserver.sdisxx.fr
pour la configuration du proxy.
Comme le wget fonctionne depuis la VM, l'application doit fonctionner a priori (voir si la connexion à la base est bonne). Vous avez une indirection supplémentaire par rapport à uene configuration de développement classique si bien qu'il faudra également exposer le port 8080 de votre VM sur votre hôte système.
Bonjour, Tout semble fonctionner sauf l'accès via le port 8080, le principal quoi :).
J'ai pourtant ouvert les ports avec iptables :
ACCEPT tcp -- anywhere anywhere multiport dports 8090 /* 100 tcp/8090 */
ACCEPT tcp -- anywhere anywhere multiport dports http-alt /* 100 tcp/8080 */
J'ai fait aussi un forward du port 8080 --> 8080 dans la config de Vagrant. Rien n'y fait :
Fin des logs :
NFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 20, 2017 10:36:05 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
geoserver_1 | 20-Dec-2017 10:33:32.922 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
geoserver_1 | 20-Dec-2017 10:33:32.985 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
geoserver_1 | 20-Dec-2017 10:33:32.993 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 110571 ms
$ vagrant port
The forwarded ports for the machine are listed below. Please note that
these values may differ from values configured in the Vagrantfile if the
provider supports automatic port collision detection and resolution.
22 (guest) => 2222 (host)
8080 (guest) => 8080 (host)
J'ai bien accès à la bdd via pgAdmin depuis l'hôte. Le geoserver à l'air ok.
Merci
F.
Bonjour, J'ai essayé d'installer votre application, pour tester comment ça fonctionne, malheureusement j'ai eu un message d'erreur, J'ai suivi votre tutoriel d'installation, c'est la dernière étape qui a bloqué. Pouvez m'aider à résoudre le problème ?
Rque : localhost:8090/geoserver/web/ fonctionne bien.
voila la commande :
docker run --rm \ --name remocra \ -u $(id -u):$(id -g) \ -v "$(pwd)":/app -w /app \ -p 0.0.0.0:8080:8080 \ -v "/var/remocra/layers":/var/remocra/layers \ --link dbdocker_postgres_1:postgis.sdisxx.fr --link dbdocker_geoserver_1:geoserver.sdisxx.fr \ -v ~/.m2:/var/maven/.m2 -e MAVEN_CONFIG=/var/maven/.m2 -e MAVEN_OPTS="-Duser.home=/var/maven" -e "npm_config_cache=npm-cache" \ cvagner/docker-jdk-maven-sencha-cmd:8-3.6.3-3.0.2 \ \ mvn tomcat:run -Dclient-ng.dir=client-ng/dist/remocra/static -Ddatabase.url=jdbc:postgresql://postgis.sdisxx.fr:5432/remocra
Message d'erreur :
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for parent 2.1.2:
[INFO]
[INFO] parent ............................................. SUCCESS [ 1.110 s]
[INFO] client-ng .......................................... SUCCESS [01:29 min]
[INFO] remocra ............................................ FAILURE [ 7.435 s]
[INFO] dist ............................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:39 min
[INFO] Finished at: 2020-12-22T13:22:53Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project remocra: Could not resolve dependencies for project fr.sdis83.remocra:remocra:war:2.1.2: Could not find artifact org.opengeo:geodb:jar:0.6 in local-maven-repo (file:///app/remocra/local-maven-repo) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
Bonjour, bonne année, meilleurs vœux,
Merci à vous, votre réponse m'a permit d'avancer dans l'installation, en fait j'ai rajouté la colonne manquante manuellement, juste pour mes tests et pour avancer rapidement. Par contre, j'ai eu un nouveau problème . J'ai essayé de monter en version le maven et ca ne marche pas ? que faire pour monter en version ? c'est quoi les config à mettre dans le pom.xml (désolé je ne suis pas spécialiste du java, je suis plutôt php et j'ai du mal avec les dépendances et les versions !).
J'ai modifié le pom.xml :
et voilà le message d'erreur :
http://maven.springframework.org/milestone/org/codehaus/mojo/tomcat-maven-plugin/maven-metadata.xml 403 Forbidden [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for parent 2.1.2: [INFO] [INFO] parent ............................................. SUCCESS [ 0.895 s] [INFO] client-ng .......................................... SUCCESS [01:06 min] [INFO] remocra ............................................ FAILURE [ 3.045 s] [INFO] dist ............................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:11 min [INFO] Finished at: 2021-01-04T14:00:37Z [INFO] ------------------------------------------------------------------------ [ERROR] Plugin org.codehaus.mojo:aspectj-maven-plugin:1.2.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.2.1: Failure to transfer org.codehaus.mojo:aspectj-maven-plugin:pom:1.2.1 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.mojo:aspectj-maven-plugin:pom:1.2.1 from/to spring-maven-release (http://maven.springframework.org/release): Authorization failed for http://maven.springframework.org/release/org/codehaus/mojo/aspectj-maven-plugin/1.2.1/aspectj-maven-plugin-1.2.1.pom 403 Forbidden -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Bonjour,
Je suis en train de tester votre appli web. Lors de l'exécution j'ai beaucoup d'erreur JAVA. JE suis sur une VM vagrant (puphpet)
et,
Ici :
Le début de l'output du serveur de données :
Merci F.