Examples pom.xml. parents and repositories, was: Check the samples

799 views
Skip to first unread message

David Toy

unread,
Dec 12, 2013, 8:31:06 AM12/12/13
to brookly...@googlegroups.com, brookl...@googlegroups.com
Hi Jose,

(Adding the devs group. If replying to dev, please remove users group.)

Jose,

The problem here is that the simple-web-cluster/pom.xml is missing a < repositories > section that is included in brooklyn-examples/pom.xml.

Normally brooklyn-examples would be the parent of simple-web-cluster, and the dependencies would resolve, via the <relativePath> of the <parent> in simple-web-cluster/pom.xml. 

I'm not an Eclipse user, but I suspect that if you import brooklyn-examples as your project and work on simple-web-cluster within that, then Eclipse+Maven will be happy.

Alternatively, you could add the repositories section for sonatype-nexus-snapshots from brooklyn-examples/pom.xml to your simple-web-cluster/pom.xml.

Devs,

This issue occurs because each example has been written to be part of the brooklyn-examples project, and not stand alone.

We (I) previously had a similar problem when using the examples with the dist tgz,  resolved with PR 480. [1]

Should we add the < repositories > section to each example pom?
The repository shouldn't change much, so this should not create ongoing maintenance issues(?).

Alternatively, do we need to be clearer with instructions for the examples in the docs?

Thanks,
David



On Thu, Dec 12, 2013 at 12:53 PM, Molnár Mihály László <laci...@gmail.com> wrote:
Hi Jose,

I dont if this helps you, but I used CLI maven to build brooklyn, and not from eclipse. So maybe you can try that too to see if its ok.


Rusty


On Thu, Dec 12, 2013 at 1:19 PM, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

Now I am trying to prove the  application examples from http://brooklyncentral.github.io/use/examples/index.html.

I have download the code from github using the github  deskopt application for Windows (I am using Windows 7). Following I am build the project correctly in NetBeans, The maven dependences are resulved and the project are built. However, I do not get to build the sample code in Eclipse, so I have decided ask about this questions in this tread*. 
I have import the parent project (brooklyn-sampled which is download from GitHub) as Maven project in Eclipse, the project is built and the dependences resolved.
The next step is open the simple-web-cluster example (I want to see the class to understand how brooklyn work and how the application is built), but this callenge look like impossible for me.
I have imported the simple-web-cluster as a maven project from the parent project(which is built in the previous step), nevertheless the result is not as expected. There are some errors in the pom, you can see them in the picture. The dependences is not resolved and the java classes are not recognized.


I have used maven before with other projects but I do not find the error in this case, should anyboy help me please? :-)

Thanks a lot.

Jose

*I do know if this is the correct thread to ask  one more time, so if it is not I will change  it.

El martes, 10 de diciembre de 2013 16:36:55 UTC+1, David Toy escribió:
Jose,

Great to read!

fyi - This GitHub repo[1] of catalogs and properties may be useful as you continue with Brooklyn.

David



On Tue, Dec 10, 2013 at 3:30 PM, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

Yes, this was the problem.

Thanks a los Richar and David.
I am begining to use Brooklyn so I will ask about this challenge a lot ;-)

Jose

El martes, 10 de diciembre de 2013 15:50:35 UTC+1, David Toy escribió:
Hi Jose, Richard,

I've had a similar problem when I copied and pasted a catalog.xml from my web browser, rather than downloading it with curl or wget.

The urls in your catalog have become un-urlencode-d. Check the ampersands.

Your urls should have "&amp;",  not "&".

Good

Bad:

Let us know how you get on!
HTH,
David



On Tue, Dec 10, 2013 at 2:45 PM, Jose Carrasco <kiu...@gmail.com> wrote:
Hello.

Of course, I have  posted the code in http://pastie.org/8542183.

Thanks.
Jose.

El martes, 10 de diciembre de 2013 15:26:43 UTC+1, Richard Downer escribió:
Jose,

I think you're right, the problem is with catalog.xml. It looks like it has an XML syntax error in it. Could you post your catalog.xml here, or in a GitHub gist, or on http://pastie.org? Then I'll see if I can see where the syntax error is.

Richard.


On 10 December 2013 14:11, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

