Neo4j][SpringSource][Cineasts]Help for running cineasts project

184 views
Skip to first unread message

José Daniel Ruiz Sánchez

unread,
May 17, 2013, 4:41:19 AM5/17/13
to ne...@googlegroups.com

Hello, I have been trying for 1 months operating cineasts project.

https://github.com/SpringSource/spring-data-neo4j/tree/master/spring-data-neo4j-examples/cineasts

  Has anyone actually functional?

What I have done:

1. Import maven project with Eclipse Juno
2. change broken repositories.  Code1*
3. run maven with the commands: compile, install, verify, test, jetty:run

My main concern is the code that is commented:

<!-- neo4j:config graphDatabaseService="graphDatabaseService"/>
    <bean id="graphDatabaseService" class="org.springframework.data.neo4j.rest.SpringRestGraphDatabase">
        <constructor-arg value="http://localhost:7474"/>
    </bean-->



If this commented as I have to throw Neo4j, externally to the project? That is, run from windows?
And if so, that used the generated folder called taget / data / graph.db


other question, themoviedb.org api that comes in the code, I have to create my own user?
Because if worked well where I could see objects brought from the database?




If someone helps me, aportate a mini-guide for newbies. That sure there are more like me.
Sorry for my English.


------------------

code1*

<repository>
            <id>spring-maven-release</id>
            <name>Spring Maven Release Repository</name>
            <url>http://repo.springsource.org/release/</url>
            <!--  url>http://maven.springframework.org/release</url-->
        </repository>
       
        <!-- For testing against latest Spring snapshots -->
       
        <repository>
            <id>spring-maven-snapshot</id>
            <name>Spring Maven Snapshot Repository</name>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <url>http://repo.springsource.org/snapshot/</url>
            <!--  url>http://maven.springframework.org/snapshot</url-->
        </repository>
       
        <!-- For developing against latest Spring milestones -->
       
        <repository>
            <id>spring-maven-milestone</id>
            <name>Spring Maven Milestone Repository</name>
            <url>http://repo.springsource.org/milestone/</url>
            <!--  url>http://maven.springframework.org/milestone</url-->
        </repository>

        <repository>
          <id>neo4j-snapshot-repository</id>
          <name>Neo4j Maven 2 snapshot repository</name>
          <!-- url>http://m2.neo4j.org/snapshots</url-->
          <url>http://m2.neo4j.org/content/repositories/snapshots</url>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <releases>
            <enabled>false</enabled>
          </releases>
        </repository>

 

José Daniel Ruiz Sánchez

unread,
May 18, 2013, 4:51:14 AM5/18/13
to ne...@googlegroups.com
hi, again. I need know if the example should work cineasts perfect without touching the code or not.

Michael Hunger

unread,
May 18, 2013, 7:26:52 AM5/18/13
to ne...@googlegroups.com
I will look into it, just returned from travel though so it will take until next week.

Michael

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

rootsical

unread,
May 19, 2013, 9:59:38 AM5/19/13
to ne...@googlegroups.com
hi jose'. i have also tried to get it working. this is what i did.

i downloaded the zip file from github here: https://github.com/neo4j-examples/cineasts
i extracted the contents of the zip
i renamed the folder from cineasts-master to cineasts and moved it to somewhere convenient and easy to find on my pc
i opened up eclipse (my version is juno 4.2 for which i also have the eclipse maven plugin and the aptana studio plugin installed)
i went to file->import->maven->existing maven projects
for the root directory i chose the location of the downloaded cineasts folder
then i clicked finish
the project imported
i now selected the root element of the imported project and right-clicked
then i selected run as->Maven build
in the goal section of the run configuration dialog, i entered jetty:run (because in the pom you will see it has a build plugin and runs on jetty)
the jetty server started up (with no problems in my case)
then i went to my web browser (firefox for me) and navigated to localhost:8080
the cineasts home page appeared for me without a problem
then i navigated to localhost:8080/populate
this adds some json files of data as i believe there is no data to begin with
the page will not change in the browser but will just be 'connecting'
in eclipse you can check it is doing something by navigating to the data/json folder in your project
you should see a number of movie and person json files being added
it takes a long time
i stopped my jetty server in the console by clicking terminate
then i closed my browser, deleted the cache and restarted
i ran my configuration in eclipse again (there should be one called cineast which was created earlier)
again, the jetty server started
i navigated to localhost:8080, to the cineasts home page again
in eclipse i opened up one of the movie json files using the json source editor (which comes with the aptana plugin for eclipse)
i selected all (CTRL + A) and then reformatted to make it easier to read (CTRL+SHIFT+F)
then i looked at the name of a movie json
for example for movie_101.json the name was Leon: The Professional
in the cineasts home page in the browser i searched for the exact name "Leon: The Professional" and it returned a match with all the details showing - great
i also tried to register by creating a new user with random details but unfortunately i got this error:
No element found in org.neo4j.index.impl.lucene.LuceneIndex$1@1d045d9

