내 프로젝트가 정상적으로 작동하고 있습니다. GGTS IDE에서 Open grails 플러그인 관리자를 통해 MongoDB 플러그인을 설치하려고 시도한 후.MongoDB GORM 플러그인 설치 문제 Grails 3.4.0
이제 프로젝트를 실행 한 후 다음 오류가 발생합니다. 일부 정보 - My MongoDB 최신 버전은 v2.4.8입니다. 이 플러그인을 설치하려고합니다. http://grails.org/plugin/mongodb.
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Configuring Spring Security Facebook ...
... finished configuring Spring Security Facebook
2014-01-22 01:28:16,788 [localhost-startStop-1] WARN hibernate.AbstractEhcacheRegionFactory - Couldn't find a specific ehcache configuration for cache named [com.lyfe.sec.Authority]; using defaults.
| Error 2014-01-22 01:28:18,524 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'mongoDatastore': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Database name must only contain letters, numbers, underscores and dashes!
Message: Error creating bean with name 'mongoDatastore': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Database name must only contain letters, numbers, underscores and dashes!
Line | Method
->> 109 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run . . . . . . . . . in ''
^ 695 | run in java.lang.Thread
**Caused by IllegalArgumentException: Database name must only contain letters, numbers, underscores and dashes!**
->> 253 | createMongoTemplate in org.grails.datastore.mapping.mongo.MongoDatastore
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 222 | afterPropertiesSet in ''
| 53 | getObject . . . . . . in org.grails.datastore.gorm.mongo.bean.factory.MongoDatastoreFactoryBean
| 109 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
| 303 | innerRun . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 695 | run . . . . . . . . . in java.lang.Thread
은 (는) 귀하의 mongod가 --auth로 실행되고 있습니까? 때때로 grails 오류 메시지는 매우 직관적이지 않거나 다른 오류에 대해 완전히 잘못된 메시지를 표시합니다. – user3334603