I have changed the root, but I do not get to run correctly the example.
I have the following error:

jose@ubuntu:~/brooklyn-0.6.0$ brooklyn launch
 _                     _    _             
| |__  _ __ ___   ___ | | _| |_   _ _ __ (R)
| '_ \| '__/ _ \ / _ \| |/ / | | | | '_ \ 
| |_) | | | (_) | (_) |   <| | |_| | | | |
|_.__/|_|  \___/ \___/|_|\_\_|\__, |_| |_|
                              |___/             0.6.0

2013-12-10 14:55:21,147 INFO  Starting brooklyn web-console on loopback interface because no security config is set
2013-12-10 14:55:26,113 INFO  Started Brooklyn console at http://127.0.0.1:8081/, running classpath://brooklyn.war and []
2013-12-10 14:55:26,729 WARN  Error importing catalog XML at file://~/.brooklyn/catalog.xml; using default (local classpath) catalog. Error was: com.thoughtworks.xstream.converters.ConversionException:  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)  :  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
---- Debugging information ----
message             :  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
class               : java.lang.String
required-type       : java.lang.String
converter-type      : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   : com.thoughtworks.xstream.converters.basic.StringConverter
path                : /catalog/classpath/entry
line number         : 1
class[1]            : brooklyn.catalog.internal.CatalogClasspathDto
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : brooklyn.catalog.internal.CatalogDto
version             : null
-------------------------------
com.thoughtworks.xstream.converters.ConversionException:  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)  :  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
---- Debugging information ----
message             :  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
class               : java.lang.String
required-type       : java.lang.String
converter-type      : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   : com.thoughtworks.xstream.converters.basic.StringConverter
path                : /catalog/classpath/entry
line number         : 1
class[1]            : brooklyn.catalog.internal.CatalogClasspathDto
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : brooklyn.catalog.internal.CatalogDto
version             : null
-------------------------------
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) ~[xstream-1.4.3.jar:na]
Caused by: com.thoughtworks.xstream.io.StreamException:  : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
    at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124) ~[xstream-1.4.3.jar:na]
Caused by: org.xmlpull.v1.XmlPullParserException: entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755) 
    at org.xmlpull.mxp1.MXParser.parseEntityRef(MXParser.java:2222) ~[xpp3_min-1.1.4c.jar:na]
2013-12-10 14:55:32,660 INFO  Launched Brooklyn; now blocking to wait for cntrl-c or kill
^C2013-12-10 14:59:44,725 INFO  BrooklynWebServer detected shut-down: stopping web-console

I think the problem is catalog.xml, but I am not sure, Do anybody know where is the problem?

Thanks a lot. :-)




El martes, 10 de diciembre de 2013 14:34:56 UTC+1, Richard Downer escribió:
Jose,

The directory for the catalog is ".brooklyn" - with a dot in front.

So I think if you run "mv /home/jose/brooklyn /home/jose/.brooklyn" it should work for you.

Let us know if it works or not!
Thanks
Richard.

Could I ask you to send your replies to brookly...@googlegroups.com too? Since this thread was started on this list, it's good to keep it there so other people can see the answer in future. It also means that other people may be able to help you too.



On 10 December 2013 08:42, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

I have moved brooklyn directory and brooklyn-0.6.0 to home:

/home
     /brooklyn-0.6.0         
     /brooklyn

 but Brooklyn does not find the example installed application.
what do you recommend me?

Thanks a lot.
Jose


2013/12/10 Jose Carrasco <kiu...@gmail.com>
Hello again.

I am sorry, I went to holidays last days. I have prove echo ${HOME}/.brooklyn and it tell me: /home/jose/.brooklyn so My directory structure was wrong and I think this is the problem. The following directory structure is the correct:

/home
  /jose
       /brooklyn-0.6.0
           /bin
           /conf
           /dropin
           /lib
           /patch
           brooklyn.debug.log
           brooklyn.info.log
           LICENSE.txt
           pid_java
           README.md
         
       /brooklyn
           brooklyn.properties
           catalog.xml

I am going to change the directories brooklyn and I will send you the results.
Thanks



2013/12/5 Richard Downer <richard...@cloudsoftcorp.com>
(Adding brooklyn-users list as it seems to have dropped off)

