Re: error at compilation time .

2014-11-03 Thread Romain Manni-Bucau
2014-11-03 18:04 GMT+00:00 mauro2java2011 :
> The web project generated from archetype use jsf class . But it work.

Can you point it out please? There is no jsf import

> Il 03/nov/2014 19:04 "Mauro Chi"  ha scritto:
>
>> I am confused..
>> But if the tomeewebapp archetype not reference myfaces-api how it is
>> possible that the web project  generated from archetype run and show the
>> pages ?
>>
>> It not work only if i add other class..
>> Il 03/nov/2014 18:47 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
>> ml-node+s979440n4672747...@n4.nabble.com> ha scritto:
>>
>>> 2.1.16
>>>
>>>
>>> Romain Manni-Bucau
>>> @rmannibucau
>>> http://www.tomitribe.com
>>> http://rmannibucau.wordpress.com
>>> https://github.com/rmannibucau
>>>
>>>
>>> 2014-11-03 17:39 GMT+00:00 mauro2java2011 <[hidden email]
>>> >:
>>>
>>> > i h ave to add :
>>> >
>>> > 
>>> >   org.apache.myfaces.core
>>> >   myfaces-api
>>> >   2.2.3
>>> >   jar
>>> >provided
>>> > 
>>> >
>>> > it is ok?
>>> >
>>> > 2014-11-03 17:58 GMT+01:00 Romain Manni-Bucau-2 [via TomEE & OpenEJB] <
>>> > [hidden email] >:
>>>
>>> >
>>> >> 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 <[hidden email]
>>> >> >:
>>> >>
>>> >> > 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/uti

Re: error at compilation time .

2014-11-03 Thread Romain Manni-Bucau
Cause archetype doesn't use JSF API in java code. Only CDI and jsf
pages (xhtml so no compilation).
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 18:00 GMT+00:00 mauro2java2011 :
> I am confused..
> But if the tomeewebapp archetype not reference myfaces-api how it is
> possible that the web project  generated from archetype run and show the
> pages ?
>
> It not work only if i add other class..
> Il 03/nov/2014 18:47 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
> ml-node+s979440n4672747...@n4.nabble.com> ha scritto:
>
>> 2.1.16
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2014-11-03 17:39 GMT+00:00 mauro2java2011 <[hidden email]
>> >:
>>
>> > i h ave to add :
>> >
>> > 
>> >   org.apache.myfaces.core
>> >   myfaces-api
>> >   2.2.3
>> >   jar
>> >provided
>> > 
>> >
>> > it is ok?
>> >
>> > 2014-11-03 17:58 GMT+01:00 Romain Manni-Bucau-2 [via TomEE & OpenEJB] <
>> > [hidden email] >:
>> >
>> >> 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 <[hidden email]
>> >> >:
>> >>
>> >> > 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] canno

Re: error at compilation time .

2014-11-03 Thread mauro2java2011
The web project generated from archetype use jsf class . But it work.
Il 03/nov/2014 19:04 "Mauro Chi"  ha scritto:

> I am confused..
> But if the tomeewebapp archetype not reference myfaces-api how it is
> possible that the web project  generated from archetype run and show the
> pages ?
>
> It not work only if i add other class..
> Il 03/nov/2014 18:47 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
> ml-node+s979440n4672747...@n4.nabble.com> ha scritto:
>
>> 2.1.16
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2014-11-03 17:39 GMT+00:00 mauro2java2011 <[hidden email]
>> >:
>>
>> > i h ave to add :
>> >
>> > 
>> >   org.apache.myfaces.core
>> >   myfaces-api
>> >   2.2.3
>> >   jar
>> >provided
>> > 
>> >
>> > it is ok?
>> >
>> > 2014-11-03 17:58 GMT+01:00 Romain Manni-Bucau-2 [via TomEE & OpenEJB] <
>> > [hidden email] >:
>>
>> >
>> >> 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 <[hidden email]
>> >> >:
>> >>
>> >> > 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
>>

Re: error at compilation time .

2014-11-03 Thread mauro2java2011
I am confused..
But if the tomeewebapp archetype not reference myfaces-api how it is
possible that the web project  generated from archetype run and show the
pages ?

It not work only if i add other class..
Il 03/nov/2014 18:47 "Romain Manni-Bucau [via TomEE & OpenEJB]" <
ml-node+s979440n4672747...@n4.nabble.com> ha scritto:

> 2.1.16
>
>
> Romain Manni-Bucau
> @rmannibucau
> http://www.tomitribe.com
> http://rmannibucau.wordpress.com
> https://github.com/rmannibucau
>
>
> 2014-11-03 17:39 GMT+00:00 mauro2java2011 <[hidden email]
> >:
>
> > i h ave to add :
> >
> > 
> >   org.apache.myfaces.core
> >   myfaces-api
> >   2.2.3
> >   jar
> >provided
> > 
> >
> > it is ok?
> >
> > 2014-11-03 17:58 GMT+01:00 Romain Manni-Bucau-2 [via TomEE & OpenEJB] <
> > [hidden email] >:
> >
> >> 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 <[hidden email]
> >> >:
> >>
> >> > 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.c

Re: error at compilation time .

