Is the project compiled before the hibernate plugin kicks in? I do a mvn package before I use the hibernate plugin so that the classes are compiled, come to think, perhaps I should bind it to the compile phase? Hope it's your case.
Srgjan

David Ryan wrote:

No luck with: It does and has always created the cfg.xml and the classname.hbm.xml files correctly just not the source code.

                                <plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>hibernate3-maven-plugin</artifactId>

<version>2.0-SNAPSHOT</version>

                                                <configuration>

<components>

<component>

<name>hbm2cfgxml</name>

<outputDirectory>src/main/resources/</outputDirectory>

</component>

<component>

<name>hbm2hbmxml</name>

<outputDirectory>src/main/java/</outputDirectory>

</component>

<component>

<name>hbm2java</name>

<outputDirectory>src/main/java/</outputDirectory>

</component>

</components>

<componentProperties>

<jdk5>true</jdk5>

<propertyfile>jdbc.properties</propertyfile>

<configurationfile>src/main/resources/hibernate.cfg.xml</configurationfile>

<ejb3>true</ejb3>

<packagename>com.raytheon.model</packagename>

<schema-selection>FTEUSER</schema-selection>

<classpathref>maven.dependency.classpath</classpathref>

<fileset dir="src/main/java">

<include name="**/*.hbm.xml"/>

</fileset>

</componentProperties>

                                                </configuration>

                                                <executions >

                                                  <execution>

<id>generate-resources</id>

<phase>generate-resources</phase>

                                                    <goals>

<goal>hbm2cfgxml</goal>

<goal>hbm2hbmxml</goal>

                                                    </goals>

                                                  </execution>

                                                  <execution>

<id>process-resources</id> <phase>process-resources</phase>

                                                    <goals>

<goal>hbm2java</goal>

                                                    </goals>

                                                  </execution>

</executions>
                                                <dependencies>

                                                    <dependency>

<groupId>${jdbc.groupId}</groupId>

<artifactId>${jdbc.artifactId}</artifactId>

<version>${jdbc.version}</version>

                                                    </dependency>

                                                    <dependency>

<groupId>log4j</groupId>

<artifactId>log4j</artifactId>

<version>1.2.11</version>

</dependency> </dependencies>
                                </plugin>

</plugins>
[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [hibernate3:hbm2java {execution: process-resources}]

[INFO] using annotationconfiguration task.

[INFO] Configuration XML file loaded: C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml

[INFO] Configuration XML file loaded: C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml

[INFO] ------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Unable to load class declared as <mapping class="com.raytheon.model.Messages"/> in the configuration:

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.hibernate.MappingException: Unable to load class declared as <mapping class="com.raytheon.model.Messages"/> in the configuration

:

at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545)

at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1479)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1458)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1432)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1386)

at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.doConfiguration(AbstractComponentConfiguration.

java:74)

at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration

.java:37)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(HibernateExporterMojo.java:172)

at org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.configureExporter(Hbm2JavaGeneratorMojo.java:69)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:227)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:133)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        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)

Caused by: java.lang.ClassNotFoundException: com.raytheon.model.Messages

        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.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:100)

at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:542)

        ... 28 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 11 seconds

[INFO] Finished at: Fri Jan 05 08:46:47 PST 2007

[INFO] Final Memory: 6M/12M

*From:* Johann Reyes [mailto:[EMAIL PROTECTED]
*Sent:* Friday, January 05, 2007 7:58 AM
*To:* [email protected]
*Subject:* RE: [mojo-user] hibernate3 plugin exception

Hello Dave

Try this:

<executions>

  <execution>

    <phase>generate-resources</phase>

    <goals>

      <goal>hbm2cfgxml</goal>

      <goal>hbm2hbmxml</goal>

    </goals>

  </execution>

  <execution>

    <phase>process-resources</phase>

    <goals>

      <goal>hbm2java</goal>

    </goals>

  </execution>

</executions>

You have to verify that your hbm.xml files get generated and then your .java files get generated.

Regards

Johann Reyes

------------------------------------------------------------------------

*From:* David Ryan [mailto:[EMAIL PROTECTED]
*Sent:* Friday, January 05, 2007 10:38 AM
*To:* [email protected]
*Subject:* RE: [mojo-user] hibernate3 plugin exception

Unfortunately I still get the following exception:

[INFO] [hibernate3:hbm2java {execution: default}]

[INFO] using annotationconfiguration task.

[INFO] Configuration XML file loaded: C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml

[INFO] Configuration XML file loaded: C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml

[INFO] ------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Unable to load class declared as <mapping class="com.raytheon.model.Messages"/> in the configuration:

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.hibernate.MappingException: Unable to load class declared as <mapping class="com.raytheon.model.Messages"/> in the configuration

:

at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545)

at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1479)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1458)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1432)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1386)

