java - Grails: Exception with RestBuilder only while running in production tomcat server -


i created war file , deployed tomcat server while submitting registration page(having recaptcha) error happening, not in local machine , app running in local machine using ggts ide.

following error happening in production server

    errors.grailsexceptionresolver  - classnotfoundexception occurred when processing request: [post] /ifp/signup/completesignup grails.plugins.rest.client.restbuilder. stacktrace follows: java.lang.classnotfoundexception: grails.plugins.rest.client.restbuilder     @ java.lang.class.privategetdeclaredmethods(class.java:2701)     @ java.lang.class.getdeclaredmethods(class.java:1975)     @ org.codehaus.groovy.util.lazyreference.getlocked(lazyreference.java:46)     @ org.codehaus.groovy.util.lazyreference.get(lazyreference.java:33)     @ com.megatome.grails.recaptcha.recaptcha.checkanswer(recaptcha.groovy:171)     @ com.megatome.grails.recaptchaservice.verifyanswer(recaptchaservice.groovy:147)     @ com.controllers.portal.signupcontroller.completesignup(signupcontroller.groovy:42)     @ grails.plugin.cache.web.filter.pagefragmentcachingfilter.dofilter(pagefragmentcachingfilter.java:198)     @ grails.plugin.cache.web.filter.abstractfilter.dofilter(abstractfilter.java:63)     @ grails.plugin.springsecurity.web.filter.grailsanonymousauthenticationfilter.dofilter(grailsanonymousauthenticationfilter.java:53)     @ grails.plugin.springsecurity.web.authentication.requestholderauthenticationfilter.dofilter(requestholderauthenticationfilter.java:53)     @ grails.plugin.springsecurity.web.authentication.logout.mutablelogoutfilter.dofilter(mutablelogoutfilter.java:62)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617)     @ java.lang.thread.run(thread.java:745) 

from view exception happening after implementation of recaptcha. please me resolving issue.

java.lang.classnotfoundexception: grails.plugins.rest.client.restbuilder

states class missing in production war or tomcat.

make sure setting proper dependencies in gradle config per plugin ref-doc:

compile "org.grails.plugins:rest-client-builder:2.1.1" 

check jars present in war or tomcat's classpath


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -