I assume you don't know the URL of the of web application your testing.
If this is your question then it depends on the web application server your using.
For instance Tomcat uses the war file name or the web folder name as the web context root.
BTW I recommend you use package for your listener.