Environment
NetIQ Access Manager 4.2
NetIQ Access Manager 4.1
NetIQ Access Manager 4.1
Situation
Demo OAuth Application fails to run on windows.
It fails to run with below error:
>todo-service.bat -Dhttp.port=9001
Bad application path: -Dhttp.port=9001
It fails to run with below error:
>todo-service.bat -Dhttp.port=9001
Bad application path: -Dhttp.port=9001
Resolution
Make sure environment variable IDP_BASE_URL is set IDP Sever Base URL.
Use command "set IDP_BASE_URL=https://msingh11.lab.novell.com:8443/nidp" to set the variable.
Open the batch file todo-service.bat using some editor.
Search for below lines :
rem Call the application and pass all arguments unchanged.
"%_JAVACMD%" %_JAVA_OPTS% %TODO_SERVICE_OPTS% -cp "%APP_CLASSPATH%" %APP_MAIN_CLASS% %*
Replace with below lines:
rem Call the application and pass all arguments unchanged.
"%_JAVACMD%" %_JAVA_OPTS% %TODO_SERVICE_OPTS% -cp "%APP_CLASSPATH%" %APP_MAIN_CLASS%
The same need to be done for todo-webapp.bat.