This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This is a bug that's been irritating me for a few releases now - this is not something that has just appeared in 6.8. The Hibernate Framework support in a Web Application project necessitates that a library called hibernate-support be used, and if used in the Persistence context (any Java project type), necessitates that a library called hibernate-persistence be used. I have a shared library descriptor which has my own (fuller, documented, with source) jars of hibernate and supporting libraries - but I call it "hibernate" (as you would) - neither the J2EE Framework or Persistence seem to be able to realise that. The workaround is trivial - although cumbersome - create several class libraries using the above mentioned names. But this is a request to be able to associate the "Hibernate" concept to an arbitrarily named library descriptor.
right now newly created hibernate library (at least with 3.5 hibernate) may work with peristence, but nothing was done with hibernate framework.
after review I see it a bit different, if there are more then one library persistence will search and use first found, if first will be hibernate-support it will be used, from this view the issue isn't valid. there is also request/task to support better libraries handling on persistence side isn't specific to hibernate. but from view on hibernate framework yes it support only bundled one library as it use internal classes an these classes may behave differently in different hibernate versions, it's a matter to extend support to different hibernate platforms but it looks more like enhancment and also related with task to update hibernate to latest version as well.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss