Netra j 3.0 Product Notes

Using Java Web Server With a Netra j 3.0 Server

If you intend to use the Java(TM) Web Server(TM) 1.1 application as your default web server, it may not successfully establish itself as the default web server on port 80 when you boot the Netra j 3.0 server. Instead, the Sun WebServer (bundled with the Netra j 3.0 software) substitutes itself as the primary web server running on port 80. As a workaround, you must add a delay to the /etc/rc3.d/S95http script.

In the following example, the sleep instruction is added to the /etc/rc3.d/s95http script:


case "$1" in
`start')
	sleep 5 
	if netstat -na | grep LISTEN | grep -w 80 >/dev/null
	then
			echo "$SCRIPT_NAME: httpd not started, port in use"
			exit 
			...
			...

This adjustment provides an adequate interval for the Java Web Server to initialize itself during the boot sequence and prevent the Sun WebServer from monopolizing port 80.