Hello Dan

First sorry about the problem that the last build brought.

About your issue, if you are not using any entity classes at the moment you
can use the following command:

mvn hibernate3:hbm2ddl -Djava.version=1.4

Now about the problem, you say this happens with different projects, do they
all throw the same error saying the culprit is the
javax/servlet/http/HttpSessionBindingListener class??  Also if you can send
me the output of the goal using the -X flag that would also help me to see
where the error is happening

Regards

Johann Reyes

-----Original Message-----
From: Dan Adams [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 06, 2006 10:59 AM
To: [email protected]
Subject: Re: [mojo-user] [URGENT] Update snapshot broke hbm2ddl

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(EntityFin
der.java:97)
>       at
>
org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFin
der.java:88)
>       at
>
org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFin
der.java:88)
>       at
>
org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFin
der.java:88)
>       at
>
org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.walk(EntityFin
der.java:88)
>       at
>
org.codehaus.mojo.hibernate3.configuration.jdk15.EntityFinder.scan(EntityFin
der.java:57)
>       at
>
org.codehaus.mojo.hibernate3.configuration.jdk15.ConfigHibernateImpl.getConf
iguration(ConfigHibernateImpl.java:49)
>       at
>
org.codehaus.mojo.hibernate3.HibernateExporterMojo.getConfiguration(Hibernat
eExporterMojo.java:109)
>       at
>
org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport(Schema
ExportMojo.java:63)
>       at
>
org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLE
xporterMojo.java:56)
>       at
>
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter
Mojo.java:60)
>       at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:412)
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:534)
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:488)
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:458)
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:306)
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:273)
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.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




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

    http://xircles.codehaus.org/manage_email

Reply via email to