Salut,
just add: -Dcom.sun.enterprise.server.ss.ASQuickStartup=false
and that should work.
A+
-- Jeanfrancois
glassfish_at_javadesktop.org wrote:
> Hi,
>
> I am trying to setup a new http-listener and a new virtual server to serve another IP but when I try to use the 80 port (like the default listener and default virtual server), I get a "[i]java.net.BindException: Already bound: 80[/i]".
>
> What I don't understand is that we are using a different IP for the two http-listeners.
>
> My question would be : How can I setup Glassfish to serve to different IPs ([i][b]www[/b].myDomain.com and [b]subDomain[/b].myDomain.com[/i]) on port 80, on the same machine but with [u]two different virtual servers[/u].
>
> Here is my [i]domain.xml[/i] :
>
> [b]<http-listener acceptor-threads="1" address="172.16.205.198" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" port="80" security-enabled="false" server-name="" xpowered-by="true">[/b]
> <property name="proxiedProtocols" value="ws/tcp"/>
> </http-listener>
> <http-listener acceptor-threads="1" address="172.16.205.198" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="8181" security-enabled="true" server-name="" xpowered-by="true">
> <ssl cert-nickname="s1as" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
> </http-listener>
> <http-listener acceptor-threads="1" address="172.16.205.198" blocking-enabled="false" default-virtual-server="__asadmin" enabled="true" family="inet" id="admin-listener" port="4848" security-enabled="false" server-name="" xpowered-by="true"/>
> <!--=== NEW LISTENER for SUBDOMAIN ====================================-->
> [b] <http-listener acceptor-threads="1" address="172.16.205.199" blocking-enabled="false" default-virtual-server="server-images" enabled="true" family="inet" id="http-listener-images" port="80" security-enabled="false" server-name="" xpowered-by="true"/>[/b]
> <virtual-server hosts="${com.sun.aas.hostName}" http-listeners="http-listener-1,http-listener-2" id="server" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
> <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
> <property name="sso-enabled" value="false"/>
> <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
> </virtual-server>
> <virtual-server hosts="${com.sun.aas.hostName}" http-listeners="admin-listener" id="__asadmin" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
> <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
> <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
> <property name="sso-enabled" value="false"/>
> </virtual-server>
> <!--=== NEW VIRTUAL SERVER for SUBDOMAIN ===============================-->
> <virtual-server hosts="172.16.205.199" http-listeners="http-listener-images" id="server-images" log-file="${com.sun.aas.instanceRoot}/logs/server-images.log" state="on">
> <property name="sso-enabled" value="false"/>
> <property name="docroot" value="c:\r4yh_data\"/>
> <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
> <property name="sso-enabled" value="false"/>
> </virtual-server>
> [Message sent by forum member 'duchsxx' (duchsxx)]
>
> http://forums.java.net/jive/thread.jspa?messageID=286468
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>