ejb-transaction - convert to 2.1 fails
x490812 Oct 30, 2008 5:17 PMI have a seam project built with maven for seam 2.0.2.sp1. works fine. I do the following to convert over to seam 2.1.0.GA
1) change version of jboss-seam to be 2.1.0.SP1
2) change all schema locations in components.xml from 2.0.xsd to 2.1.xsd
3) change pages.xml doctype from pages-2.0.dtd to 2.1.dtd
The result is that at jboss 4.2.0.GA startup I get the below error. Is there some other conversion step I am missing?
09:02:19,687 ERROR [ContainerBase] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.RuntimeException: error while reading /WEB-INF/components.xml at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:221) at org.jboss.seam.init.Initialization.create(Initialization.java:124) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854 . . . Caused by: java.lang.RuntimeException: Error loading element EjbTransaction with component name null and component class null at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:342)
Here is my components.xml
<?xml version="1.0" encoding="UTF-8"?> <components xmlns="http://jboss.com/products/seam/components" xmlns:core="http://jboss.com/products/seam/core" xmlns:framework="http://jboss.com/products/seam/framework" xmlns:persistence="http://jboss.com/products/seam/persistence" xmlns:security="http://jboss.com/products/seam/security" xmlns:transaction="http://jboss.com/products/seam/transaction" xmlns:mail="http://jboss.com/products/seam/mail" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:web="http://jboss.com/products/seam/web" xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.1.xsd http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.1.xsd"> <core:init debug="false" jndi-pattern="${earBaseName}/#{ejbName}/local" /> <core:manager concurrent-request-timeout="500" conversation-timeout="120000" conversation-id-parameter="cid" /> <!-- Only needed when using Seam managed entityManager via @IN instead of just @PersistenceContext --> <persistence:managed-persistence-context name="CamOracleEntityManager" auto-create="true" persistence-unit-jndi-name="java:/avmserviceOracleEntityManagerFactory" /> <persistence:managed-persistence-context name="ItTurboOracleEntityManager" auto-create="true" persistence-unit-jndi-name="java:/avmserviceITTurboEntityManagerFactory" /> <transaction:ejb-transaction/> <security:identity jaas-config-name="homeq-${pom.parent.artifactId}" /> <!-- Needed to allow seam injection into servlets --> <web:context-filter url-pattern="/avm.seam/*"/> <web:redirect-filter /> </components>