#1 NetstruxrCaseaStudy example app fails

open
nobody
None
5
2012-12-07
2002-11-06
Anonymous
No

When I build a the example, and click on the "Sign Up User" I get
the following exception:
ERD2WInspectPageTemplate
[2002-11-06 08:44:05 PST] <WorkerThread0> ** DirectToWeb -
page named ERD2WInspectPageTemplate not found in runtime;
defaulting to ERD2WInspectPageTemplate. Please compile your
project if you recently generated a page template. If instead you
are trying to eliminate all uses of page template
ERD2WInspectPageTemplate, then make sure you also remove
all the rules in the d2wmodel file that reference it.
[2002-11-06 08:44:05 PST] <WorkerThread0> <
com.webobjects.appserver._private.WOComponentDefinition>
WARNING: Unable to find component class named
"ERD2WInspectPageTemplate". If this is not intended to be a
classless component, check your framework settings and the
contents of your classpath file (in the .woa's Contents/<
PLATFORM_NAME> subdirectory).
[2002-11-06 08:44:05 PST] <WorkerThread0> <DirectAction>:
Exception in performActionNamed() on the action "signUp" with
the message: java.lang.ClassCastException:
com.webobjects.appserver.WOComponent
[2002-11-06 08:44:05 PST] <WorkerThread0>
java.lang.ClassCastException:
com.webobjects.appserver.WOComponent
at DirectAction.signUpAction(DirectAction.java:64)
at java.lang.reflect.Method.invoke(Native Method)
at
com.webobjects.appserver.WODirectAction.performActionNamed(
WODirectAction.java:151)
at
com.webobjects.appserver._private.WODirectActionRequestHandl
er._handleRequest(WODirectActionRequestHandler.java:174)
at
com.webobjects.appserver._private.WODirectActionRequestHandl
er.handleRequest(WODirectActionRequestHandler.java:307)
at
er.extensions.ERXDirectActionRequestHandler.handleRequest(ER
XDirectActionRequestHandler.java:29)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOA
pplication.java:1133)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(W
OWorkerThread.java:158)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWor
kerThread.java:231)
at java.lang.Thread.run(Thread.java:491)
[2002-11-06 08:44:05 PST] <WorkerThread0> <
er.extensions.ERXDirectActionRequestHandler>: Exception
occurred while handling action named "signUp" on direct action
class "null" :java.lang.ClassCastException:
com.webobjects.appserver.WOComponent
[2002-11-06 08:44:05 PST] <WorkerThread0>
java.lang.ClassCastException:
com.webobjects.appserver.WOComponent
at DirectAction.signUpAction(DirectAction.java:64)
at java.lang.reflect.Method.invoke(Native Method)
at
com.webobjects.appserver.WODirectAction.performActionNamed(
WODirectAction.java:151)
at
com.webobjects.appserver._private.WODirectActionRequestHandl
er._handleRequest(WODirectActionRequestHandler.java:174)
at
com.webobjects.appserver._private.WODirectActionRequestHandl
er.handleRequest(WODirectActionRequestHandler.java:307)
at
er.extensions.ERXDirectActionRequestHandler.handleRequest(ER
XDirectActionRequestHandler.java:29)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOA
pplication.java:1133)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(W
OWorkerThread.java:158)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWor
kerThread.java:231)
at java.lang.Thread.run(Thread.java:491)
**** Caught: java.lang.ClassCastException:
com.webobjects.appserver.WOComponent
Extra Information {}
java.lang.ClassCastException:
com.webobjects.appserver.WOComponent
at DirectAction.signUpAction(DirectAction.java:64)
at java.lang.reflect.Method.invoke(Native Method)
at
com.webobjects.appserver.WODirectAction.performActionNamed(
WODirectAction.java:151)
at
com.webobjects.appserver._private.WODirectActionRequestHandl
er._handleRequest(WODirectActionRequestHandler.java:174)
at
com.webobjects.appserver._private.WODirectActionRequestHandl
er.handleRequest(WODirectActionRequestHandler.java:307)
at
er.extensions.ERXDirectActionRequestHandler.handleRequest(ER
XDirectActionRequestHandler.java:29)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOA
pplication.java:1133)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(W
OWorkerThread.java:158)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWor
kerThread.java:231)
at java.lang.Thread.run(Thread.java:491)
WARN 08:44:05 (er.extensions.ERXApplication:239) - Exception
caught, com.webobjects.appserver.WOComponent extra info: {}

Discussion

  • Ray Kiddy
    Ray Kiddy
    2007-07-08

    Logged In: YES
    user_id=817267
    Originator: NO

    I get an error immediately upon launching the app. Is there anything that can be done to give this some TLC?

    [2007-07-08 13:43:40 PDT] <main> java.lang.NoClassDefFoundError
    at er.corebusinesslogic.ERCoreBusinessLogic.class$(ERCoreBusinessLogic.java:54)
    at er.corebusinesslogic.ERCoreBusinessLogic.<clinit>(ERCoreBusinessLogic.java:69)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)
    at com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:291)
    at com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:2553)
    at com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:710)
    at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:368)
    at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:187)
    at com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5081)
    at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:551)
    at er.extensions.ERXAjaxApplication.<init>(ERXAjaxApplication.java:24)
    at er.extensions.ERXApplication.<init>(ERXApplication.java:471)
    at Application.<init>(Application.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
    at Application.main(Application.java:20)
    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:585)
    at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)
    Caused by: java.lang.ClassNotFoundException: er.javamail.ERJavaMail
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    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 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    ... 28 more