at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.doConfiguration(AbstractComponentConfiguration.

java:74)

at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration

.java:37)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(HibernateExporterMojo.java:172)

at org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.configureExporter(Hbm2JavaGeneratorMojo.java:69)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:227)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:133)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        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)

Caused by: java.lang.ClassNotFoundException: com.raytheon.model.Messages

        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.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:100)

at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:542)

        ... 28 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 15 seconds

[INFO] Finished at: Fri Jan 05 07:36:42 PST 2007

[INFO] Final Memory: 6M/12M

*From:* Johann Reyes [mailto:[EMAIL PROTECTED]
*Sent:* Friday, January 05, 2007 6:30 AM
*To:* [email protected]
*Subject:* RE: [mojo-user] hibernate3 plugin exception

Hello Dave

Try changing the phase from compile to process-resources and see how it goes

Regards

Johann Reyes

------------------------------------------------------------------------

*From:* David Ryan [mailto:[EMAIL PROTECTED]
*Sent:* Friday, January 05, 2007 6:02 AM
*To:* [email protected]
*Subject:* RE: [mojo-user] hibernate3 plugin exception

This is what I have now:

                                <plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>hibernate3-maven-plugin</artifactId>

<version>2.0-SNAPSHOT</version>

                                                <configuration>

<components>

<component>

<name>hbm2cfgxml</name>

<outputDirectory>src/main/resources/</outputDirectory>

</component>

<component>

<name>hbm2hbmxml</name>

<outputDirectory>src/main/java/</outputDirectory>

</component>

<component>

<name>hbm2java</name>

<outputDirectory>src/main/java/</outputDirectory>

</component>

</components>

<componentProperties>

<jdk5>true</jdk5>

<propertyfile>jdbc.properties</propertyfile>

<configurationfile>src/main/resources/hibernate.cfg.xml</configurationfile>

<ejb3>true</ejb3>

<packagename>com.raytheon.model</packagename>

<schema-selection>FTEUSER</schema-selection>

<classpathref>maven.dependency.classpath</classpathref>

<fileset dir="src/main/java">

<include name="**/*.hbm.xml"/>

</fileset>

</componentProperties>

                                                </configuration>

                                                <executions>

                                                    <execution>

<phase>compile</phase>

                                                                <goals>

<goal>hbm2cfgxml</goal>

<goal>hbm2hbmxml</goal>

<goal>hbm2java</goal>

                                                                </goals>

                                                    </execution>

                                                </executions>

                                                <dependencies>

                                                    <dependency>

<groupId>${jdbc.groupId}</groupId>

<artifactId>${jdbc.artifactId}</artifactId>

<version>${jdbc.version}</version>

                                                    </dependency>

                                                    <dependency>

<groupId>log4j</groupId>

<artifactId>log4j</artifactId>

<version>1.2.11</version>

</dependency> </dependencies>
                                </plugin>

</plugins>
This is the exceptions:

[INFO] Configuration XML file loaded: C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml

[INFO] Configuration XML file loaded: C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml

[INFO] ------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Unable to load class declared as <mapping class="com.raytheon.model.Messages"/> in the configuration:

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.hibernate.MappingException: Unable to load class declared as <mapping class="com.raytheon.model.Messages"/> in the configuration

:

at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545)

at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1479)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1458)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1432)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1386)

at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.doConfiguration(AbstractComponentConfiguration.

java:74)

at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration

.java:37)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(HibernateExporterMojo.java:172)

at org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.configureExporter(Hbm2JavaGeneratorMojo.java:69)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:227)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:133)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        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)

Caused by: java.lang.ClassNotFoundException: com.raytheon.model.Messages

        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.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:100)

at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:542)

        ... 28 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 10 seconds

[INFO] Finished at: Fri Jan 05 02:59:22 PST 2007

[INFO] Final Memory: 6M/12M

[INFO] ------------------------------------------------------------------------

Help?

Thanks in Advance,

Dave

