[JBoss-user] [EJB 3.0] - Re: Session Bean can not find Entity Manager

2006-01-09 Thread [EMAIL PROTECTED]
THis might help

http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD

Please add to it!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916535#3916535

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916535


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Session Bean can not find Entity Manager

2006-01-08 Thread JulianHtun
The error was obvious - I forgot @Entity on Author class.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916353#3916353

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916353


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Session Bean can not find Entity Manager

2006-01-08 Thread JulianHtun


Now I get the following:

12:56:22,935 INFO  [JmxKernelAbstraction] creating wrapper delegate for: 
org.jboss.ejb3.entity.PersistenceUnitDeployment
12:56:22,935 INFO  [JmxKernelAbstraction] installing MBean: 
entity.manager:name=articles with dependencies:
12:56:22,935 INFO  [JmxKernelAbstraction]   
jboss.jca:name=DefaultDS,service=DataSourceBinding
12:56:22,982 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
org.jboss.ejb3demo.Article
12:56:22,997 WARN  [ServiceController] Problem starting service 
entity.manager:name=articles
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:87)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:957)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:442)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
at $Proxy94.start(Unknown Source)
at 
org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:76)
at 
org.jboss.ejb3.Ejb3Deployment.startEntityManagerDeployment(Ejb3Deployment.java:480)
at 
org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:456)
at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:335)
at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:110)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:262)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:957)
at $Proxy0.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:355)
at org.jboss.system.ServiceController.create(ServiceController.java:299)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocati

[JBoss-user] [EJB 3.0] - Re: Session Bean can not find Entity Manager

2006-01-08 Thread ycswyw
Try with this other one "persistence.xml":


  | 
  | http://java.sun.com/xml/ns/persistence";>
  |  
  |  java:/DefaultDS 
  |  
  |  
  |  
  |  
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916330#3916330

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916330


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Session Bean can not find Entity Manager

2006-01-08 Thread ycswyw
Maybe now:



  
java:/DefaultDS

   

  


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916327#3916327

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916327


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Session Bean can not find Entity Manager

2006-01-08 Thread ycswyw
Sorry, the previous XML has been submited incorrectly:


;
  
java:/DefaultDS

   

  


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916326#3916326

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916326


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Session Bean can not find Entity Manager

2006-01-08 Thread ycswyw
It seems that schema of "persistence.xml" has been changed with 
xmlns="http://java.sun.com/xml/ns/persistence";.

Try with this other one "persistence.xml":



  
java:/DefaultDS

   

  



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916325#3916325

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916325


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user