Erreur "NoClassDefFoundError"
Hello!
Je suis en train de monter un projet GWT mais je rencontre un soucis avec mon pom.xml.
Tout d'abord le projet est constitué de 3 sous-projets, un pour la partie Data (avec Hibernate), un autre pour les services, et une partie cliente (GWT). (Et une partie Parent pour gérer les dépendances...)
La partie Data est bien reconnue sous ma partie Service, mais la partie Service n'est pas reconnue sous ma partie Cliente ?? 8O
J'arrive à lancer l'application GWT mais des que j'utilise un des services j'obtiens l'erreur suivante (la classe n'a pas été trouvée) :
Code:
1 2 3 4 5
| Caused by: java.lang.NoClassDefFoundError: eu/aci/facturation/services/HistorisationService
at eu.aci.facturation.client.widget.ContentWidget.(ContentWidget.java:22)
at eu.aci.facturation.client.layout.MainLayout.(MainLayout.java:34)
at eu.aci.facturation.client.NdfClient.onModuleLoad(NdfClient.java:32)
... 9 more |
Et ci-dessous le pom.xml de ma partie cliente :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>eu.aci.facturation</groupId>
<artifactId>facturation-war</artifactId>
<packaging>war</packaging>
<parent>
<groupId>eu.aci.facturation</groupId>
<artifactId>facturation</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<!-- Properties -->
<properties>
<gwtVersion>2.4.0</gwtVersion>
</properties>
<dependencies>
<dependency>
<groupId>eu.aci.facturation</groupId>
<artifactId>facturation-data</artifactId>
</dependency>
<dependency>
<groupId>eu.aci.facturation</groupId>
<artifactId>facturation-services</artifactId>
</dependency>
<!-- Other dependencies -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.4</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<!-- <version>${hibernateVersion}</version> -->
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<!-- <version>${hibernateVersion}</version> -->
</dependency>
</dependencies>
<!-- Build Settings -->
<build>
<outputDirectory>war/WEB-INF/classes</outputDirectory>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>resources</goal>
<goal>testResources</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwtVersion}</version>
<configuration>
<runTarget>facturation.html</runTarget>
<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>generateAsync</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project> |
Je tiens également à préciser que je vois bien dans le dossier WEB-INF\lib de mon War, les jars concernant mes projets DATA et SERVICE.
Je pense que le soucis vient de mon fichier XML mais j'ai beau chercher sur internet, je n'arrive pas à voir où se situe mon erreur.
Je vous remercie par avance pour votre aide.