QuickTip: Could not instantiate Seam component: org.jboss.seam.el.referenceCache

Posted on Friday, January 29, 2010

0


If you are using JBoss Seam v 2.2.0.GA then there are chances that you would encounter this issue. There is a version incompatibility between the SEAM jars and EL for this version.

If you move the EL back to 1.0_02.CR4. Then everything works perfect !

Here is the pom reference.

<properties>
		<jsf.version>1.2_12</jsf.version>
		<spring.framework.version>2.5.6.SEC01</spring.framework.version>
		<mockito.version>1.8.0</mockito.version>
		<spring.webflow.version>2.0.8.RELEASE</spring.webflow.version>
		<seam.version>2.2.0.GA</seam.version>
		<seam.ui.version>2.0.0.GA</seam.ui.version>
		<facelets.version>1.1.15</facelets.version>
		<jsf.version>2.0.2-FCS</jsf.version>
	</properties>

<dependency>
				<groupid>org.jboss.seam</groupid>
				<artifactid>jboss-seam</artifactid>
				<version>${seam.version}</version>
				<exclusions>
					<exclusion>
						<groupid>javax.el</groupid>
						<artifactid>el-api</artifactid>
					</exclusion>
				</exclusions>
			</dependency>

			<dependency>
				<groupid>org.jboss.seam</groupid>
				<artifactid>jboss-seam-ui</artifactid>
				<version>${seam.ui.version}</version>
				<exclusions>
					<exclusion>
						<groupid>javax.el</groupid>
						<artifactid>el-api</artifactid>
					</exclusion>
				</exclusions>
			</dependency>

			<dependency>
				<groupid>org.jboss.seam</groupid>
				<artifactid>jboss-seam-debug</artifactid>
				<version>${seam.ui.version}</version>
				<exclusions>
					<exclusion>
						<groupid>javax.el</groupid>
						<artifactid>el-api</artifactid>
					</exclusion>
				</exclusions>
			</dependency>

			<dependency>
				<groupid>org.jboss.el</groupid>
				<artifactid>jboss-el</artifactid>
				<version>1.0_02.CR4</version>
				<exclusions>
					<exclusion>
						<groupid>javax.el</groupid>
						<artifactid>el-api</artifactid>
					</exclusion>
				</exclusions>
				<type>jar</type>
			</dependency>
Advertisements
Posted in: Java