2014-11-03 Thread Romain Manni-Bucau
2.1.16


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-03 17:39 GMT+00:00 mauro2java2011 :
> i h ave to add :
>
> 
>   org.apache.myfaces.core
>   myfaces-api
>   2.2.3
>   jar
>provided
> 
>
> it is ok?
>
> 2014-11-03 17:58 GMT+01:00 Romain Manni-Bucau-2 [via TomEE & OpenEJB] <
> ml-node+s979440n4672742...@n4.nabble.com>:
>
>> 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 <[hidden email]
>> >:
>>
>> > 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
>> >   loca

Re: error at compilation time .

2014-11-03 Thread mauro2java2011
i h ave to add :


  org.apache.myfaces.core
  myfaces-api
  2.2.3
  jar
   provided


it is ok?

2014-11-03 17:58 GMT+01:00 Romain Manni-Bucau-2 [via TomEE & OpenEJB] <
ml-node+s979440n4672742...@n4.nabble.com>:

> 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 <[hidden email]
> >:
>
> > 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
> > -
> > -

Re: whi the properties is not present ?

2014-11-03 Thread mauro2java2011
i have attached the project to precedent  email


2014-11-03 18:09 GMT+01:00 Mauro Chi :

> i you send a project similar created without primefaces
>
> I have generated the web app with the tomee web app archetype.
> NExdt i have tied to generate JSF  pages  from entity .
> I have used the already Entity Book gnerated from the archetype of tomee
> web app.
>
> I used the netbeans wiazrd . generate JSF page from entity class .
> but i get  the errors :
> ..
> 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] p
>
> 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 maur

Re: whi the properties is not present ?

2014-11-03 Thread Romain Manni-Bucau
I know I do typos but your mails are always very very hard to read so
please take 1 more second to re-read you if you want to keep having
answers.

Also you already have the answer: jsf api is not provided by the tomee archetype

2014-11-03 17:05 GMT+00:00 mauro2java2011 :
> i you send a project similar created without primefaces
>
> I have generated the web app with the tomee web app archetype.
> NExdt i have tied to generate JSF  pages  from entity .
> I have used the already Entity Book gnerated from the archetype of tomee
> web app.
>
> I used the netbeans wiazrd . generate JSF page from entity class .
> but i get  the errors :
> ..
> 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] p
>
> mauro/prove/controller/util/JsfUtil.java:[17,19] cannot find symbol
> symbol:   class S

Re: whi the properties is not present ?

2014-11-03 Thread mauro2java2011
i you send a project similar created without primefaces

I have generated the web app with the tomee web app archetype.
NExdt i have tied to generate JSF  pages  from entity .
I have used the already Entity Book gnerated from the archetype of tomee
web app.

I used the netbeans wiazrd . generate JSF page from entity class .
but i get  the errors :
..
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] p

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: cl

Re: error at compilation time .

2014-11-03 Thread Romain Manni-Bucau
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 :
> 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/pro

error at compilation time .

2014-11-03 Thread mauro2java2011
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/uti

Re: Class as return type in subresources

2014-11-03 Thread Romain Manni-Bucau
I understood what it should do but JAXRS spec doesn't speak about it
(or I missed it, if so please point it out then we'll fix it)


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-03 12:33 GMT+00:00 Alex Soto :
> Well it is a class annotated with CDI annotation (@Singleton) so for what I
> understand the instance should be initialized by CDI container.
>
> Look Jersey example is:
>
> import javax.inject.Singleton;
>
> @Path("/item")
> public class ItemResource {
> @Path("content")
> public Class getItemContentResource() {
> return ItemContentSingletonResource.class;
> }
> }
>
> @Singleton
> public class ItemContentSingletonResource {
> // this class is managed in the singleton life cycle
> }
>
> 2014-11-03 11:43 GMT+01:00 Romain Manni-Bucau :
>
>> Spec says "Objects returned by sub-resource locators (see Section
>> 3.4.1) are expected to be
>> initialized by their creator." + reading 3.4.1 not sure Class is valid
>> (even if I get it could make sense).
>>
>> 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 11:34 GMT+01:00 Alex Soto :
>> > Hi,
>> >
>> > I would like to create a subresource which returns a class type
>> (annotated
>> > with javax.injection.Singleton). The example comes from Jersey
>> > documentation. Let me show you how it looks:
>> >
>> > @Path("/v1")
>> > public class DispatcherResourceV1 {
>> >
>> > @Path("/chapter")
>> > public Class v1Chapters() {
>> > return ChapterResourceV1.class;
>> > }
>> >  //.. and other resources
>> > }
>> >
>> > import javax.inject.Singleton;
>> > import javax.ws.rs.GET;
>> > import javax.ws.rs.Path;
>> > import javax.ws.rs.Produces;
>> > import javax.ws.rs.core.MediaType;
>> >
>> > @Singleton
>> > public class ChapterResourceV1 {
>> >
>> > @GET
>> > @Path("/")
>> > @Produces(MediaType.TEXT_PLAIN)
>> > public String chapter() {
>> > return "Hello V1";
>> > }
>> > }
>> >
>> > But running this code next log message is printed:
>> >
>> > WARNING: No resource methods have been found for resource class
>> > java.lang.Class
>> > Nov 03, 2014 11:30:14 AM org.apache.cxf.jaxrs.JAXRSInvoker invoke
>> > SEVERE: No subresource locator found for path /
>> >
>> > Obviously it seems I am missing something but I don't know exactly what,
>> > because if I change returning an class type to returning an instance it
>> > works perfectly.
>> >
>> >
>> >
>> > --
>> > +--+
>> >   Alex Soto Bueno
>> >   www.lordofthejars.com
>> > +--+
>>
>
>
>
> --
> +--+
>   Alex Soto Bueno - Computer Engineer
>   www.lordofthejars.com
> +--+


