Re: [Tobago] Tobago Version 1.0.* and Tomcat 7

2014-01-15 Thread Udo Schnurpfeil
Hi,

Tobago 1.0.x should run on Tomcat 7 and later. I'll update the webside:
http://myfaces.apache.org/tobago/compatibility.html

I've a running installation of a Tobago 1.0.x Application with Tomcat 7.0.47

Regards

Udo

Am 15.01.14 00:30, schrieb d.o@gmx.net:
 Hello all,
  
 Could you please let me know whether Tobago 1.0.* is still supported in 
 Tomcat 7 (or later versions)?
  
 Thanks a lot for your help and best wishes,
 Dom
 


Re: [core] What's new in MyFaces 2.2

2014-01-15 Thread Howard W. Smith, Jr.
MyFaces 2.2.0 is working just as good as MyFaces 2.1.13 (has been working
over the last few months).

So, i guess MyFaces 2.2.0 is here to stay in my app. Thank you!


On Wed, Jan 15, 2014 at 2:54 AM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 Done (deployed MyFaces 2.2.0 with my app in production).

 On Tue, Jan 14, 2014 at 12:54 PM, Howard W. Smith, Jr. 
 smithh032...@gmail.com wrote:

 i am really going to have to make the step to migrate to JSF 2.2.
 hopefully will do it, ASAP. thanks again.






Re: MyFaces 2.2.0 (yesterday's release) CDI @ViewScoped @PreDestroy

2014-01-15 Thread Howard W. Smith, Jr.
On Wed, Jan 15, 2014 at 2:27 AM, Howard W. Smith, Jr. 
smithh032...@gmail.com wrote:

 FYI, I 'want' to migrate to MyFaces 2.2.0 in production, and I think I
 will do it anyway, but please answer my question above about this
 behavior/implementation/test-results-of-mine.


well, I'm running MyFaces 2.2.0 in production now, and GC is the same as
when I was running MyFaces 2.1.3 (and when I was using OmniFaces CDI
@ViewScoped). this is my jvisualvm graph[1], today (this morning).

Still a satisfied/happy MyFaces user, and happy to be 'now' using MyFaces
2.2.0. Maybe I can ask TomEE users/committers to add MyFaces 2.2.0 to the
stack! :)

[1] http://postimg.org/image/u2y6j11tt/


MyFaces 2.2.0 ViewScoped

2014-01-15 Thread José Luis Cetina
Hi im currently using org.omnifaces.cdi.ViewScoped for my @Named beans, now
with MyFaces 2.2.0 which package do i have to use for @ViewScoped and
@Named for work togheter.

Thanks


Re: MyFaces 2.2.0 ViewScoped

2014-01-15 Thread Thomas Andraschko
http://jsflive.wordpress.com/2013/07/17/jsf22-cdi-view-scope/


2014/1/15 José Luis Cetina maxtorz...@gmail.com

 Hi im currently using org.omnifaces.cdi.ViewScoped for my @Named beans, now
 with MyFaces 2.2.0 which package do i have to use for @ViewScoped and
 @Named for work togheter.

 Thanks



Re: MyFaces 2.2.0 ViewScoped

2014-01-15 Thread José Luis Cetina
Thanks


2014/1/15 Thomas Andraschko andraschko.tho...@gmail.com

 http://jsflive.wordpress.com/2013/07/17/jsf22-cdi-view-scope/


 2014/1/15 José Luis Cetina maxtorz...@gmail.com

  Hi im currently using org.omnifaces.cdi.ViewScoped for my @Named beans,
 now
  with MyFaces 2.2.0 which package do i have to use for @ViewScoped and
  @Named for work togheter.
 
  Thanks
 




-- 
---
*SCJA. José Luis Cetina*
---


MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-01-15 Thread José Luis Cetina
Hi. I use TomEE 1.6.0 Final release with myfaces 2.1.13 and jdk 1.7 with
this i was using the org.omnifaces.cdi.ViewScoped annotation with any
problem, with the new release of myfaces 2.2.0 i decide to change from
org.omnifaces.cdi.ViewScoped to javax.faces.view.ViewScoped then im gettin
this AmbiguousResolutionException.


This error only happend in Linux environment, if i run the same project in
Windows this error never appears.


I removed my faces 2.1.13 jars (api and imp) from tomee lib and add myfaces
api and impl 2.2.0


What could be wrong?

Log:

javax.enterprise.inject.AmbiguousResolutionException: Ambiguous resolution
found beans:
ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API
Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
from 
jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class
ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API
Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
from 
jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class

org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtil.java:104)

org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:94)

org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:71)

org.apache.webbeans.container.InjectionResolver.resolve(InjectionResolver.java:699)

org.apache.webbeans.container.BeanManagerImpl.resolve(BeanManagerImpl.java:925)

org.apache.webbeans.container.InjectableBeanManager.resolve(InjectableBeanManager.java:201)

org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:413)

org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:144)

org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.getViewScopeBeanHolder(CDIManagedBeanHandlerImpl.java:64)

org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.generateViewScopeId(CDIManagedBeanHandlerImpl.java:92)

org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:76)

org.apache.myfaces.view.ViewScopeProxyMap.size(ViewScopeProxyMap.java:89)
javax.faces.component.UIViewRoot.saveState(UIViewRoot.java:1498)

org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:846)

org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:351)

org.apache.myfaces.renderkit.ErrorPageWriter.handle(ErrorPageWriter.java:470)

org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl.handle(MyFacesExceptionHandlerWrapperImpl.java:301)

javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:61)

org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.handle(FullAjaxExceptionHandler.java:162)

org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:287)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)


Re: MyFaces 2.2.0 ViewScoped

2014-01-15 Thread Howard W. Smith, Jr.
Hey, Jose. you should have used NetBeans 'Fix imports' option after
removing Omnifaces package.

i think you are using NetBeans (but I might be wrong).

Fix imports would have gave you a dialog showing you the MyFaces 2.2
@ViewScoped package to import.



On Wed, Jan 15, 2014 at 3:34 PM, José Luis Cetina maxtorz...@gmail.comwrote:

 Hi im currently using org.omnifaces.cdi.ViewScoped for my @Named beans, now
 with MyFaces 2.2.0 which package do i have to use for @ViewScoped and
 @Named for work togheter.

 Thanks



Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-01-15 Thread Leonardo Uribe
Hi

It looks like something not directly related to MyFaces, it is like if
the classpath is scanned twice, or like the bean is subscribed twice.
I suppose it is a bug in OWB or in TomEE. Maybe you should report it
in:

https://issues.apache.org/jira/browse/TOMEE

regards,

Leonardo Uribe

