-
1. Re: Error in DukBank App when running ant -f jboss-build.xml
norman.richards Sep 12, 2004 2:26 PM (in response to seshan)Did you turn on external connections to the hypersonic database as the tutorial described?
-
2. Re: Error in DukeBank App when running ant -f jboss-build.xm
seshan Sep 12, 2004 2:37 PM (in response to seshan)Yes, if you are referring to the instructions in section 4.1.7.1 Enabling the HSQL MBean and TCP/IP Connections. After the mods my jboss-build.xml file looks as follows:
...
<local-tx-datasource>
<!-- The jndi name of the DataSource, it is prefixed with java:/ -->
<!-- Datasources are not available outside the virtual machine -->
<jndi-name>DefaultDS</jndi-name>
<!-- for tcp connection, allowing other processes to use the hsqldb
database. This requires the org.jboss.jdbc.HypersonicDatabase mbean. -->
<connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
<!-- for totally in-memory db, not saved when jboss stops.
The org.jboss.jdbc.HypersonicDatabase mbean necessary
<connection-url>jdbc:hsqldb:.</connection-url>
-->
<!-- for in-process persistent db, saved when jboss stops. The
org.jboss.jdbc.HypersonicDatabase mbean is not necessary for properly db shutdown
<connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
-->
....
jboss:service=Hypersonic
</local-tx-datasource>
1701
true
default
false
true
... -
3. Re: Error in DukBank App when running ant -f jboss-build.xml
seshan Sep 12, 2004 4:46 PM (in response to seshan)I have found the cause. The documentation says "Open the hsqldb-ds.xml file which you’ll find in the deploy directory and which sets up the default datasource". The problem ws there are 2 deploy directories - one under ~all and another under ~default. Both these locations have a copy of the hsqldb-ds.xml file. The mods outlined in the manual have to be done in both files. I had made the mods to the one under all/deply only initially. After I made the mods to the file in default/deploy directory and restarterd the JBoss server, the db-create-table etc started working again.
-
4. Re: Error in DukBank App when running ant -f jboss-build.xml
darranl Sep 12, 2004 5:06 PM (in response to seshan)The mods do not need to be performed in both locations.
Each folder under the server folder is a different isolated JBoss configuration, if you start JBoss from the run script and do not pass in any arguments the default configuration will be started i.e The files under default will be used, the all configuration will not be touched.
If you execute the run command as 'run -c all' the all configuration will be used and the files under default will not be touched. -
5. Re: Error in DukBank App when running ant -f jboss-build.xml
seshan Sep 12, 2004 5:16 PM (in response to seshan)Thank you very much. That is a useful piece of information. I must have missed reading that part in the manual.
Thanks