File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Hibernate WSAD configuration problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Hibernate WSAD configuration problem" Watch "Hibernate WSAD configuration problem" New topic

Hibernate WSAD configuration problem

kiranreddy reddy

Joined: Jan 02, 2006
Posts: 11
I was using Hibernate on Eclipse and it everything was fine, but when I moved to WSAD the same code, I had a problem. It show the error that it is unable to connect to,in hibernate.cfg.xml. So it is not able to read the DTD and not parse the xml file.

I dont have any clue why it is happening, Also in WSAD I checked the project properties and tried to disable DTD validation and stuff, but nothing helped

If anyone has any idea why this can happen, plz post ur ideas

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Not really a Hibernate question. Perhaps someone in the WebSphere forum will know how to configure WSAD to do this so I'll move it there.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

You need a connection to the Internet when the files are validated. If you connect through a proxy server then use the menu sequence to tell WSAD about it: Window, Preferences, Internet, Proxy Settings. You will have to make some non-significant change to get the files re-validated (e.g. insert and delete a blank). It looks to me like WSAD caches these DTDs, as I had the problem when I started using Hibernate but now it doesn't happen to me any more.
jeroen dijkmeijer
Ranch Hand

Joined: Sep 26, 2003
Posts: 132
You may also store the dtd's at your local drive some where,
go to windows->preferences->xml->User specified entries
or edit directly the .plugins file:

[ January 09, 2006: Message edited by: jeroen dijkmeijer ]
I agree. Here's the link:
subject: Hibernate WSAD configuration problem
It's not a secret anymore!