mmm Working on that...I think I solved the majority of teh
dependencies...but I can not fix this one:

the original code:

public static final BasicConfigKey<String> SUGGESTED_VERSION =
            new BasicConfigKey<String>(SoftwareProcess.SUGGESTED_VERSION,
"7.17");

Reading the release notes of teh different I tried to change it...but not
success...

Could you help me out?



Other topic, the Drupal app is using a debian instance on aws...how can I
change this to be able to use at least Debian on SoftLayer...or if possible
in any cloud provider?

this is the code:
BrooklynProperties brooklynProperties =
BrooklynProperties.Factory.newDefault();
        brooklynProperties.put("brooklyn.jclouds.aws-ec2.image-id",
"us-east-1/ami-7ce17315");
        brooklynProperties.put("brooklyn.jclouds.aws-ec2.loginUser",
"admin");

brooklynProperties.put("brooklyn.jclouds.cloudservers-uk.image-name-regex",
"Debian 6");

brooklynProperties.remove("brooklyn.jclouds.cloudservers-uk.image-id");


On Sun, Jul 13, 2014 at 10:56 PM, Aled Sage <[email protected]> wrote:

> Hi,
>
>
> > you meant I should compile the code of Brooklyn 0.6?
>
> I meant that you can update the pom of brooklyn-social-apps [1] to depend
> on brooklyn 0.6.0 - mvn (and IDEs like Eclipse and IntelliJ) will pull down
> the pre-built jars from maven central when it next does a full build.
>
> The idea behind my suggestion of updating first to 0.6.0, rather than
> straight to 0.7.0-M1, was to get the relevant deprecation warnings - the
> javadoc of the now-deprecated code will point you at the alternative code
> to use. Most IDEs will tell you about all the deprecation warnings in the
> code. Running javac (or `mvn clean install`) at the command line should
> also warn you about deprecation warnings.
>
> If updating straight from 0.5.0 (or an old 0.6.0-SNAPSHOT) to 0.7.0-M1
> then you might find code had been deleted, without seeing the intermediate
> deprecation warnings.
>
> The release notes for each version includes information on deprecated
> code, but I would not guarantee it is a 100% complete list. The javadoc on
> the methods is the authoritative source:
> http://brooklyncentral.github.io/v/0.7.0-M1/start/release-notes.html
> http://brooklyncentral.github.io/v/0.6.0/start/release-notes.html
>
> ---
> Two things about the NoClassDefFoundError you are seeing.
>
> First, the BasicEntitySpec was deprecated in 0.6.0 [2] and deleted in
> 0.7.0-M1. Instead, use `EntitySpec.create()`.
>
> Second, getting a NoClassDefFoundError usual means that you have compiled
> the code against a different version from what you are running against. I
> presume you have compiled against 0.6.0, and are trying to run it against a
> more recent brooklyn?
>
> [1] https://github.com/cloudsoft/brooklyn-social-apps/
> [2] https://github.com/brooklyncentral/brooklyn/blob/
> 0.6.x/core/src/main/java/brooklyn/entity/proxying/BasicEntitySpec.java
>
>
>
> On 13/07/2014 20:55, Jesus arteche wrote:
>
>> I got to compile with mvn the social-apps....When trying to run Drupal
>> cluster I got:
>>
>> 014-07-13 21:18:01,931 INFO  No exception mapping for class
>> java.lang.NoClassDefFoundError, responding 500
>>
>> java.lang.NoClassDefFoundError: brooklyn/entity/proxying/BasicEntitySpec
>>
>> at java.lang.Class.getDeclaredConstructors0(Native Method) ~[na:1.6.0_65]
>>
>> Caused by: java.lang.ClassNotFoundException:
>> brooklyn.entity.proxying.BasicEntitySpec
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:1.6.0_65]
>>
>> 2014-07-13 21:18:01,932 INFO  No exception mapping for class
>> java.lang.NoClassDefFoundError, responding 500
>>
>> java.lang.NoClassDefFoundError: brooklyn/entity/proxying/BasicEntitySpec
>>
>> at java.lang.Class.getDeclaredFields0(Native Method) ~[na:1.6.0_65]
>>
>> Caused by: java.lang.ClassNotFoundException:
>> brooklyn.entity.proxying.BasicEntitySpec
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:1.6.0_65]
>>
>> 2014-07-13 21:21:54,853 INFO  No exception mapping for class
>> java.lang.NoClassDefFoundError, responding 500
>>
>> java.lang.NoClassDefFoundError: brooklyn/entity/proxying/BasicEntitySpec
>>
>> at java.lang.Class.getDeclaredConstructors0(Native Method) ~[na:1.6.0_65]
>>
>> Caused by: java.lang.ClassNotFoundException:
>> brooklyn.entity.proxying.BasicEntitySpec
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:1.6.0_65]
>>
>>
>>
>> I guess you guys substituted brooklyn.entity.proxying.BasicEntitySpec for
>> another library in version 7...how can I track these changes?
>>
>>
>> On Sat, Jul 12, 2014 at 12:04 AM, Jesus arteche <[email protected]>
>> wrote:
>>
>>  you meant I should compile the code of Brooklyn 0.6?
>>>
>>>
>>>
>>> On Fri, Jul 11, 2014 at 9:15 PM, Aled Sage <[email protected]>
>>> wrote:
>>>
>>>  Hi,
>>>>
>>>> I'd start with the unmerged pull request - get a copy of that branch.
>>>> Then update pom to depend on Brooklyn 0.6.0.
>>>> Then fix any code with deprecation warnings.
>>>> Then update to Brooklyn 0.7.0-M1.
>>>> Then fix any more deprecation warnings (or code that doesn't compile,
>>>> but
>>>> I don't expect any of that).
>>>> Then run integration tests.
>>>>
>>>> Thanks and good luck. We're here to help!
>>>>
>>>> ---
>>>> Open stack: yes, Brooklyn supports that. Use location
>>>> jclouds:openstack-nova:<keystone-endpoint>
>>>>
>>>> Aled
>>>>
>>>> Sent from my iPhone
>>>>
>>>>  On 11 Jul 2014, at 18:49, Jesus arteche <[email protected]>
>>>>> wrote:
>>>>>
>>>>> hey Alex,
>>>>>
>>>>> I got some cycles, so probably I will start to look how to fix the
>>>>>
>>>> Drupal
>>>>
>>>>> example for the version 7...
>>>>> Where should I start to look?
>>>>>
>>>>> Other topic:
>>>>>
>>>>> Can Brooklyn work with OpenStack?
>>>>>
>>>>>
>>>>> On Fri, Jul 4, 2014 at 3:52 PM, Alex Heneveld <
>>>>> [email protected]> wrote:
>>>>>
>>>>>  Jesus,
>>>>>>
>>>>>> It's probably not too tough to update that code further to run against
>>>>>> 0.7.0-M1 or snapshot.  Would be great to have!
>>>>>>
>>>>>> Fancy a go?
>>>>>>
>>>>>> I'm happy to help on IRC if you have questions about where things have
>>>>>> been moved.
>>>>>>
>>>>>> Best
>>>>>> Alex
>>>>>>
>>>>>>
>>>>>>
>>>>>>  On 04/07/2014 13:43, Aled Sage wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Which version of brooklyn-social-apps are you using? the error
>>>>>>> doesn't
>>>>>>> match the code in master:
>>>>>>> https://github.com/cloudsoft/brooklyn-social-apps/blob/
>>>>>>> master/src/main/java/io/cloudsoft/socialapps/drupal/
>>>>>>> examples/ClusteredDrupalApp.java
>>>>>>>
>>>>>>> Are you building at the command line (`mvn clean install`) or in the
>>>>>>>
>>>>>> IDE?
>>>>
>>>>> If the latter, does it depend on more recent projects of Brooklyn or
>>>>>>>
>>>>>> is
>>>>
>>>>> using mvn to get the dependencies?
>>>>>>>
>>>>>>> ---
>>>>>>> Unfortunately, it looks like https://github.com/cloudsoft/
>>>>>>> brooklyn-social-apps master still depends on the old Brooklyn 0.5.0.
>>>>>>> With that, `mvn clean install` works for me.
>>>>>>>
>>>>>>> Dropping these entities into most recent Brooklyn server may not
>>>>>>> work.
>>>>>>>
>>>>>>> There is an unmerged pull request [1] that updates the code against
>>>>>>> an
>>>>>>> interim release of 0.6.0. We should build on that to work against
>>>>>>>
>>>>>> 0.7.0-M1.
>>>>
>>>>> The specific error you are seeing is because brooklyn.util.MutableMap
>>>>>>>
>>>>>> was
>>>>
>>>>> deprecated [2], and has been deleted in the latest version. You need
>>>>>>>
>>>>>> to
>>>>
>>>>> instead use ` brooklyn.util.collections.MutableMap`.
>>>>>>>
>>>>>>> Aled
>>>>>>>
>>>>>>> [1] https://github.com/cloudsoft/brooklyn-social-apps/pull/16
>>>>>>> [2] https://github.com/brooklyncentral/brooklyn/blob/
>>>>>>> v0.6.0/utils/common/src/main/java/brooklyn/util/MutableMap.java
>>>>>>>
>>>>>>>
>>>>>>>  On 04/07/2014 13:19, Jesus arteche wrote:
>>>>>>>>
>>>>>>>> Hey guys,
>>>>>>>>
>>>>>>>> I´m trying to install social-app for brooklyn to deploy a
>>>>>>>>
>>>>>>> drupal-cluster
>>>>
>>>>> but I got this error:
>>>>>>>>
>>>>>>>> 1. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 25)
>>>>>>>>
>>>>>>>> import brooklyn.util.MutableMap;
>>>>>>>>
>>>>>>>>         ^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: The import
>>>>>>>> brooklyn.util.MutableMap cannot be resolved
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 2. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 47)
>>>>>>>>
>>>>>>>> Map mysqlConf = MutableMap.of("creationScriptContents", SCRIPT);
>>>>>>>>
>>>>>>>>                  ^^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: MutableMap
>>>>>>>>
>>>>>>> cannot
>>>>
>>>>> be resolved
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 3. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 48)
>>>>>>>>
>>>>>>>> mySqlNode = new MySqlNode(mysqlConf, this);
>>>>>>>>
>>>>>>>>                  ^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: Cannot
>>>>>>>> instantiate
>>>>>>>> the type MySqlNode
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 4. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 50)
>>>>>>>>
>>>>>>>> ConfigurableEntityFactory<Drupal> drupalFactory = new
>>>>>>>> BasicConfigurableEntityFactory<Drupal>(Drupal.class);
>>>>>>>>
>>>>>>>>                            ^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: Bound
>>>>>>>>
>>>>>>> mismatch:
>>>>
>>>>> The
>>>>>>>> type Drupal is not a valid substitute for the bounded parameter <T
>>>>>>>> extends
>>>>>>>> Entity> of the type ConfigurableEntityFactory<T>
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 5. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 50)
>>>>>>>>
>>>>>>>> ConfigurableEntityFactory<Drupal> drupalFactory = new
>>>>>>>> BasicConfigurableEntityFactory<Drupal>(Drupal.class);
>>>>>>>>
>>>>>>>>
>>>>>>>>            ^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: Bound
>>>>>>>>
>>>>>>> mismatch:
>>>>
>>>>> The
>>>>>>>> type Drupal is not a valid substitute for the bounded parameter <T
>>>>>>>> extends
>>>>>>>> Entity> of the type BasicConfigurableEntityFactory<T>
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 6. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 59)
>>>>>>>>
>>>>>>>> Map clusterProps = MutableMap.of("factory", drupalFactory,
>>>>>>>>
>>>>>>> "initialSize",
>>>>
>>>>> 2);
>>>>>>>>
>>>>>>>>                     ^^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: MutableMap
>>>>>>>>
>>>>>>> cannot
>>>>
>>>>> be resolved
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 7. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 60)
>>>>>>>>
>>>>>>>> cluster = new ControlledDynamicWebAppCluster(clusterProps, this);
>>>>>>>>
>>>>>>>>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: Cannot
>>>>>>>> instantiate
>>>>>>>> the type ControlledDynamicWebAppCluster
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 8. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/ClusteredDrupalApp.java
>>>>>>>> (at line 68)
>>>>>>>>
>>>>>>>> BrooklynServerDetails server = BrooklynLauncher.newLauncher().
>>>>>>>>
>>>>>>>>                                                  ^^^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: The method
>>>>>>>> newLauncher() is undefined for the type BrooklynLauncher
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 9. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/BasicDrupalApp.java
>>>>>>>> (at line 16)
>>>>>>>>
>>>>>>>> import brooklyn.location.basic.LocationRegistry;
>>>>>>>>
>>>>>>>>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: The import
>>>>>>>> brooklyn.location.basic.LocationRegistry cannot be resolved
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 10. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/BasicDrupalApp.java
>>>>>>>> (at line 18)
>>>>>>>>
>>>>>>>> import brooklyn.location.basic.jclouds.JcloudsLocation;
>>>>>>>>
>>>>>>>>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] no more tokens - could not parse error message: The import
>>>>>>>> brooklyn.location.basic.jclouds cannot be resolved
>>>>>>>>
>>>>>>>> ----------
>>>>>>>>
>>>>>>>> 11. ERROR in
>>>>>>>> /root/brookly-social/brooklyn-social-apps/src/main/java/io/
>>>>>>>> cloudsoft/socialapps/drupal/examples/BasicDrupalApp.java
>>>>>>>> (at line 19)
>>>>>>>>
>>>>>>>> import brooklyn.util.MutableMap;
>>>>>>>>
>>>>>>>>         ^^
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I Installed first Brooklyn 0.7.0 without any error...probably is a
>>>>>>>>
>>>>>>> stupid
>>>>
>>>>> mistake...any idea?
>>>>>>>>
>>>>>>>
>>>
>

Reply via email to