Dear AnuRanjan,
There is a few things that could cause this issue. The section within the WVCtrl.sh script that failed might be " wvports=`check_process_for_port $PID_JVM`"
Could you please post the lines from WVCtrl.sh script lines 460 - 490?
There might be an issue with the call path or directory structure where WVCtrl.sh is started from. The script assumes that the location it is being called from is <em home>/bin since there are relative links within the script such as ../jre and SCRIPTDIR=`cd "$PRGDIR" >/dev/null; pwd`.
Second, check the <em home>/product/webview/agent/wily to insure that the Agent.jar is present. If it isn't present, or it is a different file name, you have an issue with what is installed verses the version of the WVCtrl.sh script.
The WVCtrl.sh script is very light on logging and turning on WebView debug more than likely won't help since WebView isn't starting. When I had issues with WVCtrl.sh, I copied the script and within the copy anywhere there was an echo, I added " >> $LOGFILE" to the end of the line and also added a bunch of echo "markers" >> $LOGFILE lines through out the file.
Hopefully when you upgrade to 10.7, WebView will just work.
Hope this helps,
Billy