eclipse indigo - Glassfish: java.net.BindException: No free port within range -
good evening, i'm facing weird problem in glassfish 3.1.2, whenever run application(it doesn't run) , looked @ eclipse console, found these strange exception:
severe: doselect ioexception java.net.bindexception: no free port within range: 8181=com.sun.enterprise.v3.services.impl.monitor.monitorablesslselectorhandler@188fcca7 @ com.sun.grizzly.tcpselectorhandler.initselector(tcpselectorhandler.java:432) @ com.sun.grizzly.tcpselectorhandler.preselect(tcpselectorhandler.java:378) @ com.sun.grizzly.selectorhandlerrunner.doselect(selectorhandlerrunner.java:188) @ com.sun.grizzly.selectorhandlerrunner.run(selectorhandlerrunner.java:132) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:722) severe: doselect ioexceptionjava.net.bindexception: no free port within range: 3700=com.sun.enterprise.v3.services.impl.serviceinitializerhandler@1b42f99d @ com.sun.grizzly.tcpselectorhandler.initselector(tcpselectorhandler.java:432) @ com.sun.grizzly.tcpselectorhandler.preselect(tcpselectorhandler.java:378) @ com.sun.grizzly.selectorhandlerrunner.doselect(selectorhandlerrunner.java:188) @ com.sun.grizzly.selectorhandlerrunner.run(selectorhandlerrunner.java:132) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:722)
i changed configuration in domain.xml
inside glassfish\domains\domain1\config
increased following 2 elements nothing changed
<jvm-options>-xx:maxpermsize=512m</jvm-options> <jvm-options>-xx:permsize=512m</jvm-options>
could me.
note: killed java.exe process list sehrope suggests , exception resolved server redirects me http status 404
page, requested resource not available(), more clarity, here's web.xml file:
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="webapp_id" version="3.0"> <display-name>gambak</display-name> <welcome-file-list> <welcome-file>login.jsf</welcome-file> </welcome-file-list> <servlet> <servlet-name>faces servlet</servlet-name> <servlet-class>javax.faces.webapp.facesservlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>faces servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping>
and file login.xhtml
located under webcontent
you have existing server running on port. check process list ot see if running in background , listening on ports.
$ sudo netstat -lpn | grep 8181
if there running kill process , try restarting server.
Comments
Post a Comment