-->
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.  [ 5 posts ] 
Author Message
 Post subject: problems with jdbc connection url under tomcat
PostPosted: Wed Mar 10, 2004 12:35 pm 
Newbie

Joined: Wed Mar 10, 2004 12:29 pm
Posts: 4
hi,
I'm using tomcat 4.1.24 and hibernate 2.0.3, and I have some problems with the jdbc url connection.
in the hibernate.properties of my application classpath I wrote:

hibernate.connection.url = jdbc:firebirdsql://localhost/%CATALINA_HOME%/webapps/LORS/DB/lors.gdb


where LORS is the root directory of my project and lors.gdb is the interbase db file. if I write:

hibernate.connection.url = jdbc:firebirdsql://localhost/c:/programmi/jakarta-tomcat-4.1.24/webapps/LORS/DB/lors.gdb

all works well, but this will not work on other machine where tomcat is located under another direcotory.

where is my mistake?
Thanks

PS I'm using win xp


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 12:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I don't think such things as %CATALINA_HOME% get automatically replaced in the hibernate.properties. You will have to figure out how to configure this programmatically.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 12:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
ps: When using firebird 1.5. there is an alias feature, with it you can avoid hardcoding the file path in the connection URL.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 1:15 pm 
Newbie

Joined: Wed Mar 10, 2004 12:29 pm
Posts: 4
can you tell me more about this feature, please?
but in the hibernate.properties what I should write in this case?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 1:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Don't know, read the release notes for Firebird 1.5. I have never used database aliases. You have to hardcode the jdbc url in the properties file, dynamically inserting Environment properties surely does not work.


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

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.