4 Replies Latest reply on Jul 4, 2012 2:27 AM by Marek Novotny

    Error accessing a database resource

    Peter Edike Newbie

      Hi

       

       

       

      I get this message whenever i try to use a database resource in my application

       

      09:13:35,810 WARN  [org.jboss.seam.security.jaas.SeamLoginModule] (http--127.0.0.1-8080-4) Error invoking login method: org.jboss.seam.InstantiationException

      cator

              at org.jboss.seam.Component.newInstance(Component.java:2170) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getInstance(Component.java:2024) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getInstance(Component.java:1986) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getInstance(Component.java:1980) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51) [jboss-seam.jar:2.2.2.Final]

              at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-

              at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-S

              at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.el.parser.AstValue.invoke(AstValue.java:95) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:221) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:109) [jboss-seam.jar:2.2.2.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]

              at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784) [rt.jar:1.7.0_04]

              at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) [rt.jar:1.7.0_04]

              at javax.security.auth.login.LoginContext$5.run(LoginContext.java:721) [rt.jar:1.7.0_04]

              at javax.security.auth.login.LoginContext$5.run(LoginContext.java:719) [rt.jar:1.7.0_04]

              at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_04]

              at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:718) [rt.jar:1.7.0_04]

              at javax.security.auth.login.LoginContext.login(LoginContext.java:590) [rt.jar:1.7.0_04]

              at org.jboss.seam.security.Identity.authenticate(Identity.java:344) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.security.Identity.authenticate(Identity.java:332) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.security.Identity.login(Identity.java:259) [jboss-seam.jar:2.2.2.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]

              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) [jboss-el.jar:1.0_02.CR5]

              at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jboss-el.jar:1.0_02.CR5]

              at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [jsf-facelets.jar:1.1.15.B1]

              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_15-jbossorg-2.jar:1.2

              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019

              at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) [richfaces-impl.jar:3.3.3.Final]

              at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) [richfaces-impl.jar:3.3.3.Final]

              at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) [richfaces-impl.jar:3.3.3.Final]

              at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) [richfaces-impl.jar:3.3.3.Final]

              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) [jsf-api-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.2.2.Final]

              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl.jar:3.3.3.Final]

              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl.jar:3.3.3.Final]

              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl.jar:3.3.3.Final]

              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl.jar:3.3.3.Final]

              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam.jar:2.2.2.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Fin

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

      Caused by: java.lang.RuntimeException: exception invoking: getSession

              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.unwrap(Component.java:2301) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getInstance(Component.java:2044) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getInstance(Component.java:1986) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getInstance(Component.java:1980) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2375) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.getValueToInject(Component.java:2327) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.injectAttributes(Component.java:1739) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.inject(Component.java:1557) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:61) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam.jar:2.2.2.Final]

              at org.domain.lifeplus1.session.Authenticator_$$_javassist_seam_5.init(Authenticator_$$_javassist_seam_5.java)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]

              at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.callComponentMethod(Component.java:2275) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.callCreateMethod(Component.java:2198) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.Component.newInstance(Component.java:2158) [jboss-seam.jar:2.2.2.Final]

              ... 87 more

      Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_04]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_04]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_04]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_04]

              at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.2.2.Final]

              ... 113 more

      Caused by: java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;

              at org.jboss.seam.persistence.ManagedHibernateSession.initSession(ManagedHibernateSession.java:82) [jboss-seam.jar:2.2.2.Final]

              at org.jboss.seam.persistence.ManagedHibernateSession.getSession(ManagedHibernateSession.java:118) [jboss-seam.jar:2.2.2.Final]

              ... 119 more

       

       

       

      My components.xml file is as follows

       

      <?xml version="1.0" encoding="UTF-8"?>

      <components xmlns="http://jboss.com/products/seam/components"

      xmlns:core="http://jboss.com/products/seam/core"

      xmlns:drools="http://jboss.com/products/seam/drools"

      xmlns:mail="http://jboss.com/products/seam/mail"

      xmlns:persistence="http://jboss.com/products/seam/persistence"

      xmlns:security="http://jboss.com/products/seam/security"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd                  http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.2.xsd                  http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.2.xsd                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.2.xsd                  http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.2.xsd                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd">

      <core:init debug="true" jndi-pattern="java:app/lifeplus/#{ejbName}&quot;"/>

      <component class="org.jboss.seam.transaction.EjbSynchronizations" jndi-name="java:app/lifeplus/EjbSynchronizations"/>

      <component class="org.jboss.seam.async.TimerServiceDispatcher" jndi-name="java:app/lifeplus/TimerServiceDispatcher"/>

      <core:manager concurrent-request-timeout="1000"

        conversation-id-parameter="cid" conversation-timeout="120000" parent-conversation-id-parameter="pid"/>

      <drools:rule-base name="securityRules">

        <drools:rule-files>

         <value>/security.drl</value>

        </drools:rule-files>

      </drools:rule-base>

      <security:rule-based-permission-resolver security-rules="#{securityRules}"/>

      <security:identity authenticate-method="#{authenticator.authenticate}"

        auto-create="true" remember-me="true"/>

      <event type="org.jboss.seam.security.notLoggedIn">

        <action execute="#{redirect.captureCurrentView}"/>

      </event>

      <event type="org.jboss.seam.security.loginSuccessful">

        <action execute="#{redirect.returnToCapturedView}"/>

      </event>

      <mail:mail-session host="localhost" port="25"/>

      <persistence:hibernate-session-factory auto-create="true"

        name="hibernateSessionFactory" scope="application" startup="true"/>

      <persistence:managed-hibernate-session auto-create="true"

        name="session" scope="CONVERSATION" session-factory-jndi-name="java:jboss/factories/sessionfactory"/>

      <security:identity-manager auto-create="true"

        identity-store="#{jpaIdentityStore}" role-identity-store="#{jpaIdentityStore}"/>

      <security:jpa-identity-store auto-create="true"

        role-class="org.domain.lifeplus1.entity.Role" user-class="org.domain.lifeplus1.entity.User"/>

      <security:permission-manager installed="false" permission-store="#{jpaPermissionStore}"/>

      <security:jpa-permission-store auto-create="true" installed="false"

        role-permission-class="org.domain.lifeplus1.entity.RolePermission" user-permission-class="org.domain.lifeplus1.entity.UserPermission"/>

      <!--  Audit Log Component -->

      <component auto-create="true"

        class="org.domain.lifeplus1.entity.AuditLog" name="newAuditLog" scope="event">

        <property name="ipAddress">"#{facesContext.externalContext.request.remoteAddr}"</property>

      </component>

      <component auto-create="false"

        class="org.domain.lifeplus1.entity.Facility" name="newFacility" scope="conversation">

        <property name="isInstalled">false</property>

      </component>

      <component class="org.domain.lifeplus1.entity.Log" name="newLog" scope="event">

        <property name="userName">#{identity.username}</property>

        <property name="patient">#{patient.fullName}</property>

      </component>

      <component auto-create="true" class="org.domain.lifeplus1.entity.User"

        name="newUser" scope="conversation">

        <property name="deleted">false</property>

        <property name="dateCreated">#{dateTime.now()}</property>

        <property name="provider">false</property>

        <property name="lastModifiedDate">#{dateTime.now()}</property>

      </component>

      <component class="org.domain.lifeplus1.entity.Patient" name="patient" scope="conversation"/>

      <component auto-create="true" class="org.joda.time.LocalDateTime"

        name="dateTime" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Address"

        name="newAddress" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Code" name="newCode" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Configuration"

        name="newConfig" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.IDXPartner"

        name="newidxPartner" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Immunization"

        name="newImmunization" scope="EVENT">

        <property name="updatedBy">#{identity.username}</property>

        <property name="createdBy">#{identity.username}</property>

      </component>

      <component class="org.domain.lifeplus1.entity.Insurance"

        name="newInsurance" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.List" name="newListItem" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Notes" name="newNotes" scope="event">

        <property name="date">#{dateTime.now()}</property>

      </component>

      <component class="org.domain.lifeplus1.entity.PatientNotes"

        name="newPatientNotes" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Pharmacy"

        name="newPharmacy" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Role" name="newRole" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Settings"

        name="newSettings" scope="EVENT"/>

      <component class="org.domain.lifeplus1.entity.Vaccines"

        name="newVaccine" scope="EVENT"/>

      <factory auto-create="true" name="configs" scope="CONVERSATION" value="#{configAction.configs}"/>

      <factory auto-create="true" name="lists" scope="CONVERSATION" value="#{listAction.lists}"/>

      <factory auto-create="true" name="insurances" scope="CONVERSATION" value="#{insuranceAction.insurances}"/>

      <factory auto-create="true" name="pharmacies" scope="CONVERSATION" value="#{pharmacyAction.pharmacies}"/>

      <factory auto-create="true" name="roles" scope="CONVERSATION" value="#{roleAction.roles}"/>

      <factory auto-create="true" method="#{vaccineAction.getAllVaccines()}"

        name="vaccines" scope="conversation"/>

      <factory auto-create="true" name="settings" scope="CONVERSATION" value="#{settingsAction.settings}"/>

      <component auto-create="true" class="org.domain.lifeplus1.entity.User"

        name="currentUser" scope="session"/>

      <!-- For use with jBPM pageflow or process management

       

       

         <bpm:jbpm>

            <bpm:process-definitions></bpm:process-definitions>

            <bpm:pageflow-definitions></bpm:pageflow-definitions>

         </bpm:jbpm>

         -->

      </components>