Skip to main content

java.net.BindException: Permission denied

3 replies [Last post]
jeremycrussell
Offline
Joined: 2007-06-19

Greetings, running into a problem with Sun Java System Application Server Enterprise Edition 8.2 (build b25-fcs). I have some instances setup to listen on ports under 1024, and this has been working great for quite some time. Recently patched the server and now I'm getting a BindException Permission Denied when trying to start up the instances with ports under 1024. Not sure what the trouble is, both the DAS and Nodeagents are running as root, so unless the AppServer got patched (not sure if it did or not) and there is new code that's buggy or is intended to behave like this, I don't know what is going on. Can anyone shed some light on the subject? Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jeremycrussell
Offline
Joined: 2007-06-19

Anybody have any thoughts on this... I still haven't found a resolution to running below port 1024.

Thanks!

Gabe Wong

glassfish@javadesktop.org wrote:
> Anybody have any thoughts on this... I still haven't found a resolution to running below port 1024.
>
>
This only suggests it is not running as root. do a "ps -ef | grep java"
to really see what user is running GF.

--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.1 - Centrally manage Application Servers across multiple physical servers

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

jeremycrussell
Offline
Joined: 2007-06-19

Weel, yes, everything appserver and java oriented (except the Solaris Web Console) is definitely running as root.

hedorah#ps -aef | grep appserv
root 21914 21912 0 May 26 ? 0:00 /opt/SUNWappserver/appserver/lib/appservLauncher /opt/SUNWappserver/appserver/l
root 21897 1 0 May 26 ? 41:00 /opt/SUNWappserver/appserver/lib/appservDAS domain1
root 21898 21885 0 May 26 ? 0:00 /bin/sh /opt/SUNWappserver/var/nodeagents/hedorah/PNAdmin/bin/startserv native
root 21919 21902 0 May 26 ? 29:39 /opt/SUNWappserver/appserver/lib/appserv PNAdmin
root 12455 12430 0 08:07:38 pts/3 0:00 grep appserv
root 21902 21898 0 May 26 ? 0:00 /opt/SUNWappserver/appserver/lib/appservLauncher /opt/SUNWappserver/appserver/l
root 21912 21885 0 May 26 ? 0:00 /bin/sh /opt/SUNWappserver/var/nodeagents/hedorah/MTA/bin/startserv native
root 21925 21914 0 May 26 ? 23:47 /opt/SUNWappserver/appserver/lib/appserv MTA
root 21885 1 0 May 26 ? 58:37 /opt/SUNWappserver/appserver/lib/appservAgent hedorah
hedorah#
hedorah#
hedorah#ps -aef | grep java
root 21921 21897 0 May 26 ? 0:00 /bin/sh /usr/bin/imqbrokerd -javahome /usr/jdk/entsys-j2se -varhome /opt/SUNWap
root 23445 1 0 May 25 ? 0:00 /usr/jdk/latest/bin/java -version:1.5+ -Djava.library.path=/usr/lib/cc-ccr/lib
root 971 958 0 Apr 15 ? 79:30 /usr/jdk/instances/jdk1.5.0/bin/java -Djava.class.path=/opt/SUNWjdmk/5.1//lib/j
root 12457 12430 0 08:07:57 pts/3 0:00 grep java
noaccess 95 1 0 May 12 ? 62:42 /usr/java/bin/java -server -Xmx128m -XX:+UseParallelGC -XX:ParallelGCThreads=4
root 21932 21921 0 May 26 ? 8:00 /usr/jdk/entsys-j2se/bin/java -server -cp /usr/bin/../../usr/share/lib/imq/imqb
hedorah#