2014/1/15 José Luis Cetina maxtorz...@gmail.com:
 Hi. I use TomEE 1.6.0 Final release with myfaces 2.1.13 and jdk 1.7 with
 this i was using the org.omnifaces.cdi.ViewScoped annotation with any
 problem, with the new release of myfaces 2.2.0 i decide to change from
 org.omnifaces.cdi.ViewScoped to javax.faces.view.ViewScoped then im gettin
 this AmbiguousResolutionException.


 This error only happend in Linux environment, if i run the same project in
 Windows this error never appears.


 I removed my faces 2.1.13 jars (api and imp) from tomee lib and add myfaces
 api and impl 2.2.0


 What could be wrong?

 Log:

 javax.enterprise.inject.AmbiguousResolutionException: Ambiguous resolution
 found beans:
 ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],
 Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
 from 
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class
 ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],
 Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
 from 
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtil.java:104)
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:94)
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:71)
 
 org.apache.webbeans.container.InjectionResolver.resolve(InjectionResolver.java:699)
 
 org.apache.webbeans.container.BeanManagerImpl.resolve(BeanManagerImpl.java:925)
 
 org.apache.webbeans.container.InjectableBeanManager.resolve(InjectableBeanManager.java:201)
 
 org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:413)
 
 org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:144)
 
 org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.getViewScopeBeanHolder(CDIManagedBeanHandlerImpl.java:64)
 
 org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.generateViewScopeId(CDIManagedBeanHandlerImpl.java:92)
 
 org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:76)
 
 org.apache.myfaces.view.ViewScopeProxyMap.size(ViewScopeProxyMap.java:89)
 javax.faces.component.UIViewRoot.saveState(UIViewRoot.java:1498)
 
 org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:846)
 
 org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:351)
 
 org.apache.myfaces.renderkit.ErrorPageWriter.handle(ErrorPageWriter.java:470)
 
 org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl.handle(MyFacesExceptionHandlerWrapperImpl.java:301)
 
 javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:61)
 
 org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.handle(FullAjaxExceptionHandler.java:162)
 
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:287)
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)


Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-01-15 Thread Howard W. Smith, Jr.
Leonardo,

Jose uses/deploys EARs. Maybe that is the issue. Has MyFaces 2.2
@ViewScoped been tested in an EAR.

Jose,

You need to provide more of your configuration and share that you usually
deploy your app via EAR(s). right?



On Wed, Jan 15, 2014 at 5:48 PM, Leonardo Uribe lu4...@gmail.com wrote:

 Hi

 It looks like something not directly related to MyFaces, it is like if
 the classpath is scanned twice, or like the bean is subscribed twice.
 I suppose it is a bug in OWB or in TomEE. Maybe you should report it
 in:

 https://issues.apache.org/jira/browse/TOMEE

 regards,

 Leonardo Uribe

 2014/1/15 José Luis Cetina maxtorz...@gmail.com:
  Hi. I use TomEE 1.6.0 Final release with myfaces 2.1.13 and jdk 1.7 with
  this i was using the org.omnifaces.cdi.ViewScoped annotation with any
  problem, with the new release of myfaces 2.2.0 i decide to change from
  org.omnifaces.cdi.ViewScoped to javax.faces.view.ViewScoped then im
 gettin
  this AmbiguousResolutionException.
 
 
  This error only happend in Linux environment, if i run the same project
 in
  Windows this error never appears.
 
 
  I removed my faces 2.1.13 jars (api and imp) from tomee lib and add
 myfaces
  api and impl 2.2.0
 
 
  What could be wrong?
 
  Log:
 
  javax.enterprise.inject.AmbiguousResolutionException: Ambiguous
 resolution
  found beans:
  ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API
 
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],
  Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
  from
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class
  ViewScopeBeanHolder, Name:null, WebBeans Type:MANAGED, API
 
 Types:[java.io.Serializable,java.lang.Object,org.apache.myfaces.cdi.view.ViewScopeBeanHolder],
  Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
  from
 jar:file:/home/broncos/apache/tomee/apache-tomee-jaxrs-1.6.0/lib/myfaces-impl-2.2.0.jar!/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.class
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtil.java:104)
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:94)
 
 org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:71)
 
 org.apache.webbeans.container.InjectionResolver.resolve(InjectionResolver.java:699)
 
 org.apache.webbeans.container.BeanManagerImpl.resolve(BeanManagerImpl.java:925)
 
 org.apache.webbeans.container.InjectableBeanManager.resolve(InjectableBeanManager.java:201)
 
 org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:413)
 
 org.apache.myfaces.cdi.util.BeanProvider.getContextualReference(BeanProvider.java:144)
 
 org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.getViewScopeBeanHolder(CDIManagedBeanHandlerImpl.java:64)
 
 org.apache.myfaces.cdi.impl.CDIManagedBeanHandlerImpl.generateViewScopeId(CDIManagedBeanHandlerImpl.java:92)
 
 org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:76)
 
 org.apache.myfaces.view.ViewScopeProxyMap.size(ViewScopeProxyMap.java:89)
  javax.faces.component.UIViewRoot.saveState(UIViewRoot.java:1498)
 
 org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:846)
 
 org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:351)
 
 org.apache.myfaces.renderkit.ErrorPageWriter.handle(ErrorPageWriter.java:470)
 
 org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl.handle(MyFacesExceptionHandlerWrapperImpl.java:301)
 
 javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:61)
 
 org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.handle(FullAjaxExceptionHandler.java:162)
 
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:287)
  javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)



Re: MyFaces 2.2.0 ViewScoped

2014-01-15 Thread José Luis Cetina
I did it. But now i have problems. I reporte a AmbiguousResolutionException
in other thread.


2014/1/15 Howard W. Smith, Jr. smithh032...@gmail.com

 Hey, Jose. you should have used NetBeans 'Fix imports' option after
 removing Omnifaces package.

 i think you are using NetBeans (but I might be wrong).

 Fix imports would have gave you a dialog showing you the MyFaces 2.2
 @ViewScoped package to import.



 On Wed, Jan 15, 2014 at 3:34 PM, José Luis Cetina maxtorz...@gmail.com
 wrote:

  Hi im currently using org.omnifaces.cdi.ViewScoped for my @Named beans,
 now
  with MyFaces 2.2.0 which package do i have to use for @ViewScoped and
  @Named for work togheter.
 
  Thanks
 




-- 
---
*SCJA. José Luis Cetina*
---


Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-01-15 Thread Howard W. Smith, Jr.
On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina maxtorz...@gmail.comwrote:

 I removed my faces 2.1.13 jars (api and imp) from tomee lib and add myfaces
 api and impl 2.2.0


that's exactly what I did and I don't get the error.

Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?


Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-01-15 Thread José Luis Cetina
I removed CODI and my app is package as ear. maybe i need to try tomee
1.6.1-snapshot


2014/1/15 Howard W. Smith, Jr. smithh032...@gmail.com

 On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina maxtorz...@gmail.com
 wrote:

  I removed my faces 2.1.13 jars (api and imp) from tomee lib and add
 myfaces
  api and impl 2.2.0
 

 that's exactly what I did and I don't get the error.

 Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?




-- 
---
*SCJA. José Luis Cetina*
---


Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-01-15 Thread Howard W. Smith, Jr.
if you are not able to use MyFaces 2.2 @ViewScoped, you may need to keep
OmniFaces CDI @ViewScoped until someone helps you with your issue.

Some months ago, I tested MyFaces 2.2 with OmniFaces CDI @ViewScoped; all
of my @ViewScoped beans were still OmniFaces CDI @ViewScoped, and I
experienced no issues. My app is not packaged as an EAR.

today, i am using MyFaces 2.2 @ViewScoped beans even though I still have
OmniFAces 1.6.3 JAR/dependency (not using OmniFaces CDI @ViewScoped).

For the first day, running MyFaces 2.2, I am quite pleased. No issues to
report, no exceptions in tomee/tomcat log files.



On Wed, Jan 15, 2014 at 5:57 PM, José Luis Cetina maxtorz...@gmail.comwrote:

 I removed CODI and my app is package as ear. maybe i need to try tomee
 1.6.1-snapshot


 2014/1/15 Howard W. Smith, Jr. smithh032...@gmail.com

  On Wed, Jan 15, 2014 at 4:40 PM, José Luis Cetina maxtorz...@gmail.com
  wrote:
 
   I removed my faces 2.1.13 jars (api and imp) from tomee lib and add
  myfaces
   api and impl 2.2.0
  
 
  that's exactly what I did and I don't get the error.
 
  Jose, are you still using MyFaces CODI (1.5 or 1.6.x) and EAR, too?
 



 --
 ---
 *SCJA. José Luis Cetina*
 ---