I have changed my 'python' reference to point to my 2.7 version (which
seems to be working).

When I start the server and then run this in another terminal window I get
this:

[root@cs4-devcloud incubator-cloudstack]# mvn -Pdeveloper,marvin.sync
-Dendpoint=localhost -pl :cloud-marvin
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
[../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized,
jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Aborted

I have also tried using the actual IP of my server instead of localhost
(but it gives the same error).  I will need to figure out what is blocking
it here.

Thanks again...


On Tue, Apr 23, 2013 at 1:55 PM, Prasanna Santhanam <t...@apache.org> wrote:

> The error you are seeing is because you need the management server
> running in a separate shell. What marvin.sync does is it discovers
> APIs on a running management server, generates marvin classes and
> updates the marvin to latest for python to discover it.
>
> The CentOS python 2.6 is certainly a problem. What you could do is
> install python2.7 and alias python to python2.7. That way when you run
> it from mvn you call python2.7 and things like yum don't break.
>
> Thanks,
>
> --
> Prasanna.,
>
> On Tue, Apr 23, 2013 at 01:39:15PM -0400, Will Stevens wrote:
> > Thanks for responding Prasanna.  Because I am working on CentOs,
> python2.6
> > is the default python install.  I have python2.7 installed, but I have to
> > access it with python2.7 instead of python.  I believe there are actually
> > problems with CentOs if I change the 'python' command to point to
> python2.7
> > (so I have been told, but I will try it).
> >
> > Is it possible to run this marvin.sync command from the command line
> > specifying the version of python to use?
> >
> > Thanks,
> >
> > Will
> >
> > ps - this fails right now because python2.6 is my default:
> >
> > [root@cs4-devcloud incubator-cloudstack]# mvn -Pdeveloper,marvin.sync
> > -Dendpoint=localhost -pl :cloud-marvin
> > Listening for transport dt_socket at address: 8787
> > [INFO] Scanning for projects...
> > [INFO]
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building Apache CloudStack marvin 4.2.0-SNAPSHOT
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO]
> > [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin
> > ---
> > Traceback (most recent call last):
> >   File "codegenerator.py", line 412, in <module>
> >     cg.generateCodeFromJSON(endpointUrl)
> >   File "codegenerator.py", line 366, in generateCodeFromJSON
> >     apiStream = urllib2.urlopen(endpointUrl)
> >   File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
> >     return _opener.open(url, data, timeout)
> >   File "/usr/lib64/python2.6/urllib2.py", line 391, in open
> >     response = self._open(req, data)
> >   File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
> >     '_open', req)
> >   File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
> >     result = func(*args)
> >   File "/usr/lib64/python2.6/urllib2.py", line 1190, in http_open
> >     return self.do_open(httplib.HTTPConnection, req)
> >   File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
> >     raise URLError(err)
> > urllib2.URLError: <urlopen error [Errno 111] Connection refused>
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 3.432s
> > [INFO] Finished at: Tue Apr 23 13:34:31 EDT 2013
> > [INFO] Final Memory: 13M/32M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (generate-sources) on
> > project cloud-marvin: Command execution failed. Process exited with an
> > error: 1 (Exit value: 1) -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> >
> >
> > On Tue, Apr 23, 2013 at 1:16 PM, Prasanna Santhanam <t...@apache.org>
> wrote:
> >
> > > On Tue, Apr 23, 2013 at 10:40:58PM +0530, Prasanna Santhanam wrote:
> > > > You will need to update marvin since I changed the
> > > > cloudstackConnection class last week to get POST requests to work.
> > > >
> > > > When you startup the server using jetty:run you can do a marvin.sync
> > > > as follows:
> > > >
> > > >
> > > typo:
> > > $ sudo mvn -Pdeveloper,marvin.sync -Dendpoint=localhost -pl
> :cloud-marvin
> > > * marvin.sync
> > >
> > > ------------------------
> > > Powered by BigRock.com
> > >
> > >
>
>
> ------------------------
> Powered by BigRock.com
>
>

Reply via email to