Re: Class 'Session' exists but is not a subclass of WOSession?
Re: Class 'Session' exists but is not a subclass of WOSession?
- Subject: Re: Class 'Session' exists but is not a subclass of WOSession?
- From: Chuck Hill <email@hidden>
- Date: Thu, 3 Jan 2008 12:00:40 -0800
On Jan 2, 2008, at 10:17 PM, Aaron Thompson wrote:
Hi, I'm building a webapp from the WOnderApplication project
template, but I'm getting a rather confusing error when I try to
debug. This is with WO 5.4, OS X 10.5, and WOLips/WOnder nightly.
Here's the error:
NSLog -
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.IllegalArgumentException: <org.myapp.Application> Class
'Session' exists (interface org.apache.axis.session.Session) but is
not a subclass of WOSession.
[2008-1-3 6:1:7 CST] <WorkerThread0>
java.lang.IllegalArgumentException: <org.myapp.Application> Class
'Session' exists (interface org.apache.axis.session.Session) but is
not a subclass of WOSession.
at com.webobjects.appserver.WOApplication._sessionClass
(WOApplication.java:1925)
at com.webobjects.appserver.WOApplication.createSessionForRequest
(WOApplication.java:1964)
at er.extensions.ERXApplication.createSessionForRequest
(ERXApplication.java:1555)
at
com.webobjects.appserver.WOApplication._initializeSessionInContext
(WOApplication.java:2101)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedApplication(WOComponentRequestHandler.java:319)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
uest(WOComponentRequestHandler.java:369)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
est(WOComponentRequestHandler.java:442)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1678)
at er.extensions.ERXApplication.dispatchRequest
(ERXApplication.java:1322)
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)
I feel like it's some sort of classpath issue, but I couldn't find
any org.apache.axis.session.Session imports or anything, and both
my Application and Session classes don't have any funny code in
them. Any ideas?
I am pretty this is the result of bugs in NSBundle. I think they
should be fixed when 5.4.1 is released. Someone posted a hack
recently. I think it was adding this to Application:
protected Class _sessionClass()
{
return your.own.Session.class;
}
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