Hi,

I've recently set up and updated to the latest package a Fedora Core 6
box on x86_64 hardware. I also installed tomcat5-5.5.17-6jpp.2 from the
Fedora Extras repository and java-1.5.0-ibm-1.5.0.4-1jpp from JPackage
and IBM.

Using the stock / default configuration files, I get the following
accessing the tomcat5 web interface:

# telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 400 No Host matches server name localhost
Server: Apache-Coyote/1.1
Date: Wed, 14 Mar 2007 16:34:24 GMT
Connection: close

Connection closed by foreign host.

I've disabled SELinux (for now and I wasn't getting audit errors
anyway). /etc/hosts has localhost as the first entry for 127.0.0.1.
Below is the server.xml file. I'm sure it's stock Fedora Extras with the
comments removed.

I've googled around and the closest situation I found said a fix was a
missing <Context> element but I had tomcat5 running before without it.

Any help in figuring out how to get tomcat5 up and running would be
appreciated.

==================== server.xml ========================================
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>

  <GlobalNamingResources>

    <Environment name="simpleValue" type="java.lang.Integer"
value="30"/>

    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />

  </GlobalNamingResources>

  <Service name="Catalina">
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8009" 
               enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
      </Host>
    </Engine>
  </Service>
</Server>
========================================================================
--

Richi Plana


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to