Re: Class as return type in subresources

2014-11-03 Thread Alex Soto
Well it is a class annotated with CDI annotation (@Singleton) so for what I
understand the instance should be initialized by CDI container.

Look Jersey example is:

import javax.inject.Singleton;

@Path("/item")
public class ItemResource {
@Path("content")
public Class getItemContentResource() {
return ItemContentSingletonResource.class;
}
}

@Singleton
public class ItemContentSingletonResource {
// this class is managed in the singleton life cycle
}

2014-11-03 11:43 GMT+01:00 Romain Manni-Bucau :

> Spec says "Objects returned by sub-resource locators (see Section
> 3.4.1) are expected to be
> initialized by their creator." + reading 3.4.1 not sure Class is valid
> (even if I get it could make sense).
>
> 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 11:34 GMT+01:00 Alex Soto :
> > Hi,
> >
> > I would like to create a subresource which returns a class type
> (annotated
> > with javax.injection.Singleton). The example comes from Jersey
> > documentation. Let me show you how it looks:
> >
> > @Path("/v1")
> > public class DispatcherResourceV1 {
> >
> > @Path("/chapter")
> > public Class v1Chapters() {
> > return ChapterResourceV1.class;
> > }
> >  //.. and other resources
> > }
> >
> > import javax.inject.Singleton;
> > import javax.ws.rs.GET;
> > import javax.ws.rs.Path;
> > import javax.ws.rs.Produces;
> > import javax.ws.rs.core.MediaType;
> >
> > @Singleton
> > public class ChapterResourceV1 {
> >
> > @GET
> > @Path("/")
> > @Produces(MediaType.TEXT_PLAIN)
> > public String chapter() {
> > return "Hello V1";
> > }
> > }
> >
> > But running this code next log message is printed:
> >
> > WARNING: No resource methods have been found for resource class
> > java.lang.Class
> > Nov 03, 2014 11:30:14 AM org.apache.cxf.jaxrs.JAXRSInvoker invoke
> > SEVERE: No subresource locator found for path /
> >
> > Obviously it seems I am missing something but I don't know exactly what,
> > because if I change returning an class type to returning an instance it
> > works perfectly.
> >
> >
> >
> > --
> > +--+
> >   Alex Soto Bueno
> >   www.lordofthejars.com
> > +--+
>



-- 
+--+
  Alex Soto Bueno - Computer Engineer
  www.lordofthejars.com
+--+


Re: TomEE plans for Java EE 7

2014-11-03 Thread Leonardo K. Shikida
Hi David

Thanks for the useful info about IBM decision on switching form OpenJPA to
Eclipselink from JPA 2.1. I think that's exactly the point.

I myself also prefer OpenJPA, but I can understand why IBM wants to stick
with eclipselink from now on.

[]

Leo

On Mon, Nov 3, 2014 at 6:13 AM, David Blevins 
wrote:

> On Nov 2, 2014, at 12:30 PM, Romain Manni-Bucau 
> wrote:
>
> > Hibernate is just not apache compliant, im not for eclipselink since it
> > usage and behavior is error prone and harder to control + id like to stay
> > apache.
> >
> > Well stay openjpa i think.
> >
> > Btw this kind of discussion is generally useless. You would have had the
> > same about bval...one week of work and we got it.
>
> Definitely a useful discussion as people are going on what's been
> documented, which is nothing in this area.
>
> For other readers, Romain is correct, we can't ship Hibernate due to
> licensing restrictions documented here:
>
>  - http://www.apache.org/legal/resolved.html#category-x
>see "Which licenses may NOT be included within Apache products?"
>
> We already support/ship EclipseLink, so the question is really about what
> will happen with OpenJPA.
>
> I certainly hope OpenJPA can be brought up to JPA 2.1 compliance.
> Challenge for the readers is IBM was the main contributor and has simply
> tired of carrying the load alone:
>
>   -
> https://developer.ibm.com/wasdev/2014/05/28/eclipselink-jpa-provider-liberty-profile
>
> "we agreed it was better to join forces with the EclipseLink open
> source
>  community than to be the primary (sole) developer in the OpenJPA
> community."
>
> This doesn't mean OpenJPA has to die, it just means if you believe in open
> source, now is the time to act on those beliefs.
>
> Three people in their spare time can do amazing things.
>
>
> -David
>
>


Re: Class as return type in subresources

2014-11-03 Thread Romain Manni-Bucau
Spec says "Objects returned by sub-resource locators (see Section
3.4.1) are expected to be
initialized by their creator." + reading 3.4.1 not sure Class is valid
(even if I get it could make sense).

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 11:34 GMT+01:00 Alex Soto :
> Hi,
>
> I would like to create a subresource which returns a class type (annotated
> with javax.injection.Singleton). The example comes from Jersey
> documentation. Let me show you how it looks:
>
> @Path("/v1")
> public class DispatcherResourceV1 {
>
> @Path("/chapter")
> public Class v1Chapters() {
> return ChapterResourceV1.class;
> }
>  //.. and other resources
> }
>
> import javax.inject.Singleton;
> import javax.ws.rs.GET;
> import javax.ws.rs.Path;
> import javax.ws.rs.Produces;
> import javax.ws.rs.core.MediaType;
>
> @Singleton
> public class ChapterResourceV1 {
>
> @GET
> @Path("/")
> @Produces(MediaType.TEXT_PLAIN)
> public String chapter() {
> return "Hello V1";
> }
> }
>
> But running this code next log message is printed:
>
> WARNING: No resource methods have been found for resource class
> java.lang.Class
> Nov 03, 2014 11:30:14 AM org.apache.cxf.jaxrs.JAXRSInvoker invoke
> SEVERE: No subresource locator found for path /
>
> Obviously it seems I am missing something but I don't know exactly what,
> because if I change returning an class type to returning an instance it
> works perfectly.
>
>
>
> --
> +--+
>   Alex Soto Bueno
>   www.lordofthejars.com
> +--+


