[
https://jira.jboss.org/jira/browse/JBIDE-5981?page=com.atlassian.jira.plu...
]
Max Rydahl Andersen resolved JBIDE-5981.
----------------------------------------
Resolution: Incomplete Description
This is not the same issue as reported in main issue.
this happens because the classes mentioned in the configuration (persistence.xml) is not
on the classpath.
Unable to instantiate specified listener class:
org.hibernate.search.event.FullTextIndexEventListener
------------------------------------------------------------------------------------------------------
Key: JBIDE-5981
URL:
https://jira.jboss.org/jira/browse/JBIDE-5981
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Affects Versions: 3.1.0.CR2
Reporter: Vitali Yemialyanchyk
stack trace:
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based
Configuration
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based
Configuration
at
org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:198)
at
org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:731)
at org.hibernate.console.ConsoleConfiguration.access$1(ConsoleConfiguration.java:716)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:343)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:320)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:147)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:183)
... 11 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: dvdDatabase] Unable
to configure EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:265)
... 16 more
Caused by: org.hibernate.MappingException: Unable to instantiate specified event
(post-update) listener class: org.hibernate.search.event.FullTextIndexEventListener
at org.hibernate.cfg.Configuration.setListeners(Configuration.java:1722)
at org.hibernate.ejb.Ejb3Configuration.setListeners(Ejb3Configuration.java:1317)
at
org.hibernate.ejb.EventListenerConfigurator.setProperties(EventListenerConfigurator.java:163)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:853)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:191)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)
... 16 more
Caused by: java.lang.ClassNotFoundException:
org.hibernate.search.event.FullTextIndexEventListener
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.cfg.Configuration.setListeners(Configuration.java:1719)
... 21 more
persistent.xml contains:
<property name="hibernate.ejb.event.post-insert"
value="org.hibernate.search.event.FullTextIndexEventListener" />
<property name="hibernate.ejb.event.post-update"
value="org.hibernate.search.event.FullTextIndexEventListener" />
<property name="hibernate.ejb.event.post-delete"
value="org.hibernate.search.event.FullTextIndexEventListener" />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira