Re: NoClassDefFoundError?
Re: NoClassDefFoundError?
- Subject: Re: NoClassDefFoundError?
- From: Ray Kiddy <email@hidden>
- Date: Mon, 27 Mar 2006 17:16:53 -0800
On Mar 27, 2006, at 2:03 PM, Ian Coleman wrote:
yes it is in there, here is the whole Run Log:
<snip>
AssetManager has exited with status 1.
Chuck Hill wrote:
That seems to suggest that /System/Library/Frameworks/
JavaWebObjects.framework/Resources/Java/javawebobjects.jar is not
on the classpath or can't be read (due to lack of permisssions).
Is JavaWebObjects included in the frameworks? Do you see it on
the classpath when the app launches?
Chuck
You really need to check the whole tool chain.
When things go to heck in a handbasket, you need to check all your
assumptions. Remember, any time you "ASSUME", you make a you-know-
what out of you and Uma Thurman....
1) What jars do you think you are using? (Seems you have a handle on
that.)
2) Are those the right jar files? If you look in the file system, do
those jar files actually exist? Can you read them? Do they actually
contain the classes you expect? You can do check with such as:
% jar tf /System/Library/Frameworks/JavaWebObjects.framework/
Resources/Java/javawebobjects.jar
If you are able to do this and you see the class "com/webobjects/
appserver/WOApplication.class", then that is covered.
3) Are you actually using the right jar? Look in the
MacOSClassPath.txt file. This is probably ok, given the output that
you see from the application, but it is good to check.
4) If you invoke the application manually, constructing the classpath
that you think is needed, does it work any different?
It is theoretically possible that one of the other things I see on
your classpath, being things I do not really recognize, may be doing
something to set your default class loader or change the behavior of
the default class loader. That would be "a bad thing".
Sometimes one just to follow all the dots.
One of my favorite random things is this. Have you put this on a UFS
file system? Taking something off a case-insensitive file system like
HFS+ and moving it onto a case-sensitive file system like UFS can
lead to hours of fun for the whole family.
Good luck.
- ray
ps: Always good to have in these posts: OS version, Dev Tools
versions, any other random things you install....
On Mar 27, 2006, at 1:30 PM, Ian Coleman wrote:
I can not figure out how to fix this problem, mainly because I
don't know how I did it. None of my WO projects will run any
more, they all exit with status 1. Even if I just create a D2W,
it still exits with status 1. They all have this in the Run Log:
.....
/Library/WebObjects/Extensions/
java.lang.NoClassDefFoundError: com/webobjects/appserver/
WOApplication
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:
68)
AssetManager has exited with status 1.
Thanks
ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.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:
40apple.com
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