Class as return type in subresources

2014-11-03 Thread Alex Soto
Hi,

I would like to create a subresource which returns a class type (annotated
with javax.injection.Singleton). The example comes from Jersey
documentation. Let me show you how it looks:

@Path("/v1")
public class DispatcherResourceV1 {

@Path("/chapter")
public Class v1Chapters() {
return ChapterResourceV1.class;
}
 //.. and other resources
}

import javax.inject.Singleton;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Singleton
public class ChapterResourceV1 {

@GET
@Path("/")
@Produces(MediaType.TEXT_PLAIN)
public String chapter() {
return "Hello V1";
}
}

But running this code next log message is printed:

WARNING: No resource methods have been found for resource class
java.lang.Class
Nov 03, 2014 11:30:14 AM org.apache.cxf.jaxrs.JAXRSInvoker invoke
SEVERE: No subresource locator found for path /

Obviously it seems I am missing something but I don't know exactly what,
because if I change returning an class type to returning an instance it
works perfectly.



-- 
+--+
  Alex Soto Bueno
  www.lordofthejars.com
+--+


Re: Question on calling @Asynchronous EJB methods

2014-11-03 Thread Romain Manni-Bucau
@AccessTimeout + @Asynchronous is not enough specified IMHO so I
wouldn't rely on it. For openejb case we go through the thread pool
before respecting @AccessTimeout IIRC so it wouldn't work yes.
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 11:04 GMT+01:00 Lars-Fredrik Smedberg :
> Hi Romain
>
> Thanks, will look into that.
>
> When I read about @AccessTimeout it doesn't seem that I can use it on
> @Asynchronous methods when the thread pool has no free threads... or?
>
> Regards
> LF
>
> On Mon, Nov 3, 2014 at 10:55 AM, Romain Manni-Bucau <
> rmannibu...@tomitribe.com> wrote:
>
>> Hi
>>
>> in application.properties you can configure:
>>
>> - AsynchronousPool.Size (default 5 for recent versions, was 3 before IIRC)
>> - AsynchronousPool.ShutdownWaitDuration: how many time we wait for
>> tasks to be done when undeploying the app
>> - AsynchronousPool.CorePoolSize
>> - AsynchronousPool.MaximumPoolSize
>> - AsynchronousPool.QueueSize
>> - AsynchronousPool.KeepAliveTime
>> - AsynchronousPool.AllowCoreThreadTimeOut
>> - AsynchronousPool.QueueType: SYNCHRONOUS (SynchronousQueue), LINKED
>> (LinkedBlockingQueue), ARRAY (ArrayBlockingQueue),
>> PRIORITY(PriorityBlockingQueue)
>> - AsynchronousPool.RejectedExecutionHandlerClass:
>> RejectedExecutionHandler implementation, default is
>> org.apache.openejb.util.executor.OfferRejectedExecutionHandler ie
>> retry with a timeout of x seconds (30s by default)
>> - AsynchronousPool.OfferTimeout (if RejectedExecutionHandlerClass not set)
>>
>> I guess you want just a custom RejectedExecutionHandlerClass
>> 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 10:43 GMT+01:00 Lars-Fredrik Smedberg :
>> > Hi
>> >
>> > In WebSphere there is a thread pool for serving @Asynchronous EJB method
>> > calls as well as request work queue used when all threads are busy. When
>> > the thread is full the work is placed on the queue and when the queue is
>> > full the policy of BLOCK or FAIL will determine if the thread calling the
>> > method will hang or fail.
>> >
>> > Questions
>> >
>> > - Does TomEE have similar configuration?
>> >
>> > - Is there any way of knowing before calling the @Asynchronous EJB method
>> > if it will wait before beeing processed (or in the WebSphere case hang)?
>> > Combine it with @AccessTimeout perhaps?
>> >
>> > Regards
>> > LF
>> >
>> > --
>> > Med vänlig hälsning / Best regards
>> >
>> > Lars-Fredrik Smedberg
>> >
>> > STATEMENT OF CONFIDENTIALITY:
>> > The information contained in this electronic message and any
>> > attachments to this message are intended for the exclusive use of the
>> > address(es) and may contain confidential or privileged information. If
>> > you are not the intended recipient, please notify Lars-Fredrik Smedberg
>> > immediately at itsme...@gmail.com, and destroy all copies of this
>> > message and any attachments.
>>
>
>
>
> --
> Med vänlig hälsning / Best regards
>
> Lars-Fredrik Smedberg
>
> STATEMENT OF CONFIDENTIALITY:
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> address(es) and may contain confidential or privileged information. If
> you are not the intended recipient, please notify Lars-Fredrik Smedberg
> immediately at itsme...@gmail.com, and destroy all copies of this
> message and any attachments.


