Hi Felipe! Will try to look at your problem over the weekend. Did already clone your sample repo.
txs and LieGrue, strub On Tuesday, 29 July 2014, 13:51, Felipe Pina <[email protected]> wrote: > > >Ok sorry about that >Could you help me about this problem? >Thank you >Em 29/07/2014 01:39, "Mark Struberg" <[email protected]> escreveu: > >Hi Felipe! >> >> >>Pleaes post this to the OWB list. >>There might be others who have this issue as well. >>Private mails often end up in the spam folder of my mail client :/ >> >> >>LieGrue, >>strub >> >> >> >>On Monday, 28 July 2014, 23:03, Felipe Pina <[email protected]> wrote: >> >> >>> >>> >>>Mark, I discovered the cause of my problem. I do not know why it does not >>>recognize the cdi injection annotation within the listener class. >>> >>> >>>Thus, I look for a workaround to solve this problem, which it does >>>disconnect the user when the session expires. So I changed the session >>>timeout in tomcat web.xml, to test, so i get this error below: >>> >>> >>> >>> >>>My sample project on github for your review. >>>https://github.com/fopnet/OwbCDI >>> >>> >>> >>> >>> >>>Error: >>> >>> >>>Grave: Session event listener threw exception >>>javax.enterprise.context.ContextNotActiveException: WebBeans context with >>>scope type annotation @SessionScoped does not exist within current thread >>>at >>>org.apache.webbeans.container.BeanManagerImpl.getContext(BeanManagerImpl.java:330) >>>at >>>org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:88) >>>at >>>org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:70) >>>at >>>br.com.cdi.FacadeImpl$$OwbNormalScopeProxy0.executarComando(br/com/cdi/FacadeImpl.java) >>> >>> >>> >>> >>> >>> >>>References : >>> >>> >>>Example >>>http://stackoverflow.com/questions/19957644/why-weld-says-injection-into-listeners-is-not-supported-on-tomcat >>> >>> >>>DeltaSpikes >>>http://struberg.wordpress.com/tag/cdi/ >>> >>> >>>Regards >>>Felipe >>> >>> >>> >>> >>> >>>2014-07-21 10:51 GMT-03:00 Felipe Pina <[email protected]>: >>> >>>PS: only existe one implementation of interface GrowUpFacadeAdapter . >>>> >>>> >>>>This sample reports "Annotating @Alternative a class will mean it will >>>>replace any implementation if there is no other implementation or if it is >>>>forced (through META-INF/beans.xml)." >>>> >>>> >>>>Reference. >>>>http://tomee.apache.org/examples-trunk/cdi-alternative-and-stereotypes/README.html >>>> >>>> >>>> >>>>So putting GrowUpFacade as @Alternative + beans.xml reference or >>>>Creating a producer to this Implementation, both solutions dispatches this >>>>error for all injection points, declared as @Inject. >>>> >>>> >>>>Error: >>>>Grave: Exception sending context initialized event to listener instance of >>>>class org.apache.webbeans.servlet.WebBeansConfigurationListener >>>>org.apache.webbeans.exception.inject.DeploymentException: >>>>javax.enterprise.inject.UnsatisfiedResolutionException: Api type >>>>[br.com.growupge.facade.GrowUpFacadeAdapter] is not found with the >>>>qualifiers >>>>Qualifiers: [@javax.enterprise.inject.Default()] >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>2014-07-21 9:53 GMT-03:00 Felipe Pina <[email protected]>: >>>> >>>> >>>>Libs in tomcat folder lib. >>>>> >>>>> >>>>>openwebbeans-tomcat7-1.2.7-SNAPSHOT.jar >>>>> >>>>>openwebbeans-web-1.2.7-SNAPSHOT.jar >>>>> >>>>>openwebbeans-el22-1.2.7-SNAPSHOT.jar >>>>> >>>>>openwebbeans-impl-1.2.7-SNAPSHOT.jar >>>>> >>>>>openwebbeans-spi-1.2.7-SNAPSHOT.jar >>>>> >>>>>javax.inject-1.jar >>>>> >>>>>xbean-asm5-shaded-3.17.jar >>>>> >>>>>xbean-finder-shaded-3.17.jar >>>>> >>>>>geronimo-atinject_1.0_spec-1.0.jar >>>>> >>>>>geronimo-interceptor_1.1_spec-1.0.jar >>>>> >>>>>geronimo-jcdi_1.0_spec-1.0.jar >>>>> >>>>> >>>>> >>>>>server.xml >>>>> >>>>> >>>>> <Listener >>>>>className="org.apache.webbeans.web.tomcat.ContextLifecycleListener"/> >>>>> >>>>> >>>>> >>>>>web.xml >>>>> >>>>> >>>>><listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>2014-07-20 22:21 GMT-03:00 Felipe Pina <[email protected]>: >>>>> >>>>> >>>>>1- If a put in beans.xml the follow declaration, i get this error below >>>>>> >>>>>> >>>>>> <!-- Reason of this error: WebBeans context with scope type annotation >>>>>> @FlowDefinition >>>>>> does not exist within current thread >>>>>> <alternatives> >>>>>> <class>br.com.growupge.facade.GrowUpFacade</class> >>>>>> </alternatives> >>>>>> --> >>>>>> >>>>>> >>>>>>2- Other problem, In the injection point, I tried two attempt: >>>>>>2.1 -- put the annotation @javax.enterprise.inject.Default, >>>>>>2.2 - creating a produces to interface GrowUpFacadeAdapter, but i got the >>>>>>error below: >>>>>> >>>>>> >>>>>>SEVERE: Exception sending context initialized event to listener instance >>>>>>of class org.apache.webbeans.servlet.WebBeansConfigurationListener >>>>>>org.apache.webbeans.exception.inject.DeploymentException: >>>>>>javax.enterprise.inject.UnsatisfiedResolutionException: Api type >>>>>>[br.com.growupge.facade.GrowUpFacadeAdapter] is not found with the >>>>>>qualifiers >>>>>>Qualifiers: [@javax.enterprise.inject.Default()] >>>>>>for injection into Field Injection Point, field name : facade, Bean >>>>>>Owner : [GerarBoleto , Name:null, WebBeans Type:MANAGED, API >>>>>>Types:[a.lang.Object,com.paypal.core.BaseService], >>>>>>Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>--------------------------------------------------------------------------- >>>>>> Declarations >>>>>> >>>>>> >>>>>>@javax.inject.Named("facade") >>>>>>@javax.enterprise.context.RequestScoped >>>>>>public class GrowUpFacade implements GrowUpFacadeAdapter {} >>>>>> >>>>>> >>>>>>public interface GrowUpFacadeAdapter extends Serializable {} >>>>>> >>>>>> >>>>>> >>>>>>@WebServlet( urlPatterns = {"/gerarBoleto"}) >>>>>>public class GerarBoleto extends HttpServlet { >>>>>> >>>>>> >>>>>>/** >>>>>> * Atributo '<code>serialVersionUID</code>' do tipo long >>>>>> */ >>>>>>private static final long serialVersionUID = 1L; >>>>>>@javax.inject.Inject >>>>>>//@javax.enterprise.inject.Default >>>>>>private GrowUpFacadeAdapter facade; >>>>>> >>>>>> >>>>>>.... >>>>>> >>>>>> >>>>>>My Producer >>>>>> >>>>>> >>>>>>public class FlexFactoryImpl { >>>>>> >>>>>> >>>>>>@javax.enterprise.inject.Produces >>>>>> >>>>>>@javax.enterprise.inject.Default >>>>>>@javax.enterprise.context.RequestScoped >>>>>>public static GrowUpFacadeAdapter getFacade() { >>>>>>return new GrowUpFacade(); >>>>>>} >>>>>> >>>>>> >>>>>> >>>>>>2014-07-20 17:44 GMT-03:00 Felipe Pina <[email protected]>: >>>>>> >>>>>> >>>>>>I found a problem. >>>>>>> >>>>>>> >>>>>>>Only in webservlet 3.0 points, the owb does not injecting the beans? >>>>>>> >>>>>>> >>>>>>>Are there some reason for this? >>>>>>> >>>>>>> >>>>>>> >>>>>>>2014-07-20 15:42 GMT-03:00 Mark Struberg <[email protected]>: >>>>>>> >>>>>>> >>>>>>>The ContextLifecycleListener is used internally, the >>>>>>>WebBeansConfigurationListener is the 'real' thing which controls our >>>>>>>contexts. >>>>>>>> >>>>>>>> >>>>>>>>for beans.xml: >>>>>>>>Both the following should work in case of a WAR file: >>>>>>>>* WEB-INF/beans.xml >>>>>>>>* WEB-INF/classes/META-INF/beans.xml >>>>>>>> >>>>>>>> >>>>>>>>LieGrue, >>>>>>>>strub >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>On Sunday, 20 July 2014, 20:30, Felipe Pina <[email protected]> wrote: >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>I discovered the cause of problem >>>>>>>>> >>>>>>>>> >>>>>>>>>I confuse the listener that should be placed in the web.xml file. I >>>>>>>>>was putting org.apache.webbeans.web.tomcat.ContextLifecycleListener >>>>>>>>>thinking instead of >>>>>>>>>org.apache.webbeans.servlet.WebBeansConfigurationListener. >>>>>>>>> >>>>>>>>> >>>>>>>>>1- So take this opportunity to ask what the purpose of the listener >>>>>>>>>org.apache.webbeans.web.tomcat.ContextLifecycleListener? >>>>>>>>> >>>>>>>>> >>>>>>>>>2- Another confusing thing was that in my web project, the lookup of >>>>>>>>>the bean was returning empty list. The initial location was within the >>>>>>>>>META-INF folder. So I moved the beans.xml inside the WEB-INF, and the >>>>>>>>>lookup began to run correctly. >>>>>>>>>The documentation says that the correct location is not within the >>>>>>>>>META-INF? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>2014-07-20 6:10 GMT-03:00 Mark Struberg <[email protected]>: >>>>>>>>> >>>>>>>>>Well, this is nothing I can simply build. I thought more about >>>>>>>>>something I could clone from github ;) >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>The 'property is not writable' sounds more like this is something for >>>>>>>>>>the myfaces list though. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>LieGrue, >>>>>>>>>>strub >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>On Saturday, 19 July 2014, 20:39, Felipe Pina <[email protected]> >>>>>>>>>>wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>Web Project Dependencies >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>><project xmlns="http://maven.apache.org/POM/4.0.0" >>>>>>>>>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>>>>>>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >>>>>>>>>>>http://maven.apache.org/xsd/maven-4.0.0.xsd"> >>>>>>>>>>> <modelVersion>4.0.0</modelVersion> >>>>>>>>>>> <parent> >>>>>>>>>>><groupId>br.com.growupge</groupId> >>>>>>>>>>> <artifactId>builder</artifactId> >>>>>>>>>>> <version>0.2.1-SNAPSHOT</version> >>>>>>>>>>> <relativePath>../GrowUpBuilder/pom.xml</relativePath> >>>>>>>>>>> </parent> >>>>>>>>>>> <packaging>war</packaging> >>>>>>>>>>> <artifactId>GrowUpWeb</artifactId> >>>>>>>>>>> <name>GrowUpWeb</name> >>>>>>>>>>> >>>>>>>>>>> <properties> >>>>>>>>>>> <jsf-myfaces.version>2.2.4</jsf-myfaces.version> >>>>>>>>>>> <blazeds.version>4.0.0.14931</blazeds.version> >>>>>>>>>>> <codi.version>1.0.7</codi.version> >>>>>>>>>>> <ds.version>0.7</ds.version> >>>>>>>>>>> </properties> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependencies> >>>>>>>>>>> >>>>>>>>>>> <dependency> >>>>>>>>>>><groupId>xalan</groupId> >>>>>>>>>>><artifactId>xalan</artifactId> >>>>>>>>>>><version>2.6.0</version> >>>>>>>>>>></dependency> >>>>>>>>>>><!-- Application Dependencies --> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>commons-logging</groupId> >>>>>>>>>>><artifactId>commons-logging</artifactId> >>>>>>>>>>><version>1.0.3</version> <!-- 1.0.4 --> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>commons-httpclient</groupId> >>>>>>>>>>><artifactId>commons-httpclient</artifactId> >>>>>>>>>>><version>3.0.1</version> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>commons-fileupload</groupId> >>>>>>>>>>><artifactId>commons-fileupload</artifactId> >>>>>>>>>>><version>1.3</version> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>> >>>>>>>>>>><groupId>javax.el</groupId> >>>>>>>>>>><artifactId>javax.el-api</artifactId> >>>>>>>>>>><!-- <version>2.2.2</version> --> >>>>>>>>>>><version>3.0.0</version> >>>>>>>>>>><scope>provided</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>javax.servlet.jsp</groupId> >>>>>>>>>>><artifactId>javax.servlet.jsp-api</artifactId> >>>>>>>>>>><version>2.2.1</version> >>>>>>>>>>><scope>provided</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>taglibs</groupId> >>>>>>>>>>><artifactId>standard</artifactId> >>>>>>>>>>><version>1.1.2</version> >>>>>>>>>>><scope>provided</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><!-- Mojarra JSF Dependencies --> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> <!-- Jstl dependencies --> >>>>>>>>>>> <dependency> >>>>>>>>>>><groupId>jstl</groupId> >>>>>>>>>>><artifactId>jstl</artifactId> >>>>>>>>>>><version>1.2</version> >>>>>>>>>>></dependency> >>>>>>>>>>><!-- Implementacao Mojarra JSF da sun --> >>>>>>>>>>><dependency> >>>>>>>>>>> <groupId>com.sun.faces</groupId> >>>>>>>>>>> <artifactId>jsf-api</artifactId> >>>>>>>>>>> <version>2.2.6</version> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>> <groupId>com.sun.faces</groupId> >>>>>>>>>>> <artifactId>jsf-impl</artifactId> >>>>>>>>>>> <version>2.2.6</version> >>>>>>>>>>></dependency> >>>>>>>>>>><!-- Primefaces JSF Dependencies --> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>org.primefaces</groupId> >>>>>>>>>>><artifactId>primefaces</artifactId> >>>>>>>>>>><version>4.0</version> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>></dependencies> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>></project> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>Parent Dependencies >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><project xmlns="http://maven.apache.org/POM/4.0.0" >>>>>>>>>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>>>>>>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >>>>>>>>>>>http://maven.apache.org/xsd/maven-4.0.0.xsd"> >>>>>>>>>>> <modelVersion>4.0.0</modelVersion> >>>>>>>>>>> <groupId>br.com.growupge</groupId> >>>>>>>>>>> <artifactId>builder</artifactId> >>>>>>>>>>> <version>0.2.1-SNAPSHOT</version> >>>>>>>>>>> <name>GrowUpBuilder</name> >>>>>>>>>>> <packaging>pom</packaging> >>>>>>>>>>> >>>>>>>>>>> <properties> >>>>>>>>>>> <project.build.sourceEncoding>cp1252</project.build.sourceEncoding> >>>>>>>>>>> <adaptivepayments.version>2.6.110</adaptivepayments.version> >>>>>>>>>>><jasperreports.version>5.5.0</jasperreports.version> >>>>>>>>>>><javax.servlet-api-version>3.0.1</javax.servlet-api-version> >>>>>>>>>>> <owb.version>1.2.7-SNAPSHOT</owb.version> >>>>>>>>>>> <owb.scoped>compile</owb.scoped> >>>>>>>>>>> <tomee.version>1.6.0</tomee.version> >>>>>>>>>>> <myfaces.codi.version>1.0.6</myfaces.codi.version> >>>>>>>>>>> <extval.version>2.0.4</extval.version> >>>>>>>>>>> <xbean.version>3.17</xbean.version> >>>>>>>>>>> </properties> >>>>>>>>>>><dependencies> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>junit</groupId> >>>>>>>>>>><artifactId>junit</artifactId> >>>>>>>>>>><version>4.8.1</version> >>>>>>>>>>><scope>test</scope> >>>>>>>>>>></dependency> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>commons-lang</groupId> >>>>>>>>>>><artifactId>commons-lang</artifactId> >>>>>>>>>>><version>2.6</version> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>commons-collections</groupId> >>>>>>>>>>><artifactId>commons-collections</artifactId> >>>>>>>>>>><version>3.2.1</version> >>>>>>>>>>></dependency> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>javax.mail</groupId> >>>>>>>>>>><artifactId>mail</artifactId> >>>>>>>>>>><version>1.4</version> >>>>>>>>>>><scope>provided</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><!-- **************************************************** >>>>>>>>>>>OpenWebBeans Specifications --> >>>>>>>>>>> <!-- JSR-330 --> >>>>>>>>>>> <dependency> >>>>>>>>>>> <groupId>org.apache.geronimo.specs</groupId> >>>>>>>>>>> <artifactId>geronimo-atinject_1.0_spec</artifactId> >>>>>>>>>>> <version>1.0</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>> </dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> <!-- JSR-299 --> >>>>>>>>>>> <dependency> >>>>>>>>>>> <groupId>org.apache.geronimo.specs</groupId> >>>>>>>>>>> <artifactId>geronimo-jcdi_1.0_spec</artifactId> >>>>>>>>>>> <version>1.0</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>> </dependency> >>>>>>>>>>> >>>>>>>>>>> <dependency> >>>>>>>>>>> <groupId>org.apache.geronimo.specs</groupId> >>>>>>>>>>> <artifactId>geronimo-interceptor_1.1_spec</artifactId> >>>>>>>>>>> <version>1.0</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>> </dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> <!-- **************************************************** >>>>>>>>>>>OpenWebBeans implementations --> >>>>>>>>>>> <!-- OpenWebBeans impl, [Myfaces CODI] --> >>>>>>>>>>> <dependency> >>>>>>>>>>> <groupId>org.apache.openwebbeans</groupId> >>>>>>>>>>> <artifactId>openwebbeans-impl</artifactId> >>>>>>>>>>> <version>${owb.version}</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>> </dependency> >>>>>>>>>>> <!-- OpenWebBeans Web, [Myfaces CODI] --> >>>>>>>>>>> <dependency> >>>>>>>>>>> <groupId>org.apache.openwebbeans</groupId> >>>>>>>>>>> <artifactId>openwebbeans-web</artifactId> >>>>>>>>>>> <version>${owb.version}</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>> </dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> <!-- OpenWebBeans JSF, [Myfaces CODI] >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>org.apache.openwebbeans</groupId> >>>>>>>>>>><artifactId>openwebbeans-jsf</artifactId> >>>>>>>>>>><version>${owb.version}</version> >>>>>>>>>>><scope>${owb.scoped}</scope> >>>>>>>>>>></dependency> >>>>>>>>>>>--> >>>>>>>>>>> >>>>>>>>>>> <!-- SPI (Service Provider Interface), [Myfaces CODI] --> >>>>>>>>>>> <dependency> >>>>>>>>>>> <groupId>org.apache.openwebbeans</groupId> >>>>>>>>>>> <artifactId>openwebbeans-spi</artifactId> >>>>>>>>>>> <version>${owb.version}</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>> </dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>org.apache.openwebbeans</groupId> >>>>>>>>>>><artifactId>openwebbeans-el22</artifactId> >>>>>>>>>>><version>${owb.version}</version> >>>>>>>>>>><scope>${owb.scoped}</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> <!-- **************************************************** >>>>>>>>>>>Add-on tomcat7 plugin --> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>org.apache.openwebbeans</groupId> >>>>>>>>>>><artifactId>openwebbeans-tomcat7</artifactId> >>>>>>>>>>><version>${owb.version}</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> <!-- XBean Finder helps to find annotations in classes - >>>>>>>>>>>[openwebbeans-impl,openwebbeans-web] dependency --> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>org.apache.xbean</groupId> >>>>>>>>>>><artifactId>xbean-finder-shaded</artifactId> >>>>>>>>>>><version>${xbean.version}</version> >>>>>>>>>>><scope>${owb.scoped}</scope> >>>>>>>>>>></dependency> >>>>>>>>>>><!-- Others indirect specifications --> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>org.apache.geronimo.bundles</groupId> >>>>>>>>>>><artifactId>scannotation</artifactId> >>>>>>>>>>><version>1.0.2_1</version> >>>>>>>>>>><scope>${owb.scoped}</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> <dependency> >>>>>>>>>>> <groupId>org.apache.xbean</groupId> >>>>>>>>>>> <artifactId>xbean-asm5-shaded</artifactId> >>>>>>>>>>> <version>${xbean.version}</version> >>>>>>>>>>> <scope>${owb.scoped}</scope> >>>>>>>>>>> </dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>><dependency> >>>>>>>>>>><groupId>javax.inject</groupId> >>>>>>>>>>><artifactId>javax.inject</artifactId> >>>>>>>>>>><version>1</version> >>>>>>>>>>><scope>${owb.scoped}</scope> >>>>>>>>>>></dependency> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>></project> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>2014-07-18 1:26 GMT-03:00 Mark Struberg <[email protected]>: >>>>>>>>>>> >>>>>>>>>>>do you have a sample for this? >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>LieGrue, >>>>>>>>>>>>strub >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>On Thursday, 17 July 2014, 15:29, Felipe Pina <[email protected]> >>>>>>>>>>>>wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>Mojarra 2.2.6 always dispatch this error below at deploy moment. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>My project never use @FlowDefinition annotation ! >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>WebBeans context with scope type annotation @FlowDefinition does >>>>>>>>>>>>>not exist within current thread >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>So i changed to implementation to myfaces 2.2.4 , and other error >>>>>>>>>>>>>happens >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>Grave: Servlet.service() for servlet [FacesServlet] in context >>>>>>>>>>>>>with path [/GrowUpWeb] threw exception [Component property class >>>>>>>>>>>>>is not writable] with root cause >>>>>>>>>>>>>java.lang.IllegalArgumentException: Component property class is >>>>>>>>>>>>>not writable >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.component._ComponentAttributesMap.setComponentProperty(_ComponentAttributesMap.java:709) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.component._ComponentAttributesMap.put(_ComponentAttributesMap.java:584) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.component._ComponentAttributesMap.put(_ComponentAttributesMap.java:55) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.jsf.ComponentRule$LiteralAttributeMetadata.applyMetadata(ComponentRule.java:52) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:45) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.MetaTagHandler.setAttributes(MetaTagHandler.java:63) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:90) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:290) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:161) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:520) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:574) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:406) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.UserTagHandler.apply(UserTagHandler.java:159) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:86) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:178) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.TemplateContextImpl$TemplateManagerImpl.apply(TemplateContextImpl.java:193) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.TemplateContextImpl.includeDefinition(TemplateContextImpl.java:136) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:476) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:94) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:55) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply(ComponentTagHandlerDelegate.java:373) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:50) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59) >>>>>>>>>>>>>at >>>>>>>>>>>>>javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:46) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:520) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:574) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:552) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:151) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:188) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.buildView(FaceletViewDeclarationLanguage.java:477) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:78) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267) >>>>>>>>>>>>>at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) >>>>>>>>>>>>>at >>>>>>>>>>>>>org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) >>>>>>>>>>>>>at >>>>>>>>>>>>>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>>>>>>>>>>>at >>>>>>>>>>>>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>>>>>>>>>>>at java.lang.Thread.run(Thread.java:745) >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>-- >>>>>>>>>>>>>Atenciosamente, >>>>>>>>>>>>>Felipe Pina >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>-- >>>>>>>>>>>Atenciosamente, >>>>>>>>>>>Felipe Pina >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>-- >>>>>>>>>Atenciosamente, >>>>>>>>>Felipe Pina >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>-- >>>>>>>Atenciosamente, >>>>>>>Felipe Pina >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>>-- >>>>>>Atenciosamente, >>>>>>Felipe Pina >>>>>> >>>>> >>>>> >>>>> >>>>>-- >>>>>Atenciosamente, >>>>>Felipe Pina >>>>> >>>> >>>> >>>> >>>>-- >>>>Atenciosamente, >>>>Felipe Pina >>>> >>> >>> >>> >>>-- >>>Atenciosamente, >>>Felipe Pina >>> >>> >>> > >
