1 2 3 Previous Next 38 Replies Latest reply: Oct 10, 2014 7:55 PM by Laurent Matheo RSS

change port 8080

ds NameToUpdate

how can be change pory 8080 to 80
as example change th http:///ip:8080/arsys to http://ip:80/arsys

  • 1. Re: change port 8080
    Laurent Matheo

    It is the listening port of your servlet engine, for exemple Tomcat or Websphere.

    If you want to change it you'll need to change it there, then update ARS configuration in "Server Information->Advanced" .


    For example in Tomcat it is in file server.xml you need to change connector for protocol http:

        <Connector URIEncoding="UTF-8" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

    Once you change 8080 to 80, you'll need to restart Tomcat.


    You'll need to ensure of course that port isn't used already by another program, for example a web server like Apache httpd.


    Another solution would be to set a web server in front end that listens on port 80 and forwards queries to the servlet engine.

    for example:

    Apache httpd (80) <--- modjk---> Tomcat (8080)

    In this case httpd forwards queries using modjk module to Tomcat on AJP port.


    Though if you don't need this, honnestly don't go there and just change the Tomcat port, it's way easier.

  • 2. Re: change port 8080
    Sylvain YVON


    Additionally, on Unix & Linux, only root can open a port under 1024.

    For stand-alone Tomcat, you'll need either jsvc (Tomcat opens the port as root and then drops all its privileges) or use a port redirection with iptables, for example.


    Also, you would get more accurate answers if you wrote your OS and versions with your questions.



  • 3. Re: change port 8080
    ds NameToUpdate

    Hi  laurent

    when i changed it the port 80 no show in te link (http://ip/arsys),,why this?

  • 4. Re: change port 8080
    Laurent Matheo

    Because by default "http" implies port "80".


    So http://www.google.com:80/



    Are exactly the same thing

  • 5. Re: change port 8080
    ds NameToUpdate

    please in servcer .eml have many pory 8080 and i change on lin in above just ,,thid id true or chang port 8080 in xml file to 80

  • 6. Re: change port 8080
    Laurent Matheo

    I gave you the line to change


    For example in Tomcat it is in file server.xml you need to change connector for protocol http:

        <Connector URIEncoding="UTF-8" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

    Once you change 8080 to 80, you'll need to restart Tomcat.




    Just post your server.xml...

  • 7. Re: change port 8080
    ds NameToUpdate

    hi all

    how can be hidden arsys from url??
    as example(http://ip or name of host

  • 8. Re: change port 8080
    Laurent Matheo

    I wouldn't really recommend it. If you want to do that you'll have to play with virtualhosts in Tomcat. Check this thread:


  • 9. Re: change port 8080
    ds NameToUpdate

    please this server.xml what i can change

    <?xml version="1.0" encoding="utf-8" standalone="no"?>


      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






      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="8006" shutdown="SHUTDOWN">



      <!--APR library loader. Documentation at /docs/apr.html -->

      <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>

      <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->

      <Listener className="org.apache.catalina.core.JasperListener"/>

      <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->

      <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>

      <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>



      <!-- Global JNDI resources

           Documentation at /docs/jndi-resources-howto.html



        <!-- Editable user database that can also be used by

             UserDatabaseRealm to authenticate users


        <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"/>




      <!-- 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 URIEncoding="UTF-8" acceptCount="100" connectionTimeout="5000" maxHttpHeaderSize="8192" maxKeepAliveRequests="100" maxThreads="400" port="80" protocol="HTTP/1.1" redirectPort="8443"/>

        <!-- A "Connector" using the shared thread pool-->


        <Connector executor="tomcatThreadPool"

                   port="8080" protocol="HTTP/1.1"


                   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 URIEncoding="UTF-8" port="8029" 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 defaultHost="localhost" name="Catalina">



          <!--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"/>




          <!-- The request dumper valve dumps useful debugging information about

               the request and response data received and sent by Tomcat.

               Documentation at: /docs/config/valve.html -->


          <Valve className="org.apache.catalina.valves.RequestDumperValve"/>




          <!-- 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"/>



          <!-- Define the default virtual host

               Note: XML Schema validation will not work with Xerces 2.2.


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



            <!-- 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 -->


            <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 

                   prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>








  • 10. Re: change port 8080
    Laurent Matheo

    Like I said in the thread, you need to add to the server.xml:

    If you really want to use "http://mywebsite.com/" try this:

          <Host name="www.lmatest.com" appBase="">

        <!-- <Context deployOnStartup="true" docBase="C:\BMCSOF~1\ARS\midtier" path="/arsys" reloadable="false"> -->

        <Context deployOnStartup="true" docBase="C:\BMCSOF~1\ARS\midtier" path="/" reloadable="false">

                 <!-- this will disable session persistance across shotdown/startup -->

                 <Manager pathname=""/>




    change the path "C:\BMCSOF~1\ARS\midtier" to your mid-tier path of course


    Of course you'll need to remove the "/conf/localhost/arsys.xml" file (backup it before) since it's the one creating the "virual host" for arsys at midtier installation using ARS installer.

  • 11. Re: change port 8080
    ds NameToUpdate

    this where can be add in server.xml

  • 12. Re: change port 8080
    Laurent Matheo

    At the end of server.xml.

  • 13. Re: change port 8080
    ds NameToUpdate

    after add this to server.xml ,remeove this  "/conf/localhost/arsys.xml"?

  • 14. Re: change port 8080
    Laurent Matheo

    Yes. And restart Tomcat.

1 2 3 Previous Next