-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Set Hibernate root folder
PostPosted: Tue Dec 15, 2009 4:34 pm 
Newbie

Joined: Wed Nov 25, 2009 9:32 am
Posts: 7
Dear All!

I use Hibernate in an extension-like server-side application, and I put my binaries to the Extensions folder of the server application.
The problem is, that if I run the server, the root folder is the root folder of the server application, and not the root of the binaries. Thus, Hibernate searches the config file in that folder, and it tries to find the classes from that folder. I guess this is related to the JVM, as the server launches it. The config file is not a problem though, because I can just copy my config files there, but all the paths gone invalid.
As a result, in my generated mapping file, I have a class org.gmate.data.SomeClass.java, but it won't find it.

My question: Is there any way, solution or workaround, that I can set the root folder of Hibernate to be the Extension folder, so it starts to get the classes from there?

Thanks for all the replies in advance,
gmate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.