At 08:57 PM 03/04/2005 +0200, Jean Pierre Malrieu wrote:
>>>>
Ok, my app gets installed, but now it won't start, either from JavaMonitor,
or from command line:
Here is the output I get when trying to launch from command line:
Reading MacOSClassPath.txt ...
Launching TDBase.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System"
-DWOLocalRootDirectory=""
-DWOUserDirectory="/library/WebObjects/Applications/TDBase.woa"
-DWOEnvClassPath="" -DWOApplicationClass=${principalClass}
-DWOPlatform=MacOS -Dcom.webobjects.pid=16945 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap
appRoot is /Library/WebObjects/Applications/TDBase.woa/Contents
Loading
/Library/WebObjects/Applications/TDBase.woa/Contents/MacOS/MacOSClassPath.txt
Generated classpath:
/Library/WebObjects/Applications/TDBase.woa/Contents/Resources/Java/
/Library/WebObjects/Applications/TDBase.woa/Contents/Resources/Java/tdbase.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoacces
s.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocont
rol.jar
/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafound
ation.jar
/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbc
adaptor.jar
/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebob
jects.jar
/System/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensio
ns.jar
/Library/Frameworks/TDComps.framework/Resources/Java/tdcomps.jar
/Library/Frameworks/TDEOS.framework/Resources/Java/tdeos.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/servlet.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/
Can't load class, exiting...
java.lang.ClassNotFoundException:
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)
And this is the content of the MacOSClassPath.txt file in
/Library/WebObjects/Applications/TDBase.woa/Contents/MacOS/
# JVM == java
# JVMOptions ==
# JDB == jdb
# JDBOptions ==
# ApplicationClass == ${principalClass}
This should read
# ApplicationClass == <fully qualified name of Application class>
e.g.
# ApplicationClass == Application
or
# ApplicationClass == com.foo.bar.Application
principalClass should be defined in the build.properties file in your project:
principalClass = com.foo.bar.Application
Or, perhaps, your build.xml is malformed.
Chuck
APPROOT/Resources/Java/
APPROOT/Resources/Java/tdbase.jar
WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess
.jar
WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontr
ol.jar
WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafounda
tion.jar
WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbca
daptor.jar
WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobj
ects.jar
WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
LOCALROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaW
OExtensions.jar
LOCALROOT/Library/Frameworks/TDComps.framework/Resources/Java/tdcomps.jar
LOCALROOT/Library/Frameworks/TDEOS.framework/Resources/Java/tdeos.jar
I feel like 3 years ago, when I first deployed with ProjectBuilder...
I know there have been several threads, either on this list or on WO-dev,
about similar problems. But so far, I haven't found the right clue. Can it
be a privilege problem again? I am sudoing the launch of the app, so it
should not be the problem...
Maybe this has nothing to do with WOLips. On the other hand, I never had
this problem with XCode.
JPM.
<<<<
--Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems. http://www.global-village.net/products/practical_webobjects
This archive was generated by hypermail 2.0.0 : Sun Apr 03 2005 - 15:14:51 EDT