Re: How to use Hibernate in a module project?

Peter Nabbefeld <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
I've now tried to create my own Library project, copying Wildfly 10 jar 
files (which provide Hibernate 5.0.7).

Getting further exceptions; obviously persistence.xml is not found, 
though I provided one in META-INF of my module.

So, how can I provide this file to Hibernate?

Kind regards
Peter


Am 20.11.2016 um 16:19 schrieb Peter Nabbefeld:
>
> Hello,
>
> when trying to use Hibernate for a module project, I'm getting the
> following exception:
>
> java.lang.NoClassDefFoundError: org/jboss/jandex/IndexView
>
> The problem is the Hibernate dependency not beeing able to access the
> jandex jar file, as it's not available for the Hibernate module on its
> classpath.
>
> While I'd guess it would be possible to add that jar file to the
> netbeans classpath to solve the problem, that's not an option for a
> plugin module.
>
> How could I manage to get the jar file into the hibernate classpath?
>
> Kind regards
> Peter
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.