0 Replies Latest reply on Aug 26, 2008 10:59 AM by gonzalad

    Error using Cdk with Jdk 1.5

    gonzalad Apprentice

      Hello,

      I'm trying to create a jsf component with RF cdk 3.2.1.GA and maven.

      We've followed CDK developer guide instructions :
      [list=]http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/development/cdkguide/en/html/setup.html
      [list=]http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/development/cdkguide/en/html/pcreate.html

      Whenever JAVA_HOME points to a Jdk 1.5 (Sun 1.5.0_09), and we execute 'mvn clean install', we have the error [1].

      When we user Sun jdk 1.6 everything runs fine.

      Is there a Jdk 1.5 prerequisite for cdk ?

      Thanks

      [1]

      [INFO] [cdk:generate {execution: default}]
      [INFO] Parse config file D:\Temp\moncomposant\moncomposant\src\main\config\component\panelMenu.xml
      [ERROR] Error on generate component
      org.ajax4jsf.builder.generator.GeneratorException: Error create Renderer Java file
       at org.ajax4jsf.builder.generator.RendererGenerator.createRenderer(RendererGenerator.java:212)
       at org.ajax4jsf.builder.generator.RendererGenerator.createFiles(RendererGenerator.java:113)
       at org.ajax4jsf.builder.mojo.GenerateMojo.execute(GenerateMojo.java:115)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
       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:585)
       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.ajax4jsf.templatecompiler.builder.CompilationException: org.ajax4jsf.templatecompiler.builder.CompilationException: InvocationTargetException: null
       at org.ajax4jsf.templatecompiler.builder.TemplateCompiler.processing(TemplateCompiler.java:107)
       at org.ajax4jsf.builder.generator.RendererGenerator.createRenderer(RendererGenerator.java:185)
       ... 20 more
      Caused by: org.ajax4jsf.templatecompiler.builder.CompilationException: InvocationTargetException: null
       at org.ajax4jsf.templatecompiler.elements.A4JRendererElementsFactory.getProcessor(A4JRendererElementsFactory.java:163)
       at org.ajax4jsf.templatecompiler.builder.AbstractCompilationContext.getProcessor(AbstractCompilationContext.java:500)
       at org.ajax4jsf.templatecompiler.builder.TemplateCompiler.parseElement(TemplateCompiler.java:151)
       at org.ajax4jsf.templatecompiler.builder.TemplateCompiler.parseElement(TemplateCompiler.java:163)
       at org.ajax4jsf.templatecompiler.builder.TemplateCompiler.processing(TemplateCompiler.java:102)
       ... 21 more
      Caused by: java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at org.ajax4jsf.templatecompiler.elements.A4JRendererElementsFactory.getProcessor(A4JRendererElementsFactory.java:149)
       ... 25 more
      Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
       at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
       at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at org.ajax4jsf.templatecompiler.el.ELCompiler.compileEL(ELCompiler.java:106)
       at org.ajax4jsf.templatecompiler.el.ELParser.getCompiledEL(ELParser.java:67)
       at org.ajax4jsf.templatecompiler.el.ELParser.compileEL(ELParser.java:56)
       at org.ajax4jsf.templatecompiler.elements.html.HTMLElement.processingAttributes(HTMLElement.java:136)
       at org.ajax4jsf.templatecompiler.elements.html.HTMLElement.<init>(HTMLElement.java:78)
       ... 30 more
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error in component generation
      
      Embedded error: Error create Renderer Java file
      Bad version number in .class file
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8 seconds
      [INFO] Finished at: Tue Aug 26 16:56:36 CEST 2008
      [INFO] Final Memory: 11M/20M
      [INFO] ------------------------------------------------------------------------