My apologies if I misunderstood, I thought you were running on Windows.

Brooklyn will try to find the files in your home directory. If you run this command, it will tell you where the catalog.xml and brooklyn.properties files should go:

echo ${HOME}/.brooklyn

My guess is that it is /home/brooklyn/.brooklyn but it does depend on the user configuration in your Lubuntu install.



On 5 December 2013 16:12, Jose Carrasco <kiu...@gmail.com> wrote:
Hi.

I am running a virtual machine in my laptop using VirtualBox a Lubuntu (x86).
I have download the jars of the application using the firefox browser on Lubuntu. I have used the jar urls of the catalog.xml to check if this jars are available, and everything is ok, so.. I do not know which will be the problem. Will the VM be?


Thank you for your help.
Jose


2013/12/5 Richard Downer <richard...@cloudsoftcorp.com>
Hi,

Yes, it's correct to download the brooklyn.properties and catalog.xml from the web - the example files from the brooklyn website should be ready-to-go.

Can you tell me a bit more about the machine you are running Brooklyn on? The directory tree you posted looks like it's from a Linux-like system. If you're running this on Windows, are you running Cygwin?

Thanks
Richard.



On 5 December 2013 14:24, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

This is my directory structure

/home
     /brooklyn-0.6.0
         /bin
         /conf
         /dropin
         /lib
         /patch
         brooklyn.debug.log
         brooklyn.info.log
         LICENSE.txt
         pid_java
         README.md
         
     /brooklyn
         brooklyn.properties
         catalog.xml

I downloaded brooklyn.properties and catalog.xml from web. is it correct?

Thanks.


El jueves, 5 de diciembre de 2013 14:54:55 UTC+1, Richard Downer escribió:
Jose,

Where is your catalog.xml file located?

Brooklyn looks for its config files in the ".brooklyn" subdirectory of your home directory. Brooklyn should be using Java's property for the user's home directory, and I would expect on Windows this will be something like "C:\Users\Administrator\.brooklyn" - your catalog.xml and brooklyn.properties should go there.

Richard.



On 5 December 2013 11:32, Jose Carrasco <kiu...@gmail.com> wrote:
Hello.

I have installed Brooklyn in my local machine (on Windows).
I have run Brooklyn using brooklyn launch command, but I do not get see the first example Demo Web Cluster with DB.
I have checked the catalog.xml and the Brooklyn version (0-6-0) are the correct to download the jars.

Any idea?
Thanks.

--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Richard Downer • Principal Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
GitHub richardcloudsoft • Twitter @FrontierTown



--
Richard Downer • Principal Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
GitHub richardcloudsoft • Twitter @FrontierTown




--
Richard Downer • Principal Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
GitHub richardcloudsoft • Twitter @FrontierTown





--
Richard Downer • Principal Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
GitHub richardcloudsoft • Twitter @FrontierTown

--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Richard Downer • Principal Engineer • Cloudsoft Corporation • http://www.cloudsoftcorp.com
GitHub richardcloudsoft • Twitter @FrontierTown

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

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

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

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

Aled Sage

unread,
Dec 12, 2013, 9:46:28 AM12/12/13
to brookly...@googlegroups.com, brookl...@googlegroups.com
Hi Jose/David,

I think that Jose is running with brooklyn 0.6.0 so shouldn't need the <repositories> section (it's all in maven central).

However, if the brooklyn-examples parent directory isn't there [1] then it'll fail to find the <parent> so agree that's the problem.

Jose, to avoid the problem you can checkout the entire brooklyn-examples repo, and including it all in your eclipse workspace.

Alternatively, you could try changing your simple-web-cluster/pom.xml parent section to:
����<parent>
��������<groupId>io.brooklyn</groupId>
��������<artifactId>brooklyn-parent</artifactId>
��������<version>0.6.0</version> <!-- BROOKLYN_VERSION -->
��������<relativePath>../pom.xml</relativePath>
����</parent>

