regular deployment vs tomcat deployment .. UnknownKeyException
regular deployment vs tomcat deployment .. UnknownKeyException
- Subject: regular deployment vs tomcat deployment .. UnknownKeyException
- From: EMail Archive <email@hidden>
- Date: Fri, 27 May 2011 20:01:26 -0400
I'm back in the world of webObjects after a couple of years and seem
to have forgotten some basic things, or at least I suspect they are
basic. I'm converting an application to live within Tomcat and it has
trouble starting up. The first component is Main.wo and it's of the
form
Main.wod:
<wo:switch WOComponentName="MinimalPageWrapper" css="style/login.css">
<div id="login">
....
<wo:string value="[licence]" escapeHTML="FALSE" />
</div>
</wo:switch>
and MinimalPageWrapper.wod is of the form:
<head>
<title>....</title>
<wo:ERXStyleSheet filename="[^css]" framework="app" />
</head>
<body onload="document.authform.userfield.focus()">
<div id="container" class="panelWhite"><wo:componentContent /></div>
</body>
My error is as follows:
Error: com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException exception
Reason:
<com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message
'[<com.webobjects.appserver.WOComponent name: MinimalPageWrapper
subcomponents: null > takeValueForKey()]:
attempt to assign value to unknown key: 'css'.
This WOComponent does not have an instance variable of the name css or _css,
nor a method of the name setCss or _setCss' object
'<com.webobjects.appserver.WOComponent name: MinimalPageWrapper
subcomponents: null >' key 'css'>
It is, indeed, true that MinimalPageWrapper has no accessor for "css"
but it doesn't need them when it runs in Eclipse or via direct access
outside Eclipse (and if I add them, they are not called anyway). As
noted, I suspect stupidity at work here but I've been banging my head
on this all afternoon and I'm now blind to the obvious -- your help
would be appreciated .. thanks, Gavin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden