Ticket #114 (closed defect: fixed)
Changing port in GAST doesn't work
| Reported by: | rjwalker | Owned by: | simonp |
|---|---|---|---|
| Priority: | major | Milestone: | v2.4.0 RC2 |
| Component: | GAST | Version: | v2.4.0 RC1 |
| Keywords: | Cc: |
Description
SVN commit 2822 upgraded Jetty and made a number of changes to GAST. But core GAST functionality is now broken. For example:
- Make a fresh checkout of either trunk or 2.4 branch.
- Run ant to compile.
- Change to bin directory and start GAST.
- Select "Jetty" tab. Notice that the "Port" field is blank - it should show 8080.
- Enter a number, e.g. 9080, and Click Save. Confirmation dialog pops up.
- Quit GAST.
- Check jetty.xml and observe that the port number has not changed.
The problem is src/org/fao/gast/lib/EmbeddedSCLib.java. The constructor has not been updated to locate the port correctly in the newer configuration file syntax. What was:
<Call name="addListener">
<Arg>
<New class="org.mortbay.http.SocketListener">
<Set name="port">8080</Set>
is now the first of two sections beginning:
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="host"><SystemProperty name="jetty.host" /></Set>
<Set name="port"><SystemProperty name="jetty.port" default="8080"/><
/Set>
Change History
Note: See
TracTickets for help on using
tickets.
