从Grails 2.4.1(资源模块)升级到Grails 3.3.4(资产管道)后,获得“加载资产规范时出错”

时间:2018-08-29 07:31:22

标签: grails asset-pipeline grails-plugin

我目前正在将应用程序从// ... if let lastEl = undoArray.pop() { let lastUserAction = lastEl as! UserAction switch lastUserAction.type { case .remove: print("replicate remove action") case .add: print("replicate add action") case .moveTo : print("replicate moveTo action") // ... add the other user actions default:break } } 升级,该应用程序使用资源模块将资源加载到Grails 2.4.1,后者使用资产管道。

我已遵循Grails升级文档并执行了所需的所有步骤。我现在面临的问题是在运行应用程序时,出现以下错误

Grails 3.3.4

我尝试在Internet上搜索错误,但是没有成功。我不了解术语ERROR --- [io-8080-exec-10] asset.pipeline.AssetSpecLoader : Error loading asset specification asset.pipeli: asset.pipeli java.lang.ClassNotFoundException: asset.pipeli at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:52) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.apache.catalina.loader.WebappClassLoaderBase$loadClass.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128) at asset.pipeline.AssetSpecLoader$_loadSpecifications_closure1.doCall(AssetSpecLoader.groovy:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034) at groovy.lang.Closure.call(Closure.java:418) at groovy.lang.Closure.call(Closure.java:434) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2125) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1980) at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source) . . . ERROR --- [io-8080-exec-10] asset.pipeline.AssetSpecLoader : Error loading asset specification e.HtmlAssetFile asset.pipeli: e.HtmlAssetFile asset.pipeli java.lang.ClassNotFoundException: e.HtmlAssetFile asset.pipeli at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:52) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.apache.catalina.loader.WebappClassLoaderBase$loadClass.call(Unknown Source) at asset.pipeline.AssetSpecLoader$_loadSpecifications_closure1.doCall(AssetSpecLoader.groovy:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034) at groovy.lang.Closure.call(Closure.java:418) at groovy.lang.Closure.call(Closure.java:434) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2125) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1980) at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source) . . . ERROR --- [io-8080-exec-10] asset.pipeline.AssetSpecLoader : Error loading asset specification e.JsAssetFile asset.pipeli: e.JsAssetFile asset.pipeli java.lang.ClassNotFoundException: e.JsAssetFile asset.pipeli at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:52) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.apache.catalina.loader.WebappClassLoaderBase$loadClass.call(Unknown Source) at asset.pipeline.AssetSpecLoader$_loadSpecifications_closure1.doCall(AssetSpecLoader.groovy:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034) at groovy.lang.Closure.call(Closure.java:418) at groovy.lang.Closure.call(Closure.java:434) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2125) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1980) at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source) . . . ERROR --- [io-8080-exec-10] asset.pipeline.AssetSpecLoader : Error loading asset specification e.JsEs6AssetFile asset.pipeli: e.JsEs6AssetFile asset.pipeli java.lang.ClassNotFoundException: e.JsEs6AssetFile asset.pipeli at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:52) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.apache.catalina.loader.WebappClassLoaderBase$loadClass.call(Unknown Source) at asset.pipeline.AssetSpecLoader$_loadSpecifications_closure1.doCall(AssetSpecLoader.groovy:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034) at groovy.lang.Closure.call(Closure.java:418) at groovy.lang.Closure.call(Closure.java:434) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2125) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1980) at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source) . . . ERROR --- [io-8080-exec-10] asset.pipeline.AssetSpecLoader : Error loading asset specification e.CssAssetFile: e.CssAssetFile java.lang.ClassNotFoundException: e.CssAssetFile at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:52) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.apache.catalina.loader.WebappClassLoaderBase$loadClass.call(Unknown Source) at asset.pipeline.AssetSpecLoader$_loadSpecifications_closure1.doCall(AssetSpecLoader.groovy:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034) at groovy.lang.Closure.call(Closure.java:418) at groovy.lang.Closure.call(Closure.java:434) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2125) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1980) at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source) . . . asset.pipelie.HtmlAssetFile和其他术语的含义,e.JsEs6AssetFile从何处获得术语。

0 个答案:

没有答案