0 Replies Latest reply on Feb 24, 2009 7:56 PM by Pieter Martin

    Jndi Lookup

    Pieter Martin Novice

      Hi,


      I have 2 standard seam ear applications deployed in JBoss.
      I am trying to inject via the


      @JndiInject(jndiName="billing/BillingAction/local") annotation.


      I am getting the following error


      Caused by: java.lang.RuntimeException: Non matching type for inject of field: private com.yannitech.virgin.billing.session.IBilling com.yannitech.virgin.champ.billing.action.ViewBillAction.billing for type: $Proxy88 of jndiName env/com.yannitech.virgin.champ.billing.action.ViewBillAction/billing
      intfs: , com.yannitech.virgin.billing.session.IBilling, org.jboss.ejb3.JBossProxy
           at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjector.java:128)
           at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjector.java:106)
           at org.jboss.injection.JndiFieldInjector.inject(JndiFieldInjector.java:63)
      



      Is this because of the isolated classloaders?


      I have also read somewhere about using

      @EJB(mappedName="jnp://jnp_host:1099/billing/BillingAction/local")


      But that seems rather ugly.


      Any help appreciated.
      Thanks
      Pieter