使用Bluemix Liberty for Java部署Java应用程序

时间:2017-05-05 07:07:59

标签: java ibm-cloud websphere-liberty

我们正在尝试使用Liberty for Java buildpack将基于Spring的Java应用程序部署到Bluemix。我们在下面看到错误。我们甚至没有使用org.apache.tiles包。相同的应用程序构建在开发Tomcat服务器上运行良好。

Stack Dump = java.lang.NoClassDefFoundError: org.apache.tiles.el.ScopeELResolver

        at java.lang.J9VMInternals.prepareClassImpl(Native Method)

        at java.lang.J9VMInternals.prepare(Unknown Source)

        at java.lang.Class.getDeclaredMethods(Unknown Source)

        at com.ibm.wsspi.injectionengine.MethodMap.getMethods(MethodMap.java:150

)

        at com.ibm.wsspi.injectionengine.MethodMap.getAllDeclaredMethods(MethodM

ap.java:86)

        at com.ibm.ws.injectionengine.InjectionProcessorManager.getAllDeclaredMe

thods(InjectionProcessorManager.java:430)

        at com.ibm.ws.injectionengine.InjectionProcessorManager.processAnnotatio

ns(InjectionProcessorManager.java:231)

        at com.ibm.ws.injectionengine.AbstractInjectionEngine.processInjectionMe

taData(AbstractInjectionEngine.java:514)

        at com.ibm.ws.injectionengine.osgi.internal.OSGiInjectionEngineImpl.proc

essInjectionMetaData(OSGiInjectionEngineImpl.java:239)

        at com.ibm.ws.injectionengine.ReferenceContextImpl.processImpl(Reference

ContextImpl.java:633)

        at com.ibm.ws.injectionengine.ReferenceContextImpl.process(ReferenceCont

extImpl.java:305)

        at com.ibm.ws.injectionengine.osgi.internal.OSGiReferenceContextImpl.pro

o

cess(OSGiReferenceContextImpl.java:31)

        at com.ibm.ws.webcontainer.osgi.webapp.WebApp.commonInitializationStart(

WebApp.java:254)

        at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1038)

        at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6565)

        at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVi

rtualHost.java:468)

        at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(D

ynamicVirtualHost.java:463)

        at com.ibm.ws.webcontainer.osgi.WebContainer.startWebApplication(WebCont

ainer.java:1051)

        at com.ibm.ws.webcontainer.osgi.WebContainer.access$000(WebContainer.jav

a:104)

        at com.ibm.ws.webcontainer.osgi.WebContainer$2.run(WebContainer.java:870

)

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

        at java.util.concurrent.FutureTask.run(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ClassNotFoundException: org.apache.tiles.el.ScopeELResolver

        at com.ibm.ws.classloading.internal.AppClassLoader.findClassCommonLibrar

yClassLoaders(AppClassLoader.java:499)

        at com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppClassLoa

der.java:282)

        at java.lang.ClassLoader.loadClassHelper(Unknown Source)

        at java.lang.ClassLoader.loadClass(Unknown Source)

        at com.ibm.ws.classloading.internal.AppClassLoader.findOrDelegateLoadCla

ss(AppClassLoader.java:477)

0 个答案:

没有答案