You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2013/07/15 22:49:05 UTC
[jira] (MPIR-226) Tests should not run Jetty on default ports
[ https://jira.codehaus.org/browse/MPIR-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MPIR-226:
---------------------------------
Fix Version/s: 2.5
> 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
> Fix For: 2.5
>
>
> 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