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

pts_forum at 2007-7-6 15:46:11 > top of Java-index,Application & Integration Servers,Application Servers...
# 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.

Snjezana at 2007-7-6 15:46:11 > top of Java-index,Application & Integration Servers,Application Servers...
# 3
thanks for your reply.you were right. it is working now using asadmin of the sjsas 8.2 version.thanks a lot.
vakrat1 at 2007-7-6 15:46:11 > top of Java-index,Application & Integration Servers,Application Servers...