grails-app-info-hibernate's People
grails-app-info-hibernate's Issues
Error when trying to navigate to entity graphs
Hello,
Using Grails 2.2.1 I created a new test project.
When I navigate to
http://localhost:8080/test/adminManage/index > Hibernate > Entity Graphs
I get the following error:
| Loading Grails 2.2.1
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application....
| Compiling 1 source files.....
| Running Grails application
Configuring Spring Security UI ...
... finished configuring Spring Security UI
Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Server running. Browse to http://localhost:8080/test
| Error 2013-10-16 13:37:11,506 [http-bio-8080-exec-6] ERROR errors.GrailsExceptionResolver - IOException occurred when processing request: [GET] /test/adminManage/hibernateEntityGraph
CreateProcess error=3, The system cannot find the path specified. Stacktrace follows:
Message: CreateProcess error=3, The system cannot find the path specified
Line | Method
->> 188 | in java.lang.ProcessImpl
| 132 | start in ''
| 1021 | start . . . . . . . . . in java.lang.ProcessBuilder
| 615 | exec in java.lang.Runtime
| 448 | exec . . . . . . . . . in ''
| 345 | exec in ''
| 121 | createImage . . . . . . in com.burtbeckwith.grails.plugins.appinfo.hibernate.GrailsDocExporter
| 88 | generateDot in ''
| 48 | doStart . . . . . . . . in ''
| 39 | start in ''
| 252 | doWithExporter . . . . in grails.plugins.appinfo.hibernate.HibernateInfoService
| 43 | generateEntityGraphCmap in ''
| 117 | hibernateEntityGraph . in com.burtbeckwith.grails.plugins.appinfo.hibernate.HibernateControllerMixin
| 44 | doCall in com.burtbeckwith.grails.plugins.dynamiccontroller.ControllerMixinClosureSource$_doGetClosure_closure1
| 186 | doFilter . . . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter
| 1110 | runWorker . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . . . . . . . . in java.lang.Thread
Is there anything I am missing?
What does this plugin do?
What does this plugin do?
HibernateInfoService.generateHbmXml() always returns null on Windows
The export() function seems to return a map keyed with backslash-delimited folder/file names, so the lookup using forward slashes never finds an entry. My local fix is to use backslashes instead of forward-slashes, but you may want to normalize the use of slashes in some other way.
String generateHbmXml(String entity) {
//String key = entity.replaceAll('\\.', '/') + '.hbm.xml' // Removed this line
String key = entity.replaceAll('\\.', '\\\\') + '.hbm.xml' // Added this line
new GrailsHibernateMappingExporter(configuration).export()[key]
}
Could not instantiate TransactionManagerLookup 'org.springframework.orm.hibernate3.LocalTransactionManagerLookup'
When I click the menu of 'entity graphs' or 'table graphs' this error is occured.
In the 'overview' page of hibernate info, when a table or entity is selected, this error is occured.
In the stack trace log it is said as:
Caused by IllegalStateException: No JTA TransactionManager found - 'jtaTransactionManager' property must be set on LocalSessionFactoryBean
->> 141 | setupContext in com.burtbeckwith.grails.plugins.appinfo.hibernate.GrailsDocExporter.
I am using Grails 2.3.7 with JDK 1.7.
Plugin Information in BuildConfig.groovy as following:
build ":tomcat:7.0.52.1"
compile ":scaffolding:2.0.2"
runtime ":hibernate:3.6.10.10"
runtime ":database-migration:1.3.8"
runtime ":jquery:1.11.0.2"
runtime ":app-info:1.1.1"
compile ':app-info-hibernate:0.4.1'
Datasource information in DataSource.groovy as following:
dataSource {
pooled = true
dialect = org.hibernate.dialect.Oracle10gDialect
driverClassName = "oracle.jdbc.driver.OracleDriver"
loggingSql = false
dbCreate = ""
url = "jdbc:oracle:thin:@localhost:1521:xe"
username = "hr"
password = "password"
}
hibernate {
show_sql = true
format_sql = true
cache.use_second_level_cache = true
cache.use_query_cache = false
cache.region.factory_class = 'net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory'
singleSession = true // configure OSIV singleSession mode
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.