Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Existen varias razones por la cual se cambian los puertos de red, en gran medida por la ejecución de múltiples instancias de Geronimo. Para configurar al puerto predefinido, edita al archivo <geronimo_home>/var/config/config.xml. El archivo config.xml que corresponde a la distribución Apache Geronimo v2.0 con Tomcat se muestra en el ejemplo siguiente.

Code Block
xml
xml
borderStylesolid
titleconfig.xmlxml
<?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.            -->
<!-- Do not edit this file while Geronimo is running.         -->
<!-- ======================================================== -->
<attributes xmlns="http://geronimo.apache.org/xml/ns/attributes-1.1">
<module name="org.apache.geronimo.configs/rmi-naming/2.0-M2/car">
<gbean name="RMIRegistry">
<attribute name="port">1099</attribute>
</gbean>
<gbean name="NamingProperties">
<attribute name="namingProviderUrl">rmi://0.0.0.0:1099</attribute>
</gbean>
<gbean name="DownloadedPluginRepos">
<attribute name="repositoryList">http://geronimo.apache.org/plugins/plugin-repository-list-2.0.txt</attribute>
<attribute name="userRepositories">[]</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/j2ee-server/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/transaction-jta11/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/j2ee-security/2.0-M2/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="org.apache.geronimo.configs/axis/2.0-M2/car"/>
<module load="false" name="org.apache.geronimo.configs/axis2/2.0-M2/car"/>
<module load="false" name="org.apache.geronimo.configs/cxf/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/openejb/2.0-M2/car"/>
<module load="false" name="org.apache.geronimo.configs/j2ee-corba-yoko/2.0-M2/car">
<gbean name="NameServer">
<attribute name="port">1050</attribute>
<attribute name="host">localhost</attribute>
</gbean>
</module>
<module load="false" name="org.apache.geronimo.configs/j2ee-corba-sun/2.0-M2/car">
<gbean name="NameServer">
<attribute name="port">1050</attribute>
<attribute name="host">localhost</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/system-database/2.0-M2/car">
<gbean name="DerbyNetwork">
<attribute name="host">0.0.0.0</attribute>
<attribute name="port">1527</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/activemq-broker/2.0-M2/car">
<gbean name="ActiveMQ.tcp.default">
<attribute name="host">0.0.0.0</attribute>
<attribute name="port">61616</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/activemq/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/tomcat6/2.0-M2/car">
<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>
<gbean name="org.apache.geronimo.configs/tomcat6/2.0-M2/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.0-M2/car,j2eeType=GBean,name=TomcatWebContainer">
<attribute name="catalinaHome">var/catalina</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/j2ee-deployer/2.0-M2/car">
<gbean name="WebBuilder">
<attribute name="defaultNamespace">http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.2</attribute>
</gbean>
<gbean name="EnvironmentEntryBuilder">
<attribute name="eeNamespaces">http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/javaee</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/connector-deployer/2.0-M2/car">
<gbean name="ResourceRefBuilder">
<attribute name="eeNamespaces">http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/javaee</attribute>
</gbean>
<gbean name="AdminObjectRefBuilder">
<attribute name="eeNamespaces">http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/javaee</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/persistence-jpa10-deployer/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/openejb-deployer/2.0-M2/car">
<gbean name="EJBBuilder">
<reference name="ServiceBuilders">
<pattern>
<name>GBeanBuilder</name>
</pattern>
<pattern>
<name>PersistenceUnitBuilder</name>
</pattern>
</reference>
<reference name="WebServiceBuilder">
<pattern>
<name>CXFBuilder</name>
</pattern>
<pattern>
<name>Axis2Builder</name>
</pattern>
<pattern>
<name>WebServiceBuilder</name>
</pattern>
</reference>
</gbean>
<gbean name="EjbRefBuilder">
<attribute name="eeNamespaces">http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/javaee</attribute>
</gbean>
<gbean name="ClientEjbRefBuilder">
<attribute name="eeNamespaces">http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/javaee</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/client-deployer/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/cxf-deployer/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/axis2-deployer/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/axis-deployer/2.0-M2/car">
<gbean name="AxisServiceRefBuilder">
<attribute name="eeNamespaces">http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/javaee</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/javamail/2.0-M2/car">
<gbean name="SMTPTransport">
<attribute name="host">localhost</attribute>
<attribute name="port">25</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/sharedlib/2.0-M2/car">
<gbean name="SharedLib">
<attribute name="classesDirs">var/shared/classes</attribute>
<attribute name="libDirs">var/shared/lib</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/tomcat6-deployer/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/welcome-tomcat/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/webconsole-tomcat/2.0-M2/car"/>
<module load="false" name="org.apache.geronimo.configs/uddi-tomcat/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/remote-deploy-tomcat/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/hot-deployer/2.0-M2/car"/>
<module load="false" name="org.apache.geronimo.configs/ca-helper-tomcat/2.0-M2/car"/>
<module name="console.dbpool/LocalDB/1.0/rar"/>
<module name="console.dbpool/jdbc%2FTradeDataSource/1.0/rar"/>
</attributes>

A continuación hay dos porciones del archivo config.xml, una para Tomcat y otra para Jetty. Estas porciones muestran la sección completa donde los listeners son definidos, sólo hemos reemplazado al estándar 8080 con un puerto arbitrario, 9000 en este caso.

Code Block
xml
xml
borderStylesolid
titleExcerpt from config.xml - Tomcatxml
<module name="org.apache.geronimo.configs/tomcat6/2.0-M2/car">
<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>
<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>
<gbean name="org.apache.geronimo.configs/tomcat6/2.0-M2/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.0-M2/car,j2eeType=GBean,name=TomcatWebContainer">
<attribute name="catalinaHome">var/catalina</attribute>
</gbean>
</module>
Code Block
xml
xml
borderStylesolid
titleExcerpt from config.xml - Jettyxml
<module name="org.apache.geronimo.configs/jetty6/2.0-M2/car">
<gbean name="JettyWebConnector">
<attribute name="host">0.0.0.0</attribute>
<attribute name="port">9000</attribute>
<attribute name="redirectPort">8443</attribute>
</gbean>
<gbean name="JettySSLConnector">
<attribute name="host">0.0.0.0</attribute>
<attribute name="port">8443</attribute>
</gbean>
</module>
<module name="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0-M2/car"/>
<module name="org.apache.geronimo.configs/j2ee-deployer/2.0-M2/car">
<gbean name="WebBuilder">
<attribute name="defaultNamespace">http://geronimo.apache.org/xml/ns/j2ee/web/jetty-1.2</attribute>
</gbean>
<gbean name="EnvironmentEntryBuilder">
<attribute name="eeNamespaces">http://java.sun.com/xml/ns/j2ee,http://java.sun.com/xml/ns/javaee</attribute>
</gbean>
</module>

...