failed to asadmin on solaris
Hi,
I'm trying to execute the asadmin utility to deploy a war file to a SJSAS that run on solaris as well (tried also SJSAS that runs on win32).
here is the usage:
asadmin -u <username> -w <paswd> -H <host> -p <adminport> --force=true <war file path>
I get the following error:
Server returned HTTP response code: 500 for URL: http://<somehost>:4848/web1/entry
I'm using the exact CLI using the asadmin for windows and it worked.
Does someone might know what is the reason for this error code ?
BTW, I have tried to run SJSAS as a root, but it didn't solve the problem.
Thank in advance
[686 byte] By [
vakrat1] at [2007-11-26 7:03:12]

# 1
Type where asadmin on the command line and see which asadmin is being used. Solaris ships with an older version of the appserver. It is possible that you are trying to use the older version.
Best thing to try is to cd to <appserver_root>/bin and then try ./asadmin ....
Cheers,
Vasanth
# 2
On correction on Vasanth's advice: you should run
which asadmin
to find out the path of asadmin command which is being used.
If this asadmin turns out to be /usr/sbin/asadmin instead of the one in your installation directory, you'll have to adjust your PATH environment variable by placing <installdir>/bin directory in the beginning of the PATH.