Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: class loader launch problem with Wonder



I committed a fix to Wonder this past Sunday for what I believe was the same exception, but I only saw it when running under a J2EE deployment.  You might try the latest build and see if you still get this problem.

ms

On Dec 5, 2007, at 12:38 PM, Gordon Belray wrote:



Hi Chuck,

This is really a Wonder question and best asked on the Wonder list.


After a very, very quick look at the source, it seems that is is something malformed that you have on the classpath:

} else if(jar.endsWith(".jar")) {
String info = stringFromJar(jar, "Resources/Info.plist");
if(info != null) {
NSDictionary dict = (NSDictionary) NSPropertyListSerialization.propertyListFromString(info);
bundle = (String) dict.objectForKey("CFBundleExecutable");
allFrameworks.add(bundle);
// System.out.println("Jar bundle: " + bundle);
}
}

Do you have any jars that might be taken to be frameworks without an Resources/Info.plist file?

There's also an Obj-C library  ImageIOJNIjnilib.m and libImaeIOJNI.jnilib in my /Library/Java/Extensions, but I can take this to the Wonder list, unless you have a quick fix.

thanks,
Gordon



Chuck


On Dec 5, 2007, at 8:13 AM, Gordon Belray wrote:


On 5-Dec-07, at 11:03 AM, Chuck Hill wrote:


On Dec 5, 2007, at 7:44 AM, Gordon Belray wrote:

Hi,

I'm trying to get Project Wonder integrated into an existing application and get the following on launch:

java.lang.reflect.InvocationTargetException
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: com.webobjects.foundation.NSForwardException [java.util.zip.ZipException] No such file or directory
at com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:47)
at er.extensions.ERXApplication.stringFromJar(ERXApplication.java:343)
at er.extensions.ERXApplication.setup(ERXApplication.java:396)
at er.extensions.ERXApplication.main(ERXApplication.java:353)
at Application.main(Application.java:16)
... 5 more

In /Library/Java/Extensions I have the following jars:
avalon, batik, fop, junit,  lucene-core,

Move those someplace else, /Library/WebObjects/Extensions or a framework or somewhere

OpenBaseJDBC,

That one is OK

xalan, xerces, xml-apis

Get those out too.

moved everything except OpenBaseJDBC  to /Library/WebObjects/Extensions, still getting the same launch error:

Chuck



and in /Library/WebObjects/Extensions: axis-ant, axis, commons-discovery, commons-logging, jaxrpc, saaj, wsdl4j (I removed log4j as per Kieren's tutorial).

I'm mid migration from XCode to Eclipse and am encountering this in XCode.

any help would be appreciated.

Gordon


Gordon Belray
Information Architect and Imaging System Manager
Information Technology Services Robarts Library
416.946.8617    cell: 416.427.7007


 _______________________________________________
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

-- 

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.






Gordon Belray
Information Architect and Imaging System Manager
Information Technology Services Robarts Library
416.946.8617    cell: 416.427.7007



-- 

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.






Gordon Belray
Information Architect and Imaging System Manager
Information Technology Services Robarts Library
416.946.8617    cell: 416.427.7007

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

References: 
 >When to model both sides of a relationship (was Java Packages for Dummies) (From: David Avendasora <email@hidden>)
 >class loader launch problem with Wonder (From: Gordon Belray <email@hidden>)
 >Re: class loader launch problem with Wonder (From: Chuck Hill <email@hidden>)
 >Re: class loader launch problem with Wonder (From: Gordon Belray <email@hidden>)
 >Re: class loader launch problem with Wonder (From: Chuck Hill <email@hidden>)
 >Re: class loader launch problem with Wonder (From: Gordon Belray <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.