• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Deployment error on start up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deployment error on start up


  • Subject: Re: Deployment error on start up
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 20 May 2008 19:33:52 -0700


On May 20, 2008, 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.

What problem did that cause?


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

I had hoped that it was the iPhone SDK changes that caused this. It sounds like it still happens after you re-installed 5.3? Sigh.



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).

Mike has some very highly anticipated changes to WOLips classpath handling that he is sitting on. I expect it will be a while before he is ready to commit them.



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

There is the jar file that has the ERXApplication class that it says it can't find. I did notice that this and the next few paths have an extra slash: Contents//Library. My first suspicion would lie there. Check the files in woproject/ (or the build.xml or ... depending on how you are including these.




/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

That is the last of the questionable paths.


/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
<snip>

/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...

MacOSClassPath is what gets used. MacOSXServerClassPath is, AFAIK, a obsolete relic of an earlier time.



I'm loving Wonder. In development at least;-) I am getting so desperate to get this ridiculously simple app deployed... Thanks again.

We are close. I think...


Chuck



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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


;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@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


--

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









--

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Deployment error on start up
      • From: William Hatch <email@hidden>
    • Re: Deployment error on start up
      • From: Mike Schrag <email@hidden>
References: 
 >Deployment error on start up (From: William Hatch <email@hidden>)
 >Re: Deployment error on start up (From: David LeBer <email@hidden>)
 >Re: Deployment error on start up (From: William Hatch <email@hidden>)
 >Re: Deployment error on start up (From: William Hatch <email@hidden>)
 >Re: Deployment error on start up (From: David LeBer <email@hidden>)
 >Re: Deployment error on start up (From: Chuck Hill <email@hidden>)
 >Re: Deployment error on start up (From: William Hatch <email@hidden>)
 >Re: Deployment error on start up (From: David LeBer <email@hidden>)
 >Re: Deployment error on start up (From: William Hatch <email@hidden>)
 >Re: Deployment error on start up (From: Chuck Hill <email@hidden>)
 >Re: Deployment error on start up (From: William Hatch <email@hidden>)

  • Prev by Date: Re: Need WWDC 08 ticket [OT]
  • Next by Date: Re: Deployment error on start up
  • Previous by thread: Re: Deployment error on start up
  • Next by thread: Re: Deployment error on start up
  • Index(es):
    • Date
    • Thread