我在将 mule war 文件部署到 tomcat 时遇到错误。 我得到以下错误
org.mule.api.config.ConfigurationException: Unexpected exception parsing XML document from simplewebapp.xml; nested exception is java.lang.NoClassDefFoundError: de/schlichtherle/license/LicenseContentException (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.context.DefaultMuleContextFactory$2.configure(DefaultMuleContextFactory.java:103)
我的流程如下
<flow name="simplewebappFlow1" doc:name="simplewebappFlow1">
<servlet:inbound-endpoint path="/rig" responseTimeout="10000" doc:name="Servlet"/>
<response>
<object-to-string-transformer doc:name="Object to String"/>
</response>
<sfdc:query config-ref="Salesforce" query="dsql:SELECT Id,Name FROM Account" doc:name="Salesforce"/>
<data-mapper:transform config-ref="List_Account__To_CSV" doc:name="List<Account> To CSV"/>
<file:outbound-endpoint path="/home/Test" outputPattern="test" responseTimeout="10000" doc:name="File"/>
</flow>
我在网页上称这个流程
<a href="./services/rig">click</a>
当时我点击这个时出现以下错误...
javax.servlet.ServletException: Property mule.context not set on ServletContext
org.mule.transport.servlet.AbstractReceiverServlet.setupMuleContext(AbstractReceiverServlet.java:125)
org.mule.transport.servlet.AbstractReceiverServlet.init(AbstractReceiverServlet.java:115)
javax.servlet.GenericServlet.init(GenericServlet.java:158)
我该如何解决这个错误??
谢谢
最佳答案
关于tomcat - java.lang.NoClassDefFoundError : de/schlichtherle/license/LicenseContentException While deploying mule war file to tomcat 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28939084/