You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chris Pettitt <cp...@vidigiani.dyndns.org> on 2003/11/01 15:45:00 UTC
Latest CVS Hibernate Plugin (Nov 1) fails with NoClassDefFound net/sf/hibernate/UserType
Due to some trouble with another component, I am upgrading my maven and
maven-plugins to the latest in CVS. The build for both maven and
maven-plugins went really smoothly and even had a bit of the cool factor
(bootstrapping to build it in itself :)).
The problem I am having is with the maven hibernate plugin. In the past
we were using the version that came with RC1 with no problem (I think it
was called maven-hibernate-plugin-1.0-SNAPHOT). Once we moved to the new
CVS and new hibernate plugin (now properly called 1.0-SNAPSHOT), I
noticed that our schema-export is no longer working. Here is what Maven
tells me:
BUILD FAILED
File...... file:/C:/Documents and
Settings/Administrator/.maven/plugins/maven-hibernate-plugin-1.0-SNAPSHOT/
Element... h:schema-export
Line...... 27
Column.... 53
net/sf/hibernate/UserType
Total time: 13 seconds
Finished at: Sat Nov 01 08:37:23 CST 2003
Our project has a dependency on hibernate 2.0.3 and the plugin has a
dependency on hibernate 2.0 beta 6. Both are showing up in
"maven.dependency.classpath" when I do maven -X jar. I also looked at
both JARs and they both have the class that the plugin is looking for
(net.sf.hibernate.UserType). I temporarily changed our build to use 2.0
beta 6 just to make sure there wasn't some odd classpath conflict, but I
had no luck.
One other odd behavior is that each build displays the following at the
begining:
Attempting to download maven-hibernate-plugin-1.0-SNAPSHOT.jar
We already have the plugin (I built it locally and installed it into our
repository) and it is getting called during the build. We normally put
specific versions on our dependencies, so maybe this is a side effect of
having SNAPSHOT in the name? I have no idea, but though, maybe it is
related.
Finally, I will include a call stack if that would be of any use.
Thanks,
Chris
MockStrutsTestCase/Maven
Posted by David Chelimsky <da...@chelimsky.org>.
I'm trying to run a MockStrutsTestCase on the client side using Maven.
MockStrutsTestCase requires that the directory that contains WEB-INF be on
the classpath (per http://strutstestcase.sourceforge.net/). This is so it
can find your config files in WEB-INF. In my ant build.xml I was able to
accomplish this by setting up the classpath and including this directory as
a pathelement. How can I accomplish the equivalent using Maven?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
newbie question: trying to get mailing lists to work
Posted by Tim Mansfield <ti...@whyintheworld.org>.
Does anyone have a suggestion as to how to troubleshoot the mailing list
generated by Maven?
A pair of subscribe / unsubscribe links appear in the proper place, but
sending a subscribe email fails; it just bounces back.
thanks--
--tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Latest CVS Hibernate Plugin (Nov 1) fails with NoClassDefFound net/sf/hibernate/UserType
Posted by Konstantin Priblouda <kp...@yahoo.com>.
--- Chris Pettitt <cp...@vidigiani.dyndns.org>
wrote:
> One thing I am still not clear on is why maven tries
> to download the
> maven-hibernate-plugin-1.0-SNAPSHOT during each
> build when it is already
> in the local repository (and it in fact uses it
> later during the same
> build).
>
SNAPSHOT dependencies are always checked against
remote repositories - just in case somebody compiled
and installed fresh version...
regards,
=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung.
Arbeitsort: Mainz
Skills: Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Latest CVS Hibernate Plugin (Nov 1) fails with NoClassDefFound
net/sf/hibernate/UserType
Posted by Chris Pettitt <cp...@vidigiani.dyndns.org>.
One thing I am still not clear on is why maven tries to download the
maven-hibernate-plugin-1.0-SNAPSHOT during each build when it is already
in the local repository (and it in fact uses it later during the same
build).
Chris Pettitt wrote:
> I was able to get the build working by making the change in this
> message: http://www.mail-archive.com/dev@maven.apache.org/msg04406.html
>
> Appearantly the problem is with the way the ClassLoader is obtained.
>
> Thanks,
> Chris
>
> Chris Pettitt wrote:
>
>> Due to some trouble with another component, I am upgrading my maven
>> and maven-plugins to the latest in CVS. The build for both maven and
>> maven-plugins went really smoothly and even had a bit of the cool
>> factor (bootstrapping to build it in itself :)).
>>
>> The problem I am having is with the maven hibernate plugin. In the
>> past we were using the version that came with RC1 with no problem (I
>> think it was called maven-hibernate-plugin-1.0-SNAPHOT). Once we
>> moved to the new CVS and new hibernate plugin (now properly called
>> 1.0-SNAPSHOT), I noticed that our schema-export is no longer working.
>> Here is what Maven tells me:
>>
>> BUILD FAILED
>> File...... file:/C:/Documents and
>> Settings/Administrator/.maven/plugins/maven-hibernate-plugin-1.0-SNAPSHOT/
>>
>> Element... h:schema-export
>> Line...... 27
>> Column.... 53
>> net/sf/hibernate/UserType
>> Total time: 13 seconds
>> Finished at: Sat Nov 01 08:37:23 CST 2003
>>
>> Our project has a dependency on hibernate 2.0.3 and the plugin has a
>> dependency on hibernate 2.0 beta 6. Both are showing up in
>> "maven.dependency.classpath" when I do maven -X jar. I also looked at
>> both JARs and they both have the class that the plugin is looking for
>> (net.sf.hibernate.UserType). I temporarily changed our build to use
>> 2.0 beta 6 just to make sure there wasn't some odd classpath
>> conflict, but I had no luck.
>>
>> One other odd behavior is that each build displays the following at
>> the begining:
>>
>> Attempting to download maven-hibernate-plugin-1.0-SNAPSHOT.jar
>>
>> We already have the plugin (I built it locally and installed it into
>> our repository) and it is getting called during the build. We
>> normally put specific versions on our dependencies, so maybe this is
>> a side effect of having SNAPSHOT in the name? I have no idea, but
>> though, maybe it is related.
>>
>> Finally, I will include a call stack if that would be of any use.
>>
>> Thanks,
>> Chris
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Latest CVS Hibernate Plugin (Nov 1) fails with NoClassDefFound
net/sf/hibernate/UserType
Posted by Chris Pettitt <cp...@vidigiani.dyndns.org>.
I was able to get the build working by making the change in this
message: http://www.mail-archive.com/dev@maven.apache.org/msg04406.html
Appearantly the problem is with the way the ClassLoader is obtained.
Thanks,
Chris
Chris Pettitt wrote:
> Due to some trouble with another component, I am upgrading my maven
> and maven-plugins to the latest in CVS. The build for both maven and
> maven-plugins went really smoothly and even had a bit of the cool
> factor (bootstrapping to build it in itself :)).
>
> The problem I am having is with the maven hibernate plugin. In the
> past we were using the version that came with RC1 with no problem (I
> think it was called maven-hibernate-plugin-1.0-SNAPHOT). Once we moved
> to the new CVS and new hibernate plugin (now properly called
> 1.0-SNAPSHOT), I noticed that our schema-export is no longer working.
> Here is what Maven tells me:
>
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/Administrator/.maven/plugins/maven-hibernate-plugin-1.0-SNAPSHOT/
>
> Element... h:schema-export
> Line...... 27
> Column.... 53
> net/sf/hibernate/UserType
> Total time: 13 seconds
> Finished at: Sat Nov 01 08:37:23 CST 2003
>
> Our project has a dependency on hibernate 2.0.3 and the plugin has a
> dependency on hibernate 2.0 beta 6. Both are showing up in
> "maven.dependency.classpath" when I do maven -X jar. I also looked at
> both JARs and they both have the class that the plugin is looking for
> (net.sf.hibernate.UserType). I temporarily changed our build to use
> 2.0 beta 6 just to make sure there wasn't some odd classpath conflict,
> but I had no luck.
>
> One other odd behavior is that each build displays the following at
> the begining:
>
> Attempting to download maven-hibernate-plugin-1.0-SNAPSHOT.jar
>
> We already have the plugin (I built it locally and installed it into
> our repository) and it is getting called during the build. We normally
> put specific versions on our dependencies, so maybe this is a side
> effect of having SNAPSHOT in the name? I have no idea, but though,
> maybe it is related.
>
> Finally, I will include a call stack if that would be of any use.
>
> Thanks,
> Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org