public class DefaultExceptionHandlerTest
extends junit.framework.TestCase
Constructor and Description |
---|
DefaultExceptionHandlerTest() |
Modifier and Type | Method and Description |
---|---|
void |
testJdk7ipv6()
Running Maven under JDK7 may cause connection issues because IPv6 is used by default.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
public void testJdk7ipv6()
e.g running mvn site:run will cause Jetty to fail.
The resolution is to add -Djava.net.preferIPv4Stack=true to the command line as documented in http://cwiki.apache.org/confluence/display/MAVEN/ConnectException
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.