Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My first Eclipse D2W



¡Hola Dino!


On Jul 28, 2009, at 10:55 AM, Dino Strausz wrote:

Hola tod@s!

Finally, I am trying, no without some frustrations, to move to Eclipse and the "new" tools... recall please I am an old dog, and is hard to me to learn new tricks...
I did the following:


1. created a sample database (a couple of tables) in Postgres
2. created a model using Alex's EOModeler
3. created a D2W project within Eclipse, importing from the wizard the model
4. pushed the green button


My Safari started with the following error on the page:

Application: JavaFoundation
Error: java.lang.IllegalStateException exception
Reason:
java.lang.IllegalStateException: An Exception occurred while generating the Exception page 'WOExceptionPage'. This is most likely due to an error in 'WOExceptionPage' itself or WebObjects encountered an uncaught exception while creating a Session object.



Below are the logs of the original Exception which occured in com.webobjects.appserver.WOApplication, then the later Exception in WOExceptionPage.


Original Exception:
java.lang.IllegalArgumentException: <com.webobjects.appserver.WOApplication> Class 'Session' exists (interface org.apache.axis.session.Session) but is not a subclass of WOSession.

It is picking up the wrong session. Using WO 5.3? You really want / need to use Wonder if you are doing D2W. Wonder will fix this problem.


If you really won't use Wonder (and you will regret it), add this to you Application class:

protected Class _sessionClass() {
	return your.package.here.Session.class;
}


And change "your.package.here" to the package your Session class is in.


Chuck


at com .webobjects.appserver.WOApplication._sessionClass(WOApplication.java: 1925)
at com .webobjects .appserver.WOApplication.createSessionForRequest(WOApplication.java: 1964)
at com .webobjects .appserver .WOApplication._initializeSessionInContext(WOApplication.java:2101)
at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369)
at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:442)
at com .webobjects .appserver.WOApplication.dispatchRequest(WOApplication.java:1678)
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:613)



What did I wrong??

Dino
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

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

This email sent to email@hidden
References: 
 >My first Eclipse D2W (From: Dino Strausz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.