Well, I saw that too, but I think maybe it's the result of a horked
Tomcat configuration.
When I stop tomcat, I no longer see anything listening on that port via
netstat. When I start it, I see something listening there.
I'm attaching my server.xml file (not posting inline to avoid cluttering
an already lengthy post) if you think that might help.
Brantley
> -----Original Message-----
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 9:15 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat/Apache/IIS configuration issues
>
>
>
> There's something already listening on port 8009. That's the
> "Bind: Address already in use" message. Are you sure there
> is only one copy of Tomcat running? Does your Tomcat server
> have multiple IP addresses?
>
> John
>
>
> -----Original Message-----
> From: Brantley Hobbs [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 9:10 AM
> To: Tomcat Users List
> Subject: RE: Tomcat/Apache/IIS configuration issues
>
>
> Just curious if anyone had had a look at this.
>
> I keep going over and over my configuration, but have yet to
> get the connector working properly (either on localhost or
> from some other networked webserver).
>
> Also, just to clarify, I did ensure that the httpd.conf and
> IIS are configured to actually use the connector. I omitted
> that on this post.
>
> Thanks,
> Brantley Hobbs
>
> > -----Original Message-----
> > From: Brantley Hobbs
> > Sent: Wednesday, February 12, 2003 5:24 PM
> > To: [EMAIL PROTECTED]
> > Cc: Brantley Hobbs
> > Subject: Tomcat/Apache/IIS configuration issues
> >
> >
> > All,
> >
> > Let me just say up front that I'm relatively new to Tomcat,
> but I do
> > know my way around Apache and IIS pretty well.
> >
> > My Problem:
> > No matter what I do, I cannot sucessfully connect a webserver to
> > Tomcat using either the IIS redirector or mod_jk2. I get HTTP 500
> > errors (Internal Server Error) when I try to browse the examples
> > servlet.
> >
> > My configuration:
> > Tomcat Server:
> > Dual P3 800
> > 1GB RAM
> > Tons of available HDD space
> > RedHat 7.1
> > Tomcat 4.1.18
> > Apache 2.0.44
> > JDK 1.3.1 06
> >
> > IIS Server:
> > Windows 2000 Advanced Server SP3
> >
> > I'm using the JK2 configuration files found at this URL:
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
> > howto.html
> >
> > Now, when I surf to http://localhost:8080/examples/ I get
> the expected
> > output, so I'm pretty sure that Tomcat is running fine.
> When I do a
> > 'netstat -l' I can see that something is listening on port 8009.
> >
> > Looking thru $CATALINA_HOME/logs/catalina.out, I get this
> when I start
> > Tomcat:
> > Starting service Tomcat-Standalone
> > Apache Tomcat/4.1.18
> > [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port
> 8080 [INFO]
> > ChannelSocket - -JK2: ajp13 listening on
> 0.0.0.0/0.0.0.0:8009 [INFO]
> > JkMain - -Jk running ID=0 time=1/52
> > config=/usr/local/jakarta-tomcat-4.1.18/conf/jk2.properties
> > [INFO] ChannelSocket - -Port busy 8009
> > java.net.BindException: Address already in use [INFO]
> > ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8010
> > [INFO] JkMain - -Jk running ID=1 time=1/7
> > config=/usr/local/jakarta-tomcat-4.1.18/conf/jk2.properties
> >
> > When I surf to http://localhost/examples/ I get the 500 error.
> > Obviously, I get the same error when I try to connect from
> the IIS box
> > (which is not on the same host, obviously).
> >
> > Here are my respective configuration files:
> > [$CATALINA_HOME/conf/jk2.properties]
> > # The default port is 8009 but you can use another one
> > # channelSocket.port=8019
> >
> > [<server_root>/conf/workers2.properties
> > # Define the communication channel
> > [channel.socket:localhost:8009]
> > info=Ajp13 forwarding over socket
> > tomcatId=localhost:8009
> >
> > # Map the Tomcat examples webapp to the Web server uri space
> > [uri:/examples/*]
> > info=Map the whole webapp
> >
> >
> > I figure I'll wait to get the whole thing working on
> localhost before
> > I try to have an IIS box across the network try to use it.
> >
> > Thanks,
> > Brantley Hobbs
> > Application Developer
> > Information Technology Outreach Services
> > University of Georgia
> > [EMAIL PROTECTED]
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
>
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
>
>
> ---
>
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
<?xml version='1.0' encoding='utf-8'?>
<Server className="org.apache.catalina.core.StandardServer" port="8005" debug="0" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>
<GlobalNamingResources>
<Environment name="simpleValue" override="true" type="java.lang.Integer" value="30"/>
<Resource name="UserDatabase" scope="Shareable" type="org.apache.catalina.UserDatabase" auth="Container" description="User database that can be updated and saved"/>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<Service className="org.apache.catalina.core.StandardService" debug="0" name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" redirectPort="8443" bufferSize="2048" port="8080" connectionTimeout="20000" scheme="http" enableLookups="true" secure="false" protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol" debug="0" disableUploadTimeout="true" proxyPort="0" maxProcessors="75" minProcessors="5" tcpNoDelay="true" acceptCount="100" useURIValidationHack="false">
<Factory className="org.apache.catalina.net.DefaultServerSocketFactory"/>
</Connector>
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" redirectPort="8443" bufferSize="2048" port="8009" connectionTimeout="0" scheme="http" enableLookups="true" secure="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" debug="0" disableUploadTimeout="false" proxyPort="0" maxProcessors="75" minProcessors="5" tcpNoDelay="true" acceptCount="10" useURIValidationHack="false">
<Factory className="org.apache.catalina.net.DefaultServerSocketFactory"/>
</Connector>
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" redirectPort="-1" address="0.0.0.0" bufferSize="2048" port="8009" connectionTimeout="60000" scheme="http" enableLookups="false" secure="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" debug="0" disableUploadTimeout="false" proxyPort="0" maxProcessors="20" minProcessors="5" tcpNoDelay="true" acceptCount="10" useURIValidationHack="true">
<Factory className="org.apache.catalina.net.DefaultServerSocketFactory"/>
</Connector>
<Engine className="org.apache.catalina.core.StandardEngine" mapperClass="org.apache.catalina.core.StandardEngineMapper" debug="0" defaultHost="localhost" name="Standalone">
<Host className="org.apache.catalina.core.StandardHost" appBase="webapps" mapperClass="org.apache.catalina.core.StandardHostMapper" liveDeploy="true" autoDeploy="true" configClass="org.apache.catalina.startup.ContextConfig" errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" debug="0" deployXML="true" contextClass="org.apache.catalina.core.StandardContext" unpackWARs="true" name="localhost">
<Context className="org.apache.catalina.core.StandardContext" crossContext="true" reloadable="true" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" debug="0" swallowOutput="false" privileged="false" displayName="Tomcat Examples" wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="examples" cookies="true" path="/examples" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper">
<Logger className="org.apache.catalina.logger.FileLogger" debug="0" verbosity="1" prefix="localhost_examples_log." directory="logs" timestamp="true" suffix=".txt"/>
<Parameter name="context.param.name" override="false" value="context.param.value"/>
<Ejb name="ejb/Account" type="Entity" description="Example EJB Reference" remote="com.mycompany.mypackage.Account" home="com.mycompany.mypackage.AccountHome"/>
<Ejb name="ejb/EmplRecord" type="Entity" remote="com.wombat.empl.EmployeeRecord" home="com.wombat.empl.EmployeeRecordHome"/>
<Environment name="minExemptions" override="true" type="java.lang.Integer" value="1"/>
<Environment name="maxExemptions" override="true" type="java.lang.Integer" value="15"/>
<Environment name="foo/bar/name2" override="true" type="java.lang.Boolean" value="true"/>
<Environment name="foo/name4" override="true" type="java.lang.Integer" value="10"/>
<Environment name="name3" override="true" type="java.lang.Integer" value="1"/>
<Environment name="foo/name1" override="true" type="java.lang.String" value="value1"/>
<LocalEjb name="ejb/ProcessOrder" local="com.mycompany.mypackage.ProcessOrder" type="Session" description="Example Local EJB Reference" home="com.mycompany.mypackage.ProcessOrderHome"/>
<Resource name="mail/Session" scope="Shareable" type="javax.mail.Session" auth="Container"/>
<Resource name="jdbc/EmployeeAppDb" scope="Shareable" type="javax.sql.DataSource" auth="SERVLET"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter>
<name>url</name>
<value>jdbc:HypersonicSQL:database</value>
</parameter>
<parameter>
<name>password</name>
<value></value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.hsql.jdbcDriver</value>
</parameter>
<parameter>
<name>username</name>
<value>sa</value>
</parameter>
</ResourceParams>
<ResourceLink name="linkToGlobalResource" type="java.lang.Integer" global="simpleValue"/>
</Context>
<Context className="org.apache.catalina.core.StandardContext" crossContext="false" reloadable="false" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" debug="0" swallowOutput="false" privileged="false" displayName="Webdav Content Management" wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="/usr/local/jakarta-tomcat-4.1.18/webapps/webdav" cookies="true" path="/webdav" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper">
</Context>
<Context className="org.apache.catalina.core.StandardContext" crossContext="false" reloadable="false" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" debug="0" swallowOutput="false" privileged="false" displayName="Tomcat Documentation" wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="/usr/local/jakarta-tomcat-4.1.18/webapps/tomcat-docs" cookies="true" path="/tomcat-docs" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper">
</Context>
<Context className="org.apache.catalina.core.StandardContext" crossContext="false" reloadable="false" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" debug="0" swallowOutput="false" privileged="true" displayName="Tomcat Manager Application" wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="../server/webapps/manager" cookies="true" path="/manager" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper">
<ResourceLink name="users" type="org.apache.catalina.UserDatabase" global="UserDatabase"/>
</Context>
<Context className="org.apache.catalina.core.StandardContext" crossContext="false" reloadable="false" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" debug="0" swallowOutput="false" privileged="true" displayName="Tomcat Administration Application" wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="../server/webapps/admin" cookies="true" path="/admin" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper">
<Logger className="org.apache.catalina.logger.FileLogger" debug="0" verbosity="1" prefix="localhost_admin_log." directory="logs" timestamp="true" suffix=".txt"/>
</Context>
<Context className="org.apache.catalina.core.StandardContext" crossContext="false" reloadable="false" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" debug="0" swallowOutput="false" privileged="false" displayName="Welcome to Tomcat" wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT" cookies="true" path="" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper">
</Context>
<Logger className="org.apache.catalina.logger.FileLogger" debug="0" verbosity="1" prefix="localhost_log." directory="logs" timestamp="true" suffix=".txt"/>
</Host>
<Logger className="org.apache.catalina.logger.FileLogger" debug="0" verbosity="1" prefix="catalina_log." directory="logs" timestamp="true" suffix=".txt"/>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase" validate="true"/>
</Engine>
</Service>
</Server>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]