I am trying to install Sun Java Web Server using an ordinary user with no root/sudo rights.
I need to allow this web server to use ports 80 and 443. How can this be done?
Assuming you are using Solaris 10 or newer, the simplest way is to grant the required privilege to the web server user (here webserver), eg:
usermod -K defaultpriv=basic,net_privaddr webserver