Hi

how do you define your ejb name (ejb/BeanFactoryPath)?



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-07-23 18:14 GMT+02:00 jar <[email protected]>:

> I'm having trouble getting a JNDI entry setup for my attempt to migrate
> some
> older JBoss 5.1.0 applications over to Tomee
>
> The source code uses annotations to handle most of the settings, and Tomee
> seems to be noticing this and auto-wiring things up such that my
> message-driven beans appear to be listening to their intended endpoints.
>
> However, as soon as I try to exercise any of the beans with a message, I
> get
> the following exception:
>
> I've tried experimenting with adding an ejb-jar.xml file that includes
> env-entry elements defining a value for this parameter, but I don't believe
> Tomee is actually reading the file.
>
> Any ideas on how I can get past this?
>
> SEVERE: EjbTransactionUtil.handleSystemException: Define an environment
> variable [java:comp/env/ejb/BeanFactoryPath] containing the class path
> locations of XML bean definition files; nested exception is
> javax.naming.NameNotFoundException: Name "comp/env/ejb/BeanFactoryPath" not
> found.
> org.springframework.beans.factory.access.BootstrapException: Define an
> environment variable [java:comp/env/ejb/BeanFactoryPath] containing the
> class path locations of XML bean definition files; nested exception is
> javax.naming.NameNotFoundException: Name "comp/env/ejb/BeanFactoryPath" not
> found.
>         at
>
> org.springframework.context.access.ContextJndiBeanFactoryLocator.useBeanFactory(ContextJndiBeanFactoryLocator.java:71)
>         at
>
> org.springframework.ejb.support.AbstractEnterpriseBean.loadBeanFactory(AbstractEnterpriseBean.java:121)
>         at
>
> org.springframework.ejb.support.AbstractMessageDrivenBean.ejbCreate(AbstractMessageDrivenBean.java:81)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:214)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
>         at
>
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:180)
>         at
>
> org.apache.openejb.monitoring.StatsInterceptor.PostConstruct(StatsInterceptor.java:108)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
>         at
>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
>         at
>
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:80)
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/java-comp-env-ejb-BeanFactoryPath-tp4670687.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to