[jbosstools-issues] [JBoss JIRA] Commented: (JBDS-1677) Server cannot be saved for the following reasons: One or more ports have an invalid value

Rob Stryker (JIRA) jira-events at lists.jboss.org
Fri Jun 10 04:52:59 EDT 2011


    [ https://issues.jboss.org/browse/JBDS-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607751#comment-12607751 ] 

Rob Stryker commented on JBDS-1677:
-----------------------------------

As has been mentioned, xpaths are used to locate ports that the tooling needs to interact with the app server. Should the installed app server be incorrectly configured, be missing critical descriptor files, or simply be of a different version / layout, these expected files or xpaths may not be found.

In the event the user has purposely customized his configuration to something non-standard, the user can either click "configure" on that section of the editor, and select (or create) a new xpath to match where the user has put the desired ports.

It is also possible that the user deleted the xpath, not in the actual server configuration, but rather in the toolset. You can see these xpaths by expanding your server in the Servers view and seeing an "XML Configuration" section, under which should be a category called "PORTS" and under that, items such as "JNDI" or "WEB" etc etc etc. It is possible the user deleted these critical xpaths. 

Should, for whatever reason, teh xpath not be found, odds are it is an error in the setup of the actual app server, as the files are in standard locations and with non-changing xpaths, however, the user still has the option to UNCHECK "detect automatically" and instead directly input a port number that the toolset should use when attempting to interact with the server.

Under no circumstances is it acceptable that a null port be used. The tooling must always know one way or another what the web / jndi / etc ports are. Either it can detect them automatically, or, the user can hand-enter the port the toolset should use. Therefore, it is not an error that an attempt to save a Server Editor that cannot locate it's proper ports. This is by design. If the toolset cannot locate the proper ports, the user must instead manually declare them. 

> Server cannot be saved for the following reasons: One or more ports have an invalid value
> -----------------------------------------------------------------------------------------
>
>                 Key: JBDS-1677
>                 URL: https://issues.jboss.org/browse/JBDS-1677
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>          Components: servers
>    Affects Versions: 4.0.0.GA
>         Environment: JBDS running with a SOA-P server
>            Reporter: Rick Wagner
>            Assignee: Rob Stryker
>            Priority: Critical
>             Fix For: 4.1.0.CR2, 5.0.0.M3
>
>
> Bug is similar to what's described in JBIDE-5263.  The user goes to save artifacts he is given a dialogue with the text "Server cannot be saved for the following reasons: One or more ports have an invalid value".  
> This ticket differs from JBIDE-5263 in that the user is a Windows user, not Mac.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list