Mule EHCache正在Mule standalone中引发异常

Mule EHCache正在Mule standalone中引发异常,mule,ehcache,mule-studio,Mule,Ehcache,Mule Studio,我有一个Mule应用程序,它使用Mule EHCache作用域。。 我参考了以下资料: 现在,如果你看一看文章的评论部分,就会发现将EHCache jar(EHCache-core-2.6.0.jar)放在MULE Standalone的$MULE_HOME/lib/user中,如果是MULE Studio,则将它们放在$MULE_Studio_INSTALL_DIR/plugins/org.MULE.tooling.server中。$version/MULE/lib/user。。。现在我完全按

我有一个Mule应用程序,它使用Mule EHCache作用域。。 我参考了以下资料: 现在,如果你看一看文章的评论部分,就会发现将EHCache jar(EHCache-core-2.6.0.jar)放在MULE Standalone的$MULE_HOME/lib/user中,如果是MULE Studio,则将它们放在$MULE_Studio_INSTALL_DIR/plugins/org.MULE.tooling.server中。$version/MULE/lib/user。。。现在我完全按照它说的去做了

在Mule studio中,应用程序运行良好,没有任何问题。。但是如果我尝试在Mule enterprise 3.5.1单机版中部署和运行。。我得到以下例外:-

org.mule.module.launcher.DeploymentInitException: Error: Unresolved compilation problems:
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type

        at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181)
        at org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62)
        at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129)
        at org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57)
        at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25)
        at org.mule.module.launcher.DefaultArchiveDeployer.guardedDeploy(DefaultArchiveDeployer.java:310)
        at org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:330)
        at org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedApp(DefaultArchiveDeployer.java:297)
        at org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:108)
        at org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:290)
        at org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:151)
        at org.mule.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:99)
        at org.mule.module.launcher.MuleContainer.start(MuleContainer.java:152)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.mule.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:52)
        at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4048)
Caused by: org.mule.api.config.ConfigurationException: Error creating bean with name 'cachingStrategy': Cannot create inner bean '(inner bean)' of type [com.anirban.EHCat
ban.EHCatche.EhcacheObjectStore]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
 (org.mule.api.lifecycle.InitialisationException) (org.mule.api.config.ConfigurationException)
        at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:49)
        at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:69)
        at org.mule.context.DefaultMuleContextFactory$1.configure(DefaultMuleContextFactory.java:84)
        at org.mule.context.DefaultMuleContextFactory.doCreateMuleContext(DefaultMuleContextFactory.java:217)
        at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:76)
        at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:174)
        ... 18 more
Caused by: org.mule.api.config.ConfigurationException: Error creating bean with name 'cachingStrategy': Cannot create inner bean '(inner bean)' of type [com.anirban.EHCat
ban.EHCatche.EhcacheObjectStore]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
 (org.mule.api.lifecycle.InitialisationException)
        at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:49)
        at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:69)
        at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
        at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:52)
        at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:43)
        ... 23 more
Caused by: org.mule.api.lifecycle.InitialisationException: Error creating bean with name 'cachingStrategy': Cannot create inner bean '(inner bean)' of type [com.anirban.E
anirban.EHCatche.EhcacheObjectStore]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type

        at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:113)
        at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:135)
        at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:90)
        at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:43)
        ... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cachingStrategy': Cannot create inner bean '(inner bean)' of type [com.
ass [com.anirban.EHCatche.EhcacheObjectStore]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:86)
        at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:105)
        ... 30 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.sp
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1011)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:957)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271)
        ... 44 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.anirban.EHCatche.EhcacheObjectStore]: Constructor threw exception;
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1004)
        ... 48 more
Caused by: java.lang.Error: Unresolved compilation problems:
        The import net.sf.ehcache cannot be resolved
        The import net.sf.ehcache cannot be resolved
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Element cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type
        Ehcache cannot be resolved to a type

        at com.anirban.EHCatche.EhcacheObjectStore.<init>(EhcacheObjectStore.java:5)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
        ... 50 more
INFO  2014-10-27 21:30:10,584 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentDirectoryWatcher:
org.mule.module.launcher.DeploymentInitException:错误:未解决的编译问题:
无法解析导入net.sf.ehcache
无法解析导入net.sf.ehcache
Ehcache无法解析为类型
Ehcache无法解析为类型
元素无法解析为类型
元素无法解析为类型
Ehcache无法解析为类型
元素无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
位于org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181)
位于org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62)
位于org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129)
位于org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57)
位于org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25)
位于org.mule.module.launcher.DefaultArchiveDeployer.GuardDeploy(DefaultArchiveDeployer.java:310)
位于org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:330)
位于org.mule.module.launcher.DefaultArchiveDeploydApp(DefaultArchiveDeployer.java:297)
位于org.mule.module.launcher.DefaultArchiveDeployerDartifact(DefaultArchiveDeployer.java:108)
在org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps上(DeploymentDirectoryWatcher.java:290)
位于org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:151)
位于org.mule.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:99)
位于org.mule.module.launcher.MuleContainer.start(MuleContainer.java:152)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处
位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源)
在sun.reflect.DelegatingMethodAccessorImpl.invoke处(未知源)
位于java.lang.reflect.Method.invoke(未知源)
位于org.mule.module.reboot.mulecontainerrapper.start(mulecontainerrapper.java:52)
位于org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4048)
原因:org.mule.api.config.ConfigurationException:创建名为“cachingStrategy”的bean时出错:无法创建[com.anirban.EHCat”类型的内部bean(内部bean)
构造函数抛出异常;嵌套异常为java.lang.Error:未解决的编译问题:
无法解析导入net.sf.ehcache
无法解析导入net.sf.ehcache
Ehcache无法解析为类型
Ehcache无法解析为类型
元素无法解析为类型
元素无法解析为类型
Ehcache无法解析为类型
元素无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
(org.mule.api.lifecycle.InitialisationException)(org.mule.api.config.ConfigurationException)
位于org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:49)
位于org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:69)
位于org.mule.context.DefaultMuleContextFactory$1.configure(DefaultMuleContextFactory.java:84)
位于org.mule.context.DefaultMuleContextFactory.doCreateMuleContext(DefaultMuleContextFactory.java:217)
位于org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:76)
位于org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:174)
... 还有18个
原因:org.mule.api.config.ConfigurationException:创建名为“cachingStrategy”的bean时出错:无法创建[com.anirban.EHCat”类型的内部bean(内部bean)
构造函数抛出异常;嵌套异常为java.lang.Error:未解决的编译问题:
无法解析导入net.sf.ehcache
无法解析导入net.sf.ehcache
Ehcache无法解析为类型
Ehcache无法解析为类型
元素无法解析为类型
元素无法解析为类型
Ehcache无法解析为类型
元素无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
Ehcache无法解析为类型
(org.mule.api.lifecycle.InitialisationException)
在