Re: SELECT statement on relationship binding

2011-01-24 Thread Alexander Spohr
Why remove it?
Just uncheck the diamond. You can then still use it in qualifiers but it won’t 
get fetched.

atze



Am 23.01.2011 um 23:42 schrieb Mark Wardle:

 Remove the inverse relationship. 
 
 Mark
 
 -- 
 Dr. Mark Wardle
 Specialist registrar, Neurology
 (Sent from my mobile)
 
 
 On 23 Jan 2011, at 22:05, Tarun Reddy t...@cornell.edu wrote:
 
 So I've got a situation where I'm seeing a SELECT that will eventually kill 
 my performance and want to see if I can fix it before my site goes live.
 
 My EOModel has an object called a Landing and an object called a 
 SiteDefinition. The SiteDefinition defines what the site looks like and the 
 Landing represents a user landing on the site. When a user comes to the 
 site, I create a Landing and associate it with the SiteDefinition so that I 
 can capture what site a user sees and what users were on a site.
 
 SiteDefinition to many Landings
 
 When I add the relationship using this:
 aLanding.setSiteDefinitionRelationship(getSiteDefinition());
 
 WebObjects decides it needs to select all Landings where the 
 siteDefinitionID equals the one I'm assigning. This is fine in dev where I 
 may only have 17 records but eventually I may have 10s of thousands of 
 records.
 
 Is this my EOModel, and if so how can I prevent it?
 
 Thank you,
 Tarun
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/mark%40wardle.org
 
 This email sent to m...@wardle.org
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/atze%40freeport.de
 
 This email sent to a...@freeport.de

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOWODC 2011 news and community membership!

2011-01-24 Thread David Holt
Great job, Pascal. Nice to see the content of WOWODC is now available to 
everyone. Thanks for all your hard work.

David


On 2011-01-23, at 8:23 AM, Pascal Robert wrote:

 Hello everyone,
 
 Well finally, the Community Membership program is open! By becoming a paid 
 community member, you are helping us building a stronger community and the 
 money raised from membership will be use to pay hosting fees and other 
 activities (for example, having a WebEx channel for presentations about 
 WebObjects). And you also get access to past and future WOWODC content, for 
 example if you become a member now, you get the recordings from WOWODC 2010 
 AND WOWODC 2011!
 
 Community Membership is $150 for a Personal Membership, $300 for Corporate 
 Membership and it's free for students! Community members also get a $115 
 discount for one WOWODC 2011 ticket when we open up registration for WOWODC 
 2011.
 
 For registering, log to the WO Community app at:
 
  https://wocommunity.org/account
 
 And go to the Community Store to buy your membership.
 
 If you came to WOWODC 2010, you automatically became a personal member, your 
 membership will expire on June 30th 2011. Take notice that you won't get the 
 $115 discount unless you renew your membership before May 15th.
 
 Now, about WOWODC 2011. As you already know, it will be in Montreal again, on 
 July 1-2-3. Pricing will be the following:
 
   Early registration  
 Regular
   Up to May 16th 2011 
 May 17th to June 22
 - Individual ticket:  $465 USD
 $575 USD
 - Group of two (per ticket):  $430 USD
 $540 USD
 - Group of three (per ticket):$400 USD
 $510 USD
 - Group of four (per ticket): $365 USD
 $465 USD
 - Group of 5+ (per ticket):   $320 USD
 $435 USD
 - Student $200 USD
 $300 USD
 
 Registration will open soon, but you can already book your room at the hotel, 
 check the details at:
 
  http://www.wocommunity.org/wowodc11/lodging.html
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Graphical booking tool

2011-01-24 Thread Ronny Bubke
Hi folks,

i have written a graphical booking tool to support existing booking programs.

Maybe you will have a look.

http://bookingvisual.appspot.com

Thx
Ronny
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Joda Time Prototypes [was Re: Patched MySQL plugin]

2011-01-24 Thread Ramsey Gurley


On Jan 17, 2011, at 1:21 PM, Ramsey Gurley wrote:

it might also be nice to have a field in the UI for 5.4's  
adaptorValueConversionClassName as well as the newly added  
valueFactoryClassName characteristic.  The modeler doesn't seem to  
eat them though, so it's a low priority.  I'll try to remember to  
file a WOL JIRA for that.



