geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-3481) Offline deployer throws BIND Exception when port 1099 is in use
Date Sun, 23 Sep 2007 05:40:51 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-3481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529732
] 

Vamsavardhana Reddy commented on GERONIMO-3481:
-----------------------------------------------

The --port is not the way to point the deployer to the server instance it should work with.
 The --port option is used only by the online deployer.  When --offline is specified, --port
and --host are ignored.  In online mode there is no need to worry about the instance of the
server we are deploying to as the deployer 'connects' to the server.  The offline deployer
uses "org.apache.geronimo.server.name" system property to figure the server instance.  It
can be set by using GERONIMO_OPTS environment variable.  For example GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=myserver
will make the offline deployer use config files from <GERONIMO_HOME>/myserver/var/config.

The problem is that offline deployer is not applying attribute overrides from myserver/var/config/config.xml
(which has the port in question overridden to 1109) but from myserver/var/config/jsr88-configurer-config.xml.

> Offline deployer throws BIND Exception when port 1099 is in use
> ---------------------------------------------------------------
>
>                 Key: GERONIMO-3481
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3481
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.0.1, 2.0.x, 2.1
>         Environment: G 2.0.1 - Running multiple instances
>            Reporter: Vamsavardhana Reddy
>            Assignee: David Jencks
>             Fix For: 2.0.2, 2.0.x, 2.1
>
>         Attachments: GERONIMO-3481-1.patch, GERONIMO-3481-2.patch, GERONIMO-3481-2a.patch,
GERONIMO-3481-weird.patch
>
>
> Offline deployer throws Bind Exception when port 1099 is in use.  Here is a scenario
steps in which the problem is experienced.
> 1.  Extract G-2.0.1-Tomcat distro to C:\
> 2.  Create a dir "myserver" under C:\geronimo-j2ee-tomcat-2.0.1 and copy C:\geronimo-j2ee-tomcat-2.0.1\var
to C:\geronimo-j2ee-tomcat-2.0.1\myserver\var (all sub-directories).
> 3.  Edit C:\geronimo-j2ee-tomcat-2.0.1\myserver\var\config-substitutions.properties to
set PortOffset=10.
> 4.  Open a command window and start Geronimo.  Since org.apache.geronimo.server.name
is not set, this will start the default server instance.
> 5.  Open a second command window, set GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=myserver.
 This will be command window to run the second server instance with name "myserver"
> 6.  Run deploy.bat --offline list-modules.
> At step 6, I am getting a BIND Exception since port 1099 is in use (by the default server
instance) and the offline deployer is attempting to start rmi naming on port 1099.  Since,
this deploy command is run against second server instance, I would expect that it uses the
configuration properties of "myserver" in which case it should use port 1109 to start rmi-naming
if at all there is a need.  When port 1099 is not in use, the offline deployer works as expected
by updating proper config.xml file when a configuration is deployed/undeployed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message