[
https://jira.codehaus.org/browse/MPIR-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MPIR-226.
-------------------------------
Resolution: Fixed
Assignee: Herve Boutemy
Already fixed in [r1152625|http://svn.apache.org/r1152625]
> Tests should not run Jetty on default ports
> -------------------------------------------
>
> Key: MPIR-226
> URL: https://jira.codehaus.org/browse/MPIR-226
> Project: Maven 2.x Project Info Reports Plugin
> Issue Type: Bug
> Environment: Windows 7, running a default Tomcat 6 installation on
> port 8080.
> Reporter: Dennis Lundberg
> Assignee: Herve Boutemy
>
> ProjectInfoReportUtilsTest.testGetInputStreamURL() starts up a Jetty
> instance. The different tests communicate with Jetty on the ports 8080 and
> 8443. If someone, like me, is already running a web or servlet container on
> one of those (default) ports, the test will fail with the following output:
> {noformat}
> Stacktrace
> java.net.BindException: Address already in use: bind
> at sun.nio.ch.Net.bind(Native Method)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> at
> org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:211)
> at
> org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:309)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> at org.mortbay.jetty.Server.doStart(Server.java:228)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> at
> org.apache.maven.report.projectinfo.ProjectInfoReportUtilsTest.startJetty(ProjectInfoReportUtilsTest.java:235)
> at
> org.apache.maven.report.projectinfo.ProjectInfoReportUtilsTest.testGetInputStreamURL(ProjectInfoReportUtilsTest.java:148)
> Standard Output
> @SLTests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.185 sec
> @SLRunning org.apache.maven.report.projectinfo.ProjectInfoReportUtilsTest
> {noformat}
> It would be better to use some non default ports for the tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira