[ https://issues.apache.org/jira/browse/SLING-7457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350169#comment-16350169 ]
frederic rougeot commented on SLING-7457: ----------------------------------------- I tried and it still does not work. I did not download form the repository, since I am using the latest JDK, as i mentionned in another ticket to get sling to work I had to build it from source. So What I did is: * remove the target directory * mvn clean install * launch mongodb (on Windows) * launch sling: ** cd target ** java -jar org.apache.sling.starter-10-SNAPSHOT.jar -Dsling.run.modes=oak_mongo * access to sling web page * Wait 10 minutes * access to sling web page The result is: I got the following line in sling logs INFOS: Monitor thread successfully connected to server with description ServerDescription\{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 6, 2]}, minWireVersion=0, maxWireVersion=6, maxDocumentSize=16777216, roundTripTimeNanos=1324019} BUT when accessing [http://localhost:8080|http://localhost:8080/] it is written thant sling is launching (not launched) checking the mongodb database, nothing is created (no sling table created) ... (two days before, when I tried with the nosql launcher, the sling database was created (I got a 403)) Mongodb version is 3.6 ... > Poor documentation on mongoDB or other NOSQL use > ------------------------------------------------ > > Key: SLING-7457 > URL: https://issues.apache.org/jira/browse/SLING-7457 > Project: Sling > Issue Type: Bug > Components: Documentation > Reporter: frederic rougeot > Priority: Major > > I am evaluating sling. > I succeed in setting it up and it works as I thought, seems to be a very > valuable product for those who want to rapidlly build a software that relies > on JCR, which is my case. > But the next question is "Should I use a noSQL Database or not". As it may be > an important choice, since Sling is not really compatible with SQL database, > I wanted to make sling run with MongoDB. > I read the documentation, and at first impression, it seemed quite immediate; > I simply have to add an option to change the mode of launching the starter > application, as it is said in the following documentation: > [https://sling.apache.org/documentation/the-sling-engine/the-sling-launchpad.html] > > So I tried to launch the starter application with the following lines: > java -Dsling.run.modes=oak,oak_mongo -jar > org.apache.sling.starter-10-SNAPSHOT.jar > and checked with a mongodb client if a mongodb server was started or not ... > As I was unable to connect to mongodb://localhost:27017 I guess something is > missing, maybe mongodb should be installed separetely ? > > I continue reading the documentation, and find > [https://sling.apache.org/documentation/bundles/nosql-resource-providers.html] > OK, my conclusion was I missed to install the nosql-resource-providers, so I > installed the bundle and check again ... > Nothing new, it seems I have done nothing. > So, always according to > [https://sling.apache.org/documentation/bundles/nosql-resource-providers.html,] > there is another launchpad to use. > There is the link to the source code: > https://github.com/apache/sling-old-svn-mirror/tree/trunk/contrib/nosql/launchpad > But it is said that this source repository is obsolete and shall not be used. > So I get back to apache git repository, and filtered on "sling" and "nosql", > I can find some code now ... > https://github.com/apache?utf8=%E2%9C%93&q=sling+nosql&type=&language= > But it is absolutely not clear to me whether I have to do something with that > modules or not ... > So my real problem is I can't get the right documentation on "How to setup > Sling 9 to work with mongodb" and there is, as far as I know, no forum where > I can ask this to a community to help. > I guess sling is working well with mongoDB, but if I need 10 days to set it > up (I spend 1 day, maybe it is not enough) my point of view is made: I won't > use mongodb. > But this maybe a terrible mistake ! > > So help please ! > > > > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)