Hi Jeff,
Somehow it is picking up a Session class from one of the frameworks
included in your build path. As it's saying:
"org.apache.axis.session.Session" - which is _not_ the right session
class.
Instructions on how to fix are here:
http://lists.apple.com/archives/webobjects-dev/2008/Jan/msg00063.html
Dave
On Aug 1, 2008, at 2:31 PM, Jeff Schmitz wrote:
OK, I got the PracticalUtilities JUnit tests to run with no Failures
and 4 Errors, so I've moved on to chapter 3 app. On startup I get
the below exception. Seems it gets confused as to what Session
class to use. I looked for references in the code to Session, but
the only thing I came up with was the Session class itself (which
extends WOSession), so I'm not sure what's going on:
com.apress.practicalwo.chap3app.Application> Class 'Session' exists
(interface org.apache.axis.session.Session) but is not a subclass of
WOSession.
[2008-8-1 19:21:1 CDT] <WorkerThread0>
java.lang.IllegalArgumentException:
<com.apress.practicalwo.chap3app.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
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:445)
at
com
.webobjects
.appserver.WOApplication.dispatchRequest(WOApplication.java:1678)
at
com
.apress
.practicalwo.chap3app.Application.dispatchRequest(Application.java:98)
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)
On Aug 1, 2008, at 12:25 PM, Chuck Hill wrote:
On Aug 1, 2008, at 10:09 AM, Jeff Schmitz wrote:
Hello,
I'm trying to setup the Practical Webobjects code in Eclipse
following the books Appendix. I'm getting stuck on trying to run
the JUnit tests on the PracticalUtilities project. Everything
seems to go fine, but the "Run" button on the Run Diaglog stays
"greyed out". I did select the "Run a single test" radio button
and entered the Test class
(com.apress.preacticalwo.practicalutilities.tests.AllTests), along
with entering the specified workding directory.
The project itself does have a red X on it, but nothing in the
project has one, so I've no idea why. Any ideas on what may be
causing this? I was able to run the database setup scripts fine.
That red X might be important. Open the Problems view and have a
look.
Chuck
--
Chuck Hill Senior Consultant / VP Development
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%40avendasora.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]