*From:* Johann Reyes [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 04, 2007 9:40 AM
*To:* [email protected]
*Subject:* RE: [mojo-user] hibernate3 plugin exception

Hello Dave

The problem is hibernate is trying to reverse engineer everything in your database. You should adding a default_schema and see how it goes.

http://forum.hibernate.org/viewtopic.php?t=944566&view=next&sid=753030f15f32227f85d6a4690752d36a <http://forum.hibernate.org/viewtopic.php?t=944566&view=next&sid=753030f15f32227f85d6a4690752d36a>

Regards

Johann Reyes

------------------------------------------------------------------------

*From:* David Ryan [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 04, 2007 11:04 AM
*To:* [email protected]
*Subject:* RE: [mojo-user] hibernate3 plugin exception

This is the 2.0-SNAPSHOT

Dave

*From:* Johann Reyes [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 04, 2007 5:42 AM
*To:* [email protected]
*Subject:* RE: [mojo-user] hibernate3 plugin exception

Hello David

What version of the plugin are you using? Right now the recommended version is 2.0-snapshot

Regards

Johann Reyes

------------------------------------------------------------------------

*From:* David Ryan [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 04, 2007 2:10 AM
*To:* [email protected]
*Subject:* [mojo-user] hibernate3 plugin exception

C:\HelloWorldRev>mvn

[INFO] Scanning for projects...

[INFO] ----------------------------------------------------------------------------

[INFO] Building HelloWorld

[INFO]    task-segment: [package]

[INFO] ----------------------------------------------------------------------------

[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

[WARNING] While downloading ehcache:ehcache:1.2.3

  This artifact has been relocated to net.sf.ehcache:ehcache:1.2.3.

Downloading: http://repo1.maven.org/maven2/org/hibernate/javassist/3.3/javassist-3.3.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/jaas/UNK/jaas-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/oscache/2.1/oscache-2.1.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/asm-attrs/UNK/asm-attrs-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/asm/UNK/asm-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.2.1.GA/hibernate-entitymanager-3.2.1.GA.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/checkstyle-all/UNK/checkstyle-all-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/lucene/2.0.0/lucene-2.0.0.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-annotations/3.2.1.GA/hibernate-annotations-3.2.1.GA.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/cleanimports/UNK/cleanimports-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.1.GA/hibernate-3.2.1.GA.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/syndiag/2.0/syndiag-2.0.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/xml-apis/UNK/xml-apis-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/jdbc-stdext/2.0/jdbc-stdext-2.0.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/jacc/1_0-fr/jacc-1_0-fr.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/jta/UNK/jta-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

Downloading: http://repo1.maven.org/maven2/org/hibernate/connector/UNK/connector-UNK.pom

[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)

[INFO] [compiler:compile]

[INFO] Nothing to compile - all classes are up to date

[INFO] Preparing hibernate3:hbm2hbmxml

[WARNING] Removing: hbm2hbmxml from forked lifecycle, to prevent recursive invocation.

[INFO] No goals needed for project - skipping

[INFO] [hibernate3:hbm2hbmxml {execution: default}]

[INFO] using jdbcconfiguration task.

[INFO] Configuration XML file loaded: C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml

[INFO] Configuration Properties file loaded: C:\HelloWorldRev\jdbc.properties

[INFO] ------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Error while reading column meta data for FTEUSER.BIN$+soXASMlSUGfOHVm9B/n5g==$0

ORA-01424: missing or illegal character following the escape character

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.hibernate.exception.DataException: Error while reading column meta data for FTEUSER.BIN$+soXASMlSUGfOHVm9B/n5g==$0

at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)

at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getColumns(JDBCMetaDataDialect.java:133)

at org.hibernate.cfg.reveng.JDBCReader.processBasicColumns(JDBCReader.java:525)

at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:78)

at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:807)

at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:116)

at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:88)

at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)

at org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConfiguration(JDBCComponentConfiguration.java:65)

at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration

.java:37)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(HibernateExporterMojo.java:172)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:227)

at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:133)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        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)

Caused by: java.sql.SQLException: ORA-01424: missing or illegal character following the escape character

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)

        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)

        at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)

at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)

at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)

at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1061)

at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:839)

at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1133)

at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)

at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3329)

at oracle.jdbc.driver.OracleDatabaseMetaData.getColumns(OracleDatabaseMetaData.java:262)

at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getColumns(JDBCMetaDataDialect.java:111)

        ... 29 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 11 seconds

[INFO] Finished at: Wed Jan 03 23:03:20 PST 2007

[INFO] Final Memory: 5M/10M

[INFO] ------------------------------------------------------------------------

C:\HelloWorldRev>

Dave Ryan



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to