File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes who is host: 10.0.1.128 ? in create-web-db Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "who is host: 10.0.1.128 ? in create-web-db" Watch "who is host: 10.0.1.128 ? in create-web-db" New topic
Author

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

Hiram Clawson
Greenhorn

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:
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


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

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
Hiram Clawson
Greenhorn

Joined: Jul 27, 2002
Posts: 7
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: who is host: 10.0.1.128 ? in create-web-db