Re: Tomcat - Injection: No such property

2009-02-11 Thread JensToerber
Hi David, i interpreted your answer as there should not be a problem with Spring. Hence thanks for the hint ;-). So i took my test web application and tried to get Spring 2.5.1 running with JndiObjectFactoryBean and it worked. Hence i looked in our production application and i am sorry we had a p

Re: Tomcat - Injection: No such property

2009-02-05 Thread David Blevins
On Jan 31, 2009, at 2:49 AM, JensToerber wrote: Hi, i am facing the same problem in Tomcat 6.0.18. EntityManager does not get injected: "no such property". Openejb 3.1 works in a test application with EJB-, EntityManager-, DataSource-, javax.Mail.Session-, Queue-injection. Now i have the

Re: Tomcat - Injection: No such property

2009-01-31 Thread JensToerber
Hi, i am facing the same problem in Tomcat 6.0.18. EntityManager does not get injected: "no such property". Openejb 3.1 works in a test application with EJB-, EntityManager-, DataSource-, javax.Mail.Session-, Queue-injection. Now i have the situation to port an existing application which uses Sp

Re: Tomcat - Injection: No such property

2008-12-07 Thread marvm
Hi, I'm having the same problem with tomcat and tapestry 5 + openejb 3.1! I created a slsb and tried to obtain an EntityManager like this: @Stateless public class CoreEJB implements CoreEJBLocal { @PersistenceContext(unitName = "myContext", type = PersistenceContextType.TRANSACTION) private

Re: Tomcat - Injection: No such property

2008-04-02 Thread David Blevins
On Apr 2, 2008, at 3:30 PM, klewelling wrote: You may want to try setting the properties as system properties, i.e. java ... - Djava .naming .factory.initial=org.apache.openejb.client.LocalInitialContextFactory -Djava.naming.factory.url.pkgs=org.apache.naming.factory.XXX or something l

Re: Tomcat - Injection: No such property

2008-04-02 Thread klewelling
You may want to try setting the properties as system properties, i.e. java ... -Djava.naming.factory.initial=org.apache.openejb.client.LocalInitialContextFactory -Djava.naming.factory.url.pkgs=org.apache.naming.factory.XXX or something like that. I think it may be important that openEJB's initia

Re: Tomcat - Injection: No such property

2008-04-02 Thread David Blevins
On Apr 1, 2008, at 12:14 PM, klewelling wrote: FYI I got the injection to work. When I was putting together a demonstration the injection started working. The problem has to do with dependencies in the pom.xml. I am not sure if there was something extra causing the problem or perhaps the

Re: Tomcat - Injection: No such property

2008-04-02 Thread David Blevins
On Mar 29, 2008, at 1:14 PM, ebaxt wrote: I'm trying to run my application with Tomcat+openEJB, but I can't figure out why the EntityManager isn't injected correctly into the EAO sessionbean. My war file is packed with the ejb.jar in \WEB-INF\lib. The client is able to lookup the facade,

Re: Tomcat - Injection: No such property

2008-04-02 Thread ebaxt
Thank you Kenneth! I have tried to set the properties you talked about, but I don't really know how to configure it to lookup Tomcat's JNDI context. I have tried this with no luck: Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client

Re: Tomcat - Injection: No such property

2008-04-01 Thread klewelling
FYI I got the injection to work. When I was putting together a demonstration the injection started working. The problem has to do with dependencies in the pom.xml. I am not sure if there was something extra causing the problem or perhaps the order of the jars in the classpath. I am uploading an ex

Re: Tomcat - Injection: No such property

2008-03-31 Thread klewelling
I am having the same problem with Jetty. I am using the maven jetty:run plugin and when I put my SSBs in a separate EJB jar openEJB starts up fine. The EJBs are loaded correctly and I can get the local interface from JNDI, however when I call any method I get a NPE because nothing is injected. Whe

Tomcat - Injection: No such property

2008-03-29 Thread ebaxt
I'm trying to run my application with Tomcat+openEJB, but I can't figure out why the EntityManager isn't injected correctly into the EAO sessionbean. My war file is packed with the ejb.jar in \WEB-INF\lib. The client is able to lookup the facade, but when the facade delegates the EntityManager a