• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic