-->
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.  [ 2 posts ] 
Author Message
 Post subject: hsqldb servlet with hibernate
PostPosted: Fri Apr 20, 2007 4:29 pm 
Newbie

Joined: Fri Apr 20, 2007 3:40 pm
Posts: 1
Hi, I am new to hibernate, and could not find any topic on hsqldb as a servlet - Has anyone tried to install hsqldb as a servlet in tomcat 5.x? From what i could find on the web, it looks like all i need are the following changes. It doesn't work... any ideas??

1) In the web.xml file, add the servlet lines to start hsqldb as a servlet

<servlet>
<servlet-name>HSQLDB-Servlet</servlet-name>
<servlet-class>org.hsqldb.Servlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

2) In the hibernate.cfg.xml, set the url to http://localhost

<!-- Settings for a local HSQL (testing) database. -->
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:http://localhost</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>


thanks,
Suresh
--


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 10:49 am 
Red Hat Associate
Red Hat Associate

Joined: Mon Aug 16, 2004 11:14 am
Posts: 253
Location: Raleigh, NC
Any JDBC connect string that works for JDBC will work for Hibernate. If you think something isn't working inside Hibernate, please follow the directions and post error logs, etc. I am reasonably sure that this is a configuration issue with HSQLDB though.

Thanks,

Chris


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.