Hi,
I am trying to deploy an app. The program runs nicely in Eclipse, so
do an ant intall from the contextual menu. However, starting from
JavaMonitor or from the Commandline does not start the app:
mainserver:/Library/WebObjects/Applications/immix2.woa root# java
-version
mainserver:/Library/WebObjects/Applications/immix2.woa root# ./immix2
That won't work. You need to pass all the options from JavaMonitor.
See the box titled "With the current settings, this instance will be
started with the following arguments:". I ditch -NSProjectSearchPath
() so as to avoid having to escape it.
Arguments you add in JavaMonitor could be passed directly in command
line and you may add the ones that are added by JavaMonitor / WOTaskd :
WOPort WOApplicationName ....
For testing purpose I generaly try ./MyApp -WOPort 1999 in the same
enviroment the WOTaskd is running just to see if the application starts
(used especialy to get Class not found exception).
But right now your problem seams to be shell only related. The file
immix2 is just a script file, look a the end, you will find eval exec
... in your case it tries to run '${jvm} -XX:NewSize=2m -Xmx64m -Xms32m
-DWORootDirectory="/System" -DWOLocalRootDirectory=""
-DWOUserDirectory="/Library/WebObjects/Applications/immix2.woa"
-DWOEnvClassPath="" -DWOApplicationClass=Application -DWOPlatform=MacOS
-Dcom.webobjects.pid=9871 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap' as the output shows.
The problem is around "${jvm} -XX:NewSize=2m " , the var ${jvm} is
maybe empty or not set (as your printenv shows), so after the evaluation
the command 'exec' receive "-XX:NewSize" in arguments and it doesn't
understand -X (normal behavior).
So you have to look why JAVA_EXECUTABLE is set to ${jvm} and why ${jvm}
is not set... Normaly JAVA_EXECUTABLE takes the value of
${JVM_EXECUTABLE} which is initialized at 'java' if it's not set in the
environment.
Regards
Aurelien
ps: applications starting shell scripts may have changed in 5.4 (I don't
know), my explanation is based on 5.3
ps2: post immix2 file if the problem remains.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]