Dear Javier Tavara,

I'm using <apache ant 1.9.0>, <apache maven 3.0.5>,  <apache tomcat
7.0.39>,  <Postgres 9.0.6.1>  and  <jdk1.7.0_17>.

Please find the <server.xml> file as attached.

Regards,
Sanjib


On Wed, Sep 25, 2013 at 4:12 AM, Javier Távara <[email protected]> wrote:

> Hi Sanjib. I'm not an expert but I will try to help you, and I'm not a
> native English speaker.
> First of all, are you using Tomcat as an Apache (web server) module? Can
> you send me your server.xml Tomcat file?
>
> You can add me to Google Talk if you want.
>
>
> Javier Távara
>
>
> 2013/9/24 SanjibKumarDeka <[email protected]>
>
>> Dear Javier Tavara,
>>
>> When I used <netstat -vatpn | grep 8009> I found the following details,
>>
>> =========================================================
>> [root@CENTRAL-LIBRARY ~]# netstat -vatpn | grep 8009
>> tcp        0      0 :::8009
>> :::*                        LISTEN      12070/java
>> [root@CENTRAL-LIBRARY ~]#
>> =========================================================
>>
>> Again, I found the line <Connector port="8009" protocol="AJP/1.3"
>> redirectPort="8443" /> in server.xml, but I'm not sure what connector port
>> has to used.
>>
>> Guide me please.
>> With regards,
>>
>> Sanjib
>>
>>
>> On Mon, Sep 23, 2013 at 9:01 PM, Javier Távara <[email protected]>wrote:
>>
>>> *SEVERE: Failed to initialize end point associated with ProtocolHandler
>>> ["ajp-bio-8009"]*
>>> *java.net.BindException: Address already in use <null>:8009*
>>>
>>> It seems that there is a service already running in port 8009. You can
>>> make *netstat -vatpn | grep 8009* to see which service is using that
>>> port.
>>>
>>> You can change the connector port configuration in server.xml. The line
>>> like below:
>>>
>>> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
>>>
>>> Then restart.
>>>
>>> And as Keir Vaughan-Taylor told you: Try changing your Server's IP or
>>> get your sysadmin to see if there are rogue machines on the net.
>>>
>>> Also you can see
>>> http://stackoverflow.com/questions/8040640/tomcat-startup-8080-address-already-in-use
>>>
>>> Look at this answer:
>>> *Just for the record: I got this error (as a newbie) because I started
>>> Apache before starting Tomcat.*
>>> *If I stopped Apache, then started Tomcat and then started Apache, the
>>> errors disappeared.*
>>>
>>>
>>> Javier Távara
>>>
>>>
>>> 2013/9/23 SanjibKumarDeka <[email protected]>
>>>
>>>> Please find the log files as attached.
>>>>
>>>> Regards,
>>>> Sanjib Kumar deka
>>>>
>>>>
>>>> On Fri, Sep 20, 2013 at 7:44 PM, Javier Távara <[email protected]>wrote:
>>>>
>>>>> Please share your log files.
>>>>>
>>>>> Javier Távara
>>>>>
>>>>>
>>>>> 2013/9/20 SanjibKumarDeka <[email protected]>
>>>>>
>>>>>>  Hi,
>>>>>>
>>>>>> Sorry for late reply.
>>>>>> Today morning also I faced the same problem, i.e. unable to connect
>>>>>> the server.
>>>>>> After shutdown & restarting  apache-tomcat three times, I could open
>>>>>> the DSpace page again.
>>>>>> I look at today's log file, i.e. catalina.2013-09-20.log, but I'm
>>>>>> unable to locate the problem.
>>>>>>
>>>>>> Kindly help me please.
>>>>>> Regards,
>>>>>> --- Sanjib,
>>>>>>
>>>>>>
>>>>>> On Tue, Sep 17, 2013 at 4:31 PM, helix84 <[email protected]> wrote:
>>>>>>
>>>>>>> On Tue, Sep 17, 2013 at 8:12 AM, SanjibKumarDeka <[email protected]>
>>>>>>> wrote:
>>>>>>> > But which log file I have to see, I have seen lots of files with
>>>>>>> .txt, .log.
>>>>>>>
>>>>>>> Look at the end of catalina.out (this is a large file) or,
>>>>>>> alternatively, in the file with today's date (e.g.
>>>>>>> catalina.2013-09-17.log).
>>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>> ~~helix84
>>>>>>>
>>>>>>> Compulsory reading: DSpace Mailing List Etiquette
>>>>>>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>>>>>> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
>>>>>> SharePoint
>>>>>> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
>>>>>> includes
>>>>>> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>>>>>>
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
>>>>>>
>>>>>> _______________________________________________
>>>>>> DSpace-tech mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>>>> List Etiquette:
>>>>>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <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>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">

    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->


    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" URIEncoding="UTF-8"
               maxThreads="150" 
               minSpareThreads="25" 
               maxSpareThreads="75"
               enableLookups="false"  protocol="HTTP/1.1"
               connectionTimeout="20000"
               acceptCount="100"
               redirectPort="8443"
               disableUploadTimeout="true" />

    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
  </Service>
</Server>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to