Re: Question on calling @Asynchronous EJB methods

2014-11-03 Thread Lars-Fredrik Smedberg
Hi Romain

Thanks, will look into that.

When I read about @AccessTimeout it doesn't seem that I can use it on
@Asynchronous methods when the thread pool has no free threads... or?

Regards
LF

On Mon, Nov 3, 2014 at 10:55 AM, Romain Manni-Bucau <
rmannibu...@tomitribe.com> wrote:

> Hi
>
> in application.properties you can configure:
>
> - AsynchronousPool.Size (default 5 for recent versions, was 3 before IIRC)
> - AsynchronousPool.ShutdownWaitDuration: how many time we wait for
> tasks to be done when undeploying the app
> - AsynchronousPool.CorePoolSize
> - AsynchronousPool.MaximumPoolSize
> - AsynchronousPool.QueueSize
> - AsynchronousPool.KeepAliveTime
> - AsynchronousPool.AllowCoreThreadTimeOut
> - AsynchronousPool.QueueType: SYNCHRONOUS (SynchronousQueue), LINKED
> (LinkedBlockingQueue), ARRAY (ArrayBlockingQueue),
> PRIORITY(PriorityBlockingQueue)
> - AsynchronousPool.RejectedExecutionHandlerClass:
> RejectedExecutionHandler implementation, default is
> org.apache.openejb.util.executor.OfferRejectedExecutionHandler ie
> retry with a timeout of x seconds (30s by default)
> - AsynchronousPool.OfferTimeout (if RejectedExecutionHandlerClass not set)
>
> I guess you want just a custom RejectedExecutionHandlerClass
> 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 10:43 GMT+01:00 Lars-Fredrik Smedberg :
> > Hi
> >
> > In WebSphere there is a thread pool for serving @Asynchronous EJB method
> > calls as well as request work queue used when all threads are busy. When
> > the thread is full the work is placed on the queue and when the queue is
> > full the policy of BLOCK or FAIL will determine if the thread calling the
> > method will hang or fail.
> >
> > Questions
> >
> > - Does TomEE have similar configuration?
> >
> > - Is there any way of knowing before calling the @Asynchronous EJB method
> > if it will wait before beeing processed (or in the WebSphere case hang)?
> > Combine it with @AccessTimeout perhaps?
> >
> > Regards
> > LF
> >
> > --
> > Med vänlig hälsning / Best regards
> >
> > Lars-Fredrik Smedberg
> >
> > STATEMENT OF CONFIDENTIALITY:
> > The information contained in this electronic message and any
> > attachments to this message are intended for the exclusive use of the
> > address(es) and may contain confidential or privileged information. If
> > you are not the intended recipient, please notify Lars-Fredrik Smedberg
> > immediately at itsme...@gmail.com, and destroy all copies of this
> > message and any attachments.
>



-- 
Med vänlig hälsning / Best regards

Lars-Fredrik Smedberg

STATEMENT OF CONFIDENTIALITY:
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
address(es) and may contain confidential or privileged information. If
you are not the intended recipient, please notify Lars-Fredrik Smedberg
immediately at itsme...@gmail.com, and destroy all copies of this
message and any attachments.


Re: Question on calling @Asynchronous EJB methods

2014-11-03 Thread Romain Manni-Bucau
Hi

in application.properties you can configure:

- AsynchronousPool.Size (default 5 for recent versions, was 3 before IIRC)
- AsynchronousPool.ShutdownWaitDuration: how many time we wait for
tasks to be done when undeploying the app
- AsynchronousPool.CorePoolSize
- AsynchronousPool.MaximumPoolSize
- AsynchronousPool.QueueSize
- AsynchronousPool.KeepAliveTime
- AsynchronousPool.AllowCoreThreadTimeOut
- AsynchronousPool.QueueType: SYNCHRONOUS (SynchronousQueue), LINKED
(LinkedBlockingQueue), ARRAY (ArrayBlockingQueue),
PRIORITY(PriorityBlockingQueue)
- AsynchronousPool.RejectedExecutionHandlerClass:
RejectedExecutionHandler implementation, default is
org.apache.openejb.util.executor.OfferRejectedExecutionHandler ie
retry with a timeout of x seconds (30s by default)
- AsynchronousPool.OfferTimeout (if RejectedExecutionHandlerClass not set)

I guess you want just a custom RejectedExecutionHandlerClass
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 10:43 GMT+01:00 Lars-Fredrik Smedberg :
> Hi
>
> In WebSphere there is a thread pool for serving @Asynchronous EJB method
> calls as well as request work queue used when all threads are busy. When
> the thread is full the work is placed on the queue and when the queue is
> full the policy of BLOCK or FAIL will determine if the thread calling the
> method will hang or fail.
>
> Questions
>
> - Does TomEE have similar configuration?
>
> - Is there any way of knowing before calling the @Asynchronous EJB method
> if it will wait before beeing processed (or in the WebSphere case hang)?
> Combine it with @AccessTimeout perhaps?
>
> Regards
> LF
>
> --
> Med vänlig hälsning / Best regards
>
> Lars-Fredrik Smedberg
>
> STATEMENT OF CONFIDENTIALITY:
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> address(es) and may contain confidential or privileged information. If
> you are not the intended recipient, please notify Lars-Fredrik Smedberg
> immediately at itsme...@gmail.com, and destroy all copies of this
> message and any attachments.


