Re: Database Connection Errors - SOLVED
Re: Database Connection Errors - SOLVED
- Subject: Re: Database Connection Errors - SOLVED
- From: "Nathan C. Hampton" <email@hidden>
- Date: Sat, 27 Sep 2003 18:15:58 -0500
Ah-HAH! I finally found the solution to my database problem! The
pop-up menu was set to "Application Server" not "ProjectName." Having
fixed this, everything works perfectly. This also fixed the 'no
launchable executable present to run' problem I mentioned in passing.
Thanks to Ray, Chuck, and everyone else!
--NCH
On Thursday, September 18, 2003, at 06:23 PM, Ray Ackland wrote:
Also check to make sure that the Application.java file is included in
the "Application Server" target. Also make sure that you are building
and running the project with your main target (the one with the same
name as your project) showing in the pop-up menu.
On Wednesday, September 10, 2003, at 01:08 AM, Nathan C. Hampton wrote:
Oops! I forgot to change the address to send to the list, not just
Chuck. Just in case it's useful, here's the latest. BTW, my request
for referrals to good supplementary documentation/reference stuff
stands; I'll post a list of any responses on my website for everyone's
convenience. Thanks!
--NCH
Begin forwarded message:
From: Chuck Hill <email@hidden>
Date: Tue Sep 9, 2003 6:41:45 PM America/Chicago
To: "Nathan C. Hampton" <email@hidden>
Subject: Re: Database Connection Errors
Reply-To: email@hidden
Nathan C. Hampton wrote:
Chuck--
I'm absolutely not trying to be difficult. I promise.
Chuckle.
On Wednesday, September 3, 2003, at 06:27 PM, Chuck Hill wrote:
How do I check this? The documentation isn't clear, but I can view
com.webobjects.jdbcadaptor.MySQLPlugin in JavaBrowser.
This needs to be on the classpath when your app launches, but (and
this is
real important!) NOT in /Library/Java/Extensions. If you have a WO
framework for this, add it to your projects. Otherwise, I'd try
dropping
it in (cribbing from Win2K) /Local/Library/WebObjects/Extensions
Okay, I found the right files. This class is contained within
jdbcadaptor.jar, which is part of the JDBCAdaptor framework, which
is (already) in my project. I tried putting a copy of the jar in
/Library/WebObjects/Extensions, and that didn't work either.
I'd forgotten that is now part of WO. It used to be third party. I
think... What you really want to do, in this case, is to ensure that
the JavaJDBCAdaptor framewrork is added to your application's
frameworks. I would expect this to already be the case... Something
very odd is going on.
I've been trying to test the database connection from a new
project,
but every time I create a new project, it says "Run session
cancelled:
No launchable executable present to run" regardless of whether it
involves a database or not. I just uninstalled and reinstalled
WebObjects, but nothing has changed. Could these problems be
related?
I don't know. That sounds more serious, like the project is not
getting
built or the launcher is looking in the wrong place.
*(W%&#^)#!@#$%!#.... I'll try to find something on this, though if
anyone has suggestions, they would be appreciated.
I think you only sent this message to me. I don't use PBheX so I've
very little useful advice. Try cleaning and re-indexing the project.
Otherwise, ask on one of the WO dev lists. Someone will know the
proper spell to cast.
Bad things like this seem to happen if you get too aggressive
updating OSX. Often tool / OS updates break WO. :-(
I think I need more references & documentation. The stuff supplied
by Apple is fine as far as it goes, but it's not enough to learn
WebObjects in detail. Anyone have suggestions?
No, not really. Look through the example apps, read the on-line
docs, buy one of the books. Struggle. Don't worry - it is not you,
it really is difficult. There is, however, a fine reward...
Chuck
--
Chuck Hill email@hidden
Global Village Consulting Inc.
http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.