Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6915985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:32:40+00:00 2026-05-27T09:32:40+00:00

I made some seemingly harmless changes (added a few domain classes, added the plugin

  • 0

I made some seemingly harmless changes (added a few domain classes, added the plugin shopping-cart), and now apparently the BootStrap.groovy class doesn’t execute at all.

While I made a few changes to BootStrap.groovy, I restored a previously good file that works fine, dumbfounded by the error. Also, in the good (old) BootStrap.groovy, I put some println statements at the top of the init action, but those aren’t printing out and don’t seem to even be reached. Finally, I did an uninstall of the plugin, and after that, deleted the shopping-cart plugin folder manually.

Do you know what this error is, or have any debug guidance? (am running Grails 1.3.7)

Running Grails application..
Configuring Spring Security ...
Configuring Spring Security UI ...

2011-12-09 13:51:33,036 [main] ERROR context.GrailsContextLoader –
Error executing bootstraps: Error creating bean with name
‘messageSource’: Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘transactionManager’: Cannot resolve reference
to bean ‘sessionFactory’ while setting bean property ‘sessionFactory’;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘sessionFactory’: Invocation of init method
failed; nested exception is org.hibernate.MappingException: Type
[null] is not a basic type or a domain class and cannot be mapped.
Either specify a type within the [mapping] block or use a basic type
(String, Integer etc.)
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘messageSource’: Initialization of bean
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘transactionManager’: Cannot resolve reference
to bean ‘sessionFactory’ while setting bean property ‘sessionFactory’;
nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘sessionFactory’: Invocation of init method
failed; nested exception is org.hibernate.MappingException: Type
[null] is not a basic type or a domain class and cannot be mapped.
Either specify a type within the [mapping] block or use a basic type
(String, Integer etc.) at
org.grails.tomcat.TomcatServer.startSecure(TomcatServer.groovy:289)
at grails.web.container.EmbeddableServer$startSecure.call(Unknown
Source) at
_GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:152)
at
_GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy) at
_GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149) at
_GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy) at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116) at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy) at _GrailsRun_groovy$_run_closure2.doCall(_GrailsRun_groovy:66) at RunApp$_run_closure1.doCall(RunApp.groovy:30) at
gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at
gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at
gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at
gant.Gant.withBuildListeners(Gant.groovy:427) at
gant.Gant.this$2$withBuildListeners(Gant.groovy) at
gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at
gant.Gant.dispatch(Gant.groovy:415) at
gant.Gant.this$2$dispatch(Gant.groovy) at
gant.Gant.invokeMethod(Gant.groovy) at
gant.Gant.executeTargets(Gant.groovy:590) at
gant.Gant.executeTargets(Gant.groovy:589) at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘transactionManager’: Cannot resolve
reference to bean ‘sessionFactory’ while setting bean property
‘sessionFactory’; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘sessionFactory’: Invocation of init method
failed; nested exception is org.hibernate.MappingException: Type
[null] is not a basic type or a domain class and cannot be mapped.
Either specify a type within the [mapping] block or use a basic type
(String, Integer etc.) … 24 more Caused by:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name ‘sessionFactory’: Invocation of init method
failed; nested exception is org.hibernate.MappingException: Type
[null] is not a basic type or a domain class and cannot be mapped.
Either specify a type within the [mapping] block or use a basic type
(String, Integer etc.) … 24 more Caused by:
org.hibernate.MappingException: Type [null] is not a basic type or a
domain class and cannot be mapped. Either specify a type within the
[mapping] block or use a basic type (String, Integer etc.) … 24
more

Process finished with exit code 1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:32:41+00:00Added an answer on May 27, 2026 at 9:32 am

    I removed all the new domain classes and references to them, and the error went away. I’ll update this as soon as I figure out what the problem is, hopefully not related to a domain change to one of the Spring Security classes (User).

    Ok, the problem is/was, I had an enum declaration at the top of one of the domain classes I added. If I move the enum declaration below the class declaration, then all is good. I imagine this is a hibernate error / problem?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made some changes in Emacs's colors and the only thing wrong now is
I made some changes to an existing application that was previously just straight HTML
I made some changes to an open source project without taking time to create
I have made some changes in one perforce client, but haven't submitted them. I
I've built some shopping cart systems in the past, but I always designed them
Made some changes to my Django app's model and used South to migrate them
I made some classes using xjc. public class MyType { @XmlElementRefs({ @XmlElementRef(name = MyInnerType,
I made some source changes to lint my code. I did not run unit
I made some changes to my solution which contains a couple of project and
I made some changes in my master branch and want to bring those upstream.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.