com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote,Remote 3.x interface =com.htctest.ejb.manager.UsuariosManagerRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.htctest.ejb.manager.UsuariosManagerRemote,refType=Session into class com.htctest.plantilla.CredencialesBean: Lookup failed for 'java:comp/env/com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}

Oracle Community | nejikap | 4 years ago
  1. 0

    Exception attempting to inject Remote ejb-ref name [Glassfish HA]

    Oracle Community | 4 years ago | nejikap
    com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote,Remote 3.x interface =com.htctest.ejb.manager.UsuariosManagerRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.htctest.ejb.manager.UsuariosManagerRemote,refType=Session into class com.htctest.plantilla.CredencialesBean: Lookup failed for 'java:comp/env/com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}
  2. 0

    Getting Started with CDI part 2 – Injection | Andy Gibson

    andygibson.net | 3 months ago
    com.sun.faces.mgbean.ManagedBeanCreationException: Um erro ocorreu ao realizar a inje??o de recurso no bean gerenciado emprestimoController
  3. 0

    JSF inject backing bean into Singleton

    Stack Overflow | 2 years ago | cghislai
    com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Wrong invocation type
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: AnnotationDB-CrossReferenceException on startup

    openwebbeans-user | 5 years ago | Norbert Lazzeri
    com.sun.faces.spi.InjectionProviderException: > java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:84) > at > com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205) > ... 20 more > Caused by: java.lang.NullPointerException > at > com.sun.faces.vendor.Tomcat6InjectionProvider.inject(Tomcat6InjectionProvider.java:82) > ... 21 more > > > so ConfigureListener which worked fine with weld, now causes some > problems. > > >> I also have the following geronimo jars in my ... > i dont have the > geronimo-validation_1.0_spec-1.1.jar > in my lib-folder. if i do that, hibernate starts complaining he cannot > find his validator-classes. i dont have the exact exception in my head > right now, however the app cant startup because of hibernate. > > > i didnt update to the newest openwebbeans yet, maybe ill give it a try > later this day. > >> Maybe you still have other weld jars lying around? > im sure, there was only the weld-servlet.jar which contained all > dependencies. > > > > thanks, > norbert > > > > Am 08.03.2012, 08:45 Uhr, schrieb Mark Struberg <struberg@yahoo.de>: > >> Found some time to do more evaluation: >> >> The openwebbeans-* packages are fine for a webapp. >> >> I also have the following geronimo jars in my >> WEB-INF/libgeronimo-atinject_1.0_spec-1.0.jar >> geronimo-jcdi_1.0_spec-1.0.jar >> geronimo-interceptor_1.1_spec-1.0.jar >> geronimo-validation_1.0_spec-1.1.jar >> >> the following are most probably transient dependencies of openjpa: >> geronimo-jpa_2.0_spec-1.1.jar geronimo-jms_1.1_spec-1.1.1.jar >> geronimo-jta_1.1_spec-1.1.1.jar >> >> plus I have >> javassist-3.12.0.GA.jar >> scannotation-1.0.2.jar >> >> Are you using mojarra or MyFaces as JSF container? >> I'm asking because of >> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >> >> Many of us are available on irc.freenode.net #openwebbeans as well btw. >> >> Maybe you still have other weld jars lying around? >> >> LieGrue, >> strub >> >> >> >> ----- Original Message ----- >>> From: Norbert Lazzeri <norbert.lazzeri@rise-world.com> >>> To: user@openwebbeans.apache.org >>> Cc: >>> Sent: Thursday, March 8, 2012 2:28 AM >>> Subject: AnnotationDB-CrossReferenceException on startup >>> >>> Hello, >>> >>> im trying to migrate our icefaces2/jsf2.0 project from Weld to >>> OpenWebBeans. in >>> a second step i want to integrate CODI (mostly for the CDI-ViewScope), >>> but i >>> already have problems with integrating OpenWebBeans itself. the >>> project is >>> ant-managed and maven is no option on this project. so i really need >>> to get my >>> dependencies right which seams to be quite cumbersome.. >>> >>> What i did is deleting the weld-servlet.jar and replaced it by the >>> following >>> jar-files >>> >>> openwebbeans-impl-1.1.0.jar >>> openwebbeans-jsf-1.1.0.jar >>> openwebbeans-resource-1.1.0.jar >>> openwebbeans-spi-1.1.0.jar >>> openwebbeans-web-1.1.0.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 >>> geronimo-jta_1.1_spec-1.1.1.jar >>> javassist-3.12.0.GA.jar >>> scannotation-1.0.2.jar >>> >>> in my web.xml i have the following entries which i compared to a >>> maven-archetype >>> generated project: >>> <listener> >>> >>> <listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class> >>> </listener> >>> <listener> >>> >>> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> >>> </listener> >>> and the >>> <servlet> >>> <servlet-name>Faces Servlet</servlet-name> >>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >>> </servlet> >>> >>> >>> and some more listener/servlets related to our project and other >>> libraries than >>> faces and webbeans. >>> >>> >>> we are using tomcat 7 >>> >>> the myfaces-archtype runs with no problems on tomcat. i guess it is >>> some >>> jar-conflict since there is really not much configuration to do.. is >>> there >>> something to be aware of when i have jsf-api and jsf-impl in my >>> lib-folder? >>> >>> when i start the server, i get the following exceptions. i really cant >>> find >>> anything related to this CrossReferenceException. I would really >>> appreciate any >>> suggestions: >>> >>> java.lang.RuntimeException: >>> org.apache.webbeans.corespi.scanner.AnnotationDB$CrossReferenceException >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.crossReferenceBeans(AbstractMetaDataDiscovery.java:233) >>> at >>> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.getBeanClasses(AbstractMetaDataDiscovery.java:200) >>> at >>> org.apache.webbeans.config.BeansDeployer.checkStereoTypes(BeansDeployer.java:712) >>> at >>> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:158) >>> at >>> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124) >>> at >>> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:77) >>> at >>> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:81) >>> at >>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) >>> at >>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) >>> at >>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  6. 0

    Redirection inside @PostConstruct vs preRenderView event

    blogspot.com | 11 months ago
    com.sun.faces.spi.InjectionProviderException: com.oracle.pitchfork.interfaces.LifecycleCallbackException: Failure to invoke public void redirectTest.init() on bean class class redirectTest with args: null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.faces.spi.InjectionProviderException

      com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote,Remote 3.x interface =com.htctest.ejb.manager.UsuariosManagerRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.htctest.ejb.manager.UsuariosManagerRemote,refType=Session into class com.htctest.plantilla.CredencialesBean: Lookup failed for 'java:comp/env/com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}

      at org.glassfish.faces.integration.GlassFishInjectionProvider.inject()
    2. Embedded GlassFish Web
      GlassFishInjectionProvider.inject
      1. org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:194)
      1 frame
    3. JSF
      BeanBuilder.injectResources
      1. com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205)
      1 frame