• 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: NoClassDefFound and Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NoClassDefFound and Xcode


  • Subject: Re: NoClassDefFound and Xcode
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Mon, 8 Mar 2004 10:41:55 -0500

Sorry, Ute, I didn't state that very clearly.

The problem I had seemed to occur on the launch in the same place your problem seems to be occurring. What I didn't realize as I spent a couple days tracing it down was that there was an error in one of the build scripts that had returned a zero return code so hadn't been recognized as an error and allowed the build to complete "successfully". The error occurred in a sed script within a shell script during the build. Sed had returned an error message and an error code, but the shell script didn't report the error and covered it by returning a zero return code or success.

Our sysadmin spotted the tiny error message from sed in the build output which was what allowed us to fix this error that cost us about two days. As I said, the error was due to sed getting confused while parsing a path containing my volume name which contained an embedded space.

You might also check that none of the names in the path to your executable contains a space or a non-ascii character. Given the fact that this only occurs if a webservice is involved, you are probably not suffering from the same cause.

While researching the mailing lists looking for the source of my error, however, I found a couple other reasons that might cause this to occur. They can be found at one or more of the following URLs (to access the archives at these URLs, go to the following page for instrtuctions - http://www.lists.apple.com/mailman/listinfo/webobjects-dev ):

http://lists.apple.com/archives/webobjects-dev/2003/Nov/11/ webservicesassistant.txt

http://lists.apple.com/archives/webobjects-dev/2003/Oct/31/ wo522gettinganapptolaunc.003.txt

http://www.omnigroup.com/mailman/archive/webobjects-dev/2003-October/ 036994.html

http://www.omnigroup.com/mailman/archive/webobjects-dev/2003-November/ thread.html

In the third URL listed above, Chuck Hill references the Apple mailing lists as discussing a resolution to the problem. To find that reference, look through the Apple WO-Dev mailing lists for the same or preceding date to the one containing Chuck's reference.

As I remember, one cause was an upgraded build system trying to run off Java 1.3.1 when it needs Java 1.4. Another that was referenced was an incomplete CLASSPATH. Although those weren't the problems I faced, they seemed to cause the same kind of launch failure according to the mailing lists.

Best of luck,

Jerry


On Mar 8, 2004, at 7:03 AM, Ute Hoffmann wrote:

Hallo Jerry,
thank you for your suggestion. I just checked but my HardDrive has a name without a space in it so unfortunately this is not the reason for the exception.


The failure also does not occur on build. The build is successful. The error occurs when I try to launch the built app. It also only occurs if a webservice is involved.

Regards,
Ute

Am Montag, 08.03.04 um 12:35 Uhr schrieb Jerry W. Walker:

I had a similar problem in upgrading and discovered that an Xcode script was failing on the build because my hard drive was named with a space in the name, "MacOS X". When I renamed the drive without a space, everything worked perfectly.

Ironically, the script that failed was stored on a path containing three directories with a space in their names.

Jerry

--
__ Jerry W. Walker
c o d e f a b - "High Performance Industrial Strength Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax



On Monday, March 8, 2004, at 04:59 AM, Ute Hoffmann wrote:

Hallo,
I try to update my Apps to 5.2.2 and Xcode. I can build thnem without any error message but when I try to run them either via Monitor or via Xcode they die immediately before coming up.


Where can I see the terminal output (error message) when clicking the build and Run in Xcode? I tried it via the build menue but could only see the building messages, when it came to run there was absolutely no output.

The mahine I'm testing at has Java 1.4.2 installed and the app is a WebService Client.

I tried to start the app via terminal and got this error message:
/var/root/Library/Java
/Library/Java/
/System/Library/Java/
/Network/Library/Java
/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
/Library/WebObjects/Extensions/avalon-framework-4.1.2.jar
/Library/WebObjects/Extensions/axis-ant.jar
/Library/WebObjects/Extensions/axis.jar
/Library/WebObjects/Extensions/commons-discovery.jar
/Library/WebObjects/Extensions/commons-logging.jar
/Library/WebObjects/Extensions/jaxrpc.jar
/Library/WebObjects/Extensions/log4j-1.2.4.jar
/Library/WebObjects/Extensions/logkit-1.0.1.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/
java.lang.NoClassDefFoundError
at com.webobjects.foundation.NSLog$PrintStreamLogger.<clinit>(NSLog.java :1606)
at com.webobjects.foundation.NSLog.<clinit>(NSLog.java:455)
at com.webobjects.foundation._NSUtilities.<clinit>(_NSUtilities.java: 154)
at com.webobjects.appserver.WOApplication.<clinit>(WOApplication.java: 165)
at java.lang.reflect.Method.invoke(Native Method)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)


What is the probem here?

Please give a hint at how to debug it and don't say I have to reinstall everything...

Thanks,
Ute
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.





--
__ Jerry W. Walker
c o d e f a b - "High Performance Industrial Strength Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.



  • Prev by Date: NoClassDefFound and Xcode
  • Next by Date: email WOComponent
  • Previous by thread: NoClassDefFound and Xcode
  • Next by thread: RE: NoClassDefFound and Xcode
  • Index(es):
    • Date
    • Thread