JBOSS 4.0.4RC1
Stateless code:
public class AlfaSessionBean implements AlfaSession {
EntityManager m_oEM = null;
public AlfaSessionBean() {
System.out.println("PreFindPersMgrFactory");
EntityManagerFactory oEMF = Persistence.
createEntityManagerFactory("TestPersistenceManager");
System.out.println("PreFindPersMgr");
m_oEM = oEMF.getEntityManager();
System.out.println("EPM=" + m_oEM);
}
....
}
META-INF/persistence.xml:
[persistence]
[persistence-unit name="TestPersistenceManager"
transaction-type="JTA"]
[provider]org.hibernate.ejb.HibernatePersistence[/provider]
[jta-data-source]java:/TestDS[/jta-data-source>]
[properties /]
[/persistence-unit]
[/persistence>
Exception:
2006-03-03 14:32:03,516 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRe
pository, [EMAIL PROTECTED],
[EMAIL PROTECTED] url=null ,addedOrder=0}
2006-03-03 14:32:03,524 FATAL [org.hibernate.ejb.packaging.PersistenceXmlLoader]
TestPersistenceManager JTA
2006-03-03 14:32:03,527 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web
].[localhost].[/test].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.jboss.ejb3.EJBContainer.construct(EJBContainer.java:482)
at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:62)
at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:48)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(Stateles
sInstanceInterceptor.java:51)
TIA
Roberto Colmegna
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927759#3927759
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927759
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user