Le 2011-09-19 à 14:47, Kieran Kelleher a écrit :
> WILD guess #1:
>
> Delete your installed frameworks and do a fresh install ….. just maybe you
> have a "merged installation" (aka when a new install is overlaid on top of an
> old install and you have multiple versions of the same jar because the jar
> name differs by version)
This is what I always do.
> WILD guess #2:
> Class path order is not as expected when mixing frameworks from install
> locations and workspace.
>
> Debug the classpath in both scenarios and use diff to see what is different.
> You can do that by putting code sty like this in your
> Application.didFinishLaunching():
The only difference is that when WOLips is open as a project, WOLips path is:
/Users/probert/Tools/Src/Wonder54-Github/wonder/Frameworks/Misc/WOLips/bin
And when it's close:
/Library/Frameworks/WOLips.framework/Resources/Java/WOLips.jar
The reminder of the classpath is the same.
> <snip>
> // Classpath debugging
> // When launched by wotaskd in deployment, the classpath property
> is
> // com.webobjects.classpath
> String classpath =
> ERXProperties.stringForKey("com.webobjects.classpath");
>
> // When launched manually or from within IDE, the classpath is the
> // regular java.class.path
> if (classpath == null) {
> classpath = ERXProperties.stringForKey("java.class.path");
> } // ~ if (classpath == null)
>
> // Clean it up so a dir prints on each line of console or log file
> if (classpath != null) {
> classpath = classpath.replace(':', '\n');
> } // ~ if (classpath != null)
>
> // Also, we have the boot class path to contend with, so output
> that
> log.info("java app classpath = \n" + classpath);
>
> // Also, we have the boot class path to contend with, so output
> that
> // since variations in that can cause JCE encryption classes to
> not be found
> classpath = ERXProperties.stringForKey("sun.boot.class.path");
>
> if (classpath != null) {
> classpath = classpath.replace(':', '\n');
> }
>
> log.info("sun boot classpath = \n" + classpath);
>
> </snip>
>
> On Sep 19, 2011, at 2:28 PM, David Holt wrote:
>
>> I have just confirmed the same thing. Trying to run ERJasperReportsExample
>> with Built frameworks in 3.7 doesn't work because there is a problem with
>> Ajax.framework/ERExtension.framework. If the source for those two frameworks
>> are in the workspace, it runs fine.
>>
>> David
>>
>>
>> On 2011-09-19, at 11:24 AM, Pascal Robert wrote:
>>
>>>
>>> Le 2011-09-19 à 13:30, Ramsey Gurley a écrit :
>>>
>>>> I'm using the WOLips framework on 3.7 without issues. Admittedly, I've
>>>> had to add a small fix to get the C2O stuff working:
>>>>
>>>> http://issues.objectstyle.org/jira/browse/WOL-1209
>>>>
>>>> But it's nothing that would affect class loading.
>>>
>>> Do you have the WOLips framework in your workspace by any chance? I just
>>> tried that (adding WOLips in my workspace) and it works.
>>>
>>> So the problem is appearing when the WOLips framework is the build one (the
>>> .framework) with WOLips 3.7 and you launch the app within Eclipse. If you
>>> launch the app by the build .woa, it works, if you use Eclipse 3.6/WOLips
>>> 3.6, it works, if you use 3.7 with the WOLips framework, it works.
>>>
>>>> Ramsey
>>>>
>>>> On Sep 19, 2011, at 10:07 AM, Chuck Hill wrote:
>>>>
>>>>> Maybe there is something in WOLips that is not compatible with 3.7. An
>>>>> exception thrown during class loading / static initialization could cause
>>>>> this.
>>>>>
>>>>> Q?
>>>>>
>>>>>
>>>>> On 2011-09-19, at 9:46 AM, Pascal Robert wrote:
>>>>>
>>>>>>
>>>>>> Le 2011-09-19 à 12:42, Pascal Robert a écrit :
>>>>>>
>>>>>>>
>>>>>>> Le 2011-09-19 à 12:18, Pascal Robert a écrit :
>>>>>>>
>>>>>>>>
>>>>>>>> Le 2011-09-19 à 12:14, David Holt a écrit :
>>>>>>>>
>>>>>>>>> Hi Pascal,
>>>>>>>>>
>>>>>>>>> I just went through a similar dance for hours on Friday with the Ajax
>>>>>>>>> framework. It turned out to be my Wonder frameworks being slightly
>>>>>>>>> out of date. I thought I had double and triple checked, but it
>>>>>>>>> actually required a quadruple check to get it to work :-)
>>>>>>>>
>>>>>>>> This is why I took the frameworks from two days ago. Sometimes, I have
>>>>>>>> this problem (might be any frameworks) when I built Wonder from
>>>>>>>> source, but it get fixed by using the latest build from
>>>>>>>> webobjects.mdimension.com. But this time, it didn't work :-/
>>>>>>>
>>>>>>> Hum, it works fine with WOLips 3.6. The problem only appears when
>>>>>>> running 3.7.
>>>>>>
>>>>>> I confirm. I created a D2W project in WOLips 3.6, didn't get the
>>>>>> problem. Imported the exact same project in 3.7, I get the exception
>>>>>>
>>>>>>>>> David
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2011-09-18, at 8:02 PM, Pascal Robert wrote:
>>>>>>>>>
>>>>>>>>>> I have a strange problem, where starting any app that include the
>>>>>>>>>> WOLips framework generates this. If I remove WOLips from the
>>>>>>>>>> classpath, everything works fine. Wonder was from July, so I updated
>>>>>>>>>> my frameworks from the build off Jenkins and I get the same problem.
>>>>>>>>>>
>>>>>>>>>> [2011-9-18 22:54:59 EDT] <main> A fatal exception occurred:
>>>>>>>>>> ERXExtensions have not been initialized. Please report the classpath
>>>>>>>>>> and the rest of the bundles to the Wonder mailing list:
>>>>>>>>>> Remaining frameworks: [WOLips]
>>>>>>>>>> Classpath:
>>>>>>>>>> /Users/probert/Workspaces/Bidon/TestApp/bin:/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/Library/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar:/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar:/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar:/Library/Frameworks/WOLips.framework/Resources/Java/WOLips.jar:/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/System/Library/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar:/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/System/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar:/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar:/System/Library/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar:/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/System/Library/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar:/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/System/Library/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar:/System/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar:/System/Library/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar:/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar:/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar:/Library/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar:/Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar:/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar:/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar:/Library/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar:/Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar:/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar:/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar:/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar:/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
>>>>>>>>>> [2011-9-18 22:54:59 EDT] <main> java.lang.RuntimeException:
>>>>>>>>>> ERXExtensions have not been initialized. Please report the classpath
>>>>>>>>>> and the rest of the bundles to the Wonder mailing list:
>>>>>>>>>> Remaining frameworks: [WOLips]
>>>>>>>>>> Classpath:
>>>>>>>>>> /Users/probert/Workspaces/Bidon/TestApp/bin:/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/Library/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar:/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar:/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar:/Library/Frameworks/WOLips.framework/Resources/Java/WOLips.jar:/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/System/Library/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar:/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/System/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar:/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar:/System/Library/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar:/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/System/Library/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar:/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/System/Library/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar:/System/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar:/System/Library/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar:/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar:/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar:/Library/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar:/Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar:/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar:/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar:/Library/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar:/Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar:/Library/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar:/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar:/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar:/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar:/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
>>>>>>>>>> at
>>>>>>>>>> er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1056)
>>>>>>>>>> at your.app.Application.<init>(Application.java:10)
>>>>>>>>>> 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: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:547)
>>>>>>>>>> at
>>>>>>>>>> er.extensions.appserver.ERXApplication.main(ERXApplication.java:820)
>>>>>>>>>> at your.app.Application.main(Application.java:7)
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> 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/programmingosx%40mac.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/probert%40macti.ca
>>>>>>>>
>>>>>>>> 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/probert%40macti.ca
>>>>>>>
>>>>>>> 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/chill%40global-village.net
>>>>>>
>>>>>> This email sent to [email protected]
>>>>>
>>>>> --
>>>>> 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/rgurley%40smarthealth.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/programmingosx%40mac.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/kelleherk%40gmail.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]