Hey everyone,
I'm having trouble getting my Seam app to run on Tomcat; the entityManager is not
being injected into my Seam objects, most notably the EntityQuery objects. [Note: This
app works fine on JBoss, so this is a config issue.]
Here is my components.xml file:
<?xml version="1.0" encoding="UTF-8"?>
| <components
xmlns="http://jboss.com/products/seam/components"
|
xmlns:core="http://jboss.com/products/seam/core"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:framework="http://jboss.com/products/seam/framework"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/core
|
http://jboss.com/products/seam/core-1.1.xsd
|
http://jboss.com/products/seam/components
|
http://jboss.com/products/seam/components-1.1.xsd">
|
| <core:init jndi-pattern="#{ejbName}/local"
debug="true"/>
|
| <core:microcontainer installed="true"/>
|
| <core:manager conversation-timeout="120000"/>
|
| <core:ejb installed="true"/>
| </components>
And here is my persistence.xml file:
<persistence>
| <persistence-unit name="omega">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/omegaDatasource</jta-data-source>
| <properties>
| <property name="hibernate.dialect"
value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.hbm2ddl.auto"
value="none"/>
| </properties>
| </persistence-unit>
| </persistence>
Thank you sincerely,
-Michael
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027046#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...