If using a snapshot brooklyn build, then as David said you'll also need:
����<repositories>
��������<!-- enable sonatype snapshots repo (only for snapshots) -->
��������<repository>
������������<id>sonatype-nexus-snapshots</id>
������������<name>Sonatype Nexus Snapshots</name>
������������<url>https://oss.sonatype.org/content/repositories/snapshots</url>
������������<releases> <enabled>false</enabled> </releases>
������������<snapshots> <enabled>true</enabled> </snapshots>
��������</repository>
����</repositories>

---
David, agree clearer docs for examples would be good.
As for adding repository section to each sub-module, I don't think that's enough because the parent's relative path of ../pom.xml would still fail.

Aled

[1] https://github.com/brooklyncentral/brooklyn-examples/blob/master/pom.xml



On 12/12/2013 13:31, David Toy wrote:
Hi Jose,

(Adding the devs group. If replying to dev, please remove users group.)

Jose,

The problem here is that the simple-web-cluster/pom.xml is missing a�< repositories > section that is included in brooklyn-examples/pom.xml.

Normally brooklyn-examples would be the parent of simple-web-cluster, and the dependencies would resolve, via the <relativePath> of the <parent> in simple-web-cluster/pom.xml.�

I'm not an Eclipse user, but I suspect that if you import brooklyn-examples as your project and work on simple-web-cluster within that, then Eclipse+Maven will be happy.

Alternatively, you could add the repositories�section for sonatype-nexus-snapshots from brooklyn-examples/pom.xml to your simple-web-cluster/pom.xml.

Devs,

This issue occurs because each example has been written to be part of the brooklyn-examples project, and not stand alone.

We (I) previously had a similar problem when using the examples with the dist tgz, �resolved with PR 480. [1]

Should we add the < repositories > section to each example pom?
The repository shouldn't change much, so this should not create ongoing maintenance issues(?).

Alternatively, do we need to be clearer with instructions for the examples in the docs?

Thanks,
David

On Thu, Dec 12, 2013 at 12:53 PM, Moln�r Mih�ly L�szl� <laci...@gmail.com> wrote:
Hi Jose,

I dont if this helps you, but I used CLI maven to build brooklyn, and not from eclipse. So maybe you can try that too to see if its ok.


Rusty


On Thu, Dec 12, 2013 at 1:19 PM, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

Now I am trying to prove the �application examples from�http://brooklyncentral.github.io/use/examples/index.html.

I have download the code from github using the�github��deskopt application for Windows (I am using Windows 7). Following I am build the project correctly in NetBeans, The maven dependences are resulved and the project are built. However, I do not get to build the sample code in Eclipse, so I have decided ask about this questions in this tread*.�
I have import the parent project (brooklyn-sampled which is download from GitHub) as Maven project in Eclipse, the project is built and the dependences resolved.
The next step is open the simple-web-cluster example (I want to see the class to understand how brooklyn work and how the application is built), but this callenge look like impossible for me.
I have imported the simple-web-cluster as a maven project from the parent project(which is built in the previous step),�nevertheless the result is not as expected. There are some errors in the pom, you can see them in the picture. The dependences is not resolved and the java classes are not recognized.


I have used maven before with other projects but I do not find the error in this case, should anyboy help me please? :-)

Thanks a lot.

Jose

*I do know if this is the correct thread to ask �one more time, so if it is not I will change �it.

El martes, 10 de diciembre de 2013 16:36:55 UTC+1, David Toy escribi�:
Jose,

Great to read!

fyi - This GitHub repo[1] of catalogs and properties may be useful as you continue with Brooklyn.

David

On Tue, Dec 10, 2013 at 3:30 PM, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

Yes, this was the problem.

Thanks a los Richar and David.
I am begining to use Brooklyn so I will ask about this challenge a lot ;-)

Jose

El martes, 10 de diciembre de 2013 15:50:35 UTC+1, David Toy escribi�:
Hi Jose, Richard,

I've had a similar problem when I copied and pasted a catalog.xml from my web browser, rather than downloading it with curl or wget.

The urls in your catalog have become un-urlencode-d. Check the ampersands.

Your urls should have "&amp;", �not "&".
On Tue, Dec 10, 2013 at 2:45 PM, Jose Carrasco <kiu...@gmail.com> wrote:
Hello.

Of course, I have �posted the code in�http://pastie.org/8542183.

Thanks.
Jose.

