Re: AW: Can't load Application class, exiting (Webobjects-dev Digest, Vol 3, Issue 519)
Re: AW: Can't load Application class, exiting (Webobjects-dev Digest, Vol 3, Issue 519)
- Subject: Re: AW: Can't load Application class, exiting (Webobjects-dev Digest, Vol 3, Issue 519)
- From: Chuck Hill <email@hidden>
- Date: Tue, 22 Aug 2006 10:22:44 -0700
On Aug 22, 2006, at 7:27 AM, Chris * wrote:
No, it's always the default target, named after the project.
The project is in a standard directory, containing
a .woa, .xcodeproj and various main-files.
Is there a space in the path?
I'm sorry, but what exactly do you mean by "fully qualified class
name"? If I set the WOAPPLICATION_CLASS_NAME to anything other than
"Application"(I've tried the path of the .jar file, .xcodeproj
etc.), the build fails with the
Is it in a package? Is there a package com.foo.bar; statement at the
top of the Application.java file?
Chuck
>Are you still stuck on this one?
Unfortunately, yes.
>The classpath seems to be generated wrong... are you running this
via Xcode?
Indeed I do, completely generic settings.
>Your application class will be in the line here:
HOMEROOT/ApplicationsHOMEROOT/APPROOT/Resources/Java/test.jar
>But that doesn't seem right... is anything in your build settings
overriding HOMEROOT or app >name or anything?
FULL ACK, looks weird to me, too. However, I can't find anything in
the target-settings(see picture below) to justify it. Using Google
or the Finder on HOMEROOT or similar things. I'll just try to
overwrite all the lines manually, but for a more permanent
solution, I'd like to know how exactly XCode creates
MacOSClassPath.txt.
On Aug 10, 2006, at 5:27 AM, email@hidden
wrote:
Message: 11
Date: Thu, 10 Aug 2006 12:26:33 +0000 (GMT)
From: Chris * <email@hidden>
Subject: Can't load Application class, exiting...
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Heya,
Running my first WOApplication, I encountered this rather strange
Error:
...
/Library/WebObjects/Extensions/
Can't load Application class, exiting...
java.lang.ClassNotFoundException: Application
...
(for the full run-log, as well as the MacOSClassPath.txt, see below).
Thanks in advance for any pointers.
Chris
[Session started at 2006-08-10 06:12:58 +0100.]
Reading MacOSClassPath.txt ...
Launching Test.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" -
DWOLocalRootDirectory="" -DWOUserDirectory="/Users/eitnwadm/
Desktop/CVsWOProjects/Test/build/Development" -DWOEnvClassPath="" -
DWOApplicationClass=Application -DWOPlatform=MacOS -
Dcom.webobjects.pid=26853 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap
appRoot is /Users/eitnwadm/Desktop/CVsWOProjects/Test/build/
Development/Test.woa/Contents
Loading /Users/eitnwadm/Desktop/CVsWOProjects/Test/build/
Development/Test.woa/Contents/MacOS/MacOSClassPath.txt
Generated classpath:
/Users/eitnwadm/ApplicationsHOMEROOT/APPROOT/Resources/Java/
test.jar
/System/Library/Frameworks/JavaFoundation.framework/Resources/
Java/javafoundation.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/
Java/javaeocontrol.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
javaeoaccess.jar
/System/Library/Frameworks/JavaWebObjects.framework/Resources/
Java/javawebobjects.jar
/System/Library/Frameworks/JavaWOExtensions.framework/Resources/
Java/JavaWOExtensions.jar
/System/Library/Frameworks/JavaXML.framework/Resources/Java/
javaxml.jar
/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/
Java/javajdbcadaptor.jar
/System/Library/Frameworks/JavaWOJSPServlet.framework/Resources/
Java/javawojspservlet.jar
/Library/Java/
/Library/Java/
/System/Library/Java/
/Users/eitnwadm/ApplicationsHOMEROOT/Network/Library/Java
/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
/System/Library/Frameworks/JavaVM.framework/Classes/ui.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.8.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/
Can't load Application class, exiting...
java.lang.ClassNotFoundException: Application
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
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:235)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:68)
Test has exited with status 1.
# JVM == java
# JVMOptions ==
# JDB == jdb
# JDBOptions ==
# ApplicationClass == Application
HOMEROOT/ApplicationsHOMEROOT/APPROOT/Resources/Java/test.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaFoundation.framework/Resources/Java/javafoundation.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaEOControl.framework/Resources/Java/javaeocontrol.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaWebObjects.framework/Resources/Java/javawebobjects.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaXML.framework/Resources/Java/javaxml.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaWOJSPServlet.framework/Resources/Java/javawojspservlet.jar
HOMEROOT/ApplicationsHOMEROOT/LOCALROOT/Library/Java
HOMEROOT/ApplicationsHOMEROOT/LOCALROOT/Library/Java
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Java
HOMEROOT/ApplicationsHOMEROOT/Network/Library/Java
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaVM.framework/Classes/classes.jar
HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/
JavaVM.framework/Classes/ui.jar
<ScreenshotExpertview.png>
<ScreenshotExpertview.png>
_______________________________________________
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
--
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden