IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Maven Java Discussion :

[Maven2][hibernate3-maven-plugin][Version 2.2] hbm2cfgxml hbm2java annotationconfiguration


Sujet :

Maven Java

  1. #1
    Nouveau Candidat au Club
    Inscrit en
    Juillet 2010
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Juillet 2010
    Messages : 1
    Points : 1
    Points
    1
    Par défaut [Maven2][hibernate3-maven-plugin][Version 2.2] hbm2cfgxml hbm2java annotationconfiguration
    Bonjour,

    j'essaie d'utiliser le plugin hibernate3-maven-plugin (2.2) pour générer mes POJO (EJB3/Hibernate annotations).

    Je souhaite génerer le fichier hibernate.cfg.xml (avec hbm2cfgxml), puis enchainer avec hbm2java.

    Ci-dessous la partie plugins de mon pom :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
     
    <plugins>
    	<!-- Hibernate 3 Plugin -->
    	<plugin>
    		<groupId>org.codehaus.mojo</groupId>
    		<artifactId>hibernate3-maven-plugin</artifactId>
     
    		<configuration>
    			<components>
    				<component>
    					<name>hbm2cfgxml</name>
    				</component>
    				<component>
    					<name>hbm2java</name>
                                            <implementation>annotationconfiguration</implementation>
    				</component>
    			</components>
    			<componentProperties>
    				<revengfile>src/main/resources/hibernate.reveng.xml</revengfile>
    				<packagename>test.package</packagename>
    				<format>true</format>
    				<haltonerror>true</haltonerror>
    				<ejb3>true</ejb3>
    				<propertyfile>src/main/resources/database.properties</propertyfile>
    				<configurationfile>target/hibernate3/generated-mappings/hibernate.cfg.xml</configurationfile> 
    			</componentProperties>
    		</configuration>
     
    		<executions>
    			<!-- Generate hibernate.cfg.xml-->
    			<execution>
    				<id>hbm2cfgxml</id>
    				<phase>generate-resources</phase>
    				<goals>
    					<goal>hbm2cfgxml</goal>
    				</goals>
    				<inherited>false</inherited>
    			</execution>
     
    			<!-- Generate Java POJO -->
    			<execution>
    				<id>hbm2java</id>
    				<phase>generate-sources</phase>
    				<goals>
    					<goal>hbm2java</goal>
    				</goals>
    				<inherited>false</inherited>
    			</execution>
    		</executions>
    	<dependencies>
    		<dependency>
    			<groupId>cglib</groupId>
    			<artifactId>cglib</artifactId>
    			<version>${cglibVersion}</version>
    		</dependency>
    		<dependency>
    			<groupId>mysql</groupId>
    			<artifactId>mysql-connector-java</artifactId>
    			<version>${mysqlConnectorJavaVersion}</version>
    		</dependency>
    	</dependencies>
        </plugin>
    </plugins>
    La génération du fichier hibernate.cfg.xml s'execute correctement, mais je recupere une exception, lors du hbm2java :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
     
    org.hibernate.MappingException: Unable to load class declared as <mapping class="test.package.MaClasse"/> in the configuration:
    	at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:650)
    	at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1589)
    	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1568)
    	at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1047)
    	at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:64)
    ....
    Caused by: java.lang.ClassNotFoundException: test.package.MaClasse
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
    	at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
    	at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
    	at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Class.java:169)
    	at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)
    	at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:647)
    	... 35 more
    Par ailleurs, j'ai les traces suivantes au début de l'execution mvn install :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    [INFO] Preparing hibernate3:hbm2java
    [WARNING] Removing: hbm2java from forked lifecycle, to prevent recursive invocation.
    [INFO] Preparing hibernate3:hbm2cfgxml
    [WARNING] Removing: hbm2java from forked lifecycle, to prevent recursive invocation.
    [WARNING] Removing: hbm2cfgxml from forked lifecycle, to prevent recursive invocation.
    Comment éviter les forked lifecycle, et comment ne plus avoir l'exception "Class not Found" ?

    Merci d'avance pour votre aide.

  2. #2
    Nouveau membre du Club
    Inscrit en
    Avril 2005
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 27
    Points : 30
    Points
    30
    Par défaut [Maven2][hibernate3-maven-plugin][Version 2.2] hbm2cfgxml hbm2java annotationconfiguration
    Bonjour,

    J'ai le même type de problème et j'ai du séparer (projet maven multi-modules) la génération du fichier de configuration Hibernate et les fichiers de mappings du la génération du code Java.

    ma configuration de projet :
    1/ pom parent :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
     
    <?xml version="1.0" encoding="UTF-8"?>
    <project>
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>xxxxxx</groupId>
    	<artifactId>replication-parent</artifactId>
    	<version>0.0.1-SNAPSHOT</version>
    	<packaging>pom</packaging>
    	<description></description>
     
    	<modules>
    		<module>xxxx-hibernate-generated-mappings</module>
    		<module>xxxx-hibernate-generated-bean</module>
    	</modules>
    </project>
    2/ pom du module mappings :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <project>
     
    	<parent>
    		<groupId>xxxxxx</groupId>
    		<artifactId>replication-parent</artifactId>
    		<version>0.0.1-SNAPSHOT</version>
    	</parent>
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>xxxxxx</groupId>
    	<artifactId>replication-resources</artifactId>
    	<version>0.0.1-SNAPSHOT</version>
    	<description></description>
     
    	<build>
    		<extensions>
    			<extension>
    				<groupId>org.apache.maven.wagon</groupId>
    				<artifactId>wagon-webdav</artifactId>
    				<version>1.0-beta-2</version>
    			</extension>
    		</extensions>
    		<plugins>
    			<plugin>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>1.5</source>
    					<target>1.5</target>
    					<verbose>true</verbose>
    					<fork>true</fork>
    					<executable>${JAVA_5_HOME}/bin/javac</executable>
    					<compilerVersion>1.5</compilerVersion>
    				</configuration>
    			</plugin>
    			<plugin>
    				<artifactId>maven-clean-plugin</artifactId>
    				<version>2.4.1</version>
    				<configuration>
    					<filesets>
    						<fileset>
    							<directory>
    								${basedir}/src/main/resources
    							</directory>
    							<includes>
    								<include>*.*</include>
    							</includes>
    							<followSymlinks>false</followSymlinks>
    						</fileset>
    					</filesets>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>hibernate3-maven-plugin</artifactId>
    				<version>2.2</version>
    				<configuration>
    					<components>
    						<component>
    							<name>hbm2hbmxml</name>
    							<outputDirectory>
    								src/main/resources
    							</outputDirectory>
    						</component>
    						<component>
    							<name>hbm2cfgxml</name>
    							<outputDirectory>
    								src/main/resources
    							</outputDirectory>
    						</component>
    					</components>
    					<componentProperties>
    						<format>true</format>
    						<haltonerror>true</haltonerror>
    						<drop>true</drop>
    						<configurationfile>
    							./hibernate.cfg.xml
    						</configurationfile>
    						<revengfile>./xxxx.reveng.xml</revengfile>
    						<jdk5>true</jdk5>
    					</componentProperties>
    				</configuration>
    				<executions>
    					<execution>
    						<id>hibernate-mappings</id>
    						<phase>generate-resources</phase>
    						<goals>
    							<goal>hbm2hbmxml</goal>
    							<goal>hbm2cfgxml</goal>
    						</goals>
    					</execution>
    				</executions>
    				<dependencies>
    					<dependency>
    						<groupId>com.oracle</groupId>
    						<artifactId>ojdbc5</artifactId>
    						<version>11.1.0.7.0</version>
    					</dependency>
    					<dependency>
    						<groupId>cglib</groupId>
    						<artifactId>cglib</artifactId>
    						<version>2.2</version>
    					</dependency>
    				</dependencies>
    			</plugin>
    		</plugins>
    	</build>
     
     
    	<dependencies>
    		<dependency>
    			<groupId>com.oracle</groupId>
    			<artifactId>ojdbc5</artifactId>
    			<version>11.1.0.7.0</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate</artifactId>
    			<version>3.2.7.ga</version>
    			<exclusions>
    				<exclusion>
    					<artifactId>commons-logging</artifactId>
    					<groupId>commons-logging</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    	</dependencies>
    </project>
    3/ le pom du module de génération de code Java :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
     
    <?xml version="1.0" encoding="UTF-8"?>
    <project>
     
    	<parent>
    		<groupId>xxxxxx</groupId>
    		<artifactId>replication-parent</artifactId>
    		<version>0.0.1-SNAPSHOT</version>
    	</parent>
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>xxxxxx</groupId>
    	<artifactId>replication-generated-bean</artifactId>
    	<version>0.0.1-SNAPSHOT</version>
    	<description></description>
     
    	<properties>
    		<main.basedir>${project.parent.basedir}</main.basedir>
    	</properties>
     
     
    	<build>
    		<extensions>
    			<extension>
    				<groupId>org.apache.maven.wagon</groupId>
    				<artifactId>wagon-webdav</artifactId>
    				<version>1.0-beta-2</version>
    			</extension>
    		</extensions>
    		<plugins>
    			<plugin>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>1.5</source>
    					<target>1.5</target>
    					<verbose>true</verbose>
    					<fork>true</fork>
    					<executable>${JAVA_5_HOME}/bin/javac</executable>
    					<compilerVersion>1.5</compilerVersion>
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>hibernate3-maven-plugin</artifactId>
    				<version>2.2</version>
    				<executions>
    					<execution>
    						<phase>generate-sources</phase>
    						<goals>
    							<goal>hbm2java</goal>
    						</goals>
    					</execution>
    				</executions>
    				<dependencies>
    					<dependency>
    						<groupId>com.oracle</groupId>
    						<artifactId>ojdbc5</artifactId>
    						<version>11.1.0.7.0</version>
    					</dependency>
    					<dependency>
    						<groupId>cglib</groupId>
    						<artifactId>cglib</artifactId>
    						<version>2.2</version>
    					</dependency>
    					<dependency>
    						<groupId>org.hibernate</groupId>
    						<artifactId>hibernate-annotations</artifactId>
    						<version>3.3.1.GA</version>
    					</dependency>
    					<dependency>
    						<groupId>org.hibernate</groupId>
    						<artifactId>hibernate-validator</artifactId>
    						<version>3.1.0.GA</version>
    					</dependency>
    					<dependency>
    						<groupId>xxxxxx</groupId>
    						<artifactId>replication-resources</artifactId>
    						<version>0.0.1-SNAPSHOT</version>
    					</dependency>
    				</dependencies>
    				<configuration>
    					<components>
    						<component>
    							<name>hbm2java</name>
    							<implementation>
    								annotationconfiguration
    							</implementation>
    						</component>
    					</components>
    					<componentProperties>
    						<packagename>
    							xx.yy.zz
    						</packagename>
    						<format>true</format>
    						<haltonerror>true</haltonerror>
    						<drop>true</drop>
    						<configurationfile>
    							./hibernate.cfg.xml
    						</configurationfile>
    						<revengfile>./xxxx.reveng.xml</revengfile>
    						<jdk5>true</jdk5>
    					</componentProperties>
    				</configuration>
    			</plugin>
    		</plugins>
    	</build>
     
     
    	<dependencies>
    		<dependency>
    			<groupId>xxxxxx</groupId>
    			<artifactId>replication-resources</artifactId>
    			<version>0.0.1-SNAPSHOT</version>
    		</dependency>
    		<dependency>
    			<groupId>com.oracle</groupId>
    			<artifactId>ojdbc5</artifactId>
    			<version>11.1.0.7.0</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate</artifactId>
    			<version>3.2.7.ga</version>
    			<exclusions>
    				<exclusion>
    					<artifactId>commons-logging</artifactId>
    					<groupId>commons-logging</groupId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-annotations</artifactId>
    			<version>3.3.1.GA</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-validator</artifactId>
    			<version>3.1.0.GA</version>
    		</dependency>
    	</dependencies>
    </project>
    Les fichiers de configuration *.cfg.xml et *.hbm.xml sont tous bien générés. Le code Java est généré, mai la propriété packagename du composant n'est pas prise en compte. Les classes se retrouvent donc dans le répertoire src/main/java. Il me reste l'erreur suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
     
    [INFO] Preparing hibernate3:hbm2java
    [WARNING] Removing: hbm2java from forked lifecycle, to prevent recursive invocation.
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    17:04:50,687  INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:oracle:thin:@LDBV2:1532:BSEPSI03
    17:04:50,687  INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:oracle:thin:@LDBV2:1532:BSEPSI03
    [INFO] [hibernate3:hbm2java {execution: default}]
    [INFO] using annotationconfiguration task.
    [INFO] Configuration XML file loaded: file:/C:/workSpace(...)hibernate-generated-mappings/target/classes/hibernate.cfg.xml
    17:04:50,812  INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA
    17:04:50,828  INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA
    [INFO] Configuration XML file loaded: file:/C:/workSpace(...)hibernate-generated-mappings/target/classes/hibernate.cfg.xml
    17:04:50,828  INFO org.hibernate.cfg.Configuration - configuring from url: file:/C:/workSpace(...)hibernate-generated-mappings/target/classes/hibernate.cfg.xml
    17:04:50,843  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : Service.hbm.xml
    17:04:51,078  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : Periodestagedossier.hbm.xml
    17:04:51,125  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : DossierActionformation.hbm.xml
    17:04:51,156  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : Agrement.hbm.xml
    17:04:51,187  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : DossierAgrement.hbm.xml
    17:04:51,203  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : AgrementFinanceur.hbm.xml
    17:04:51,234  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : Refetatdossier.hbm.xml
    17:04:51,265  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : Sessionformation.hbm.xml
    17:04:51,296  INFO org.hibernate.cfg.Configuration - Reading mappings from resource : Dossier.hbm.xml
    17:04:51,328  INFO org.hibernate.cfg.Configuration - Configured SessionFactory: xx.yy.zz.HibernateUtils
    [INFO] No hibernate properties file loaded.
    17:04:51,406  INFO org.hibernate.cfg.HbmBinder - Mapping class: Service -> SERVICE
    17:04:51,421  INFO org.hibernate.cfg.HbmBinder - Mapping class: Periodestagedossier -> PERIODESTAGEDOSSIER
    17:04:51,421  INFO org.hibernate.cfg.HbmBinder - Mapping class: DossierActionformation -> DOSSIER_ACTIONFORMATION
    17:04:51,437  INFO org.hibernate.cfg.HbmBinder - Mapping class: Agrement -> AGREMENT
    17:04:51,437  INFO org.hibernate.cfg.HbmBinder - Mapping class: DossierAgrement -> DOSSIER_AGREMENT
    17:04:51,437  INFO org.hibernate.cfg.HbmBinder - Mapping class: AgrementFinanceur -> AGREMENT_FINANCEUR
    17:04:51,437  INFO org.hibernate.cfg.HbmBinder - Mapping class: Refetatdossier -> REFETATDOSSIER
    17:04:51,437  INFO org.hibernate.cfg.HbmBinder - Mapping class: Sessionformation -> SESSIONFORMATION
    17:04:51,453  INFO org.hibernate.cfg.HbmBinder - Mapping class: Dossier -> DOSSIER
    17:04:51,453  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Service.sessionformations -> SESSIONFORMATION
    17:04:51,453  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Agrement.agrementFinanceurs -> AGREMENT_FINANCEUR
    17:04:51,453  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Agrement.dossierAgrements -> DOSSIER_AGREMENT
    17:04:51,468  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Agrement.agrements -> AGREMENT
    17:04:51,468  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Refetatdossier.dossiers -> DOSSIER
    17:04:51,468  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Sessionformation.periodestagedossiers -> PERIODESTAGEDOSSIER
    17:04:51,468  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Dossier.dossierActionformations -> DOSSIER_ACTIONFORMATION
    17:04:51,468  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Dossier.periodestagedossiers -> PERIODESTAGEDOSSIER
    17:04:51,468  INFO org.hibernate.cfg.HbmBinder - Mapping collection: Dossier.dossierAgrements -> DOSSIER_AGREMENT
    17:04:51,484  WARN org.hibernate.cfg.AnnotationConfiguration - Unable to apply constraints on DDL for Service
    java.lang.ClassNotFoundException: Service
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
            at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
            at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
            at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)
            at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:382)
            at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1148)
            at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:57)
            at org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(HibernateExporterMojo.java:200)
            at org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.configureExporter(Hbm2JavaGeneratorMojo.java:64)
            at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:273)
            at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:152)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
            at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
            at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
            at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Je ne comprend pas comment il peut ne pas trouver les classes correctement générées...

Discussions similaires

  1. Réponses: 1
    Dernier message: 16/02/2012, 11h17
  2. Réponses: 1
    Dernier message: 24/04/2011, 19h46
  3. Réponses: 0
    Dernier message: 01/07/2010, 10h06
  4. Maven 2 - Version des plugin Maven
    Par nicdo77 dans le forum Maven
    Réponses: 2
    Dernier message: 18/05/2010, 12h31
  5. [Maven 2] Version J2EE des fichiers genenés
    Par Sniper37 dans le forum Maven
    Réponses: 4
    Dernier message: 23/02/2006, 16h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo