This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00) | |
Maven home: /usr/local/apache-maven | |
Java version: 11.0.4, vendor: Debian, runtime: /usr/lib/jvm/java-11-openjdk-amd64 | |
Default locale: en_US, platform encoding: UTF-8 | |
OS name: "linux", version: "4.19.0-5-amd64", arch: "amd64", family: "unix" | |
[DEBUG] Reading global settings from /usr/local/apache-maven/conf/settings.xml | |
[DEBUG] Reading user settings from /home/sb/.m2/settings.xml | |
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/sb/.m2/repository | |
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=359378, ConflictMarker.markTime=74555, ConflictMarker.nodeCount=2, ConflictIdSorter.graphTime=189775, ConflictIdSorter.topsortTime=159703, ConflictIdSorter.conflictIdCount=2, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=1346332, ConflictResolver.conflictItemCount=2, DefaultDependencyCollector.collectTime=61583324, DefaultDependencyCollector.transformTime=3096983} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sep 29 06:31:18 cadalora kernel: [1764234.483257] QNetworkAccessM[25576]: segfault at 0 ip 00007f60bdd0fba4 sp 00007f606effa788 error 4 in libQt5Network.so.5.11.3[7f60bdcb2000+113000] | |
Sep 29 06:31:18 cadalora kernel: [1764234.487796] Code: 1c 00 00 00 00 48 8b 7b 10 eb df 0f 1f 00 c7 47 1c 00 00 00 00 c6 47 50 00 c3 5b c3 66 2e 0f 1f 84 00 00 00 00 00 48 8b 7f 78 <48> 8b 07 ff 60 20 66 0f 1f 44 00 00 53 48 89 fb bf 18 00 00 00 e8 | |
Sep 29 06:32:13 cadalora kernel: [1764288.523800] fail2ban-server invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0 | |
Sep 29 06:32:13 cadalora kernel: [1764288.529796] fail2ban-server cpuset=/ mems_allowed=0 | |
Sep 29 06:32:13 cadalora kernel: [1764288.532709] CPU: 0 PID: 1057 Comm: fail2ban-server Not tainted 4.19.0-6-amd64 #1 Debian 4.19.67-2 | |
Sep 29 06:32:13 cadalora kernel: [1764288.536273] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 | |
Sep 29 06:32:13 cadalora kernel: [1764288.538949] Call Trace: | |
Sep 29 06:32:13 cadalora kernel: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ReactDOM.render( | |
<App/>, | |
document.getElementById('root')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ReactServlet extends HttpServlet { | |
private static final long serialVersionUID = 250817058831319271L; | |
// The paths used to serve index.html | |
private final List<String> routes = Arrays.asList("/", "/counter", "/about"); | |
@Override | |
public void doGet(HttpServletRequest request, HttpServletResponse response) { | |
String pathInfo = request.getPathInfo(); | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface AuthserviceDatabaseService extends DatabaseService { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface UkelonnDatabase extends DatabaseService { | |
String sumOverYearQuery(); | |
String sumOverMonthQuery(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component(service=UkelonnDatabase.class, immediate=true) | |
public class PGUkelonnDatabaseProvider implements UkelonnDatabase { | |
private DataSourceFactory dataSourceFactory; | |
@Reference(target="(osgi.jdbc.driver.name=PostgreSQL JDBC Driver)") | |
public void setDataSourceFactory(DataSourceFactory dataSourceFactory) { | |
this.dataSourceFactory = dataSourceFactory; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component(service=UkelonnDatabase.class, immediate=true) | |
public class UkelonnDatabaseProvider implements UkelonnDatabase { | |
private DataSourceFactory dataSourceFactory; | |
@Reference(target="(osgi.jdbc.driver.name=derby)") | |
public void setDataSourceFactory(DataSourceFactory dataSourceFactory) { | |
this.dataSourceFactory = dataSourceFactory; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component(service=UkelonnDatabase.class, immediate=true) | |
public class UkelonnDatabaseProvider implements UkelonnDatabase { | |
@Activate | |
public void activate() { | |
createDatasource(); | |
UkelonnLiquibase liquibase = new UkelonnLiquibase(); | |
try(Connection connect = getConnection()) { | |
try { | |
liquibase.createInitialSchema(connect); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config:edit no.priv.bang.ukelonn.db.postgresql.PGUkelonnDatabaseProvider | |
config:property-set ukelonn.db.jdbc.url "jdbc:postgresql:///ukelonn" | |
config:property-set ukelonn.db.jdbc.user "karaf" | |
config:property-set ukelonn.db.jdbc.password "karaf" | |
config:update |