El martes, 10 de diciembre de 2013 15:26:43 UTC+1, Richard Downer escribi�:
Jose,

I think you're right, the problem is with catalog.xml. It looks like it has an XML syntax error in it. Could you post your catalog.xml here, or in a GitHub gist, or on http://pastie.org? Then I'll see if I can see where the syntax error is.

Richard.
On 10 December 2013 14:11, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

I have changed the root, but I do not get to run correctly the example.
I have the following error:

jose@ubuntu:~/brooklyn-0.6.0$ brooklyn launch
�_�������������������� _��� _�������������
| |__� _ __ ___�� ___ | | _| |_�� _ _ __ (R)
| '_ \| '__/ _ \ / _ \| |/ / | | | | '_ \�
| |_) | | | (_) | (_) |�� <| | |_| | | | |
|_.__/|_|� \___/ \___/|_|\_\_|\__, |_| |_|
����������������������������� |___/������������ 0.6.0

2013-12-10 14:55:21,147 INFO� Starting brooklyn web-console on loopback interface because no security config is set
2013-12-10 14:55:26,113 INFO� Started Brooklyn console at�http://127.0.0.1:8081/, running classpath://brooklyn.war and []
2013-12-10 14:55:26,729 WARN� Error importing catalog XML at file://~/.brooklyn/catalog.xml; using default (local classpath) catalog. Error was: com.thoughtworks.xstream.converters.ConversionException:� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)� :� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
---- Debugging information ----
message������������ :� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
cause-exception���� : com.thoughtworks.xstream.io.StreamException
cause-message������ :� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
class�������������� : java.lang.String
required-type������ : java.lang.String
converter-type����� : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter�� : com.thoughtworks.xstream.converters.basic.StringConverter
path��������������� : /catalog/classpath/entry
line number�������� : 1
class[1]����������� : brooklyn.catalog.internal.CatalogClasspathDto
converter-type[1]�� : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]����������� : brooklyn.catalog.internal.CatalogDto
version������������ : null
-------------------------------
com.thoughtworks.xstream.converters.ConversionException:� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)� :� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
---- Debugging information ----
message������������ :� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
cause-exception���� : com.thoughtworks.xstream.io.StreamException
cause-message������ :� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
class�������������� : java.lang.String
required-type������ : java.lang.String
converter-type����� : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter�� : com.thoughtworks.xstream.converters.basic.StringConverter
path��������������� : /catalog/classpath/entry
line number�������� : 1
class[1]����������� : brooklyn.catalog.internal.CatalogClasspathDto
converter-type[1]�� : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]����������� : brooklyn.catalog.internal.CatalogDto
version������������ : null
-------------------------------
��� at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) ~[xstream-1.4.3.jar:na]
Caused by: com.thoughtworks.xstream.io.StreamException:� : entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
��� at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124) ~[xstream-1.4.3.jar:na]
Caused by: org.xmlpull.v1.XmlPullParserException: entity reference name can not contain character =' (position: START_TAG seen ...s.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=... @1:755)�
��� at org.xmlpull.mxp1.MXParser.parseEntityRef(MXParser.java:2222) ~[xpp3_min-1.1.4c.jar:na]
2013-12-10 14:55:32,660 INFO� Launched Brooklyn; now blocking to wait for cntrl-c or kill
^C2013-12-10 14:59:44,725 INFO� BrooklynWebServer detected shut-down: stopping web-console

I think the problem is catalog.xml, but I am not sure, Do anybody know where is the problem?

Thanks a lot. :-)




El martes, 10 de diciembre de 2013 14:34:56 UTC+1, Richard Downer escribi�:
Jose,

The directory for the catalog is ".brooklyn" - with a dot in front.

So I think if you run "mv /home/jose/brooklyn /home/jose/.brooklyn" it should work for you.

Let us know if it works or not!
Thanks
Richard.

Could I ask you to send your replies to�brookly...@googlegroups.com�too?�Since this thread was started on this list, it's good to keep it there so other people can see the answer in future. It also means that other people may be able to help you too.



On 10 December 2013 08:42, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

I have moved brooklyn directory and brooklyn-0.6.0 to home:

/home
� � �/brooklyn-0.6.0 � � � ��
� � �/brooklyn

