当我尝试实例化Axis从WSDL(RPC)生成的类时,我面临一些奇怪的问题:
java.lang.NoClassDefFoundError: Could not initialize class
com.test.ws.wsdl.TestBindingStub
at java.lang.Class.forName0(Native Method);
at java.lang.Class.forName(Class.java:264)
at de.hybris.platform.spring.LazyInitOverrideBeanFactoryPostProcessor.forName(LazyInitOverrideBeanFactoryPostProcessor.java:90)
at java.util.Optional.map(Optional.java:215)
at de.hybris.platform.spring.LazyInitOverrideBeanFactoryPostProcessor.postProcessBeanFactory(LazyInitOverrideBeanFactoryPostProcessor.java:59)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:283)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:178)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)
at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:95)
at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:263)
at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:87)
at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:708)
at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:746)
at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:680)
at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:647)
at de.hybris.platform.core.Registry.activateTenant(Registry.java:708)
at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:555)
at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:615)
at de.hybris.platform.core.Registry.startup(Registry.java:433)
at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:317)
at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:203)
at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:191)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:87)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5157)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1702)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1692)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
起初,我坚信这可能是由于缺少一些依赖项引起的,但是 将axis-1.4.jar添加到我的lib文件夹并没有解决问题...任何提示吗?