Oh, another thing to note is that this happens on different machines
with different projects. Also, the project I'm trying it on has this for
the hibernate.cfg.xml:

<hibernate-configuration>
        <session-factory>
        </session-factory>
</hibernate-configuration>

So there aren't even any entity classes defined at the moment.

On Mon, 2006-11-06 at 10:50 -0500, Dan Adams wrote:
> I've been using the hibernate3 plugin for a while now and when I ran it
> this morning it updated automatically (because it's a snapshot) and then
> broke. When I try to run hbm2ddl I get a classnotfoundexception that
> I've not seen before. Anyone at least know of a workaround for this or
> what the problem is? It's critical that I get this working again or a
> bunch of people around here (including myself) aren't going to be able 
> to do any work. Thanks in advance for the help.
> 
> Here's my config:
> 
>       <!-- tables can be created with hibernate3:hbm2ddl -->
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>hibernate3-maven-plugin</artifactId>
>         <configuration>        
>           <hibernate>
> <configurationFile>/src/main/resources/hibernate.cfg.xml</configurationFile>
>             <propertyFile>/src/main/filters/filter
> ${buildTarget}.properties</propertyFile>
>           </hibernate>
>         </configuration>
>         <dependencies>
>           <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
>             <version>1.2.13</version>
>           </dependency>
>           <dependency>
>             <groupId>hsqldb</groupId>
>             <artifactId>hsqldb</artifactId>
>             <version>1.8.0.1</version>
>           </dependency>
>           <dependency>
>             <groupId>mysql</groupId>
>             <artifactId>mysql-connector-java</artifactId>
>             <version>3.1.12</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <execution>
>             <goals>
>               <goal>hbm2ddl</goal>
>             </goals>
>             <configuration>
>               <drop>true</drop>
>               <update>true</update>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
> 
> Here's the output:
> 
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Artline webapp
> [INFO]    task-segment: [hibernate3:hbm2ddl]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Searching repository for plugin with prefix: 'hibernate3'.
> [INFO] Preparing hibernate3:hbm2ddl
> [INFO] resources:resources
> [INFO] Using default encoding to copy filtered resources.
> [INFO] hibernate3:hbm2ddl
> [INFO] using java version jdk15
> log4j:WARN No appenders could be found for logger
> (org.hibernate.cfg.annotations.Version).
> log4j:WARN Please initialize the log4j system properly.
> [INFO] Configuration XML file
> loaded: 
> /home/dadams/workspace/artline/web/src/main/resources/hibernate.cfg.xml
> [INFO] Configuration Properties file
> loaded: /home/dadams/workspace/artline/web/src/main/filters/filter.properties
> java.lang.NoClassDefFoundError:
> javax/servlet/http/HttpSessionBindingListener
>       at java.lang.ClassLoader.defineClass1(Native Method)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>       at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>       at java.lang.ClassLoader.defineClass1(Native Method)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>       at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>       at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95)
>       at
> org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFinder.java:97)
>       at
> org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFinder.java:88)
>       at
> org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFinder.java:88)
>       at
> org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFinder.java:88)
>       at
> org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFinder.java:88)
>       at
> org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.scan(EntityFinder.java:57)
>       at
> org.codehaus.mojo.hibernate3.configuration.jdk15.ConfigHibernateImpl.getConfiguration(ConfigHibernateImpl.java:49)
>       at
> org.codehaus.mojo.hibernate3.HibernateExporterMojo.getConfiguration(HibernateExporterMojo.java:109)
>       at
> org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport(SchemaExportMojo.java:63)
>       at
> org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:56)
>       at
> org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:60)
>       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.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
>       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.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
>       at
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
>       at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> 
-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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

    http://xircles.codehaus.org/manage_email

Reply via email to