Webserver 7 CLI

hi ,

i am trying to configure web application and access log format through

the CLI with wadm command and getting erros:

here is the syntax for web application:( i dont use a WAR file)

wadm add-webapp --user=admin --host=host --port=5555 --config=defaultcfg --vs=defaultcfg --precompile-jsp --file-on-serve=/opt/docs/www --uri=/

the error i get: ask for the WAR file whic i dont use is there any other way?

here is the syntax for the Format:

wadm enable-access-log --user=admin --host=host --port=5555

--format=%Req->srvhdrs.content-length%%Ses->client.ip%"-""%Req->reqpb.clf-request%"%Req->srvhdrs.clf-status%[%SYSDATE%]%duration%"%Req->headers.referer%""%Req->headers.user-agent%" --config=defaultcfg --file=../logs/access.log

the error i get: is a blank line waiting for some input , not indicating which input . when i enter the pass of the admin it goes back to the shell

without completing the command.

please advice

thanks in advanced

mongaron

[1060 byte] By [mongarona] at [2007-11-26 22:57:38]
# 1

The add-webapp command is for deploying war files. If you don't have a war file, why do you think you need to use the add-webapp command?

You're not quoting and/or escaping the enable-access-log command correctly. Your shell (e.g. sh on Unix, cmd.exe on Windows) assigns a special meaning to the > character. It's redirecting wadm's output to a file.

elvinga at 2007-7-10 12:22:56 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

If what you are trying to do is to deploy an application using a webapp exploded into a directory instead of a war file, then you have some syntax problems. file-on-server does not require a value, and the webapp directory (or war) needs to be provided at the end of the command.

Ex.

wadm> add-webapp --config=test --vs=test --file-on-server --uri=/mywebapp /home/nsegura/apps/mywebapp

CLI201 Command 'add-webapp' ran successfully

nseguraa at 2007-7-10 12:22:56 > top of Java-index,Web & Directory Servers,Web Servers...
# 3
thanks allot working great
mongarona at 2007-7-10 12:22:56 > top of Java-index,Web & Directory Servers,Web Servers...