Skip to content

Commit

Permalink
[logback] Fix build against Wicket 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-g committed Jul 17, 2016
1 parent 75bda70 commit 793d2cb
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 40 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,6 @@
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>test-jetty-servlet</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public static void main(String[] args) throws Exception
bb.setWar("src/main/webapp");



// START JMX SERVER
// MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
// MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package org.wicketstuff.logback;

import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.HttpConfiguration;
import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.bio.SocketConnector;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.webapp.WebAppContext;

public class Start
Expand All @@ -11,19 +12,23 @@ public class Start
public static void main(String[] args) throws Exception
{
Server server = new Server();
SocketConnector connector = new SocketConnector();

// Set some timeout options to make debugging easier.
connector.setMaxIdleTime(1000 * 60 * 60);
connector.setSoLingerTime(-1);
connector.setPort(8080);
server.setConnectors(new Connector[] { connector });
HttpConfiguration http_config = new HttpConfiguration();
http_config.setSecureScheme("https");
http_config.setSecurePort(8443);
http_config.setOutputBufferSize(32768);

ServerConnector http = new ServerConnector(server, new HttpConnectionFactory(http_config));
http.setPort(8080);
http.setIdleTimeout(1000 * 60 * 60);

server.addConnector(http);

WebAppContext bb = new WebAppContext();
bb.setServer(server);
bb.setContextPath("/");
bb.setWar("src/main/webapp");

// START JMX SERVER
// MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
// MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);
Expand Down
4 changes: 0 additions & 4 deletions wicketstuff-logback-parent/wicketstuff-logback/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,5 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>test-jetty-servlet</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
package org.wicketstuff.logback;

import java.util.Arrays;
import java.util.List;

import org.apache.wicket.mock.MockApplication;
import org.apache.wicket.util.crypt.StringUtils;
import org.apache.wicket.util.tester.WicketTester;
import org.eclipse.jetty.testing.ServletTester;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.spi.ILoggingEvent;

/**
* Tests for {@link LogbackConfigListener}.
*
* @author akiraly
*/
@Ignore
@RunWith(Parameterized.class)
public class LogbackTest
{
/*
private ServletTester servletTester;
private WicketTester wicketTester;
Expand Down Expand Up @@ -99,4 +86,6 @@ public void after() throws Exception
servletTester.stop();
}
**/

}
4 changes: 0 additions & 4 deletions wicketstuff-restannotations-parent/restannotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>test-jetty-servlet</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
Expand Down

0 comments on commit 793d2cb

Please sign in to comment.