[hibernate-dev] Unable to compile core

Emmanuel Bernard emmanuel at hibernate.org
Thu Oct 1 03:54:46 EDT 2009


 From a svn update, I can't mvn clean install core/core. Anybody knows  
why?

[INFO] Unable to resolve method [org.hibernate.Version#getVersionString]

Embedded error: javassist.NotFoundException: org.hibernate.Version


[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Unable to resolve method [org.hibernate.Version#getVersionString]

Embedded error: javassist.NotFoundException: org.hibernate.Version
[INFO]  
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to  
resolve method [org.hibernate.Version#getVersionString]
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
584)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor 
.executeTaskSegments(DefaultLifecycleExecutor.java:292)
	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:301)
	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:592)
	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: org.apache.maven.plugin.MojoExecutionException: Unable to  
resolve method [org.hibernate.Version#getVersionString]
	at org.jboss.maven.plugins.injection.BytecodeInjectionMojo 
$MethodBodyReturnReplacementTarget.<init>(BytecodeInjectionMojo.java: 
197)
	at org.jboss.maven.plugins.injection.BytecodeInjectionMojo 
$MethodBodyReturnReplacementTarget.<init>(BytecodeInjectionMojo.java: 
181)
	at  
org 
.jboss 
.maven 
.plugins 
.injection 
.BytecodeInjectionMojo 
.generateBytecodeInjectionTarget(BytecodeInjectionMojo.java:96)
	at  
org 
.jboss 
.maven 
.plugins 
.injection 
.BytecodeInjectionMojo.generateDescriptor(BytecodeInjectionMojo.java:86)
	at  
org 
.jboss 
.maven 
.plugins 
.injection 
.BytecodeInjectionMojo 
.getInjectionDescriptors(BytecodeInjectionMojo.java:78)
	at  
org 
.jboss 
.maven 
.plugins 
.injection.AbstractInjectionMojo.execute(AbstractInjectionMojo.java:45)
	at  
org 
.apache 
.maven 
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
	at  
org 
.apache 
.maven 
.lifecycle 
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
559)
	... 16 more
Caused by: java.lang.RuntimeException: javassist.NotFoundException:  
org.hibernate.Version
	at javassist.CtClassType.getClassFile2(CtClassType.java:200)
	at javassist.CtClassType.getInterfaces(CtClassType.java:630)
	at javassist.CtClassType.getMethods0(CtClassType.java:1008)
	at javassist.CtClassType.getMethods(CtClassType.java:1002)
	at org.jboss.maven.plugins.injection.BytecodeInjectionMojo 
$MethodBodyReturnReplacementTarget.<init>(BytecodeInjectionMojo.java: 
188)
	... 23 more
Caused by: javassist.NotFoundException: org.hibernate.Version
	at javassist.CtClassType.getClassFile2(CtClassType.java:187)
	... 27 more


PS: if I run mvn clean install on core (ie root), ehcache fails
-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.hibernate.cache.EhCacheTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.76  
sec <<< FAILURE!

Results :

Tests in error:
   testQueryCacheInvalidation(org.hibernate.cache.EhCacheTest)
   testEmptySecondLevelCacheEntry(org.hibernate.cache.EhCacheTest)
   testStaleWritesLeaveCacheConsistent(org.hibernate.cache.EhCacheTest)




More information about the hibernate-dev mailing list