I am trying to define two virtual servers using different http-listeners. There are two IPs on the machine. listener1 has IP1 as address and 80 as port. listener2 has IP2 as address and 80 as port. Vserver1 is using listener1 and Vserver2 is using listener2. Everything works fine after i create listeners and virtual server but if i stop glassfish server and try to restart it fails giving the following error:
[i]|SEVERE|sun-appserver9.1|GRIZZLY|_ThreadID=10;_ThreadName=main;_RequestID=07259175-0f1c-42c9-b3a6-1cdd8f663165;|grizzlyHttpProtocol.endpoint.initerror
java.net.BindException: Already bound: 80
at com.sun.enterprise.web.connector.grizzly.SelectorThread.initEndpoint(SelectorThread.java:757)
at com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.init(GrizzlyHttpProtocol.java:225)
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1611)
at com.sun.enterprise.web.connector.coyote.PECoyoteConnector.initialize(PECoyoteConnector.java:791)
at org.apache.catalina.startup.Embedded.start(Embedded.java:928)
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:873)
at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:790)
at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:84)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)[/i]
What am i doing wrong?
Thanks
[Message sent by forum member 'bilgehan' (bilgehan)]
http://forums.java.net/jive/thread.jspa?messageID=276543