Patch included (^_^)

http://issues.objectstyle.org/jira/browse/WOL-1202

Ramsey
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOWODC 2011 news and community membership!

2011-01-24 Thread Tim Worman
+1

This is a really great addition to the community and a great resource. Thanks 
for your effort.

One question: if my employer were going to purchase the corporate membership 
for me (and others), how would my employer go about purchasing that? And have 
it be one of my assets?

Tim Worman
UCLA GSEIS

On Jan 24, 2011, at 9:36 AM, David Holt wrote:

 Great job, Pascal. Nice to see the content of WOWODC is now available to 
 everyone. Thanks for all your hard work.
 
 David
 
 
 On 2011-01-23, at 8:23 AM, Pascal Robert wrote:
 
 Hello everyone,
 
 Well finally, the Community Membership program is open! By becoming a paid 
 community member, you are helping us building a stronger community and the 
 money raised from membership will be use to pay hosting fees and other 
 activities (for example, having a WebEx channel for presentations about 
 WebObjects). And you also get access to past and future WOWODC content, for 
 example if you become a member now, you get the recordings from WOWODC 2010 
 AND WOWODC 2011!
 
 Community Membership is $150 for a Personal Membership, $300 for Corporate 
 Membership and it's free for students! Community members also get a $115 
 discount for one WOWODC 2011 ticket when we open up registration for WOWODC 
 2011.
 
 For registering, log to the WO Community app at:
 
 https://wocommunity.org/account
 
 And go to the Community Store to buy your membership.
 
 If you came to WOWODC 2010, you automatically became a personal member, your 
 membership will expire on June 30th 2011. Take notice that you won't get the 
 $115 discount unless you renew your membership before May 15th.
 
 Now, about WOWODC 2011. As you already know, it will be in Montreal again, 
 on July 1-2-3. Pricing will be the following:
 
  Early registration  
 Regular
  Up to May 16th 2011 
 May 17th to June 22
 - Individual ticket: $465 USD
 $575 USD
 - Group of two (per ticket): $430 USD
 $540 USD
 - Group of three (per ticket):   $400 USD
 $510 USD
 - Group of four (per ticket):$365 USD
 $465 USD
 - Group of 5+ (per ticket):  $320 USD
 $435 USD
 - Student$200 USD
 $300 USD
 
 Registration will open soon, but you can already book your room at the 
 hotel, check the details at:
 
 http://www.wocommunity.org/wowodc11/lodging.html
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com
 
 This email sent to li...@thetimmy.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOWODC 2011 news and community membership!

2011-01-24 Thread Pascal Robert

Le 2011-01-24 à 13:24, Tim Worman a écrit :

 +1
 
 This is a really great addition to the community and a great resource. Thanks 
 for your effort.
 
 One question: if my employer were going to purchase the corporate membership 
 for me (and others), how would my employer go about purchasing that? And have 
 it be one of my assets?

You can create an account for your organization, make the purchase with this 
account and send the assets RSS feed to everyone in your organization.

 Tim Worman
 UCLA GSEIS
 
 On Jan 24, 2011, at 9:36 AM, David Holt wrote:
 
 Great job, Pascal. Nice to see the content of WOWODC is now available to 
 everyone. Thanks for all your hard work.
 
 David
 
 
 On 2011-01-23, at 8:23 AM, Pascal Robert wrote:
 
 Hello everyone,
 
 Well finally, the Community Membership program is open! By becoming a paid 
 community member, you are helping us building a stronger community and the 
 money raised from membership will be use to pay hosting fees and other 
 activities (for example, having a WebEx channel for presentations about 
 WebObjects). And you also get access to past and future WOWODC content, for 
 example if you become a member now, you get the recordings from WOWODC 2010 
 AND WOWODC 2011!
 
 Community Membership is $150 for a Personal Membership, $300 for Corporate 
 Membership and it's free for students! Community members also get a $115 
 discount for one WOWODC 2011 ticket when we open up registration for WOWODC 
 2011.
 
 For registering, log to the WO Community app at:
 
 https://wocommunity.org/account
 
 And go to the Community Store to buy your membership.
 
 If you came to WOWODC 2010, you automatically became a personal member, 
 your membership will expire on June 30th 2011. Take notice that you won't 
 get the $115 discount unless you renew your membership before May 15th.
 
 Now, about WOWODC 2011. As you already know, it will be in Montreal again, 
 on July 1-2-3. Pricing will be the following:
 
 Early registration  
 Regular
 Up to May 16th 2011 
 May 17th to June 22
 - Individual ticket:$465 USD
 $575 USD
 - Group of two (per ticket):$430 USD
 $540 USD
 - Group of three (per ticket):  $400 USD
 $510 USD
 - Group of four (per ticket):   $365 USD
 $465 USD
 - Group of 5+ (per ticket): $320 USD
 $435 USD
 - Student   $200 USD
 $300 USD
 
 Registration will open soon, but you can already book your room at the 
 hotel, check the details at:
 
 http://www.wocommunity.org/wowodc11/lodging.html
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com
 
 This email sent to li...@thetimmy.com
 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: troubleshooting help

