Main not a subclass of WOComponent - but an odd cause - bad selenium jar?
Main not a subclass of WOComponent - but an odd cause - bad selenium jar?
- Subject: Main not a subclass of WOComponent - but an odd cause - bad selenium jar?
- From: Ray Kiddy via Webobjects-dev <email@hidden>
- Date: Wed, 3 Jun 2020 12:18:14 -0700
Hello -
Just an FYI. I had an odd crash after adding some unit test code to an
application. I have found the work-around for the problem but have not
yet determined the cause. I got an exception on first accessing the app:
*Error:* java.lang.IllegalArgumentException:
<com.webobjects.appserver._private.WOComponentDefinition> Class 'Main'
exists but is not a subclass of WOComponent.
*Reason:* <com.webobjects.appserver._private.WOComponentDefinition>
Class 'Main' exists but is not a subclass of WOComponent.
The fix was to remove this jar from my project:
selenium-server-standalone-3.14.0.jar
Oddly, the app ran fine while I was running in eclipse. But when i built
with the included build.xml and 'Run as Ant', that application would
crash, both on my Mac (dev system) and on Ububtu (my deployment). I have
not made any changes to the default buils.xml. I confirmed the
classpaths were properly constructed and everything pointed to existed
and was readable.
I did not even remove the code that uses selenium. I just do not invoke
that code and it is fine.
Anyway, just weird. If anyone know how this selenium jar is souring the
soup, I would be interested in any suggestions.
This may not be a very important problem. On the other hand, when there
is a problem and the symptom does absolutely nothing to point to the
source of the problem, I find it interesting.
cheers - ray
mac:
% java --version
java 14 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
ububtu:
$ java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
_______________________________________________
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