intellij idea - Deploying Grails WAR project to Tomcat 6 server -


i have grails project, , use intellij, , project runs fine intellij.

i can create war using intellij build then, make grails web archive.

i have virtual box running ubuntu 14.04, tomcat 6 on it.

ok issue. i'm running chain of commands

/etc/init.d/tomcat6 stop;  rm -rf /var/lib/tomcat6/webapps/root*;  cp root.war /var/lib/tomcat6/webapps/.;  /etc/init.d/tomcat6 start;  tail -f /var/lib/tomcat6/logs/catalina.out 

and getting these errors

info: validatejarfile(/var/lib/tomcat6/webapps/root/web-inf/lib/servlet-api-2.3.jar) - jar not loaded. see servlet spec 2.3, section 9.7.2. offending class: javax/servlet/servlet.class - sanitizing stacktrace: java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ java.util.properties.loadconvert(properties.java:568)     @ java.util.properties.load0(properties.java:391)     @ java.util.properties.load(properties.java:341)     @ java_util_properties$load.call(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:40)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:116)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:124)     @ config.run(config.groovy:93)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90)     @ org.codehaus.groovy.reflection.cachedmethod$invoke.call(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:40)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:116)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:128)     @ groovy.util.configslurper$_parse_closure5.docall(configslurper.groovy:238)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90)     @ org.codehaus.groovy.runtime.metaclass.closuremetamethod.invoke(closuremetamethod.java:80)     @ groovy.lang.expandometaclass.invokemethod(expandometaclass.java:1068)     @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:886)     @ groovy.lang.delegatingmetaclass.invokemethod(delegatingmetaclass.java:149)     @ org.codehaus.groovy.runtime.callsite.pogometaclasssite.call(pogometaclasssite.java:39)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:40)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:116)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:120)     @ groovy.util.configslurper.parse(configslurper.groovy:257)     @ groovy.util.configslurper$parse$1.callcurrent(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcallcurrent(callsitearray.java:44)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:141)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:153)     @ groovy.util.configslurper.parse(configslurper.groovy:138)     @ groovy.util.configslurper$parse$0.callcurrent(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcallcurrent(callsitearray.java:44)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:141)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callcurrent(abstractcallsite.java:149)     @ groovy.util.configslurper.parse(configslurper.groovy:129)     @ groovy.util.configslurper$parse.call(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:40)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:116)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:124)     @ org.codehaus.groovy.grails.commons.cfg.configurationhelper.loadconfigfromclasspath(configurationhelper.groovy:62)     @ org.codehaus.groovy.grails.web.util.log4jconfiglistener.contextinitialized(log4jconfiglistener.java:54)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4210)     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4709)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:799)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:779)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:583)     @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:943)     @ org.apache.catalina.startup.hostconfig.deploywars(hostconfig.java:778)     @ org.apache.catalina.startup.hostconfig.deployapps(hostconfig.java:504)     @ org.apache.catalina.startup.hostconfig.start(hostconfig.java:1317)     @ org.apache.catalina.startup.hostconfig.lifecycleevent(hostconfig.java:324)     @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:142)     @ org.apache.catalina.core.containerbase.start(containerbase.java:1065)     @ org.apache.catalina.core.standardhost.start(standardhost.java:822)     @ org.apache.catalina.core.containerbase.start(containerbase.java:1057)     @ org.apache.catalina.core.standardengine.start(standardengine.java:463)     @ org.apache.catalina.core.standardservice.start(standardservice.java:525)     @ org.apache.catalina.core.standardserver.start(standardserver.java:754)     @ org.apache.catalina.startup.catalina.start(catalina.java:595)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:289)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:414)     - error loading application config: malformed \uxxxx encoding. java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ java.util.properties.loadconvert(properties.java:568)     @ java.util.properties.load0(properties.java:391)     @ java.util.properties.load(properties.java:341)     @ java_util_properties$load.call(unknown source)     @ config.run(config.groovy:93) log4j:error error initializing log4j: malformed \uxxxx encoding. java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ java.util.properties.loadconvert(properties.java:568)     @ java.util.properties.load0(properties.java:391)     @ java.util.properties.load(properties.java:341)     @ java_util_properties$load.call(unknown source)     @ config.run(config.groovy:93) - root webapplicationcontext: initialization started - refreshing root webapplicationcontext: startup date [fri jan 15 14:17:52 mst 2016]; root of context hierarchy - loading xml bean definitions servletcontext resource [/web-inf/applicationcontext.xml] - pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@60848eb2: defining beans [grailsapplication,pluginmanager,grailsconfigurator,grailsresourceloader,grailsresourceholder,characterencodingfilter]; root of factory hierarchy - loading grails application information descriptor. - no reloading, using standard classloader. - class name [samplejob] not found, , hence not loaded. possible empty class or script definition? - sanitizing stacktrace: java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ java.util.properties.loadconvert(properties.java:568)     @ java.util.properties.load0(properties.java:391)     @ java.util.properties.load(properties.java:341)     @ java_util_properties$load.call(unknown source)     @ config.run(config.groovy:93)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90)     @ org.codehaus.groovy.reflection.cachedmethod$invoke.call(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:40)     @ org.codehaus.groovy.reflection.cachedmethod$invoke.call(unknown source)     @ groovy.util.configslurper$_parse_closure5.docall(configslurper.groovy:238)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.codehaus.groovy.reflection.cachedmethod.invoke(cachedmethod.java:90)     @ org.codehaus.groovy.runtime.metaclass.closuremetamethod.invoke(closuremetamethod.java:80)     @ groovy.lang.expandometaclass.invokemethod(expandometaclass.java:1068)     @ groovy.lang.metaclassimpl.invokemethod(metaclassimpl.java:886)     @ org.codehaus.groovy.runtime.callsite.pogometaclasssite.call(pogometaclasssite.java:39)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:40)     @ org.codehaus.groovy.runtime.callsite.pogometaclasssite.call(pogometaclasssite.java:54)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:120)     @ groovy.util.configslurper.parse(configslurper.groovy:257)     @ groovy.util.configslurper$parse$1.callcurrent(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcallcurrent(callsitearray.java:44)     @ groovy.util.configslurper$parse$1.callcurrent(unknown source)     @ groovy.util.configslurper.parse(configslurper.groovy:138)     @ groovy.util.configslurper$parse$0.callcurrent(unknown source)     @ groovy.util.configslurper.parse(configslurper.groovy:129)     @ groovy.util.configslurper$parse.call(unknown source)     @ org.codehaus.groovy.grails.commons.cfg.configurationhelper.loadconfigfromclasspath(configurationhelper.groovy:62)     @ org.codehaus.groovy.grails.commons.defaultgrailsapplication.getconfig(defaultgrailsapplication.java:395)     @ org.codehaus.groovy.grails.plugins.defaultgrailspluginmanager.setpluginfilter(defaultgrailspluginmanager.java:196)     @ org.codehaus.groovy.grails.plugins.defaultgrailspluginmanager.<init>(defaultgrailspluginmanager.java:180)     @ org.codehaus.groovy.grails.plugins.grailspluginmanagerfactorybean.afterpropertiesset(grailspluginmanagerfactorybean.java:102)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1477)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1417)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:519)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:456)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:291)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:222) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:288)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:190)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:563)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:895)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:425)     @ org.springframework.web.context.contextloader.createwebapplicationcontext(contextloader.java:276)     @ org.codehaus.groovy.grails.web.context.grailscontextloader.createwebapplicationcontext(grailscontextloader.java:70)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:197)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:47)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4210)     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4709)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:799)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:779)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:583)     @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:943)     @ org.apache.catalina.startup.hostconfig.deploywars(hostconfig.java:778)     @ org.apache.catalina.startup.hostconfig.deployapps(hostconfig.java:504)     @ org.apache.catalina.startup.hostconfig.start(hostconfig.java:1317)     @ org.apache.catalina.startup.hostconfig.lifecycleevent(hostconfig.java:324)     @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:142)     @ org.apache.catalina.core.containerbase.start(containerbase.java:1065)     @ org.apache.catalina.core.standardhost.start(standardhost.java:822)     @ org.apache.catalina.core.containerbase.start(containerbase.java:1057)     @ org.apache.catalina.core.standardengine.start(standardengine.java:463)     @ org.apache.catalina.core.standardservice.start(standardservice.java:525)     @ org.apache.catalina.core.standardserver.start(standardserver.java:754)     @ org.apache.catalina.startup.catalina.start(catalina.java:595)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:289)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:414) - error loading application config: malformed \uxxxx encoding. java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ java.util.properties.loadconvert(properties.java:568)     @ java.util.properties.load0(properties.java:391)     @ java.util.properties.load(properties.java:341)     @ java_util_properties$load.call(unknown source)     @ config.run(config.groovy:93) - destroying singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@60848eb2: defining beans [grailsapplication,pluginmanager,grailsconfigurator,grailsresourceloader,grailsresourceholder,characterencodingfilter]; root of factory hierarchy - sanitizing stacktrace: java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ java.util.properties.loadconvert(properties.java:568)     @ java.util.properties.load0(properties.java:391)     @ java.util.properties.load(properties.java:341)     @ java_util_properties$load.call(unknown source)     @ config.run(config.groovy:93) - context initialization failed org.springframework.beans.factory.beancreationexception: error creating bean name 'pluginmanager' defined in servletcontext resource [/web-inf/applicationcontext.xml]: invocation of init method failed; nested exception java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1420)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:519)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:456)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:291)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:222)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:288)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:190)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:563)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:895)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:425)     @ org.springframework.web.context.contextloader.createwebapplicationcontext(contextloader.java:276)     @ org.codehaus.groovy.grails.web.context.grailscontextloader.createwebapplicationcontext(grailscontextloader.java:70)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:197)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:47)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4210)     @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4709)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:799)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:779)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:583)     @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:943)     @ org.apache.catalina.startup.hostconfig.deploywars(hostconfig.java:778)     @ org.apache.catalina.startup.hostconfig.deployapps(hostconfig.java:504)     @ org.apache.catalina.startup.hostconfig.start(hostconfig.java:1317)     @ org.apache.catalina.startup.hostconfig.lifecycleevent(hostconfig.java:324)     @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:142)     @ org.apache.catalina.core.containerbase.start(containerbase.java:1065)     @ org.apache.catalina.core.standardhost.start(standardhost.java:822)     @ org.apache.catalina.core.containerbase.start(containerbase.java:1057)     @ org.apache.catalina.core.standardengine.start(standardengine.java:463)     @ org.apache.catalina.core.standardservice.start(standardservice.java:525)     @ org.apache.catalina.core.standardserver.start(standardserver.java:754)     @ org.apache.catalina.startup.catalina.start(catalina.java:595)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:289)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:414) caused by: java.lang.illegalargumentexception: malformed \uxxxx encoding.     @ java.util.properties.loadconvert(properties.java:568)     @ java.util.properties.load0(properties.java:391)     @ java.util.properties.load(properties.java:341)     @ java_util_properties$load.call(unknown source)     @ config.run(config.groovy:93) jan 15, 2016 2:17:57 pm org.apache.catalina.core.standardcontext start severe: error listenerstart jan 15, 2016 2:17:57 pm org.apache.catalina.core.standardcontext start severe: context [] startup failed due previous errors jan 15, 2016 2:17:58 pm org.apache.coyote.http11.http11protocol start info: starting coyote http/1.1 on http-8080 jan 15, 2016 2:17:58 pm org.apache.catalina.startup.catalina start info: server startup in 13596 ms 

from i've researched seems "servlet-api-2.3.jar" referenced more once in 1 of dependency files or lib folders, , it's being compiled twice. can't seem find referenced anywhere.

i think it's rather encoding issue. please check out config.groovy file @ line:93. there non-unicode character?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -