wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes who is host: ? in create-web-db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "who is host: ? in create-web-db" Watch "who is host: ? in create-web-db" New topic

who is host: ? in create-web-db

Hiram Clawson

Joined: Jul 27, 2002
Posts: 7
Good Afternoon Ranch Hands:
I'm trying to work through the bookstore1
servlet example in j2eetutorial
When I attempt to create the cloudscape DB
with 'ant create-web-db' after 6 minutes
it times out giving me the error:
[java] ERROR (no SQLState): Connection refused to host:;
I can't find such an address anywhere in any
java code file or any properties file. From
what I can see it should have used localhost
to find the DB.
What's up with this ?

<a href="http://setiathome.ssl.berkeley.edu" target="_blank" rel="nofollow">http://setiathome.ssl.berkeley.edu</a>
Hiram Clawson

Joined: Jul 27, 2002
Posts: 7
Well now, this is fascinating and curious.
If I have not started the cloudscape DB
and I try to do this 'ant create-web-db'
it promptly exits with an error saying
it can't contact the DB on localhost.
Now it knows about localhost. Why
would it think it was something else
when the DB was actually running ?
Hiram Clawson

Joined: Jul 27, 2002
Posts: 7
Success. I seem to be answering my own queries
When I set the cloud-jvmargs to have the
host as instead of the localhost
as specified in the original, then I get
a proper connection to the DB and I have
created the DB. (Typical localhost configuration
error. What is supposed to be the DNS name
of a computer that is on a 192.168 LAN ? I've
never been able to figure out what its name
and domain should be.)
This is great. Maybe I'm learning some of
this after all.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: who is host: ? in create-web-db
Similar Threads
DB Backup - MySql
JDBC 2a?
development environment:eclipse jdk6.0 +Tomcat6.0.host only support Tomcat4.0 what
Servlet can't find other servlet
REG: Hosting a web site