• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

who is host: 10.0.1.128 ? in create-web-db

 
Hiram Clawson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
create-web-db:
[java] ERROR (no SQLState): Connection refused to host: 10.0.1.128;
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 ?
--Hiram
 
Hiram Clawson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hiram Clawson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Success. I seem to be answering my own queries
here.
When I set the cloud-jvmargs to have the
host as 127.0.0.1 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.
--Hiram
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic