Mathias P.W Nilsson wrote:
Ok! I tested with port 8080 and 8443 as ssl port with no luck.
I only have 2 domains but tomcat complains about java.net.BindException:
Cannot assign requested address: JVM_Bind:8080. Now I guess this isn't
configured right so any pointers here would be greatly appreciated.
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener SSLEngine="on"
className="org.apache.catalina.core.AprLifecycleListener"/>
<Listener className="org.apache.catalina.core.JasperListener"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<GlobalNamingResources>
<Resource auth="Container" description="User database that can be
updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
name="UserDatabase" pathname="conf/tomcat-users.xml"
type="org.apache.catalina.UserDatabase"/>
</GlobalNamingResources>
<Service name="Catalina">
<Connector connectionTimeout="20000" port="8080" address="90.2xx.xxx.x6"
protocol="HTTP/1.1" redirectPort="443"/>
<Connector connectionTimeout="20000" port="8080" address="90.2xx.xxx.x7"
protocol="HTTP/1.1" redirectPort="443"/>
<Connector SSLEnabled="true" clientAuth="false" keystoreFile="store"
keystorePass="pass" maxThreads="150" address="90.2xx.xxx.x6" port="8443"
redirectPort="443" protocol="HTTP/1.1" scheme="https" secure="true"
sslProtocol="TLS"/>
<Connector SSLEnabled="true" clientAuth="false" keystoreFile="store1"
keystorePass="store" maxThreads="150" address="90.2xx.xxx.x7" port="8443"
redirectPort="443" protocol="HTTP/1.1" scheme="https" secure="true"
sslProtocol="TLS"/>
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
<Engine defaultHost="localhost" name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host appBase="webapps" autoDeploy="true" name="localhost"
unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
</Host>
</Engine>
</Service>
</Server>
I believe you confused your "Port" and "redirectPort" in the SSL
Connectors. The Port indicated in the SSL Connector should match the
"redirectPort" of the non-SSL corresponding Connector. I am not even
sure SSL Connectors have a redirectPort, but if they do, then you should
probably put 8080 there.
But the error message seems to say that the JVM tries to bind one of
your Connectors to port 8080, but that there is already something
listening on that port.
It would say that, if it misundertood your first Connectors, and bound
the first one to all IP adresses instead of just the one IP address.
Then when it comes to the second Connector, it also tries to bind it to
all IP adresses, port 8080, and it cannot because it's already taken by
your first Connector.
Are you sure the "address" attribute is the correct one ?
And if it is, are you sure that your IP interface(s) really are bound to
the different IP adresses you indicate ?
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]