I have seen this behavior before if you have something in your class defined as protected, it will work in development on OS X, but not in production under tomcat.  If this is the case redefine it as public and clean/rebuild/redeploy and see if that helps.

 

--

Albert Jagnow

Web Developer

The University of Iowa Foundation

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 10:34 AM
To: Hendrik Holtmann
Cc: webobjects-deploy@lists.apple.com
Subject: Re: Tomcat deploy problem

 


Hendrik wrote on 06/21/2006 02:12:03 AM:

> com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [
> valueForKey()]: lookup of unknown key: 'errorMessage'. This
> WOComponent does not have an instance variable of the name
> errorMessage or _errorMessage, nor a method of the name
> errorMessage, _errorMessage, getErrorMessage, or _getErrorMessage

>
> Of course errorMessage is an instance variable of Main and the
> accessor methods errorMessage, getErrorMessage are present...and as
> described it all works perfect in development mode or when deployed
> on my OS X machine.


IIRC, normally it tells you the name of the component that is missing the key, so either you didn't paste that part of the error message in the email, or the fact it's missing could be a clue I suppose.

If it is indeed against the Main component, my best guess would be that you have an old version of Main.class somewhere in your classpath that is loading first. Check the startup logs for the classpath statement and notice which jars are loading and make sure they match what is loading on your OS X box. Usually when I get UnknownKeyException for a class I know has the key, it's because my build has gone wonky (especially when using Xcode, which occasionally seems to hang on to outdated class files), and when using WOLips, sometimes it fails to overwrite old files with new ones. So I'd try a clean build and see if it persists.

>
> For information:

> I am building a true WAR, and do non single-directory-deployment.

I've only deployed SSDD on Tomcat on Linux, so no experience with war deployments.

HTH,
Logan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to