1 2 Previous Next 28 Replies Latest reply on Mar 13, 2009 3:56 PM by Nick Belaevski

    extending rich faces component environment setup

    Marilyn Monroe Newbie

      Hi,
      I've tried out all tutorials I could find.. actually only one tutorial was about extending an existing component, all others were about starting from scratch. I really hope one of you can point me in the right direction.

      I want to extend the rich faces suggestionBox component and I haven't even found out how to set up an environment that will let me do this. I'll be happy for any suggestion you have. I'm using Eclipse to develop my application, so staying in that environment would be great!

      Thanks in advance!

      DeeDee

        • 3. Re: extending rich faces component environment setup
          Marilyn Monroe Newbie

          ok, so I followed the instructions. Unfortunately I get errors when perforuming step 3)
          Lots of these things:

          org.richfaces.ui:state:jar:3.3.1-SNAPSHOT
          
          
          
           at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
           at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
           at org.ajax4jsf.builder.mojo.AssemblyLibraryMojo.unpackArtifact(AssemblyLibraryMojo.java:733)
           at org.ajax4jsf.builder.mojo.AssemblyLibraryMojo.extractModules(AssemblyLibraryMojo.java:491)
           at org.ajax4jsf.builder.mojo.AssemblyLibraryMojo.execute(AssemblyLibraryMojo.java:274)
           at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:925)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:768)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
           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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
           at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
           at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
           at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
          Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
           at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:332)
           at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
           ... 26 more
          [ERROR] Not found artifact org.richfaces.ui:extendedDataTable:jar:3.3.1-SNAPSHOT
          org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
          
          Try downloading the file manually from the project website.
          
          Then, install it using the command:
           mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=extendedDataTable -Dversion=3.3.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
          
          Alternatively, if you host your own repository you can deploy the file there:
           mvn deploy:deploy-file -DgroupId=org.richfaces.ui -DartifactId=extendedDataTable -Dversion=3.3.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[u
          rl] -DrepositoryId=[id]
          
          
           org.richfaces.ui:extendedDataTable:jar:3.3.1-SNAPSHOT
          
          
          
           at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
           at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
           at org.ajax4jsf.builder.mojo.AssemblyLibraryMojo.unpackArtifact(AssemblyLibraryMojo.java:733)
           at org.ajax4jsf.builder.mojo.AssemblyLibraryMojo.extractModules(AssemblyLibraryMojo.java:486)
           at org.ajax4jsf.builder.mojo.AssemblyLibraryMojo.execute(AssemblyLibraryMojo.java:274)
           at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:925)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:768)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
           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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
           at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
           at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
           at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
          Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
           at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:332)
           at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
           ... 26 more
          [ERROR] Not found artifact org.richfaces.ui:extendedDataTable:jar:sources:3.3.1-SNAPSHOT
          org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
          
          Try downloading the file manually from the project website.
          
          Then, install it using the command:
           mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=extendedDataTable -Dversion=3.3.1-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile
          =/path/to/file
          

          mvn -version gives me this:
          Maven version: 2.0.10
          Java version: 1.6.0_04
          OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

          Any idea?


          • 5. Re: extending rich faces component environment setup
            Marilyn Monroe Newbie

            I haden't configured it correctly before, but I tried again. I still have the same error :-/


            I forgot to mention earlier, when running mvn install, I get the following error:

            Running org.ajax4jsf.resource.CSSTemplateTestCase
            .exadel_debug_console{position:fixed;z-index:80;width:99%;left:10px;bottom:30px;}.exadel_debug_console_minimized{position:fixed;z-index:80;width:40px;heigh
            t:40px;left:10px;bottom:0;}.exadel_debug_console_inner{width:auto;height:auto;border:1px solid;background-color:#FFF;margin:10px;margin-bottom:20px;}.exade
            l_debug_console_header,.exadel_debug_console_header a{background-color:#D4CFC7;margin:1px;text-align:center;vertical-align:middle;text-decoration:none;}.ex
            adel_debug_console_header TD,TD.exadel_debug_console_header{vertical-align:middle;font-family:Arial,Verdana,sans-serif;font-size:11px;white-space:nowrap;pa
            dding:4px;}.exadel_debug_console_toolbar TD{vertical-align:middle;font-family:Arial,Verdana,sans-serif;font-size:11;white-space:nowrap;padding:4px;text-ali
            gn:center;}.exadel_debug_console_toolbar a{text-decoration:none;}.exadel_debug_console_output{margin:4px;padding:4px;overflow:auto;border-right:1px solid #
            C4C0C9;border-top:1px solid #000;border-left:1px solid #000;border-bottom:1px solid #C4C0C9;color:#000;font-weight:normal;background-color:#FFF;}.exadel_de
            bug_console_inactive_tab{color:#0078D0;}.exadel_debug_console_active_tab{color:#000;font-weight:bold;}.exadel_debug_console_shadow_corner,.exadel_debug_con
            sole_shadow_h,.exadel_debug_console_shadow_v{background-color:#000;line-height:0;}li.exadel_debug_console_tree,pre.exadel_debug_console_tree{padding:0;marg
            in:0;}
            Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec <<< FAILURE!
            Running org.richfaces.model.impl.expressive.WrappedBeanFilterTest
            Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
            Running org.ajax4jsf.context.AjaxContextTest
            Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
            
            Results :
            
            Failed tests:
             testGetUri(org.ajax4jsf.resource.CSSTemplateTestCase)
            
            Tests in error:
             testEncodeNonRendered(org.richfaces.renderkit.TemplateEncoderRendererBaseTest)


            • 7. Re: extending rich faces component environment setup
              Ilya Shaikovsky Master

              do you have latest RichFAces version from trunk?

              • 8. Re: extending rich faces component environment setup
                Marilyn Monroe Newbie

                yes, I downloaded it yesterdeay or the day before :-/
                revision 12905, I think.

                • 9. Re: extending rich faces component environment setup
                  Ilya Shaikovsky Master

                  Yes, in snapshot versions from trunk could be problems with some tests.. so try to execute mvn clean install with Dmaven.test.skip=true parameter.

                  • 10. Re: extending rich faces component environment setup
                    Ilya Shaikovsky Master

                    actually we check and correct such failures every day if appears. but you understand that this situation could sometimes happens in non release builds.

                    • 13. Re: extending rich faces component environment setup
                      Marilyn Monroe Newbie

                      hm.. I run out of java heap-space, how much heap space are you using?

                      • 14. Re: extending rich faces component environment setup
                        Ilya Shaikovsky Master

                        I'm using MAVEN_OPTS with -Xms256m -Xmx512m value.

                        In general you could exclude docs from build from main pom - so it will made the build faster and option will not be necessary.

                        1 2 Previous Next