this is as far as i got.
unfortunately for me i found this example code too complicated.
i found this project here which was easier for me to understand.. it is for heroku deployment but i just ran it on jetty locally by adding the build/plugin and removing all the stuff related to heroku..
http://www.jamesward.com/2012/05/14/graphs-in-the-cloud-spring-neo4j-on-heroku
https://github.com/jamesward/hello-java-spring-neo4j

i hope that helps you, i love the idea of spring data neo4j but unfortunately things are still a bit difficult for me (i have had to learn java/maven/github just to play with a great graph database).

good luck!


Peter Neubauer

unread,
May 19, 2013, 11:59:42 AM5/19/13
to Neo4j User
Actually,
@rootsical, maybe you could do a screencast on this, since it seems to
be a problem for others too? Then we can include it in the README or
do a blog about it.

/peter

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

The authoritative book on graph databases - http://graphdatabases.com
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j

José Daniel Ruiz Sánchez

unread,
May 21, 2013, 5:02:16 AM5/21/13
to ne...@googlegroups.com
Hi @ rootsical, thanks for the info, but I'm just like you. This consisting Me too make it work.

It would be nice, someone who would work to tell us something here.


El viernes, 17 de mayo de 2013 10:41:19 UTC+2, José Daniel Ruiz Sánchez escribió:

José Daniel Ruiz Sánchez

unread,
May 21, 2013, 7:14:56 AM5/21/13
to ne...@googlegroups.com

Hello, I'll start from the beginning. I downloaded Eclipse Juno and now I will import the entire project (https://github.com/SpringSource/spring-data-neo4j) THROUGH maven, and I get the following error:


No marketplace entries found to handle com.springsource.bundlor.maven:1.0.0.RELEASE:bundlor in Eclipse

**
The image is annexed
1.png

José Daniel Ruiz Sánchez

unread,
May 21, 2013, 12:16:24 PM5/21/13
to ne...@googlegroups.com
Forget the last post, I was wrong.

Someone has worked CINEASTS?

Michael Hunger

unread,
May 21, 2013, 2:02:39 PM5/21/13
to ne...@googlegroups.com
Here is what I did:

cd spring-data-neo4j-examples/cineasts
mvn compile jetty:run


There seems to be an issue with the data format of the source (images, cast) but in general it works.

I look into those issue.

Michael

Peter Neubauer

unread,
May 21, 2013, 2:22:55 PM5/21/13
to Neo4j User
Well,
I think there is a problem in the HelloWorlds,

Tests in error:
shouldHaveCustomIndexNames(org.springframework.data.neo4j.examples.hellograph.GalaxyServiceCustomIndexProviderTest):
Failed to load ApplicationContext

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

-peter

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

The authoritative book on graph databases - http://graphdatabases.com
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j


José Daniel Ruiz Sánchez

unread,
May 21, 2013, 4:36:20 PM5/21/13
to ne...@googlegroups.com
Hello Michael, when I run:
compile jetty: run

I have these problems:


https://gist.github.com/anonymous/5623022


Any idea of the problem?
Thx.

Michael Hunger

unread,
May 21, 2013, 4:47:34 PM5/21/13
to ne...@googlegroups.com
The embedded version of cineasts doesn't need the Rest-Access, that's why I'm wondering why it tries to load it in your case?

There is cineasts-rest which is configured to use the (spring-)rest-graphdb and comes with the appropriate dependencies.

Michael

José Daniel Ruiz Sánchez

unread,
May 21, 2013, 5:36:18 PM5/21/13
to ne...@googlegroups.com
 I've only launched the project cineasts.

  I recommend to launch cineasts-rest?

rootsical

unread,
May 22, 2013, 2:58:08 PM5/22/13
to ne...@googlegroups.com
@Peter Neubauer

i tried to do a screencast.. my first one so go easy

http://youtu.be/DAJvvchL_oE

José Daniel Ruiz Sánchez

unread,
May 24, 2013, 9:51:49 AM5/24/13
to ne...@googlegroups.com
Thanks for video. I will try

José Daniel Ruiz Sánchez

unread,
May 24, 2013, 10:09:48 AM5/24/13
to ne...@googlegroups.com
one more question.
How to visualize with Neo4j, the project cineasts?
I have to run it from windows and
change settings  the position of the database file "conf/neo4j-server.properties"


El miércoles, 22 de mayo de 2013 20:58:08 UTC+2, rootsical escribió:

Peter Neubauer

unread,
May 27, 2013, 4:07:07 AM5/27/13
to Neo4j User
Yes,
that should work. what does the fiel look like for you? What is the problem?

/peter

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Neo4j 1.9 GA is out -
http://blog.neo4j.org/2013/05/neo4j-19-general-availability.html
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j


Reply all
Reply to author
Forward
0 new messages