Question on calling @Asynchronous EJB methods

2014-11-03 Thread Lars-Fredrik Smedberg
Hi

In WebSphere there is a thread pool for serving @Asynchronous EJB method
calls as well as request work queue used when all threads are busy. When
the thread is full the work is placed on the queue and when the queue is
full the policy of BLOCK or FAIL will determine if the thread calling the
method will hang or fail.

Questions

- Does TomEE have similar configuration?

- Is there any way of knowing before calling the @Asynchronous EJB method
if it will wait before beeing processed (or in the WebSphere case hang)?
Combine it with @AccessTimeout perhaps?

Regards
LF

-- 
Med vänlig hälsning / Best regards

Lars-Fredrik Smedberg

STATEMENT OF CONFIDENTIALITY:
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
address(es) and may contain confidential or privileged information. If
you are not the intended recipient, please notify Lars-Fredrik Smedberg
immediately at itsme...@gmail.com, and destroy all copies of this
message and any attachments.


Re: TomEE plans for Java EE 7

2014-11-03 Thread Roberto Cortez
Hi David,
Thanks for a warm welcome :)
The samples are setup with TomEE 2.0-SNAPSHOT already. We were using the 
Cloudbees - Jenkins FOSS, but for some reason it's unavailable. They are 
looking into it. 
Cheers,Roberto
  From: David Blevins 
 To: users@tomee.apache.org; Roberto Cortez  
 Sent: Monday, November 3, 2014 8:24 AM
 Subject: Re: TomEE plans for Java EE 7
   
First -- welcome, Roberto!  Great to see you on the list :)
We should definitely try with TomEE 2.0-SNAPSHOT.  Would be great to track 
these.  What CI are you using?  We could set something up on the Apache side if 
needed.

-David



On Sun, Nov 2, 2014 at 1:35 PM, Roberto Cortez  
wrote:

Hi guys,
I just subscribed to the list, so this is my first email here.
I'm currently contributing to a Java EE 7 samples project here: 
https://github.com/javaee-samples/javaee7-samples, and I just added profiles to 
run the samples in TomEE and TomEE Embedded. Running the samples / tests we got 
the following results:
batch - No Implementation Providedcdi - Failing a few tests. Most are related 
with the absence of a beans.xmlconcurrency - Failing a few tests. 
DefaultManagedExecutorService not binded to JNDI 
comp/DefaultManagedExecutorServiceejb - Failure in TimerServiceel - Missing 
Lambda Supportinterceptor - OKjacc - No Implementation Providedjaspic - No 
Implementation Providedjavamail - OKjaxrs - Failing a few tests. Related with 
other specs, like json-p and jpajaxws - OKjca - OKjms - Test Failuresjpa - No 
support for JPA 2.1 yetjsf - A few failuresjson-p - OKjta - Failing a few 
tests. Related with other specs, like jpaservlet - Failing a few tests. Related 
with security stuffvalidation - Test Failureswebsocket - OK
These are only a preliminary results. I intent to look with more detail into 
the tests to make sure the problems are not in the samples side. Currently most 
of the test pass on other Java EE 7 servers. I'm also missing a CI build 
including TomEE. I'm having some issues with our CI environment, but it will be 
there.
Anyway, I hope this is useful information and count me in to help :)
Cheers,Roberto
      From: Romain Manni-Bucau 
 To: users@tomee.apache.org
 Sent: Sunday, November 2, 2014 8:30 PM
 Subject: Re: TomEE plans for Java EE 7

Le 2 nov. 2014 20:16, "tibor17"  a écrit :
>
> See this discussion in the mailing list of OpenJPA:
>
>
http://openjpa.208410.n2.nabble.com/OpenJPA-support-for-JPA-2-1-when-td7584157.html
>
> It looks like the JPA provider wouldn't be ready for Tomee@JavaEE 7.0.
>
> I guess the Hibernate LGPL will be the candidate (not bundled in the tomee
> zip).
> This decision would speedup the release.
>
>

Hibernate is just not apache compliant, im not for eclipselink since it
usage and behavior is error prone and harder to control + id like to stay
apache.

Well stay openjpa i think.

Btw this kind of discussion is generally useless. You would have had the
same about bval...one week of work and we got it.



>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/TomEE-plans-for-Java-EE-7-tp4663386p4672719.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

  



  

Re: TomEE plans for Java EE 7

2014-11-03 Thread Roberto Cortez
Hi Romain,
Yes, Travis was also setup as a backup plan. Let's see what's going to happen 
with Cloudbees.
Cheers,Roberto
  From: Romain Manni-Bucau 
 To: "users@tomee.apache.org"  
Cc: Roberto Cortez  
 Sent: Monday, November 3, 2014 8:41 AM
 Subject: Re: TomEE plans for Java EE 7
   
travis I guess?
https://travis-ci.org/javaee-samples/javaee7-samples/jobs/39782388


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau




