Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > New to Glassfis...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 3664 of 3747
Post > Topic >>

New to Glassfish with PostgreSQL

by csharpdotcom <cmsharp01@[EMAIL PROTECTED] > Feb 22, 2008 at 03:27 AM

Hi - I've been using JSF with Glassfish successfully for the last few
months, but up to now have not tried to use databases with it, which
I'm now trying for the first time.  Before I try writing any code, I
wanted to test out the code in chapter 10 of "Core JavaServer Faces"
to see if database access works with my configuration, and it does
not!

I configured the server as given in the book, and specified the JNDI
name as "jdbc/mydb", and compiled the code provided, created a war
file and deployed it. Online I found a file called
"postgresql-8.3dev-601.jdbc4.jar.zip", copied it to my "/glassfish/
domains/domain1/lib/ext/" folder, as instructed and started the server
and the application. However, after starting the application and
attempting to log in on its test page, I get the "Internal Error"
message produced by the code. In checking the log at localhost:4848 I
get various error messages saying that the connection was refused,
including that I should check TCP/IP.

Could someone kindly advise me on what is going wrong, as until I can
get an example running from the book, I can't go any further. The book
says on page 466 that I first have to create a table with a few
entries, with an example given, but nothing is said as to how I can do
that.

Some help would be most appreciated.




 5 Posts in Topic:
New to Glassfish with PostgreSQL
csharpdotcom <cmsharp0  2008-02-22 03:27:12 
Re: New to Glassfish with PostgreSQL
Lew <lew@[EMAIL PROTEC  2008-02-22 08:48:41 
Re: New to Glassfish with PostgreSQL
csharpdotcom <cmsharp0  2008-02-22 11:41:10 
Re: New to Glassfish with PostgreSQL
Lew <lew@[EMAIL PROTEC  2008-02-22 18:42:31 
Re: New to Glassfish with PostgreSQL
Silvio Bierman <sbierm  2008-02-23 09:22:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 22:30:46 CDT 2008.