Hi Ben,
I am also experiencing the same error (BeanCreationException:
Error creating bean with name 'ticketRegistry' defined in ServletContext
resource) while running the cas.
Can you please explain in more detail, whats the cause of the issue. and
which version of the artifact to include in our dependency.
I am using CAS : cas-server-3.5.2
And as per the documentation, cas-server-3.5.2 root pom pints to
use <hibernate.core.version>4.1.0.Final</hibernate.core.version>
where the dependencies I am using are:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.core.version}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.core.version}</version>
<type>jar</type>
</dependency>
Thanks
Shibaram
On Thursday, March 29, 2012 11:43:52 PM UTC+5:30, Ben Branch wrote:
>
> I believe this is your issue(in bold below):
>
>
>
> To
>
>
>
> <dependency>
>
> <groupId>org.hibernate</groupId>
>
> <artifactId>hibernate-entitymanager</artifactId>
>
> <version>*3.6.0.Final}*</version>
>
> </dependency>
>
> <dependency>
>
> <groupId>org.hibernate</groupId>
>
> <artifactId>hibernate-validator</artifactId>
>
> <version>3.6.0.Final</version>
>
> <scope>runtime</scope>
>
> </dependency>
>
>
>
>
>
> Ben Branch
> Sun Administrator
>
> University of Central Oklahoma
>
> ITIL Foundation v3, Network+
>
> 100 N. University Drive, Box 122
>
> Edmond, OK 73034
>
> D: 405.974.2649 | M: 405.550.6804 | *bbr...@uco. <javascript:>edu* |
> www.uco.edu
>
>
>
> “If you wish to know your past, look at your present conditions. If you
> wish to know your future, look at your present actions.” - Siddhartha
> Gautama
>
>
>
> *From:* Bryan Wooten [mailto:[email protected] <javascript:>]
> *Sent:* Thursday, March 29, 2012 11:10 AM
> *To:* [email protected] <javascript:>
> *Subject:* [cas-user] Can't get 3.4.11 to deploy
>
>
>
> All,
>
>
>
> I am trying to upgrade from 3.4.5 to 3.4.11 using the overlay method. I
> have copied my project from 3.4.5 to my 3.4.11 download. The difference
> between my 3.4.5 and 3.4.11 overlay is a change to the loginview.jsp to
> account for the new hidden field. Everything builds just fine. But at
> deploy time I get this error:
>
>
>
> ERROR [org.springframework.web.context.ContextLoader] - <Context
> initialization failed>
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'ticketRegistry' defined in ServletContext resource
> [/WEB-INF/spring-configuration/ticke
>
> tRegistry.xml]: Cannot resolve reference to bean 'entityManagerFactory'
> while setting constructor argument; nested exception is
> org.springframework.beans.factory.BeanCreationE
>
> xception: Error creating bean with name 'entityManagerFactory' defined in
> ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Invocation of
> init method failed; neste
>
> d exception is java.lang.NoSuchMethodError:
> org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
>
> at org.springframework.beans.factory.support.BeanDefinit
>
>
>
> After giving it some thought I realized my overlay pom.xml might also need
> updating. So I changed:
>
>
>
> <dependency>
>
> <groupId>org.hibernate</groupId>
>
> <artifactId>hibernate-entitymanager</artifactId>
>
> <version>3.5.0-CR-2</version>
>
> </dependency>
>
> <dependency>
>
> <groupId>org.hibernate</groupId>
>
> <artifactId>hibernate-validator</artifactId>
>
> <version>4.0.2.GA</version>
>
> <scope>runtime</scope>
>
> </dependency>
>
>
>
> To
>
>
>
> <dependency>
>
> <groupId>org.hibernate</groupId>
>
> <artifactId>hibernate-entitymanager</artifactId>
>
> <version>3.6.0.Final}</version>
>
> </dependency>
>
> <dependency>
>
> <groupId>org.hibernate</groupId>
>
> <artifactId>hibernate-validator</artifactId>
>
> <version>3.6.0.Final</version>
>
> <scope>runtime</scope>
>
> </dependency>
>
>
>
> But now I get build errors:
>
>
>
> Downloading:
> http://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.6.0.Final}/hibernate-entitymanager-3.6.0.Final}.jar
>
> [INFO] Unable to find resource
> 'org.hibernate:hibernate-entitymanager:jar:3.6.0.Final}' in repository
> central (http://repo1.maven.org/maven2)
>
>
>
> If anyone has an idea what went wrong I’d love to hear it.
>
>
>
> Thanks,
>
>
>
> Bryan
>
> --
> You are currently subscribed to [email protected] <javascript:> as:
> [email protected] <javascript:>
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>
> ***Bronze+Blue=Green*** The University of Central Oklahoma is Bronze,
> Blue, and Green! Please print this e-mail only if absolutely necessary!
>
> ***CONFIDENTIALITY*** -This e-mail (including any attachments) may
> contain confidential, proprietary and privileged information. Any
> unauthorized disclosure or use of this information is prohibited.
>
> --
> You are currently subscribed to [email protected] <javascript:> as:
> [email protected] <javascript:>
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user