Re: NoClassDefFoundError on ERXValidationException at startup
Re: NoClassDefFoundError on ERXValidationException at startup
- Subject: Re: NoClassDefFoundError on ERXValidationException at startup
- From: Daniel Beatty <email@hidden>
- Date: Tue, 21 Sep 2010 16:32:37 -0700
- Thread-topic: NoClassDefFoundError on ERXValidationException at startup
True Chuck,
Although, I was just going to leave it at "morons, idiots, and misery enjoys
company".
Later,
Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 474300D
2401 E. Pilot Plant Rd. M/S 1109
China Lake, CA 93555
email@hidden
(760)939-7097
On 9/21/10 4:28 PM, "Chuck Hill" <email@hidden> wrote:
> You have to admit, David has some mad skillz in this area!
>
>
> On Sep 21, 2010, at 4:23 PM, Mike Schrag wrote:
>
>> one of the classes in your built project is touching it ... you might
>> breakpoint in _NSUtilities._classWithPartialName and see what class name was
>> passed in and what class it is trying to touch specifically.
>>
>> On Sep 21, 2010, at 7:02 PM, David Avendasora wrote:
>>
>>>> On Sep 21, 2010, at 6:24 PM, Mike Schrag wrote:
>>>>
>>>>> i would maybe run with verbose classloading on, and you might be able to
>>>>> see what class was attempting to load when this failed ... i would also
>>>>> print out your classpath. obviously' you're mixing and matching frameworks
>>>>> along the line ... like maybe your app is linked against old wonder but
>>>>> you link to a framework that is linked against new wonder?
>>>
>>> I have custom install location for WO just for this project. It contains
>>> only WO (Installed with the WOInstaller.jar) and some pre-compiled
>>> WOFrameworks listed below. There are no Wonder (or other) framework projects
>>> in my workspace at all. Just this one app.
>>>
>>> Here's the .classpath:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <classpath>
>>> <classpathentry kind="src" path="Sources"/>
>>> <classpathentry kind="src" path="SourcesCMS"/>
>>> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>>> <classpathentry kind="con" path="WOFramework/ERExtensions"/>
>>> <classpathentry kind="con" path="WOFramework/ERJars"/>
>>> <classpathentry kind="con" path="WOFramework/JavaDirectToWeb"/>
>>> <classpathentry kind="con" path="WOFramework/JavaDTWGeneration"/>
>>> <classpathentry kind="con" path="WOFramework/JavaWebServicesClient"/>
>>> <classpathentry kind="con" path="WOFramework/JavaWebServicesGeneration"/>
>>> <classpathentry kind="con" path="WOFramework/JavaWebServicesSupport"/>
>>> <classpathentry kind="con" path="WOFramework/JavaEOAccess"/>
>>> <classpathentry kind="con" path="WOFramework/JavaEOControl"/>
>>> <classpathentry kind="con" path="WOFramework/JavaFoundation"/>
>>> <classpathentry kind="con" path="WOFramework/JavaJDBCAdaptor"/>
>>> <classpathentry kind="con" path="WOFramework/JavaWebObjects"/>
>>> <classpathentry kind="con" path="WOFramework/JavaXML"/>
>>> <classpathentry kind="con" path="WOFramework/ERJavaMail"/>
>>> <classpathentry kind="con" path="WOFramework/ExcelGenerator"/>
>>> <classpathentry kind="con" path="WOFramework/FrontBasePlugIn"/>
>>> <classpathentry kind="con" path="WOFramework/JavaWOExtensions"/>
>>> <classpathentry kind="con" path="WOFramework/Seppuku"/>
>>> <classpathentry kind="con" path="WOFramework/WOFrameworkInitializer"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/axis-ant.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/axis.jar"/>
>>> <classpathentry exported="true" kind="lib"
>>> path="Libraries/commons-discovery.jar"/>
>>> <classpathentry exported="true" kind="lib"
>>> path="Libraries/commons-logging.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/jaxrpc.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/saaj.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/wsdl4j.jar"/>
>>> <classpathentry exported="true" kind="lib"
>>> path="Libraries/commons-io-1.4.jar"/>
>>> <classpathentry exported="true" kind="lib"
>>> path="Libraries/commons-lang-2.4.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/resolver.jar"/>
>>> <classpathentry exported="true" kind="lib"
>>> path="Libraries/saxon9-xpath.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/saxon9.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/xercesImpl.jar"/>
>>> <classpathentry exported="true" kind="lib" path="Libraries/xml-apis.jar"/>
>>> <classpathentry kind="output" path="bin"/>
>>> </classpath>
>>>
>>> Here's the entries from my custom wolips.properties file:
>>>
>>> wo.local.frameworks=/Developer/WebObjects/Versions/Amagavi_533/Library/Frame
>>> works
>>> wo.local.root=/Developer/WebObjects/Versions/Amagavi_533
>>> wo.network.frameworks=
>>> wo.network.root=
>>> wo.system.frameworks=/Developer/WebObjects/Versions/Amagavi_533/System/Libra
>>> ry/Frameworks
>>> wo.system.root=/Developer/WebObjects/Versions/Amagavi_533/System
>>> wo.user.frameworks=
>>> wo.user.root=
>>>
>>> I don't have WebObjects or any WOFrameworks installed in the default System
>>> or Local locations at all.
>>>
>>> Here's the console output with -verbose:class set: (emphasis mine)
>>>
>>> <snip>
>>> [Loaded er.extensions.ERXEntityClassDescription from
>>> file:/Developer/WebObjects/Versions/Amagavi_533/Library/Frameworks/ERExtensi
>>> ons.framework/Resources/Java/ERExtensions.jar]
>>> [Loaded er.extensions.ERXValidationException from
>>> file:/Developer/WebObjects/Versions/Amagavi_533/Library/Frameworks/ERExtensi
>>> ons.framework/Resources/Java/ERExtensions.jar]
>>> [Loaded er.extensions.ERXEntityClassDescription$Factory from
>>> file:/Developer/WebObjects/Versions/Amagavi_533/Library/Frameworks/ERExtensi
>>> ons.framework/Resources/Java/ERExtensions.jar]
>>> [Loaded com.cmsamagavi.ac.ACERXEntityClassDescriptionFactory from
>>> file:/Users/davendasora/Documents/Projects/Amagavi/EclipseWorkspace/AIS/buil
>>> d/AIS.woa/Contents/Resources/Java/]
>>> [Loaded er.javamail.ERJavaMail from
>>> file:/Developer/WebObjects/Versions/Amagavi_533/Library/Frameworks/ERJavaMai
>>> l.framework/Resources/Java/ERJavaMail.jar]
>>> [Loaded java.util.regex.PatternSyntaxException from
>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.j
>>> ar]
>>> 39 [main] WARN NSLog - A fatal exception occurred:
>>> er/extensions/validation/ERXValidationException
>>> [Loaded java.io.PrintWriter from
>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.j
>>> ar]
>>> [2010-09-21 18:43:02 EDT] <main> java.lang.NoClassDefFoundError:
>>> er/extensions/validation/ERXValidationException
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:169)
>>> at
>>> com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.ja
>>> va: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(WOProper
>>> ties.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:455)
>>> at com.cms.utils.CMSApplication.<init>(CMSApplication.java:32)
>>> at com.amagavi.ac.Application.<init>(Application.java:112)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
>>> sorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
>>> torAccessorImpl.java:27)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at java.lang.Class.newInstance0(Class.java:355)
>>> at java.lang.Class.newInstance(Class.java:308)
>>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
>>> at er.extensions.ERXApplication.main(ERXApplication.java:401)
>>> at com.cms.utils.CMSApplication.main(CMSApplication.java:65)
>>> at com.amagavi.ac.Application.main(Application.java:108)
>>> Caused by: java.lang.ClassNotFoundException:
>>> er.extensions.validation.ERXValidationException
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>> ... 24 more
>>> </snip>
>>>
>>> I'm stumped.
>>>
>>> Dave
>>>
>>>
>>>>
>>>> On Sep 21, 2010, at 8:09 AM, David Avendasora wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm working on upgrading a old WO 5.3.3 / Wonder 3.0 app to 5.4.3 / Wonder
>>>>> Trunk but I'm running into problems just getting the application to start
>>>>> in a current WOLips (3.4, 3.5 or 3.6).
>>>>>
>>>>> I don't have the details of which WOLips was last used to develop the
>>>>> application, but I know it was "pre-New Hotness" so... an old one.
>>>>>
>>>>> The first thing I want to do is get the same application building properly
>>>>> with current WOLips, but when I try to launch it, I'm getting:
>>>>>
>>>>> [2010-09-21 07:54:49 EDT] <main> Loaded items: {}
>>>>> [2010-09-21 07:54:49 EDT] <main> Starting up: er.extensions.ERXExtensions
>>>>> [2010-09-21 07:54:49 EDT] <main> Started initialization:
>>>>> er.extensions.ERXExtensions
>>>>> [2010-09-21 07:54:49 EDT] <main> Initialized : er.extensions.ERXExtensions
>>>>> 0 [main] INFO org.apache.log4j.Logger - Updated the logging configuration
>>>>> with the current system properties.
>>>>> 35 [main] WARN NSLog - A fatal exception occurred:
>>>>> er/extensions/validation/ERXValidationException
>>>>> [2010-09-21 07:54:50 EDT] <main> java.lang.NoClassDefFoundError:
>>>>> er/extensions/validation/ERXValidationException
>>>>> at java.lang.Class.forName0(Native Method)
>>>>>
>>>>> Notice that it is using the NEW Wonder package structure
>>>>> (er/extensions/validation/ERXValidationException) as opposed to the
>>>>> package structure in Wonder 3.0. (er/extensions/ERXValidationException).
>>>>>
>>>>> I can find no reference anywhere in this application that refers to the
>>>>> new package structure. What is causing the class loader to look for it?
>>>>>
>>>>> Dave
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> net
>>
>> This email sent to email@hidden
_______________________________________________
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