Re: Wonder into WO 5.3 Xcode Project
Re: Wonder into WO 5.3 Xcode Project
- Subject: Re: Wonder into WO 5.3 Xcode Project
- From: Lachlan Deck <email@hidden>
- Date: Tue, 30 Dec 2008 19:17:57 +1100
Hi Ute,
On 29/12/2008, at 7:31 PM, ute Hoffmann wrote:
Hallo,
I would like to integrate wonder into one of my projects.
I work with Java 1.4, Xcode and WO 5.3. I do not work with eclipse.
You'll be limiting your possible mailing list replies there ;-)
I did (except of the Propertyfiles) all steps in the wiki with a new
project, but cannot even build it. It cannot recognize
the ERX... 's and fails there.
Have you
- installed the Wonder frameworks into /Library/Frameworks?
- added those frameworks (ERExtensions, ERJars, ERPrototypes,
WOExtensions) to your Xcode project (choosing the 'Application Server'
target)?
The three required Frameworks are linked in. I even removed the
Origial WebObjects WOExtensions framework from
the project to make sure that is not the problem.
What I cannot do ist this:
Add minimal content to Properties file. To get minimal content,
create a temporary empty project using the WOnderApplication WOLips
project template and copy/paste the contents from that template's
Properties file.
I have no version of WOLips running or even set up.
1) Does not having changed the properties File lead to "cannot
resolve Symbol" errors with e.g. ERXApplication, ERXDirectAction,
ERXSession ...
2) Which Version of Wonder is for me, I copied the Frameworks from
the last build for 1.4, WO 5.3 Version into my frameworks folder,
its Wonder-4.0.0.601-Frameworks-53
In theory Wonder 4.x is 1.4 friendly. In practice I found there was
one thing in ERXApplication that I had to fix. I can't recall right
now what that was.
Are you seriously restricted to Java 1.4? WO5.3.3 will run just fine
under 1.5.
3) Can someone with a running WOLips Version please send me the
minimal properties I need to include into my properties File.
For my Wonder 4 stuff, I've got the following
er.extensions.ERXApplication.defaultRequestHandlerKey=wa
er.extensions.ERXApplication.useEditingContextUnlocker=true
er.extensions.ERXEC.defaultAutomaticLockUnlock=true
er.extensions.ERXEC.useSharedEditingContext=false
er.extensions.ERXEC.defaultCoalesceAutoLocks=true
er.extensions.ERXNSLogLog4jBridge=DEBUG
ognl.active = true
ognl.helperFunctions=true
ognl.inlineBindings=true
ognl.parseStandardTags=true
er.extensions.ERXProperties.OptionalConfigurationFiles=(Properties/
log4j.properties,Properties/jdbc.properties,Properties/
runtime.properties)
### Optional stuff ####
er.extensions.ERXModelGroup.prototypeModelNames=ISHEOPrototypes
#er.extensions.ERXAdaptorChannelDelegate.enabled=true
#er
.extensions
.ERXJDBCAdaptor.className=com.webobjects.eoaccess.ISHJDBCAdaptor
er
.extensions
.ERXClassDescription.factoryClass=ish.wonder.ISHClassDescriptionFactory
er
.extensions
.ERXDatabaseContext
.className=com.ish.webobjects.eoaccess.ISHDatabaseContext
-----------------------------
Properties/log4j.properties:
-----------------------------
# log4j appender and formatting
log4j.rootLogger=INFO, A1, myMail
log4j.loggerFactory=er.extensions.ERXLogger$Factory
# A1 is a ConsoleAppender
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=er.extensions.ERXPatternLayout
log4j.appender.A1.layout.ConversionPattern=%r %-5p [%t] (%C{3}, %M,
%L) - %n%m%n%n
# A2 is a DailyRollingFileAppender
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=/var/log/webobjects_apps/my.woa.log
log4j.appender.A2.datePattern='.'yyyy-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=er.extensions.ERXPatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] (%c:
%L) - %m%n
# myMail is the SMTPAppender
log4j.appender.myMail=org.apache.log4j.net.SMTPAppender
log4j.appender.myMail.Threshold=ERROR
log4j.appender.myMail.BufferSize=10
log4j.appender.myMail.From=email@hidden
log4j.appender.myMail.To=email@hidden
log4j.appender.myMail.SMTPHost=localhost
log4j.appender.myMail.Subject=Log4J Error Message (onCourse.woa)
log4j.appender.myMail.layout=er.extensions.ERXPatternLayout
log4j.appender.myMail.layout.ConversionPattern=%r %-5p %d{ISO8601}
[%t] %n%n (%C, %M, %F:%L) - %n%n%m%n
################################################################################
# This is needed to see all startup logs (requires root logger INFO)
log4j.logger.NSLog=DEBUG
################################################################################
4) What I plan is to "wonderize" a couple of Applications which are
very closely connected with a central underlying Framework,
which contains Master Application Files and so on. Thus I suppose I
need to do:
a) Link Wonder into the Applcation(s)
b) Link Wonder into the main Framework - Thus: Do I need to put the
minimal properties into both the Framework and the Application if
the Application is a mere Stub?
Any help appreciated.
Thanks a lot!
Regards,
Ute
_______________________________________________
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
with regards,
--
Lachlan Deck
_______________________________________________
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