2011-01-24 Thread John Larson
I've seen this too. I'll walk by the server, see all the lights on, scratch my 
head, run top and there's httpd working very hard at something. 

Whatever it is, it's very intermittent and seems to coincide when I am truly 
handling lots of resource requests, but there is obviously something else going 
on. Whatever processes they are, they must be nice because I can't discern a 
slowdown in general responsiveness. Then as soon as it started, it stops; maybe 
an hour or two though. 

About once a week I stand in front of the server and compliment it on its 
disposition, work ethic, etc. and it seems to be satisfied. :-/

John

On Jan 19, 2011, at 12:50 PM, Tim Worman li...@thetimmy.com wrote:

 I have an app that, during the course of normal usage, is starting httpd 
 processes on the server that instantly hit 100% CPU usage of one core. This 
 can happen multiple times during times when the app is under heavier load. 
 After some time I can have many httpd processes where TOP reports each using 
 100% of a core. When I try to log into the app and poke around to try and 
 reproduce the issue, I am unable.
 
 Does anyone have any pointers as to how I can try to narrow down specific 
 requests or conditions that may be causing these processes to be spawned?
 
 This app was just recently moved to MOSXS/Intel. Previously it ran on MOSXS 
 10.5/PowerPC and I didn't see the same problems there. Truthfully though, it 
 could be caused by some other change I made since but I thought the 
 architecture could be an important factor if someone else has seen similar 
 symptoms.
 
 Tim Worman
 UCLA GSEIS
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com
 
 This email sent to the_lars...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


java.lang.NoClassDefFoundError

2011-01-24 Thread David Avendasora
Hi all,

I've been refactoring/modernizing a rather large app that has had the model as 
part of the application. I've split out the Model, the model classes and a 
bunch of supporting classes that are required by the model classes into a new 
Wonder Framework project.

I've gotten everything to compile correctly in both the new framework project 
and the original application in eclipse, but when I the application it in 
eclipse, the app fails stating that it can't initialize the model files. (see 
stack trace below)

I know that this is almost certainly a classpath issue, but the Framework is 
added to the build path just as the Wonder and WebObjects frameworks are. The 
framework only exists as source code in the Eclipse workspace, and I have tried 
it with bundles enabled, and disabled and I get the exact same results.

Why would an app not be able to find classes at runtime, when it can find them 
in the source code? It's got to be something incredibly simple that I'm just 
overlooking.

Dave


com.webobjects.foundation.NSForwardException [java.lang.NoClassDefFoundError] 
Could not initialize class 
com.mycompany.ac.model.GlobalLU:java.lang.NoClassDefFoundError: Could not 
initialize class com.mycompany.ac.model.GlobalLU
at 
com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:43)
at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1140)
at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at 
com.webobjects.appserver.WOApplication.valueForKey(WOApplication.java:5575)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:216)
at 
com.webobjects.appserver.WOApplication.valueForKeyPath(WOApplication.java:5645)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:217)
at 
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
at 
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at 
er.extensions.components._private.ERXWOString.appendToResponse(ERXWOString.java:70)
at 
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
at 
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
at 
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
at 
com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)
at 
com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)
at 
com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)
at 
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:278)
at 
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
at 
er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
at 
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
at com.mycompany.ac.Application.dispatchRequest(Application.java:178)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
com.mycompany.ac.model.GlobalLU
at com.mycompany.ac.Application.currentProgram(Application.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
com.mycompany.ac.KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:35)
at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
... 26 more ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  