2014-11-03 9:24 GMT+01:00 David Blevins :
> First -- welcome, Roberto!  Great to see you on the list :)
>
> We should definitely try with TomEE 2.0-SNAPSHOT.  Would be great to track
> these.  What CI are you using?  We could set something up on the Apache
> side if needed.
>
>
> -David
>
>
> On Sun, Nov 2, 2014 at 1:35 PM, Roberto Cortez 
> wrote:
>
>> Hi guys,
>> I just subscribed to the list, so this is my first email here.
>> I'm currently contributing to a Java EE 7 samples project here:
>> https://github.com/javaee-samples/javaee7-samples, and I just added
>> profiles to run the samples in TomEE and TomEE Embedded. Running the
>> samples / tests we got the following results:
>> batch - No Implementation Providedcdi - Failing a few tests. Most are
>> related with the absence of a beans.xmlconcurrency - Failing a few tests.
>> DefaultManagedExecutorService not binded to JNDI
>> comp/DefaultManagedExecutorServiceejb - Failure in TimerServiceel - Missing
>> Lambda Supportinterceptor - OKjacc - No Implementation Providedjaspic - No
>> Implementation Providedjavamail - OKjaxrs - Failing a few tests. Related
>> with other specs, like json-p and jpajaxws - OKjca - OKjms - Test
>> Failuresjpa - No support for JPA 2.1 yetjsf - A few failuresjson-p - OKjta
>> - Failing a few tests. Related with other specs, like jpaservlet - Failing
>> a few tests. Related with security stuffvalidation - Test Failureswebsocket
>> - OK
>> These are only a preliminary results. I intent to look with more detail
>> into the tests to make sure the problems are not in the samples side.
>> Currently most of the test pass on other Java EE 7 servers. I'm also
>> missing a CI build including TomEE. I'm having some issues with our CI
>> environment, but it will be there.
>> Anyway, I hope this is useful information and count me in to help :)
>> Cheers,Roberto
>>      From: Romain Manni-Bucau 
>>  To: users@tomee.apache.org
>>  Sent: Sunday, November 2, 2014 8:30 PM
>>  Subject: Re: TomEE plans for Java EE 7
>>
>> Le 2 nov. 2014 20:16, "tibor17"  a écrit :
>> >
>> > See this discussion in the mailing list of OpenJPA:
>> >
>> >
>>
>> http://openjpa.208410.n2.nabble.com/OpenJPA-support-for-JPA-2-1-when-td7584157.html
>> >
>> > It looks like the JPA provider wouldn't be ready for Tomee@JavaEE 7.0.
>> >
>> > I guess the Hibernate LGPL will be the candidate (not bundled in the
>> tomee
>> > zip).
>> > This decision would speedup the release.
>> >
>> >
>>
>> Hibernate is just not apache compliant, im not for eclipselink since it
>> usage and behavior is error prone and harder to control + id like to stay
>> apache.
>>
>> Well stay openjpa i think.
>>
>> Btw this kind of discussion is generally useless. You would have had the
>> same about bval...one week of work and we got it.
>>
>>
>>
>> >
>> > --
>> > View this message in context:
>>
>> http://tomee-openejb.979440.n4.nabble.com/TomEE-plans-for-Java-EE-7-tp4663386p4672719.html
>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>>
>>

  

Re: TomEE plans for Java EE 7

2014-11-03 Thread Romain Manni-Bucau
travis I guess?
https://travis-ci.org/javaee-samples/javaee7-samples/jobs/39782388


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-03 9:24 GMT+01:00 David Blevins :
> First -- welcome, Roberto!  Great to see you on the list :)
>
> We should definitely try with TomEE 2.0-SNAPSHOT.  Would be great to track
> these.  What CI are you using?  We could set something up on the Apache
> side if needed.
>
>
> -David
>
>
> On Sun, Nov 2, 2014 at 1:35 PM, Roberto Cortez 
> wrote:
>
>> Hi guys,
>> I just subscribed to the list, so this is my first email here.
>> I'm currently contributing to a Java EE 7 samples project here:
>> https://github.com/javaee-samples/javaee7-samples, and I just added
>> profiles to run the samples in TomEE and TomEE Embedded. Running the
>> samples / tests we got the following results:
>> batch - No Implementation Providedcdi - Failing a few tests. Most are
>> related with the absence of a beans.xmlconcurrency - Failing a few tests.
>> DefaultManagedExecutorService not binded to JNDI
>> comp/DefaultManagedExecutorServiceejb - Failure in TimerServiceel - Missing
>> Lambda Supportinterceptor - OKjacc - No Implementation Providedjaspic - No
>> Implementation Providedjavamail - OKjaxrs - Failing a few tests. Related
>> with other specs, like json-p and jpajaxws - OKjca - OKjms - Test
>> Failuresjpa - No support for JPA 2.1 yetjsf - A few failuresjson-p - OKjta
>> - Failing a few tests. Related with other specs, like jpaservlet - Failing
>> a few tests. Related with security stuffvalidation - Test Failureswebsocket
>> - OK
>> These are only a preliminary results. I intent to look with more detail
>> into the tests to make sure the problems are not in the samples side.
>> Currently most of the test pass on other Java EE 7 servers. I'm also
>> missing a CI build including TomEE. I'm having some issues with our CI
>> environment, but it will be there.
>> Anyway, I hope this is useful information and count me in to help :)
>> Cheers,Roberto
>>   From: Romain Manni-Bucau 
>>  To: users@tomee.apache.org
>>  Sent: Sunday, November 2, 2014 8:30 PM
>>  Subject: Re: TomEE plans for Java EE 7
>>
>> Le 2 nov. 2014 20:16, "tibor17"  a écrit :
>> >
>> > See this discussion in the mailing list of OpenJPA:
>> >
>> >
>>
>> http://openjpa.208410.n2.nabble.com/OpenJPA-support-for-JPA-2-1-when-td7584157.html
>> >
>> > It looks like the JPA provider wouldn't be ready for Tomee@JavaEE 7.0.
>> >
>> > I guess the Hibernate LGPL will be the candidate (not bundled in the
>> tomee
>> > zip).
>> > This decision would speedup the release.
>> >
>> >
>>
>> Hibernate is just not apache compliant, im not for eclipselink since it
>> usage and behavior is error prone and harder to control + id like to stay
>> apache.
>>
>> Well stay openjpa i think.
>>
>> Btw this kind of discussion is generally useless. You would have had the
>> same about bval...one week of work and we got it.
>>
>>
>>
>> >
>> > --
>> > View this message in context:
>>
>> http://tomee-openejb.979440.n4.nabble.com/TomEE-plans-for-Java-EE-7-tp4663386p4672719.html
>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>>
>>


