The second problem is as follows:
When you ant compile an application in Eclipse, the deployment package
contains a directory called Whatever.woa/Contents/MacOS. It contains
an executable and 2 files called MacOSClassPath.txt and
MacOSXServerClassPath.txt. These files list the frameworks that you
set up the application to use (nested under WO Frameworks in the
Package Explorer of Eclipse). If you add frameworks in eclipse (by
right-clicking "WO Frameworks and selecting "Configure") and rebuild,
it updates the other resources for that application in /Library/
WebObjects/Applications/, but it does not update MacOSClassPath.txt
and MacOSXServerClassPath.txt. So your deployed application will be
missing resources from frameworks that it needs, resulting in
confusing "Class not found" exceptions. The only way to correct the
situation is to manually delete the local copy of the application
from /Library/WebObjects/Applications (or dist, if that's where you're
building them to) and THEN rebuild and redeploy. If you don't
manually remove the application bundle, you can clean and rebuild from
Eclipse until you are blue in the face, and it will never update those
files.
I hope this saves someone the grief that it caused me.
John
ms