[jira] [Created] (UNOMI-80) Stopped in initializing
Kwang-in (Dennis) JUNG created UNOMI-80: --- Summary: Stopped in initializing Key: UNOMI-80 URL: https://issues.apache.org/jira/browse/UNOMI-80 Project: Apache Unomi Issue Type: Test Reporter: Kwang-in (Dennis) JUNG Priority: Trivial Hello~just joined! I'm following up instruction guide, but it stops while init when starting with 'karaf start'. ``` karaf@root()> Exception in thread "JMX Connector Thread [service:jmx:rmi://0.0.0.0:4/jndi/rmi://0.0.0.0:1099/karaf-root]" java.lang.RuntimeException: Port already in use: 4; You may have started two containers. If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278) Initializing Unomi... ``` It does not go on as mentioned in getting started page. http://unomi.incubator.apache.org/getting-started.html Also, I've failed in integration test(others are all success). Is it related with this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (UNOMI-80) Stopped in initializing
[ https://issues.apache.org/jira/browse/UNOMI-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867764#comment-15867764 ] Serge Huber commented on UNOMI-80: -- Hello, Thanks for testing. At this time the integration and performance tests are not working so we deactivated them by default For the other you probably already have something running on the port 4. If you launched the integration test, it is very likely that you have a Java process still running with Karaf, this is a known problem. Make sure you kill any residual processes before launching Karaf. Best regards, Serge... > Stopped in initializing > --- > > Key: UNOMI-80 > URL: https://issues.apache.org/jira/browse/UNOMI-80 > Project: Apache Unomi > Issue Type: Test >Reporter: Kwang-in (Dennis) JUNG >Priority: Trivial > > Hello~just joined! > I'm following up instruction guide, but it stops while init when starting > with 'karaf start'. > ``` > karaf@root()> Exception in thread "JMX Connector Thread > [service:jmx:rmi://0.0.0.0:4/jndi/rmi://0.0.0.0:1099/karaf-root]" > java.lang.RuntimeException: > Port already in use: 4; > You may have started two containers. If you need to start a second container > or the default ports are already in use update the config file > etc/org.apache.karaf.management.cfg and change the Registry Port and Server > Port to unused ports > at > org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278) > Initializing Unomi... > ``` > It does not go on as mentioned in getting started page. > http://unomi.incubator.apache.org/getting-started.html > Also, I've failed in integration test(others are all success). Is it related > with this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
incubator-unomi git commit: UNOMI-21 Make the default location configurable instead of hardcoded.
Repository: incubator-unomi Updated Branches: refs/heads/master 121fbc8af -> 023009de6 UNOMI-21 Make the default location configurable instead of hardcoded. Signed-off-by: Serge Huber Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/023009de Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/023009de Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/023009de Branch: refs/heads/master Commit: 023009de6212050c3dfcb3f3ca427f509282cad6 Parents: 121fbc8 Author: Serge Huber Authored: Wed Feb 15 17:30:57 2017 +0100 Committer: Serge Huber Committed: Wed Feb 15 17:30:57 2017 +0100 -- .../actions/SetRemoteHostInfoAction.java| 57 +--- .../resources/OSGI-INF/blueprint/blueprint.xml | 20 +++ .../org.apache.unomi.plugins.request.cfg| 12 - 3 files changed, 80 insertions(+), 9 deletions(-) -- http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/023009de/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java -- diff --git a/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java b/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java index 0f4d6ef..f8f70e3 100644 --- a/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java +++ b/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java @@ -46,10 +46,51 @@ public class SetRemoteHostInfoAction implements ActionExecutor { private DatabaseReader databaseReader; private String pathToGeoLocationDatabase; +private String defaultSessionCountryCode = "CH"; +private String defaultSessionCountryName = "Switzerland"; +private String defaultSessionCity = "Geneva"; +private String defaultSessionAdminSubDiv1 = "2660645"; +private String defaultSessionAdminSubDiv2 = "6458783"; +private String defaultSessionIsp = "Cablecom"; +private double defaultLatitude = 46.1884341; +private double defaultLongitude = 6.1282508; + public void setPathToGeoLocationDatabase(String pathToGeoLocationDatabase) { this.pathToGeoLocationDatabase = pathToGeoLocationDatabase; } +public void setDefaultSessionCountryCode(String defaultSessionCountryCode) { +this.defaultSessionCountryCode = defaultSessionCountryCode; +} + +public void setDefaultSessionCountryName(String defaultSessionCountryName) { +this.defaultSessionCountryName = defaultSessionCountryName; +} + +public void setDefaultSessionCity(String defaultSessionCity) { +this.defaultSessionCity = defaultSessionCity; +} + +public void setDefaultSessionAdminSubDiv1(String defaultSessionAdminSubDiv1) { +this.defaultSessionAdminSubDiv1 = defaultSessionAdminSubDiv1; +} + +public void setDefaultSessionAdminSubDiv2(String defaultSessionAdminSubDiv2) { +this.defaultSessionAdminSubDiv2 = defaultSessionAdminSubDiv2; +} + +public void setDefaultSessionIsp(String defaultSessionIsp) { +this.defaultSessionIsp = defaultSessionIsp; +} + +public void setDefaultLatitude(double defaultLatitude) { +this.defaultLatitude = defaultLatitude; +} + +public void setDefaultLongitude(double defaultLongitude) { +this.defaultLongitude = defaultLongitude; +} + @Override public int execute(Action action, Event event) { HttpServletRequest httpServletRequest = (HttpServletRequest) event.getAttributes().get(Event.HTTP_REQUEST_ATTRIBUTE); @@ -79,15 +120,15 @@ public class SetRemoteHostInfoAction implements ActionExecutor { if (!remoteAddr.equals("127.0.0.1") && IPV4.matcher(remoteAddr).matches()) { ipLookup(remoteAddr, session); } else { -session.setProperty("sessionCountryCode", "CH"); -session.setProperty("sessionCountryName", "Switzerland"); -session.setProperty("sessionCity", "Geneva"); -session.setProperty("sessionAdminSubDiv1", "GE"); -session.setProperty("sessionAdminSubDiv2", "2500"); -session.setProperty("sessionIsp", "Cablecom"); +session.setProperty("sessionCountryCode", defaultSessionCountryCode); +session.setProperty("sessionCountryName", defaultSessionCountryName); +session.setProperty("sessionCity", defaultSessionCity); +session.setProperty("sessionAdminSubDiv1", defaultSessionAdminSubDiv1); +session.setProperty("sessionAdminSubDiv2", defaul
incubator-unomi git commit: UNOMI-21 Make the default location configurable instead of hardcoded. - Quick documentation
Repository: incubator-unomi Updated Branches: refs/heads/master 023009de6 -> 06030beff UNOMI-21 Make the default location configurable instead of hardcoded. - Quick documentation Signed-off-by: Serge Huber Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/06030bef Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/06030bef Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/06030bef Branch: refs/heads/master Commit: 06030beff112bb0ac2bea94dbba0d011be0b7e83 Parents: 023009d Author: Serge Huber Authored: Wed Feb 15 17:34:24 2017 +0100 Committer: Serge Huber Committed: Wed Feb 15 17:34:24 2017 +0100 -- src/site/markdown/configuration.md | 22 ++ 1 file changed, 22 insertions(+) -- http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/06030bef/src/site/markdown/configuration.md -- diff --git a/src/site/markdown/configuration.md b/src/site/markdown/configuration.md index 1d39ba9..5880732 100644 --- a/src/site/markdown/configuration.md +++ b/src/site/markdown/configuration.md @@ -281,3 +281,25 @@ common.conf: ProxyPass / http://localhost:8181/ connectiontimeout=20 timeout=300 ttl=120 ProxyPassReverse / http://localhost:8181/ + +Changing the default tracking location +-- + +When performing localhost requests to Apache Unomi, a default location will be used to insert values into the session +to make the location-based personalization still work. You can find the default location settings in the file : + +org.apache.unomi.plugins.request.cfg + +that contains the following default settings: + +# The following settings represent the default position that is used for localhost requests +defaultSessionCountryCode=CH +defaultSessionCountryName=Switzerland +defaultSessionCity=Geneva +defaultSessionAdminSubDiv1=2660645 +defaultSessionAdminSubDiv2=6458783 +defaultSessionIsp=Cablecom +defaultLatitude=46.1884341 +defaultLongitude=6.1282508 + +You might want to change these for testing or for demonstration purposes. \ No newline at end of file
[jira] [Resolved] (UNOMI-21) Make the default location configurable instead of hardcoded.
[ https://issues.apache.org/jira/browse/UNOMI-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Serge Huber resolved UNOMI-21. -- Resolution: Fixed Settings have been moved to configuration file : org.apache.unomi.plugins.request.cfg And the configuration documentation has been updated to document these settings. > Make the default location configurable instead of hardcoded. > > > Key: UNOMI-21 > URL: https://issues.apache.org/jira/browse/UNOMI-21 > Project: Apache Unomi > Issue Type: Improvement > Components: core >Affects Versions: 1.0.0-incubating, 1.1.0-incubating >Reporter: Serge Huber >Priority: Minor > Fix For: 1.2.0-incubating > > Original Estimate: 24h > Remaining Estimate: 24h > > Currently in the file > /Users/loom/java/technologies/apache-git/incubator-unomi/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java > We have the following hardcoded location : > {code} > session.setProperty("sessionCountryCode", "CH"); > session.setProperty("sessionCountryName", "Switzerland"); > session.setProperty("sessionCity", "Geneva"); > session.setProperty("sessionAdminSubDiv1", "GE"); > session.setProperty("sessionAdminSubDiv2", "2500"); > session.setProperty("sessionIsp", "Cablecom"); > Map location = new HashMap(); > location.put("lat", 46.1884341); > location.put("lon", 6.1282508); > session.setProperty("location", location); > {code} > We should make this configurable using OSGi configuration -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (UNOMI-80) Stopped in initializing
[ https://issues.apache.org/jira/browse/UNOMI-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869165#comment-15869165 ] Kwang-in (Dennis) JUNG commented on UNOMI-80: - [~shuber] Thanks for quick reply! But I still failed after reboot my laptop and try karaf start. ``` __ __ / //_/ __ _/ __/ / ,< / __ `/ ___/ __ `/ /_ / /| |/ /_/ / / / /_/ / __/ /_/ |_|\__,_/_/ \__,_/_/ Apache Karaf (3.0.8) Hit '' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf. karaf@root()> Initializing Unomi... ``` It does not go onward after this. By document, it looks like something more need to show like `initializing ` > Stopped in initializing > --- > > Key: UNOMI-80 > URL: https://issues.apache.org/jira/browse/UNOMI-80 > Project: Apache Unomi > Issue Type: Test >Reporter: Kwang-in (Dennis) JUNG >Priority: Trivial > > Hello~just joined! > I'm following up instruction guide, but it stops while init when starting > with 'karaf start'. > ``` > karaf@root()> Exception in thread "JMX Connector Thread > [service:jmx:rmi://0.0.0.0:4/jndi/rmi://0.0.0.0:1099/karaf-root]" > java.lang.RuntimeException: > Port already in use: 4; > You may have started two containers. If you need to start a second container > or the default ports are already in use update the config file > etc/org.apache.karaf.management.cfg and change the Registry Port and Server > Port to unused ports > at > org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278) > Initializing Unomi... > ``` > It does not go on as mentioned in getting started page. > http://unomi.incubator.apache.org/getting-started.html > Also, I've failed in integration test(others are all success). Is it related > with this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Comment Edited] (UNOMI-80) Stopped in initializing
[ https://issues.apache.org/jira/browse/UNOMI-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869165#comment-15869165 ] Kwang-in (Dennis) JUNG edited comment on UNOMI-80 at 2/16/17 4:44 AM: -- [~shuber] Thanks for quick reply! But I still failed after reboot my laptop and try karaf start. $ ./bin/karaf start __ __ / //_/ __ _/ __/ / ,< / __ `/ ___/ __ `/ /_ / /| |/ /_/ / / / /_/ / __/ /_/ |_|\__,_/_/ \__,_/_/ Apache Karaf (3.0.8) Hit '' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf. karaf@root()> Initializing Unomi... It does not go onward after this. By document, it looks like something more need to show like `initializing ` was (Author: djkooks): [~shuber] Thanks for quick reply! But I still failed after reboot my laptop and try karaf start. ``` __ __ / //_/ __ _/ __/ / ,< / __ `/ ___/ __ `/ /_ / /| |/ /_/ / / / /_/ / __/ /_/ |_|\__,_/_/ \__,_/_/ Apache Karaf (3.0.8) Hit '' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf. karaf@root()> Initializing Unomi... ``` It does not go onward after this. By document, it looks like something more need to show like `initializing ` > Stopped in initializing > --- > > Key: UNOMI-80 > URL: https://issues.apache.org/jira/browse/UNOMI-80 > Project: Apache Unomi > Issue Type: Test >Reporter: Kwang-in (Dennis) JUNG >Priority: Trivial > > Hello~just joined! > I'm following up instruction guide, but it stops while init when starting > with 'karaf start'. > ``` > karaf@root()> Exception in thread "JMX Connector Thread > [service:jmx:rmi://0.0.0.0:4/jndi/rmi://0.0.0.0:1099/karaf-root]" > java.lang.RuntimeException: > Port already in use: 4; > You may have started two containers. If you need to start a second container > or the default ports are already in use update the config file > etc/org.apache.karaf.management.cfg and change the Registry Port and Server > Port to unused ports > at > org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278) > Initializing Unomi... > ``` > It does not go on as mentioned in getting started page. > http://unomi.incubator.apache.org/getting-started.html > Also, I've failed in integration test(others are all success). Is it related > with this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (UNOMI-80) Stopped in initializing
[ https://issues.apache.org/jira/browse/UNOMI-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869360#comment-15869360 ] Serge Huber commented on UNOMI-80: -- Ok I think I know what the problem is. You need to first install ElasticSearch. Unfortunately as you are using the master, the updated documentation is not yet available on the site, but you can find it here: 1. Starting with version 1.2, Apache Unomi no longer embeds an ElasticSearch server as this is no longer supported by the developers of ElasticSearch. Therefore you will need to install a standalone ElasticSearch using the following steps: 2. Download an ElasticSearch 5.1.2 here: https://www.elastic.co/downloads/past-releases/elasticsearch-5-1-2 3. Uncompress the downloaded package into a directory and launch the server using bin/elasticsearch (Mac, Linux) bin\elasticsearch.bat (Windows) 4. Check that the ElasticSearch is up and running by accessing the following URL : http://localhost:9200 If I have some time I'll try to get the updated documentation published. Best regards, Serge Huber. > Stopped in initializing > --- > > Key: UNOMI-80 > URL: https://issues.apache.org/jira/browse/UNOMI-80 > Project: Apache Unomi > Issue Type: Test >Reporter: Kwang-in (Dennis) JUNG >Priority: Trivial > > Hello~just joined! > I'm following up instruction guide, but it stops while init when starting > with 'karaf start'. > ``` > karaf@root()> Exception in thread "JMX Connector Thread > [service:jmx:rmi://0.0.0.0:4/jndi/rmi://0.0.0.0:1099/karaf-root]" > java.lang.RuntimeException: > Port already in use: 4; > You may have started two containers. If you need to start a second container > or the default ports are already in use update the config file > etc/org.apache.karaf.management.cfg and change the Registry Port and Server > Port to unused ports > at > org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278) > Initializing Unomi... > ``` > It does not go on as mentioned in getting started page. > http://unomi.incubator.apache.org/getting-started.html > Also, I've failed in integration test(others are all success). Is it related > with this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Comment Edited] (UNOMI-80) Stopped in initializing
[ https://issues.apache.org/jira/browse/UNOMI-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869360#comment-15869360 ] Serge Huber edited comment on UNOMI-80 at 2/16/17 7:00 AM: --- Ok I think I know what the problem is. You need to first install ElasticSearch. Unfortunately as you are using the master, the updated documentation is not yet available on the site, but you can find it here: 1. Starting with version 1.2, Apache Unomi no longer embeds an ElasticSearch server as this is no longer supported by the developers of ElasticSearch. Therefore you will need to install a standalone ElasticSearch using the following steps: 2. Download an ElasticSearch 5.1.2 here: https://www.elastic.co/downloads/past-releases/elasticsearch-5-1-2 3. Uncompress the downloaded package into a directory 4. In the config/elasticsearch.yml, change the following setting to the following value: cluster.name: contextElasticSearch 5. Launch the server using bin/elasticsearch (Mac, Linux) bin\elasticsearch.bat (Windows) 6. Check that the ElasticSearch is up and running by accessing the following URL : http://localhost:9200 If I have some time I'll try to get the updated documentation published. Best regards, Serge Huber. was (Author: shuber): Ok I think I know what the problem is. You need to first install ElasticSearch. Unfortunately as you are using the master, the updated documentation is not yet available on the site, but you can find it here: 1. Starting with version 1.2, Apache Unomi no longer embeds an ElasticSearch server as this is no longer supported by the developers of ElasticSearch. Therefore you will need to install a standalone ElasticSearch using the following steps: 2. Download an ElasticSearch 5.1.2 here: https://www.elastic.co/downloads/past-releases/elasticsearch-5-1-2 3. Uncompress the downloaded package into a directory and launch the server using bin/elasticsearch (Mac, Linux) bin\elasticsearch.bat (Windows) 4. Check that the ElasticSearch is up and running by accessing the following URL : http://localhost:9200 If I have some time I'll try to get the updated documentation published. Best regards, Serge Huber. > Stopped in initializing > --- > > Key: UNOMI-80 > URL: https://issues.apache.org/jira/browse/UNOMI-80 > Project: Apache Unomi > Issue Type: Test >Reporter: Kwang-in (Dennis) JUNG >Priority: Trivial > > Hello~just joined! > I'm following up instruction guide, but it stops while init when starting > with 'karaf start'. > ``` > karaf@root()> Exception in thread "JMX Connector Thread > [service:jmx:rmi://0.0.0.0:4/jndi/rmi://0.0.0.0:1099/karaf-root]" > java.lang.RuntimeException: > Port already in use: 4; > You may have started two containers. If you need to start a second container > or the default ports are already in use update the config file > etc/org.apache.karaf.management.cfg and change the Registry Port and Server > Port to unused ports > at > org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278) > Initializing Unomi... > ``` > It does not go on as mentioned in getting started page. > http://unomi.incubator.apache.org/getting-started.html > Also, I've failed in integration test(others are all success). Is it related > with this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (UNOMI-80) Stopped in initializing
[ https://issues.apache.org/jira/browse/UNOMI-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869436#comment-15869436 ] Kwang-in (Dennis) JUNG commented on UNOMI-80: - [~bhillou] I just tried again with running elasticsearch and run karaf, but still causing same as before. This is what being showed in localhost:9200. Is it only supports ES version 5.1.2? Because I tested in 5.2.0(which was already installed in my computer) -- { "name" : "DH6XhAa", "cluster_name" : "contextElasticSearch", "cluster_uuid" : "bsD5BlR-SLKiXYat1V7RDA", "version" : { "number" : "5.2.0", "build_hash" : "24e05b9", "build_date" : "2017-01-24T19:52:35.800Z", "build_snapshot" : false, "lucene_version" : "6.4.0" }, "tagline" : "You Know, for Search" } -- Thanks. > Stopped in initializing > --- > > Key: UNOMI-80 > URL: https://issues.apache.org/jira/browse/UNOMI-80 > Project: Apache Unomi > Issue Type: Test >Reporter: Kwang-in (Dennis) JUNG >Priority: Trivial > > Hello~just joined! > I'm following up instruction guide, but it stops while init when starting > with 'karaf start'. > ``` > karaf@root()> Exception in thread "JMX Connector Thread > [service:jmx:rmi://0.0.0.0:4/jndi/rmi://0.0.0.0:1099/karaf-root]" > java.lang.RuntimeException: > Port already in use: 4; > You may have started two containers. If you need to start a second container > or the default ports are already in use update the config file > etc/org.apache.karaf.management.cfg and change the Registry Port and Server > Port to unused ports > at > org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278) > Initializing Unomi... > ``` > It does not go on as mentioned in getting started page. > http://unomi.incubator.apache.org/getting-started.html > Also, I've failed in integration test(others are all success). Is it related > with this? -- This message was sent by Atlassian JIRA (v6.3.15#6346)