Re: java.lang.NoClassDefFoundError

2011-01-24 Thread Farrukh Ijaz
Hi Dave,Is your framework is checked under Order and Export tab of the Java Build Path? May be that would be the reason for this NoClassDefFoundError.FarrukhOn 2011-01-25, at 9:00 AM, David Avendasora wrote:Hi all,I've been refactoring/modernizing a rather large app that has had the model as part of the application. I've split out the Model, the model classes and a bunch of supporting classes that are required by the model classes into a new Wonder Framework project.I've gotten everything to compile correctly in both the new framework project and the original application in eclipse, but when I the application it in eclipse, the app fails stating that it can't initialize the model files. (see stack trace below)I know that this is almost certainly a classpath issue, but the Framework is added to the build path just as the Wonder and WebObjects frameworks are. The framework only exists as source code in the Eclipse workspace, and I have tried it with bundles enabled, and disabled and I get the exact same results.Why would an app not be able to find classes at runtime, when it can find them in the source code? It's got to be something incredibly simple that I'm just overlooking.Davecom.webobjects.foundation.NSForwardException [java.lang.NoClassDefFoundError] Could not initialize class com.mycompany.ac.model.GlobalLU:java.lang.NoClassDefFoundError: Could not initialize class com.mycompany.ac.model.GlobalLU	at com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:43)	at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1140)	at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)	at com.webobjects.appserver.WOApplication.valueForKey(WOApplication.java:5575)	at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)	at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:216)	at com.webobjects.appserver.WOApplication.valueForKeyPath(WOApplication.java:5645)	at com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)	at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:217)	at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)	at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)	at er.extensions.components._private.ERXWOString.appendToResponse(ERXWOString.java:70)	at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)	at com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)	at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)	at com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)	at com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)	at com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)	at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:278)	at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)	at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124)	at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)	at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)	at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)	at com.mycompany.ac.Application.dispatchRequest(Application.java:178)	at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)	at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)	at java.lang.Thread.run(Thread.java:680)Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.mycompany.ac.model.GlobalLU	at com.mycompany.ac.Application.currentProgram(Application.java:90)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at com.mycompany.ac.KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:35)	at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)	... 26 more ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your 

Re: java.lang.NoClassDefFoundError

2011-01-24 Thread David Avendasora
Hi Farrukh,

I did not have it checked, and checking it made no difference. As far as I 
know, the only things you really need to mark for export are .jar libraries 
that you want to make sure are included in the build. I don't think that makes 
any difference when you are running in Eclipse. But maybe I'm wrong...

Dave


On Jan 25, 2011, at 1:08 AM, Farrukh Ijaz wrote:

 Hi Dave,
 
 Is your framework is checked under Order and Export tab of the Java Build 
 Path? May be that would be the reason for this NoClassDefFoundError.
 
 Screen shot 2011-01-25 at 9.06.37 AM.png
 
 Farrukh
 
 On 2011-01-25, at 9:00 AM, David Avendasora wrote:
 
 Hi all,
 
 I've been refactoring/modernizing a rather large app that has had the model 
 as part of the application. I've split out the Model, the model classes and 
 a bunch of supporting classes that are required by the model classes into a 
 new Wonder Framework project.
 
 I've gotten everything to compile correctly in both the new framework 
 project and the original application in eclipse, but when I the application 
 it in eclipse, the app fails stating that it can't initialize the model 
 files. (see stack trace below)
 
 I know that this is almost certainly a classpath issue, but the Framework is 
 added to the build path just as the Wonder and WebObjects frameworks are. 
 The framework only exists as source code in the Eclipse workspace, and I 
 have tried it with bundles enabled, and disabled and I get the exact same 
 results.
 
 Why would an app not be able to find classes at runtime, when it can find 
 them in the source code? It's got to be something incredibly simple that I'm 
 just overlooking.
 
 Dave
 
 
 com.webobjects.foundation.NSForwardException 
 [java.lang.NoClassDefFoundError] Could not initialize class 
 com.mycompany.ac.model.GlobalLU:java.lang.NoClassDefFoundError: Could not 
 initialize class com.mycompany.ac.model.GlobalLU
  at 
 com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:43)
  at 
 com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1140)
  at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
  at 
 com.webobjects.appserver.WOApplication.valueForKey(WOApplication.java:5575)
  at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
  at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:216)
  at 
 com.webobjects.appserver.WOApplication.valueForKeyPath(WOApplication.java:5645)
  at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
  at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:217)
  at 
 com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
  at 
 com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
  at 
 er.extensions.components._private.ERXWOString.appendToResponse(ERXWOString.java:70)
  at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
  at 
 com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
  at 
 com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
  at 
 com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)
  at 
 com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)
  at 
 com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)
  at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:278)
  at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
  at 
 er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124)
  at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
  at 
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
  at 
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
  at com.mycompany.ac.Application.dispatchRequest(Application.java:178)
  at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
  at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
  at java.lang.Thread.run(Thread.java:680)
 Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
 com.mycompany.ac.model.GlobalLU
  at com.mycompany.ac.Application.currentProgram(Application.java:90)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 

