• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NoClassDefFoundError?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NoClassDefFoundError?


  • Subject: Re: NoClassDefFoundError?
  • From: Ian Coleman <email@hidden>
  • Date: Tue, 28 Mar 2006 14:13:46 -0500

I have found out that my updater log has not been logging new updates sence last year sometime. S*!t Anyways, I can still build, just not run or run from monitor. I did check the jar file and every thing seems ok. I am also not running java 5.

thanks
ian

Chuck Hill wrote:


On Mar 28, 2006, at 9:43 AM, Ian Coleman wrote:

I have have gone as far as reinstalling xcode and still none of my projects will run. Any other ideas? I am running on xcode 2.2 w/ component versions
Xcode IDE: 655.0
Xcode Core: 658.0
ToolSupport: 651.0


All permissions seem to be correct, files are all there, and the only thing that had changed since the last time the projects ran was that I had run Software Updater and it installed 3 new updates, don't remember what they were but could that even make any difference?

Uh, yes! It could. But not knowing what you updates will make that rather challenging to track down.

Can you still _build_ the applications? Do a Clean and Build to make sure. If not, possibly that jar file is damaged or has some incorrect access restrictions. If you can do a full build and not a run, the problem lies elsewhere. Perhaps you updated to Java 5? It is possible that may cause a problem.

Failing that, look at Ray's points 2 (possibly may be that your app jars are not built correctly) and 4. Try repairing permissions on that drive.


Chuck

Ray Kiddy wrote:


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:
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: This email sent to email@hidden
References: 
 >NoClassDefFoundError? (From: Ian Coleman <email@hidden>)
 >Re: NoClassDefFoundError? (From: Chuck Hill <email@hidden>)
 >Re: NoClassDefFoundError? (From: Ian Coleman <email@hidden>)
 >Re: NoClassDefFoundError? (From: Ray Kiddy <email@hidden>)
 >Re: NoClassDefFoundError? (From: Ian Coleman <email@hidden>)
 >Re: NoClassDefFoundError? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: NoClassDefFoundError?
  • Next by Date: Re: New Web Components failing to compile?
  • Previous by thread: Re: NoClassDefFoundError?
  • Next by thread: Help. Error from jam ??
  • Index(es):
    • Date
    • Thread