max wrote:
OlivierMiR wrote:
I just installed eclipse 3.5 platform and Hibernate Tools 3.3.0.M2-N200907092133-H355 from JBoss developer update site (as well as a few other plug-ins). Now I have an error when I try to connect to my MS SQL database through Hibernate tools.
The exception does not contain any hibernate tools related classes/methods, only Eclipse DTP. Can you create a connection via the DTP views ?
I don't have a full DTP installed in my eclipse installation. I installed eclipse platform, then JDT and a few things like subversive plug-in, then hibernate tools and I installed only the plug-ins required by hibernate (automatically discovered through the automatic install feature). Maybe the problem comes from a missing plug-in then? Note that with my previous eclipse and hibernate tools installations I never had such problem although dealing with identical sql driver and database, so the difference might be in the eclipse version or the way I installed eclipse previously.
It seems to me likely now that installing the full DTP would solve my problem. But I wanted to avoid unneeded plug-ins to have a 'minimal' eclipse installation, as much as possible. And that would only hide the problem, not really solve it for future users... Do you want me to try to install DTP?
max wrote:
OlivierMiR wrote:
Now when I trigger a 'create connection' in Hibernate tools by expanding the console configuration node, it says after a few seconds that it couldn't connect. The node opens anyway, and I can navigate the database and run queries, but still I wonder why this error happens and what it means.
How does it say "couldn't connect" ? screenshot, error log, dialog text, anything ?
And if it says you can navigate and connect the db it sounds like Hibernate Tools connect ok ?
A pop-up window appears titled "Multiple problems have occurred", with a "stop" icon. It contains 4 items in a list box, these are the exceptions seen afterwards in the eclipse error log. There is a "detail" and an "ok" button. Please see the
screenshot. ("eXactoSrv" in the screenshot refers to the "database connection" name, in the hibernate configuration properties.)
As you point out, this seems indeed to be a DTP error, and indeed it does not stop Hibernate tools to connect (I can indeed connect and navigate the db afterwards). But it is an error triggered when using Hibernate tools and it is a bit annoying to have to click ok and not knowing if something is wrong and if it could lead to other problems, so this problem might be worth investigating for other Hibernate tools users...