embedded tomcat 7 - When I run grails run-app command I get Caching deactivated failed to create cache -
embedded tomcat 7 - When I run grails run-app command I get Caching deactivated failed to create cache -
i'm using grails 2.3.5 on windows , have created project using grails create-app command command line. when run grails run-app --verbose command line exception below.
caching deactivated: failed create cache directory: c:/grails/2.3.5/ java.lang.noclassdeffounderror: org/apache/catalina/startup/tomcat at... caused by: java.lang.classnotfoundexception: org.apache.cataliina.startup.tomcat below part of buildconfig.groovy file
... dependencies { // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g. //compile 'xlan:serializer:jar:2.7.1' // runtime 'mysql:mysql-connector-java:5.1.27' // runtime 'org.postgresql:postgresql:9.3-1100-jdbc41' //these added mongodb compile 'org.grails:grails-datastore-gorm:3.1.0.release' compile 'org.grails:grails-datastore-core:3.1.0.release' test 'org.grails:grails-datastore-simple:3.1.0.release' compile "net.sf.ehcache:ehcache-core:2.4.6" compile 'org.grails:grails-async:jar:2.3.8' compile 'org.springframework:spring-tx:3.2.8.release' } plugins { // plugins build scheme //build ":serializer:2.7.1" build ':tomcat:7.0.50' // plugins compile step compile ":scaffolding:2.0.1" //compile ':cache:1.1.1' compile ':mongodb:3.0.1' compile ":jquery-ui:1.10.3" compile ":spring-security-core:2.0-rc4" // plugins needed @ runtime not compilation // runtime ":hibernate:3.6.10.7" // or ":hibernate4:4.1.11.6" runtime ":database-migration:1.3.8" runtime ":jquery:1.10.2.2" runtime ":resources:1.2.1" // uncomment these (or add together new ones) enable additional resources capabilities //runtime ":zipped-resources:1.0.1" //runtime ":cached-resources:1.1" //runtime ":yui-minify-resources:0.1.5" }... i running grails offline mode pointing local repository. compiled after i added jars listed below lib folder in groovy/grails tool suite folder in classpath (this fixed tomcatkillswitch error in catalina)
catalina.jar catalina-ant.jar catalina-ha.jar catalina-tribes.jar tomcat-api.jar tomcat-coyote.jar tomcat-util.jarwhy cant grails find tomcat , why can't create cache?
delete jar files; may have 'fixed' problem, hid symptom , problem still exists, , resurface, next time add together plugin. go ahead , delete lib directory - go on tempt presence.
it seems me core problem simple , stated; grails wasn't able create c:/grails/2.3.5/. side effects not stated, , 1 of them grails wasn't able unpack tomcat plugin (and others also) , augment classpath source , jar dependencies.
a proper prepare issue upgrade sensible os. suggest linux, others find comfort in beingness part of big grouping of eerily like-minded 'individuals' , suggest osx, windows do.
i'm going go out on limb here , claim can end dark period of cache-poverty if undertake mission of manually creating c:\grails. default can't create files or directories in root of c: drive in recent versions of windows; of course of study it's possible, , you'll asked far many "are sure"-type questions along journey, can done.
you'd cache-rich after restarting because grails able create 2.3.5 directory, unpack plugins, , refer downloaded/cached tomcat jars programmatically instead of having have them in lib directory.
grails embedded-tomcat-7 run-app
Comments
Post a Comment