Hi,

I am getting the following error while trying to run shindig in the debug
mode

The projects in the reactor contain a cyclic reference: Edge between
'Vertex{label='org.apache.shindig:shindig-gadgets'}' and
'Vertex{label='org.apache.shindig:shindig-gadgets'}' introduces to cycle in
the graph org.apache.shindig:shindig-gadgets -->
org.apache.shindig:shindig-gadgets

I am giving -Prun as the mvn argument in the External Tools.

I am following the steps outlined below from Chris's article : this use to
run with earlier version of shindig before -Prun came into picture :-(

*Creating run and debug profiles in Eclipse *

Running Shindig out of the box is possible by using the included Jetty
server <http://www.mortbay.org/jetty-6/>. Maven can start Jetty directly
with the command, "mvn jetty:run" or "mvn jetty:run-war". These would be
executed in the <shindig_home>/java directory. Shindig however now uses a
higher level "mvn -Prun" which also starts Jetty as well but it is launched
directly from the <shindig_home> directory. In order to run Shindig from
Eclipse, you can set up run and debug profiles within Eclipse that execute
this same high level mvn command ("mvn -Prun").

To create an external tools run profile to execute the command "mvn -Prun",
do the following:

(Running Jetty from mvn steps adapted from:
http://cwiki.apache.org/WICKET/maven-jetty-plugin.html )

   1. In eclipse, from the main menu, select: "Run --> External Tools -->
   Open External Tools Dialog..."
   2. In the upper left hand corner of the dialog click on the icon for "New
   launch configuration".
   3. You can name this configuration something like: "mvn_run".
   4. On the "Main" tab, fill in the "Location:" as the full path to your
   "mvn" executable.
   For example: /usr/local/apache-maven/apache-maven-2.0.8/bin/mvn
   5. Edit the "Working Directory:" field. Select the workspace and project
   that matches your Shindig project. Ex: ${workspace_loc:/shindig-all}
   6. For Arguments: add "-Prun" (without quotes).
   7. In the same dialog, now click on the "Environment" tab.
   8. Add these two variables with values:
   JAVA_HOME
   { path to parent of your Java bin directory. ex: /usr }
   MAVEN_OPTS
   -Xdebug -Xnoagent -Djava.compiler=NONE
   -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y

   9. Click Apply and Close.

You can now launch Shindig with a JPDA port of 4000.

To debug Shindig, you'll need to create a Debug profile.
This step allows you to launch your Shindig project in debug mode and attach
to Jetty.

   1. In Eclipse, form the main menu, select "Run --> Open Debug Dialog..."
   2. In the dialog, select "Remote Java Application".
   3. Click on the icon for "New launch configuration".
   4. Feel free to name this configuration, "shindig_debug".
   5. For the "Project:", select your shindig server project that you
   created earlier. (ex: shindig-all).
   6. Under the "Connection Properties" set the port to 4000, which is the
   same "address=" port specified in your Jetty run configuration above.
   7. Click Apply and Close.
   8. That's it, you can now run Shindig from Eclipse!

Reply via email to