[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-08-01 Thread jfheintz
Many thanks for your help, it is exactly what I needed Regards JFH View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069530#4069530 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069530 __

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-31 Thread ALRubinger
Well, since your EjbLocator class is not itself a Service (Stateless EJB or JMX), you can't inject into it. It's just a POJO; there's no way for the container to know that it should be scanned for dependencies or injection. So you can do one of a couple things: 1) Make your EjbLocator itself a

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-30 Thread jfheintz
Can you explain a little more please? In my EjbLocator class, I use @PersistenceContext(unitName="StatInfoUnit") private EntityManager manager; public T find(Class ejb3Class, Object id) { return manager.find(ejb3Class, id); } How should I do?

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-30 Thread wolfc
Caused by: java.lang.NullPointerException | at com.statinfo.stat.data.EjbLocator.find(EjbLocator.java:66) Client injection is not supported in AS 4.2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068708#4068708 Reply to the post : http://www.jboss

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-30 Thread jfheintz
Here is part of the log: 09:29:45,822 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment 09:29:45,837 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=statinfo.ear,unitName=StatInfoUnit with dependencies: 09:29:45,837 I

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-27 Thread ALRubinger
Can you please post the stack trace you're getting? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068293#4068293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068293 ___

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-27 Thread jfheintz
I reintroduce persistence.xml: java:/StatInfoDS META-INF/orm.xml <*class>test.MySite false <*provider>org.hibernate.ejb.HibernatePersistence <*properties> <*property name="hibernate.hbm2ddl.auto" value="update" />

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-26 Thread jfheintz
No I have followed your instruction, here is my code: MySite.java: package test; @javax.persistence.Entity @javax.persistence.Table(name="SI_SITE") public class MySite { @javax.persistence.Column(name="siteId") @javax.persistence.Id private java.lang.Long siteId; @javax.persistence.Column(name

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-26 Thread ALRubinger
JF HEINTZ - Are you also using @Inject instead of @PersistenceUnit? Post your code? ejbiva, Did this work for you? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068039#4068039 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-26 Thread jfheintz
Hello everybody, I have exactly the same problem. I used to work with Jboss AS 4.2.0.GA. I ahve migrate to Jboss AS 4.2.1.GA with no difference. Have you resolved this? Thanks JF HEINTZ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067794#4067794 Reply

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-20 Thread ejbiva
ok I will try it ,any way ,Thank you for all ,two gentlemen,:) ,I am from china.nice meet you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066057#4066057 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066057

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-19 Thread ALRubinger
Agree w/ Wayne. Beat me to it. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065959#4065959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065959 ___ jboss-user mailing l

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-19 Thread waynebaylor
instead of anonymous wrote : | @Inject | private EntityManager manager; | you should try | @PersistenceContext(unitName="persistence_unit_name") | EntityManager manager; | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065791#4065791 Reply

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-18 Thread ejbiva
hi ALRubinger,the SessionBean just as follows @Stateful public class ShoppingCartBean implements ShoppingCart { @Inject private EntityManager manager; private Order order; public void buy(String product, int quantity, double price) { if (order == null) order = new Order();

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-18 Thread ALRubinger
Could you post your code for the Session Bean? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065575#4065575 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065575 ___

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-17 Thread ejbiva
wolfc,I tried it again.but is same. sessionBean is initiated succeesfuly,but the accessing to entity bean failed.why?The Exception is same View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064952#4064952 Reply to the post : http://www.jboss.com/index.html?modul

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-17 Thread wolfc
Don't install any of the preview release into AS 4.2. Use 4.2.1 as installed, by default it has the latest EJB 3 installation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064931#4064931 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-17 Thread ejbiva
Dear wolfc ,why use AS 4.2.1 GA? any defect with AS 4.2.0?I am sorry one thing I should mentioned,that is I have never create related table in the oracle.because the ejb should create it indtead of me,that is true? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&

[jboss-user] [EJB 3.0] - Re: what happen with my entity bean , need expert help

2007-07-17 Thread wolfc
Use AS 4.2.1 GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064871#4064871 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064871 ___ jboss-user mailing list jboss-user@list