Direct To Web problem
Direct To Web problem
- Subject: Direct To Web problem
- From: Ronald Sudomo <email@hidden>
- Date: Tue, 15 Mar 2005 14:48:10 -0700
Hi all,
I'm a newbie when it comes to WebObjects and XCode (not new to Java
dev). I've been following some tutorials to get a hang of WO. All is
well until I tried to create a Direct To Web application in the
following tutorial: http://www.beedocuments.com/databaseDesign.html
(also try http://developer.apple.com/documentation/WebObjects/Developing_With_D2W/Introduction/chapter_1_section_1.html
with same result)
It's basically, a very simple Direct To Web application. I can build
and launch it, but when I try to login I got an exception (stack trace
included at the end). It looks like a classpath problem. It's
complaining about missing MenuHeader and PageWrapper classes. Not
being familiar with XCode, I'm not sure how to fix it. Aren't those
classes supposed to be added automatically to the classpath? What am I
missing? Any help is greatly appreciated. Thanks.
My dev environment:
Mac OS X 10.3.8
XCode 1.5
WebObjects 5.2.3
OpenBase DB 8.0.4
Stack Trace:
------------------
Welcome to WeatherHub!
[2005-03-15 14:33:55 MST] <main> Opening application's URL in browser:
http://ronmac.local:51805/cgi-bin/WebObjects/WeatherHub.woa
[2005-03-15 14:33:55 MST] <main> DirectToWeb WebAssistant launch line:
appletviewer http://localhost:51805/cgi-bin/WebObjects/WeatherHub.woa/wa/D2WActions/openWebAssistant
[2005-03-15 14:33:55 MST] <main> Waiting for requests...
[2005-03-15 14:34:00 MST] <WorkerThread4>
<com.webobjects.appserver._private.WOComponentDefinition> WARNING:
Unable to find component class named "PageWrapper". If this is not
intended to be a classless component, check your framework settings
and the contents of your classpath file (in the .woa's
Contents/<PLATFORM_NAME> subdirectory).
[2005-03-15 14:34:00 MST] <WorkerThread4>
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
[<com.webobjects.appserver.WOComponent name: MenuHeader subcomponents:
null > valueForKey()]: lookup of unknown key: 'visibleEntityNames'.
This WOComponent does not have an instance variable of the name
visibleEntityNames or _visibleEntityNames, nor a method of the name
visibleEntityNames, _visibleEntityNames, getVisibleEntityNames, or
_getVisibleEntityNames
at com.webobjects.appserver.WOComponent.handleQueryWithUnboundKey(WOComponent.java:1566)
at com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:544)
at com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.valueInObject(NSKeyValueCoding.java:920)
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1539)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyVa[2005-03-15
14:34:00 MST] <WorkerThread4>
WOBundle.lookForClassInAllBundles(MenuHeader) failed!
[2005-03-15 14:34:00 MST] <WorkerThread4>
<com.webobjects.appserver._private.WOComponentDefinition> WARNING:
Unable to find component class named "MenuHeader". If this is not
intended to be a classless component, check your framework settings
and the contents of your classpath file (in the .woa's
Contents/<PLATFORM_NAME> subdirectory).
[2005-03-15 14:34:00 MST] <WorkerThread4>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
[<com.webobjects.appserver.WOComponent name: MenuHeader subcomponents:
null > valueForKey()]: lookup of unknown key: 'visibleEntityNames'.
This WOComponent does not have an instance variable of the name
visibleEntityNames or _visibleEntityNames, nor a method of the name
visibleEntityNames, _visibleEntityNames, getVisibleEntityNames, or
_getVisibleEntityNames
lueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1600)
at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
at com.webobjects.appserver._private.WOPopUpButton.appendChildrenToResponse(WOPopUpButton.java:181)
at com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(WOHTMLDynamicElement.java:424)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:121)
at com.webobjects.appserver._private.WOConditional.appendToResponse(WOConditional.java:70)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:121)
at com.webobjects.appserver._private.WOForm.appendChildrenToResponse(WOForm.java:124)
at com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(WOHTMLDynamicElement.java:424)
at com.webobjects.appserver._private.WOForm.appendToResponse(WOForm.java:118)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:121)
at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:130)
at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:992)
at com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOComponentReference.java:111)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:121)
at com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(WOHTMLDynamicElement.java:424)
at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:121)
at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:130)
at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:992)
at com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOComponentReference.java:111)
at com.webobjects.appserver._private.WOSwitchComponent.appendToResponse(WOSwitchComponent.java:197)
at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:992)
at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1198)
at com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1418)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:230)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:358)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:552)
_______________________________________________
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