Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

To configure the default port edit the <geronimo_home>/var/config/config.xml file. Go to the file and open in a text editor. The file will look like below:

Code Block
xml
borderStylesolid
titleconfig.xml
borderStylesolid
xml
<?xml version="1.0" encoding="UTF-8"?>

<!-- ======================================================== -->
<!-- Warning - This XML file is re-generated by Geronimo when -->
<!-- changes are made to Geronimo's configuration, therefore  -->
<!-- any comments added to this file will be lost.            -->
<!-- ======================================================== -->

<attributes xmlns="http://geronimo.apache.org/xml/ns/attributes-1.1">
    <module name="geronimo/rmi-naming/1.1-410806/car">
        <gbean name="RMIRegistry">
            <attribute name="port">1099</attribute>
        </gbean>
        <gbean name="NamingProperties">
            <!-- Check whether this really works if host name is 0.0.0.0 -->
            <attribute name="namingProviderUrl">rmi://0.0.0.0:1099</attribute>
        </gbean>
    </module>
    <module name="geronimo/j2ee-server/1.1-410806/car">
    </module>
    <module name="geronimo/j2ee-security/1.1-410806/car">
        <gbean name="JaasLoginServiceRemotingServer">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">4242</attribute>
        </gbean>
        <gbean name="JMXService">
          <attribute name="protocol">rmi</attribute>
          <attribute name="host">0.0.0.0</attribute>
          <attribute name="port">9999</attribute>
          <attribute name="urlPath">/jndi/rmi://0.0.0.0:1099/JMXConnector</attribute>
        </gbean>
    </module>
    <module name="geronimo/axis/1.1-410806/car"/>
    <module name="geronimo/openejb/1.1-410806/car">
        <gbean name="EJBNetworkService">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">4201</attribute>
        </gbean>
    </module>
    <module name="geronimo/j2ee-corba/1.1-410806/car" load="false">
        <gbean name="NameServer">
            <attribute name="dbDir">var/cosnaming.db</attribute>
            <attribute name="port">1050</attribute>
        </gbean>
        <gbean name="Server">
            <attribute name="args">-ORBInitRef, NameService=corbaloc::localhost:1050/NameService</attribute>
        </gbean>
        <gbean name="UnprotectedServer">
            <attribute name="args">-ORBInitRef, NameService=corbaloc::localhost:1050/NameService</attribute>
        </gbean>
    </module>
    <module name="geronimo/system-database/1.1-410806/car">
        <gbean name="DerbyNetwork">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">1527</attribute>
        </gbean>
    </module>
    <module name="geronimo/activemq-broker/1.1-410806/car">
        <gbean name="ActiveMQ.tcp.default">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">61616</attribute>
        </gbean>
    </module>
    <module name="geronimo/activemq/1.1-410806/car"/>
    <module name="geronimo/directory/1.1-410806/car" load="false">
        <gbean name="geronimo.server:name=DirectoryService">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">1389</attribute>
        </gbean>
    </module>
    <module name="geronimo/ldap-realm/1.1-410806/car" load="false"/>
    <module name="geronimo/tomcat/1.1-410806/car">
        <gbean name="TomcatEngine">
            <reference name="TomcatValveChain" />
        </gbean>
        <!-- To enable accesslogging change the load="false" below to load="true" -->
        <gbean name="FirstValve" load="false"></gbean>

        <gbean name="TomcatResources"/>
        <gbean name="TomcatWebConnector">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">8080</attribute>
            <attribute name="redirectPort">8443</attribute>
        </gbean>
        <gbean name="TomcatAJPConnector">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">8009</attribute>
            <attribute name="redirectPort">8443</attribute>
        </gbean>
        <gbean name="TomcatWebSSLConnector">
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">8443</attribute>
        </gbean>
    </module>
    <!-- n.b. be sure the gbean deployer is explicitly loaded before j2ee-deployer so that defaultEnvironment
    overrides work properly -->
    <module name="geronimo/geronimo-gbean-deployer/1.1-410806/car"/>
    <module name="geronimo/j2ee-deployer/1.1-410806/car">
        <gbean name="WebBuilder">
            <attribute name="defaultNamespace">http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1</attribute>
        </gbean>
    </module>
    <module name="geronimo/openejb-deployer/1.1-410806/car">
        <gbean name="EJBBuilder">
            <attribute name="listener">?name=TomcatWebContainer</attribute>
        </gbean>
    </module>
    <module name="geronimo/client-deployer/1.1-410806/car"/>
    <module name="geronimo/axis-deployer/1.1-410806/car"/>
    <module name="geronimo/javamail/1.1-410806/car" load="false">
        <gbean name="SMTPTransport">
            <attribute name="host">localhost</attribute>
            <attribute name="port">25</attribute>
        </gbean>
    </module>

    <module name="geronimo/sharedlib/1.1-410806/car">
        <gbean name="SharedLib">
            <attribute name="classesDirs">var/shared/classes</attribute>
            <attribute name="libDirs">var/shared/lib</attribute>
        </gbean>
    </module>

    <module name="geronimo/tomcat-deployer/1.1-410806/car"/>
    <module name="geronimo/welcome-tomcat/1.1-410806/car"/>
    <module name="geronimo/webconsole-tomcat/1.1-410806/car"/>
    <module name="geronimo/uddi-tomcat/1.1-410806/car" load="false"/>
    <module name="geronimo/remote-deploy-tomcat/1.1-410806/car" />
    <module name="geronimo/hot-deployer/1.1-410806/car" />
</attributes>

In order to change the default port, scroll down to the code that looks like below in the config.xml file and change the port number.

Code Block
xmlborderStylesolid
titleExcerpt from config.xml - Tomcat
borderStylesolid
xml
<gbean
	load="false" name="FirstValve"/>
<gbean name="TomcatResources"/>
    <gbean name="TomcatWebConnector">
      <attribute name="host">0.0.0.0</attribute>
      <attribute name="port">9000</attribute>
      <attribute name="redirectPort">8443</attribute>
    </gbean>
Code Block
xmlborderStylesolid
titleExcerpt from config.xml - Jetty
borderStylesolid
xml
<module name="geronimo/activemq/1.1/car"/>
<module name="geronimo/jetty/1.1/car">
<gbean name="JettyWebConnector">
<attribute name="host">0.0.0.0</attribute>
<attribute name="port">9000</attribute>
<attribute name="redirectPort">8443</attribute>

...