Page 1 of 1

Problem with flex

Posted: Thu Apr 28, 2011 4:26 am
by Arwina
Hi everyone,

I followed the instructions in this page http://www.broadleafcommerce.org/confluence/display/core/Developing+The+Platform+-+Environment+Setup to install the sources with maven and import Broadleaf Commerce in Eclipse.

I use Eclipse 3.6 (Helios) and flex sdk 3.4, but, in broadleaf-admin, when I want to see the "design" view for a mxml file I got this error : "An unknown item is declared as the root of your MXML document. Switch to source code to correct it"

How can I solve this problem ?

Thanks for your answer,

I apologize about my language, I'm French and I still have progress to make in english ;)

Re: Problem with flex

Posted: Tue May 03, 2011 5:47 am
by jefffischer
To answer your question, I would likely need to see the MXML document in question. Regardless, I do want to make you aware that we will soon be releasing version 1.5 M1 of Broadleaf Commerce, which will include an entirely re-done admin in GWT. The old admin and Flex will be considered defunct.

Refer to our product roadmap for more details:

http://www.broadleafcommerce.org/jira/s ... dmap-panel

Re: Problem with flex

Posted: Tue May 03, 2011 11:57 pm
by Arwina
Hi jefffischer !

I have this problem for all mxml files.

I know the future admin interface will be done in gwt, i just wanted to build the demo with the admin interface in flex.
I'll wait for the 1.5M1

Re: Problem with flex

Posted: Mon May 16, 2011 3:43 am
by Arwina
Hi Jefffischer,

I've solved the problem with the mxml file, it seems that the project flex nature wasn't added to the broadleaf-admin.

Anyway, I try (again) to build the admin with mvn install and I've got the following error :

Code: Select all

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (flex) on project broadleaf-admin: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] D:\DevTools\workspace\maven.1304584141703\branches\BroadleafCommerce-1.1.x\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (flex) on project broadleaf-admin: An Ant BuildException has occured: The following error occurred while executing this line:
D:\DevTools\workspace\maven.1304584141703\branches\BroadleafCommerce-1.1.x\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
   at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: The following error occurred while executing this line:
D:\DevTools\workspace\maven.1304584141703\branches\BroadleafCommerce-1.1.x\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
   at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:131)
   at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)
   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
   ... 19 more
Caused by: The following error occurred while executing this line:
D:\DevTools\workspace\maven.1304584141703\branches\BroadleafCommerce-1.1.x\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:369)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:118)
   ... 22 more
Caused by: D:\DevTools\workspace\maven.1304584141703\branches\BroadleafCommerce-1.1.x\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
   at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:367)
   ... 31 more
Caused by: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
   at org.apache.maven.artifact.ant.AbstractArtifactTask.loadSettings(AbstractArtifactTask.java:325)
   at org.apache.maven.artifact.ant.AbstractArtifactTask.initSettings(AbstractArtifactTask.java:275)
   at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:677)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   ... 36 more
[ERROR]
[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



I really need help about this or any ideas to solve this problem.

Thanks a lot for your help.

I know that a admin interface will be in GWT but I would like to work with flex.

Re: Problem with flex

Posted: Sun May 22, 2011 9:18 pm
by Arwina
I solve the problem by myself and it works very well !

Re: Problem with flex

Posted: Tue Aug 23, 2011 1:06 pm
by darkstar
Hi
How did u solve the problem. I'm having same error
I have flex version 4.1.0 from adobe

Thanks