Re: java.lang.NoClassDefFoundError

2011-01-24 Thread Farrukh Ijaz
What about the generated entity classes? Did you move them to the new framework 
as part of refactoring or they are part of the application? Just trying to 
guess what could be the reason as we have many frameworks which contain models 
and we have re-factored some of them and found no problem at all.

Farrukh

On 2011-01-25, at 9:20 AM, David Avendasora wrote:

 Hi Farrukh,
 
 I did not have it checked, and checking it made no difference. As far as I 
 know, the only things you really need to mark for export are .jar libraries 
 that you want to make sure are included in the build. I don't think that 
 makes any difference when you are running in Eclipse. But maybe I'm wrong...
 
 Dave
 
 
 On Jan 25, 2011, at 1:08 AM, Farrukh Ijaz wrote:
 
 Hi Dave,
 
 Is your framework is checked under Order and Export tab of the Java Build 
 Path? May be that would be the reason for this NoClassDefFoundError.
 
 Screen shot 2011-01-25 at 9.06.37 AM.png
 
 Farrukh
 
 On 2011-01-25, at 9:00 AM, David Avendasora wrote:
 
 Hi all,
 
 I've been refactoring/modernizing a rather large app that has had the model 
 as part of the application. I've split out the Model, the model classes and 
 a bunch of supporting classes that are required by the model classes into a 
 new Wonder Framework project.
 
 I've gotten everything to compile correctly in both the new framework 
 project and the original application in eclipse, but when I the application 
 it in eclipse, the app fails stating that it can't initialize the model 
 files. (see stack trace below)
 
 I know that this is almost certainly a classpath issue, but the Framework 
 is added to the build path just as the Wonder and WebObjects frameworks 
 are. The framework only exists as source code in the Eclipse workspace, and 
 I have tried it with bundles enabled, and disabled and I get the exact same 
 results.
 
 Why would an app not be able to find classes at runtime, when it can find 
 them in the source code? It's got to be something incredibly simple that 
 I'm just overlooking.
 
 Dave
 
 
 com.webobjects.foundation.NSForwardException 
 [java.lang.NoClassDefFoundError] Could not initialize class 
 com.mycompany.ac.model.GlobalLU:java.lang.NoClassDefFoundError: Could not 
 initialize class com.mycompany.ac.model.GlobalLU
 at 
 com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:43)
 at 
 com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1140)
 at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
 at 
 com.webobjects.appserver.WOApplication.valueForKey(WOApplication.java:5575)
 at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
 at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:216)
 at 
 com.webobjects.appserver.WOApplication.valueForKeyPath(WOApplication.java:5645)
 at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149)
 at 
 com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:217)
 at 
 com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
 at 
 com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
 at 
 er.extensions.components._private.ERXWOString.appendToResponse(ERXWOString.java:70)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
 at 
 com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
 at 
 com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)
 at 
 com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)
 at 
 com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)
 at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:278)
 at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
 at 
 er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124)
 at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at 
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
 at 
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
 at com.mycompany.ac.Application.dispatchRequest(Application.java:178)
 at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at