This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
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