Error running app in dist
Error running app in dist
- Subject: Error running app in dist
- From: Kamal D Shah <email@hidden>
- Date: Sat, 7 Feb 2009 09:54:17 +0530
Hi,
When I run my app from Eclipse by clicking on the Run As button, it
works just fine. Now, if I do a Run As Ant Build on the build.xml and
run the resultant executable from within the woa folder created in the
dist folder, I get the following error:
${jvm} -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" -
DWOLocalRootDirectory="" -DWOUserDirectory="/Users/kamal/Development/
workspace/MCCServer/dist/MCCServer.woa" -DWOEnvClassPath="" -
DWOApplicationClass=Application -DWOPlatform=MacOS -
Dcom.webobjects.pid=7272 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap
./MCCServer: line 301: exec: -X: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
I looked at the MacOSClasspath.txt file inside the woa and noticed
that #JVM was set to ${jvm}. I changed this manually to java. When I
do this, the initial error goes away but I get this error:
Reading MacOSClassPath.txt ...
Launching MCC.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" -
DWOLocalRootDirectory="" -DWOUserDirectory="/Users/kamal/Development/
workspace/MCC/dist/MCC.woa" -DWOEnvClassPath="" -
DWOApplicationClass=Application -DWOPlatform=MacOS -
Dcom.webobjects.pid=7313 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap
Loading /Users/kamal/Development/workspace/MCC/dist/MCC.woa/Contents/
MacOS/MacOSClassPath.txt
Generated classpath:
/Users/kamal/Development/workspace/MCC/dist/MCC.woa/Contents/
Resources/Java/
/Users/kamal/Development/workspace/MCC/dist/MCC.woa/Contents/
Resources/Java/mcc.jar
/Library/Frameworks/ERExtensions.framework/Resources/Java/
ERExtensions.jar
/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
/Library/Frameworks/ERJars.framework/Resources/Java/
erxservletadaptor.jar
/Library/Frameworks/ERJars.framework/Resources/Java/erxwo54.jar
/Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
/Library/Frameworks/ERJars.framework/Resources/Java/junit.jar
/Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.14.jar
/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-
api-1.5.0.jar
/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-
log4j12-1.5.0.jar
/Library/Frameworks/ERJavaMail.framework/Resources/Java/
activation-1.1.1.jar
/Library/Frameworks/ERJavaMail.framework/Resources/Java/dsn-1.4.1.jar
/Library/Frameworks/ERJavaMail.framework/Resources/Java/
ERJavaMail.jar
/Library/Frameworks/ERJavaMail.framework/Resources/Java/
imap-1.4.1.jar
/Library/Frameworks/ERJavaMail.framework/Resources/Java/
mailapi-1.4.1.jar
/Library/Frameworks/ERJavaMail.framework/Resources/Java/
pop3-1.4.1.jar
/Library/Frameworks/ERJavaMail.framework/Resources/Java/
smtp-1.4.1.jar
/Library/Frameworks/ERPrototypes.framework/Resources/Java/
ERPrototypes.jar
/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar
/Library/Frameworks/PostgresqlPlugIn.framework/Resources/Java/
PostgresqlPlugIn.jar
/System/Library/Frameworks/JavaDirectToWeb.framework/Resources/Java/
javadirecttoweb.jar
/System/Library/Frameworks/JavaDTWGeneration.framework/Resources/
Java/javadtwgeneration.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
javaeoaccess.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/
javaeocontrol.jar
/System/Library/Frameworks/JavaEOProject.framework/Resources/Java/
javaeoproject.jar
/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/
javafoundation.jar
/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/
javajdbcadaptor.jar
/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/
javawebobjects.jar
/System/Library/Frameworks/JavaXML.framework/Resources/Java/
javaxml.jar
/Library/WebObjects/Extensions/axis-ant.jar
/Library/WebObjects/Extensions/axis.jar
/Library/WebObjects/Extensions/commons-discovery-0.2.jar
/Library/WebObjects/Extensions/commons-logging-1.0.4.jar
/Library/WebObjects/Extensions/derby.jar
/Library/WebObjects/Extensions/derbyclient.jar
/Library/WebObjects/Extensions/jaxrpc.jar
/Library/WebObjects/Extensions/log4j-1.2.14.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/serializer.jar
/Library/WebObjects/Extensions/servlet.jar
/Library/WebObjects/Extensions/wsdl4j-1.5.1.jar
/Library/WebObjects/Extensions/xalan.jar
/Library/WebObjects/Extensions/xercesImpl.jar
/Library/WebObjects/Extensions/xml-apis.jar
/Library/WebObjects/Extensions/
Can't load Application class, exiting...
java.lang.ClassNotFoundException: Application
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
I looked at a thread posted by someone with a similar error some time
back. But I did not find a solution there.
What could I be doing wrong here? This happens with every application.
Thanks
Kamal
_______________________________________________
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