�but Brooklyn does not find the example installed application.
what do you recommend me?

Thanks a lot.
Jose


2013/12/10 Jose Carrasco <kiu...@gmail.com>
Hello again.

I am sorry, I went to holidays last days. I have prove�echo ${HOME}/.brooklyn and it tell me: /home/jose/.brooklyn so My directory structure was wrong and I think this is the problem. The following directory structure is the correct:

/home
� /jose
� � � �/brooklyn-0.6.0
� � � � � �/bin
� � � � � �/conf
� � � � � �/dropin
� � � � � �/lib
� � � � � �/patch
� � � � � �brooklyn.debug.log
� � � � � �brooklyn.info.log
� � � � � �LICENSE.txt
� � � � � �pid_java
� � � � � �README.md
� � � � �
� � � �/brooklyn
� � � � � �brooklyn.properties
� � � � � �catalog.xml

I am going to change the directories brooklyn and I will send you the results.
Thanks



2013/12/5 Richard Downer <richard...@cloudsoftcorp.com>
(Adding brooklyn-users list as it seems to have dropped off)

My apologies if I misunderstood, I thought you were running on Windows.

Brooklyn will try to find the files in your home directory. If you run this command, it will tell you where the catalog.xml and brooklyn.properties files should go:

echo ${HOME}/.brooklyn

My guess is that it is /home/brooklyn/.brooklyn but it does depend on the user configuration in your Lubuntu install.

On 5 December 2013 16:12, Jose Carrasco <kiu...@gmail.com> wrote:
Hi.

I am running a virtual machine in my laptop using VirtualBox a Lubuntu (x86).
I have download the jars of the application using the firefox browser on Lubuntu. I have used the jar urls of the catalog.xml to check if this jars are available, and everything is ok, so.. I do not know which will be the problem. Will the VM be?


Thank you for your help.
Jose


2013/12/5 Richard Downer <richard...@cloudsoftcorp.com>
Hi,

Yes, it's correct to download the brooklyn.properties and catalog.xml from the web - the example files from the brooklyn website should be ready-to-go.

Can you tell me a bit more about the machine you are running Brooklyn on? The directory tree you posted looks like it's from a Linux-like system. If you're running this on Windows, are you running Cygwin?

Thanks
Richard.

On 5 December 2013 14:24, Jose Carrasco <kiu...@gmail.com> wrote:
Hello again.

This is my directory structure

/home
� � �/brooklyn-0.6.0
� � � � �/bin
� � � � �/conf
� � � � �/dropin
� � � � �/lib
� � � � �/patch
� � � � �brooklyn.debug.log
� � � � �brooklyn.info.log
� � � � �LICENSE.txt
� � � � �pid_java
� � � � �README.md
� � � � �
� � �/brooklyn
� � � � �brooklyn.properties
� � � � �catalog.xml

I downloaded brooklyn.properties and catalog.xml from web. is it correct?

Thanks.


El jueves, 5 de diciembre de 2013 14:54:55 UTC+1, Richard Downer escribi�:
Jose,

Where is your catalog.xml file located?

Brooklyn looks for its config files in the ".brooklyn" subdirectory of your home directory. Brooklyn should be using Java's property for the user's home directory, and I would expect on Windows this will be something like "C:\Users\Administrator\.brooklyn" - your catalog.xml and brooklyn.properties should go there.

Richard.

On 5 December 2013 11:32, Jose Carrasco <kiu...@gmail.com> wrote:
Hello.

I have installed Brooklyn in my local machine (on Windows).
I have run Brooklyn using brooklyn launch command, but I do not get see the first example�Demo Web Cluster with DB.
I have checked the catalog.xml and the Brooklyn version (0-6-0) are the correct to download the jars.

Any idea?
Thanks.

--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Richard Downer � Principal Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
GitHub richardcloudsoft � Twitter @FrontierTown



--
Richard Downer � Principal Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
GitHub richardcloudsoft � Twitter @FrontierTown




--
Richard Downer � Principal Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
GitHub richardcloudsoft � Twitter @FrontierTown





--
Richard Downer � Principal Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
GitHub richardcloudsoft � Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Richard Downer � Principal Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.com
GitHub richardcloudsoft � Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages