Hi William,
We have had this problem before: try looking in your "Project"/
woproject/ant.frameworks.wo.wolocalroot file and see if all your
frameworks are indeed included there. We sometimes noticed that some
are missing there, even if included in "Project"/"WebObjects
Frameworks". Hope this helps.
With Kind Regards,
Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,
WEBAPPZ Systems, Inc.
HQ: (+1) 604.921.1333
Fax: (+1) 604.921.4313
Cell: (+1) 604.787.2532
On 20-May-08, at 9:19 AM, William Hatch wrote:
OK, so extreme stupidity accounts for what we'll refer to as initial
problem, at least I think anyway as I now have new problems. Turns
out the iPhone SDK does install 5.4.2, which overwrote all the
frameworks in /System/Lib.../Frameworks. No problem I say, simply
run the convenient wo53 script and I'll be back in biz. Project
rebuilt, manually configured the MacOSClasspath.txt and
MacOSXSClasspath.txt to get rid of the ${jvm} bad argument and fix
the ERExtensions not showing up before ...foundation in those files,
(and it would be great to at least figure out how to make eclipse do
the right thing here; configuring the build path didn't spotlight
any obvious answers). Anyway, as a refresher, I've got a built .woa
which is completely embedded; all System and Local frameworks are
included in the built .woa. Now, when trying to start up I get this:
Generated classpath:
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Resources/Java/
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Resources/Java/cfiphoneweb.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents//Library/Frameworks/JavaEOAccess.framework/Resources/Java/
javaeoaccess.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents//Library/Frameworks/JavaEOControl.framework/Resources/Java/
javaeocontrol.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents//Library/Frameworks/ERExtensions/framework/Resources/Java/
ERExtensions.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents//Library/Frameworks/JavaFoundation.framework/Resources/Java/
javafoundation.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents//Library/Frameworks/JavaJDBCAdaptor.framework/Resources/
Java/javajdbcadaptor.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents//Library/Frameworks/JavaWebObjects.framework/Resources/Java/
javawebobjects.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents//Library/Frameworks/JavaXML.framework/Resources/Java/
javaxml.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/CFPhoneEO_FW.framework/Resources/Java/
cfphoneeo_fw.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERCaptcha.framework/Resources/Java/
commons-collections-3.2.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERCaptcha.framework/Resources/Java/
ERCaptcha.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERCaptcha.framework/Resources/Java/
jcaptcha-all-1.0-RC3.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/
erxservletadaptor.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/
erxwo54.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/
icu4j-3_8_1.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/junit.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/
log4j-1.2.14.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-
api-1.5.0.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-
log4j12-1.5.0.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJavaMail.framework/Resources/Java/
activation-1.0.2.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJavaMail.framework/Resources/Java/
ERJavaMail.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJavaMail.framework/Resources/Java/
jakarta-oro-2.0.6.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJavaMail.framework/Resources/Java/
mailapi.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERJavaMail.framework/Resources/Java/
smtp.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERPrototypes.framework/Resources/Java/
ERPrototypes.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERSelenium.framework/Resources/Java/
ERSelenium.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERSelenium.framework/Resources/Java/
selenium-java-client-driver-sources.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/ERSelenium.framework/Resources/Java/
selenium-java-client-driver.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/FrontBasePlugIn.framework/Resources/Java/
FrontBasePlugIn.jar
/Library/WebObjects/Applications/locations-prod/CFiPhoneWeb.woa/
Contents/Library/Frameworks/JavaWOExtensions.framework/Resources/
Java/JavaWOExtensions.jar
/Library/WebObjects/Extensions/activation.jar
/Library/WebObjects/Extensions/axis-ant.jar
/Library/WebObjects/Extensions/axis.jar
/Library/WebObjects/Extensions/commons-discovery.jar
/Library/WebObjects/Extensions/commons-logging.jar
/Library/WebObjects/Extensions/dom.jar
/Library/WebObjects/Extensions/FastInfoset.jar
/Library/WebObjects/Extensions/frontbasejdbc.jar
/Library/WebObjects/Extensions/http.jar
/Library/WebObjects/Extensions/impessa.worldgaming.client.jar
/Library/WebObjects/Extensions/jaxb-api.jar
/Library/WebObjects/Extensions/jaxb-impl.jar
/Library/WebObjects/Extensions/jaxb-xjc.jar
/Library/WebObjects/Extensions/jaxp-api.jar
/Library/WebObjects/Extensions/jaxrpc.jar
/Library/WebObjects/Extensions/jaxws-api.jar
/Library/WebObjects/Extensions/jaxws-rt.jar
/Library/WebObjects/Extensions/jaxws-tools.jar
/Library/WebObjects/Extensions/jsr173_api.jar
/Library/WebObjects/Extensions/jsr181-api.jar
/Library/WebObjects/Extensions/jsr250-api.jar
/Library/WebObjects/Extensions/junit-4.2.jar
/Library/WebObjects/Extensions/log4j-1.2.8.jar
/Library/WebObjects/Extensions/logkit-1.0.1.jar
/Library/WebObjects/Extensions/mail.jar
/Library/WebObjects/Extensions/
ostermillerutils_1_05_00_for_java_1_4.jar
/Library/WebObjects/Extensions/resolver.jar
/Library/WebObjects/Extensions/saaj-api.jar
/Library/WebObjects/Extensions/saaj-impl.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/sjsxp.jar
/Library/WebObjects/Extensions/stax-ex.jar
/Library/WebObjects/Extensions/streambuffer.jar
/Library/WebObjects/Extensions/wounittest2.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/xalan.jar
/Library/WebObjects/Extensions/xercesImpl.jar
/Library/WebObjects/Extensions/
java.lang.NoClassDefFoundError: er/extensions/ERXApplication
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
This would appear to indicate that the two (and which one should it
be using? MacOS or MacOSXS? we're running on Server, so I'd think
the latter) are being ignored. So, what next...
I'm loving Wonder. In development at least;-) I am getting so
desperate to get this ridiculously simple app deployed... Thanks
again.
Bill
On May 19, 2008, at 10:35 PM, Chuck Hill wrote:
On May 19, 2008, at 7:29 PM, William Hatch wrote:
Hmm, interesting. But, wouldn't the rest of the apps not run
either in that case?
It probably depends on how they are configured. WO is notoriously
fickle (also called buggy) in this area. I believe that Pierre has
been fixing many of the inconsistencies. I am very much looking
forward to that!
Chuck
On May 19, 2008, at 10:18 PM, David LeBer wrote:
On 19-May-08, at 9:54 PM, William Hatch wrote:
Hi Chuck,
The particular server it's running on is about a year old, runs
several other apps no problem (all 5.3) so I don't _think that
would be the problem, but on the other hand, I'm extremely
reluctant to question you (or David, for that matter;-)
To be completely honest, I don't know where WOLips/Ant pulls the
$jvm from. Last time it happened to me, I hacked the ClassPath
file and went on with my business figuring I'd track it down when
I had time. But it hasn't reoccurred.
I am still having issues with the "No instance available", which
may be related to this line in the logs during start up:
May 19 20:24:55 locations[N/A] (ERXNSLogLog4jBridge.java:44)
DEBUG NSLog - Created adaptor of class WODefaultAdaptor on port
2004 and address worldgaming.codefab.com.codefab.com/
199.103.21.241 with WOWorkerThread minimum of 16 and maximum of
256
May 19 20:24:55 locations[2004] (ERXNSLogLog4jBridge.java:44)
DEBUG NSLog - Creating LifebeatThread now with: locations 2004
worldgaming.codefab.com.codefab.com/199.103.21.241 1085 30000
So, it looks like it's adding an extra domain.TLD somehow. I
have the WOHost property set in Monitor, and later on in the
log, it shows properly. If I try to connect using the port, I
get a "...unexpectedly dropped the connection..." Safari
message. Any thoughts here?
Ooo! Ooo! I know this one :-) DNS error. You've got a an A record
or a CNAME without a trailing dot.
worldgaming.codefab.com A 199.103.21.241
should be:
worldgaming.codefab.com. A 199.103.21.241
Notice the dot after the domain. Without it Bind thinks it's a
partial name and appends the rest of the domain to it.
Bill Hatch
Macaulay Library
4-2116
On May 19, 2008, at 8:11 PM, Chuck Hill wrote:
On May 19, 2008, at 5:02 PM, David LeBer wrote:
On 19-May-08, at 7:45 PM, William Hatch wrote:
Oh jeez, sorry, that last one should have been:
Reading MacOSClassPath.txt ...
Launching myApp.woa ...
${jvm} -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/
System" -DWOLocalRootDirectory="" -DWOUserDirectory="/Library/
WebObjects/Applications/locations-prod/myApp.woa" -
DWOEnvClassPath="" -
DWOApplicationClass=com.codefab.Application -
DWOPlatform=MacOS -Dcom.webobjects.pid=28757 -classpath
WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap
./CFiPhoneWeb: line 1: exec: -X: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
Ahh, that's better.
The problem is the ${jvm} value in the exec statement.
That probably should be 'java'
What doest the #JVM == line of your AppName.woa/Contents/MacOS/
MacOS*ClassPath.txt say?
IIRC, this can also come from an incorrect / complete install
of WO. If it can't find WOBootstrap.jar, it uses the WO 5.2
launch scripts and things go wrong. Mike posted something on
this recently, but I don't have the message at hand. I _think_
this is the same error. A few people have been bitten by it
and some seemed to have correct install so let us know when
you figure it out.
Chuck
--
Practical WebObjects - for developers who want to increase
their overall knowledge of WebObjects or who are trying to
solve specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/wh72%40cornell.edu
This email sent to [EMAIL PROTECTED]
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
This email sent to [EMAIL PROTECTED]
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects_lists%40webappz.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]