My client's project is using hibernate-search and, after the upgrade,
I get the following:


Caused by: java.lang.RuntimeException: Error invoking service builder
method 
org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger,
List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for
service 'HibernateSessionSource'): Implementing class
        at 
org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:76)
        at 
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
        at 
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68)
        ... 152 more
Caused by: java.lang.IncompatibleClassChangeError: Implementing class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:698)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(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:315)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)


A little research shows this is a common error, related to a change:
org.hibernate.cfg.Mappings changed from an abstract class to an
interface (I believe) and older code crashes and burns.

http://stackoverflow.com/questions/1497619/testng-and-spring-3

I've been able to get things working again with the following POM changes:

$ git diff pom.xml
diff --git a/pom.xml b/pom.xml
index 8978c0e..b015978 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,15 +43,9 @@
       <scope>provided</scope>
     </dependency>
     <dependency>
-      <groupId>org.apache.lucene</groupId>
-      <artifactId>lucene-core</artifactId>
-      <version>2.4.1</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
       <groupId>org.hibernate</groupId>
       <artifactId>hibernate-search</artifactId>
-      <version>3.1.1.GA</version>
+      <version>3.2.0.Final</version>
     </dependency>
     <dependency>
       <groupId>commons-lang</groupId>
@@ -145,12 +139,8 @@
   </dependencies>
   <repositories>
     <repository>
-      <id>java.net</id>
-      <url>http://download.java.net/maven/2/</url>
-    </repository>
-    <repository>
-      <id>repository.jboss.org</id>
-      <url>http://repository.jboss.org/maven2/</url>
+      <id>JBoss Nexus</id>
+      <url>https://repository.jboss.org/nexus/content/groups/public/</url>
     </repository>
   </repositories>
   <properties>

However, I haven't validated that the applications' useage of
Hibernate search and Lucene is still working correctly.


On Thu, May 6, 2010 at 11:50 PM, Igor Drobiazko (JIRA) <j...@apache.org> wrote:
>
>     [ 
> https://issues.apache.org/jira/browse/TAP5-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>  ]
>
> Igor Drobiazko closed TAP5-1134.
> --------------------------------
>
>    Fix Version/s: 5.2.0
>       Resolution: Fixed
>
>> Upgrade Hibernate dependencies to 3.5.1
>> ---------------------------------------
>>
>>                 Key: TAP5-1134
>>                 URL: https://issues.apache.org/jira/browse/TAP5-1134
>>             Project: Tapestry 5
>>          Issue Type: Task
>>          Components: tapestry-core, tapestry-hibernate
>>    Affects Versions: 5.1.0.5
>>            Reporter: Igor Drobiazko
>>            Assignee: Igor Drobiazko
>>            Priority: Minor
>>             Fix For: 5.2.0
>>
>>
>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to