Re: TomEE plans for Java EE 7

2014-11-03 Thread David Blevins
First -- welcome, Roberto!  Great to see you on the list :)

We should definitely try with TomEE 2.0-SNAPSHOT.  Would be great to track
these.  What CI are you using?  We could set something up on the Apache
side if needed.


-David


On Sun, Nov 2, 2014 at 1:35 PM, Roberto Cortez 
wrote:

> Hi guys,
> I just subscribed to the list, so this is my first email here.
> I'm currently contributing to a Java EE 7 samples project here:
> https://github.com/javaee-samples/javaee7-samples, and I just added
> profiles to run the samples in TomEE and TomEE Embedded. Running the
> samples / tests we got the following results:
> batch - No Implementation Providedcdi - Failing a few tests. Most are
> related with the absence of a beans.xmlconcurrency - Failing a few tests.
> DefaultManagedExecutorService not binded to JNDI
> comp/DefaultManagedExecutorServiceejb - Failure in TimerServiceel - Missing
> Lambda Supportinterceptor - OKjacc - No Implementation Providedjaspic - No
> Implementation Providedjavamail - OKjaxrs - Failing a few tests. Related
> with other specs, like json-p and jpajaxws - OKjca - OKjms - Test
> Failuresjpa - No support for JPA 2.1 yetjsf - A few failuresjson-p - OKjta
> - Failing a few tests. Related with other specs, like jpaservlet - Failing
> a few tests. Related with security stuffvalidation - Test Failureswebsocket
> - OK
> These are only a preliminary results. I intent to look with more detail
> into the tests to make sure the problems are not in the samples side.
> Currently most of the test pass on other Java EE 7 servers. I'm also
> missing a CI build including TomEE. I'm having some issues with our CI
> environment, but it will be there.
> Anyway, I hope this is useful information and count me in to help :)
> Cheers,Roberto
>   From: Romain Manni-Bucau 
>  To: users@tomee.apache.org
>  Sent: Sunday, November 2, 2014 8:30 PM
>  Subject: Re: TomEE plans for Java EE 7
>
> Le 2 nov. 2014 20:16, "tibor17"  a écrit :
> >
> > See this discussion in the mailing list of OpenJPA:
> >
> >
>
> http://openjpa.208410.n2.nabble.com/OpenJPA-support-for-JPA-2-1-when-td7584157.html
> >
> > It looks like the JPA provider wouldn't be ready for Tomee@JavaEE 7.0.
> >
> > I guess the Hibernate LGPL will be the candidate (not bundled in the
> tomee
> > zip).
> > This decision would speedup the release.
> >
> >
>
> Hibernate is just not apache compliant, im not for eclipselink since it
> usage and behavior is error prone and harder to control + id like to stay
> apache.
>
> Well stay openjpa i think.
>
> Btw this kind of discussion is generally useless. You would have had the
> same about bval...one week of work and we got it.
>
>
>
> >
> > --
> > View this message in context:
>
> http://tomee-openejb.979440.n4.nabble.com/TomEE-plans-for-Java-EE-7-tp4663386p4672719.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
>


Re: TomEE plans for Java EE 7

2014-11-03 Thread David Blevins
On Nov 2, 2014, at 12:30 PM, Romain Manni-Bucau  wrote:

> Hibernate is just not apache compliant, im not for eclipselink since it
> usage and behavior is error prone and harder to control + id like to stay
> apache.
> 
> Well stay openjpa i think.
> 
> Btw this kind of discussion is generally useless. You would have had the
> same about bval...one week of work and we got it.

Definitely a useful discussion as people are going on what's been documented, 
which is nothing in this area.

For other readers, Romain is correct, we can't ship Hibernate due to licensing 
restrictions documented here:

 - http://www.apache.org/legal/resolved.html#category-x
   see "Which licenses may NOT be included within Apache products?"

We already support/ship EclipseLink, so the question is really about what will 
happen with OpenJPA.

I certainly hope OpenJPA can be brought up to JPA 2.1 compliance.  Challenge 
for the readers is IBM was the main contributor and has simply tired of 
carrying the load alone:

  - 
https://developer.ibm.com/wasdev/2014/05/28/eclipselink-jpa-provider-liberty-profile

"we agreed it was better to join forces with the EclipseLink open source 
 community than to be the primary (sole) developer in the OpenJPA 
community."

This doesn't mean OpenJPA has to die, it just means if you believe in open 
source, now is the time to act on those beliefs.

Three people in their spare time can do amazing things.


-David