Hi

that's because the archetype doesn't reference myfaces-api. Just add it.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-11-03 16:52 GMT+00:00 mauro2java2011 <[email protected]>:
> i have tried to create a jsf application with the tomee archetype.
> i use netbeans 8.0.1 .
>
> I have use the entity Book already present after generation of web project
> with the archetype .
> I have tired to gnerate jsf page from entity ,.
>
> the pages created fro mwizard of netbeans i have put into pagine dir .
> NEtbeans has create also the JSFUtils class into  package
> mauro.prove.controller.util;
>
> it has creates a also EJB facade called BookFacade .
> But when i tye to compile i get:
>
> ..............
> COMPILATION ERROR :
> -------------------------------------------------------------
> mauro/prove/controller/util/JsfUtil.java:[9,31] package
> javax.faces.application does not exist
> mauro/prove/controller/util/JsfUtil.java:[10,29] package
> javax.faces.component does not exist
> mauro/prove/controller/util/JsfUtil.java:[11,27] package javax.faces.context
> does not exist
> mauro/prove/controller/util/JsfUtil.java:[12,27] package javax.faces.convert
> does not exist
> mauro/prove/controller/util/JsfUtil.java:[13,25] package javax.faces.model
> does not exist
> mauro/prove/controller/util/JsfUtil.java:[17,19] cannot find symbol
>   symbol:   class SelectItem
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[60,85] cannot find symbol
>   symbol:   class Converter
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[60,106] cannot find symbol
>   symbol:   class UIComponent
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[90,62] cannot find symbol
>   symbol:   class Converter
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[19,9] cannot find symbol
>   symbol:   class SelectItem
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[19,34] cannot find symbol
>   symbol:   class SelectItem
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[22,28] cannot find symbol
>   symbol:   class SelectItem
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[26,30] cannot find symbol
>   symbol:   class SelectItem
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[47,9] cannot find symbol
>   symbol:   class FacesMessage
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[47,37] cannot find symbol
>   symbol:   class FacesMessage
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[47,50] cannot find symbol
>   symbol:   variable FacesMessage
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[48,9] cannot find symbol
>   symbol:   variable FacesContext
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[52,9] cannot find symbol
>   symbol:   class FacesMessage
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[52,37] cannot find symbol
>   symbol:   class FacesMessage
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[52,50] cannot find symbol
>   symbol:   variable FacesMessage
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[53,9] cannot find symbol
>   symbol:   variable FacesContext
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[57,16] cannot find symbol
>   symbol:   variable FacesContext
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[62,38] cannot find symbol
>   symbol:   variable FacesContext
>   location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[91,38] cannot find symbol
>   symbol:   variable FacesContext
>   location: class mauro.prove.controller.util.JsfUtil
> 24 errors
> -------------------------------------------------------------
> ------------------------------------------------------------------------
> BUILD FAILURE
> ------------------------------------------------------------------------
> Total time: 5.377s
> Finished at: Mon Nov 03 17:45:27 CET 2014
> Final Memory: 11M/28M
> ------------------------------------------------------------------------
> Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
> on project provajsftomeejpa: Compilation failure: Compilation failure:
> mauro/prove/controller/util/JsfUtil.java:[9,31] package
> javax.faces.application does not exist
> mauro/prove/controller/util/JsfUtil.java:[10,29] package
> javax.faces.component does not exist
> mauro/prove/controller/util/JsfUtil.java:[11,27] package javax.faces.context
> does not exist
> mauro/prove/controller/util/JsfUtil.java:[12,27] package javax.faces.convert
> does not exist
> mauro/prove/controller/util/JsfUtil.java:[13,25] package javax.faces.model
> does not exist
> mauro/prove/controller/util/JsfUtil.java:[17,19] cannot find symbol
> symbol:   class SelectItem
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[60,85] cannot find symbol
> symbol:   class Converter
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[60,106] cannot find symbol
> symbol:   class UIComponent
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[90,62] cannot find symbol
> symbol:   class Converter
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[19,9] cannot find symbol
> symbol:   class SelectItem
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[19,34] cannot find symbol
> symbol:   class SelectItem
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[22,28] cannot find symbol
> symbol:   class SelectItem
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[26,30] cannot find symbol
> symbol:   class SelectItem
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[47,9] cannot find symbol
> symbol:   class FacesMessage
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[47,37] cannot find symbol
> symbol:   class FacesMessage
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[47,50] cannot find symbol
> symbol:   variable FacesMessage
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[48,9] cannot find symbol
> symbol:   variable FacesContext
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[52,9] cannot find symbol
> symbol:   class FacesMessage
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[52,37] cannot find symbol
> symbol:   class FacesMessage
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[52,50] cannot find symbol
> symbol:   variable FacesMessage
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[53,9] cannot find symbol
> symbol:   variable FacesContext
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[57,16] cannot find symbol
> symbol:   variable FacesContext
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[62,38] cannot find symbol
> symbol:   variable FacesContext
> location: class mauro.prove.controller.util.JsfUtil
> mauro/prove/controller/util/JsfUtil.java:[91,38] cannot find symbol
> symbol:   variable FacesContext
> location: class mauro.prove.controller.util.JsfUtil
> -> [Help 1]
>
> To see the full stack trace of the errors, re-run Maven with the -e switch.
> Re-run Maven using the -X switch to enable full debug logging.
>
> For more information about the errors and possible solutions, please read
> the following articles:
> [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> .......
>
>
> i have tried to create a jsf page
> with the
>
>
>
> --
> View this message in context: 
> http://tomee-openejb.979440.n4.nabble.com/error-at-compilation-time-tp4672741.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to