I've written a simple WDJ application (straight from the tutorials) using NWDS on my workstation.
When I want to run this, I need to configure a WAS Java server to run it. I have provided the host name and the instance number when prompted and NWDS then detected and reported on the SCS on that server.
When I choose my application and right click to "Deploy new archive and run" the build and deploy process appears to complete satisfactorily and a browser window is launched. However, the URL does not contain the correct port number and execution fails. The port number here should be 5nn00 where nn is my portal's SAP instance number; instead it is "-1".
http://portalhost.mycompany.com:-1/webdynpro/dispatcher/local/Welcome/WelcomeApp?SAPtestId=3
Obviously I'm missing something significant but I don't know what.