Simple HelloWorld example app question
Simple HelloWorld example app question
- Subject: Simple HelloWorld example app question
- From: "Ren, Kevin" <email@hidden>
- Date: Thu, 3 Jan 2008 15:03:46 +1300
- Thread-topic: Simple HelloWorld example app question
Title: Simple HelloWorld example app question
Hi,
I just create simple Helloworld app and copy/past most code from Example dir, and only one English.lproj folder under components.
Deploy on Ubuntu linux:
kevin@kevin-desktop:~/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa$ ./HelloWorld -WOPort 1111 &
[1] 32599
kevin@kevin-desktop:~/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa$ Reading UNIXClassPath.txt ...
Launching HelloWorld.woa ...
java -DWORootDirectory="/home/kevin/Apple" -DWOLocalRootDirectory="/home/kevin/Apple/Local" -DWOUserDirectory="/home/kevin/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa" -classpath "/home/kevin/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa/Contents/Resources/Java/:/home/kevin/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa/Contents/Resources/Java/helloworld.jar:/home/kevin/Apple/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/home/kevin/Apple/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/home/kevin/Apple/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar:/home/kevin/Apple/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/home/kevin/Apple/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/home/kevin/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar" webobjectsexamples.helloworld.Application -WOPort 1111
[2008-01-03 14:46:42 NZDT] <main> WOMaxIOBufferSize=8196
[2008-01-03 14:46:42 NZDT] <main> WOWorkerThreadCountMin=16
[2008-01-03 14:46:42 NZDT] <main> WOSocketMonitorSleepTime=50
[2008-01-03 14:46:42 NZDT] <main> WODirectConnectEnabled=true
[2008-01-03 14:46:42 NZDT] <main> WOIncludeCommentsInResponse=true
[2008-01-03 14:46:42 NZDT] <main> WOWorkerThreadCount=8
[2008-01-03 14:46:42 NZDT] <main> WOAdaptorURL=http://localhost/cgi-bin/WebObjects
[2008-01-03 14:46:42 NZDT] <main> WODebuggingEnabled=true
[2008-01-03 14:46:42 NZDT] <main> WOListenQueueSize=128
[2008-01-03 14:46:42 NZDT] <main> WOMissingResourceSearchEnabled=true
[2008-01-03 14:46:42 NZDT] <main> WOSessionStoreClassName=WOServerSessionStore
[2008-01-03 14:46:42 NZDT] <main> WOContextClassName=WOContext
[2008-01-03 14:46:42 NZDT] <main> WOCachingEnabled=false
[2008-01-03 14:46:42 NZDT] <main> WOAcceptMalformedCookies=false
[2008-01-03 14:46:42 NZDT] <main> NSProjectSearchPath=("..")
[2008-01-03 14:46:42 NZDT] <main> WOMonitorEnabled=false
[2008-01-03 14:46:42 NZDT] <main> WOAllowRapidTurnaround=true
[2008-01-03 14:46:42 NZDT] <main> WORootDirectory=/home/kevin/Apple
[2008-01-03 14:46:42 NZDT] <main> WOLocalRootDirectory=/home/kevin/Apple/Local
[2008-01-03 14:46:42 NZDT] <main> WOGenerateWSDL=true
[2008-01-03 14:46:42 NZDT] <main> WOWorkerThreadCountMax=256
[2008-01-03 14:46:42 NZDT] <main> WOAllowsConcurrentRequestHandling=false
[2008-01-03 14:46:42 NZDT] <main> WOAdaptor=WODefaultAdaptor
[2008-01-03 14:46:42 NZDT] <main> WOSessionTimeOut=3600
[2008-01-03 14:46:42 NZDT] <main> WOMaxSocketIdleTime=180000
[2008-01-03 14:46:42 NZDT] <main> WODefaultUndoStackLimit=10
[2008-01-03 14:46:42 NZDT] <main> WOAutoOpenClientApplication=true
[2008-01-03 14:46:42 NZDT] <main> WOAutoOpenInBrowser=true
[2008-01-03 14:46:42 NZDT] <main> WOApplicationBaseURL=/WebObjects
[2008-01-03 14:46:42 NZDT] <main> WOMaxHeaders=200
[2008-01-03 14:46:42 NZDT] <main> WOLifebeatEnabled=true
[2008-01-03 14:46:42 NZDT] <main> WOAllowsCacheControlHeader=true
[2008-01-03 14:46:42 NZDT] <main> WOSMTPHost=smtp
[2008-01-03 14:46:42 NZDT] <main> WOFrameworksBaseURL=/WebObjects/Frameworks
[2008-01-03 14:46:42 NZDT] <main> WOStatisticsStoreSessionMax=50
[2008-01-03 14:46:42 NZDT] <main> WOAdditionalAdaptors=()
[2008-01-03 14:46:42 NZDT] <main> WOLifebeatDestinationPort=1085
[2008-01-03 14:46:42 NZDT] <main> WOPort=1111
[2008-01-03 14:46:42 NZDT] <main> WOLifebeatInterval=30
[2008-01-03 14:46:42 NZDT] <main> WOSocketCacheSize=100
[2008-01-03 14:46:42 NZDT] <main> WOUserDirectory=/home/kevin/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa
[2008-01-03 14:46:42 NZDT] <main> WODisplayExceptionPages=true
[2008-01-03 14:46:42 NZDT] <main> ------------------------
[2008-01-03 14:46:42 NZDT] <main> Created adaptor of class WODefaultAdaptor on port 1111 and address kevin-desktop/127.0.0.1 with WOWorkerThread minimum of 16 and maximum of 256
[2008-01-03 14:46:42 NZDT] <main> NSBundle is unable to find "ExtensionsForResources.plist" in the main bundle. Ignoring optional configuration file.
[2008-01-03 14:46:42 NZDT] <main> Creating LifebeatThread now with: HelloWorld 1111 kevin-desktop/127.0.0.1 1085 30000
Welcome to HelloWorld !
[2008-01-03 14:46:42 NZDT] <main> null
[2008-01-03 14:46:42 NZDT] <main> Your application is not running on a supported development platform. AutoLaunch will not work.
Your application's URL is:
http://kevin-desktop:1111/cgi-bin/WebObjects/HelloWorld.woa
[2008-01-03 14:46:42 NZDT] <main> Waiting for requests…
Everything is fine, after app is deploied. If I did not setup <Webobject name=myForm> ….</Webobject> in hello.html I can see the first page.
But if I setup myForm tag, after I copy/past the URL to browser I got error, detail like below.
[2008-01-03 14:46:49 NZDT] <WorkerThread15> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
com.webobjects.foundation.NSForwardException [com.webobjects.appserver._private.WODeclarationFormatException] <WOHTMLTemplateParser> no declaration for dynamic element (or component) named myForm: <com.webobjects.appserver._private.WOComponentDefinition: Error parsing template for Component : 'file:/home/kevin/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa/Contents/Resources/English.lproj/Main.wo/':
com.webobjects.appserver._private.WODeclarationFormatException: <WOHTMLTemplateParser> no declaration for dynamic element (or component) named myForm
[2008-01-03 14:46:49 NZDT] <WorkerThread15> com.webobjects.foundation.NSForwardException for com.webobjects.appserver._private.WODeclarationFormatException: <WOHTMLTemplateParser> no declaration for dynamic element (or component) named myForm
at com.webobjects.appserver._private.WOHTMLWebObjectTag._elementWithDeclaration(WOHTMLWebObjectTag.java:212)
at com.webobjects.appserver._private.WOHTMLWebObjectTag.dynamicElement(WOHTMLWebObjectTag.java:122)
at com.webobjects.appserver._private.WOHTMLTemplateParser.didParseClosingWebObjectTag(WOHTMLTemplateParser.java:52)
at com.webobjects.appserver._private.WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java:183)
at com.webobjects.appserver._private.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java:150)
at com.webobjects.appserver._private.WOHTMLParser.parseHTML(WOHTMLParser.java:67)
at com.webobjects.appserver._private.WOHTMLTemplateParser.parseHTML(WOHTMLTemplateParser.java:81)
at com.webobjects.appserver._private.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:95)
at com.webobjects.appserver._private.WOParser.templateWithHTMLAndDeclaration(WOParser.java:71)
at com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:288)
at com.webobjects.appserver.WOComponent.templateWithName(WOComponent.java:597)
at com.webobjects.appserver.WOComponent.template(WOComponent.java:507)
at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:982)
at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1200)
at webobjectsexamples.helloworld.Session.appendToResponse(Session.java:46)
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:595)
Do I need give some values for WOForm in WO5.3?
I just gave empty in the code like
myForm:WOForm{
}
The same result in the development-mode which is I setup in Ubuntu, do I lost some framework?
thanks
Xiaowen(Kevin) Ren
"This communication is confidential and may contain
privileged and/or copyright material. If you are not the intended recipient you
must not use, disclose, copy or retain it. If you have received it in error
please immediately notify me by return email, delete the emails and destroy any
hard copies. ANZ National Bank Limited does not guarantee the integrity of this
communication, or that it is free from errors, viruses or
interference."
_______________________________________________
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