On Nov 19, 2005, at 9:02 AM, Michael Warner wrote:
On my deployment server, FrontBasePlugIn.framework is located two
directories up from MyApp.woa. If, in xCode on my Development box
I set the path relative to the project, then build the app for
deployment and send it to the deployment server, everything works
fine.
The problem is that back on my development machine, WebObjects can
no longer find FrontBasePlugIn.framework, even though I created an
identical directory, two directories up and copied
FrontBasePlugIn.framework to that location.
I get this error message:
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
[EMAIL PROTECTED]: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
Reason:
_obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext
[EMAIL PROTECTED]: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
Stack trace:
File
Line#
Method
Package
EODatabaseContext.java
2131
_obtainOpenChannel
com.webobjects.eoaccess
Is there a way to configure my application such that I can tell
WebObjects to look for the FrontBasePlugIn in one location when in
deployment and the conventional location (i.e. /Library/
Frameworks/) when in development?
There is no out of the box way, but the path is just in a text file.
Look in AppName.woa/Contents/MacOS/MacOSClassPath.txt
I often do the opposite, use the version in /Library/Frameworks
during development and a local version for deployment. I just use
sed to change LOCALROOT to APPROOT as part of the deployment processing.
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [email protected]