NutzCN Logo
问答 nutzboot 运行集成urule的时候 在eclipse中,urule规则流配置可以运行成功得出结果,打成jar包后在cmd中运行就报错,
发布于 99天前 作者 小苍蝇 190 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.870 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.871 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.871 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.872 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.873 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.874 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
???控制台输出:计算定员......
[DEBUG] 16:32:35.876 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'highspeedrailAction'
[DEBUG] 16:32:35.880 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'highspeedrailAction'
[DEBUG] 16:32:35.881 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.881 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.882 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.882 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.885 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.885 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.886 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.887 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.888 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.889 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.890 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.assertorEvaluator'
[DEBUG] 16:32:35.890 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.valueCompute'
[DEBUG] 16:32:35.891 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.mapAction'
[DEBUG] 16:32:35.892 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'stringAction'
[DEBUG] 16:32:35.895 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.mapAction'
[DEBUG] 16:32:35.897 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'stringAction'
[DEBUG] 16:32:35.898 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'stringAction'
[DEBUG] 16:32:35.899 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'highspeedrailAction'
[DEBUG] 16:32:35.899 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.mapAction'
[DEBUG] 16:32:35.900 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.mapAction'
[DEBUG] 16:32:35.901 org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:460) - Convert string '
福清西' to class 'java.lang.Object'
[DEBUG] 16:32:35.902 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:127) - Con
verting 'String' value '福清西' to type 'Object'
[DEBUG] 16:32:35.903 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:158) -
 Converted to Object value '福清西'
[DEBUG] 16:32:35.903 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.mapAction'
[DEBUG] 16:32:35.905 org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:460) - Convert string '
供电定员' to class 'java.lang.Object'
[DEBUG] 16:32:35.906 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:127) - Con
verting 'String' value '供电定员' to type 'Object'
[DEBUG] 16:32:35.907 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:158) -
 Converted to Object value '供电定员'
[DEBUG] 16:32:35.907 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.mapAction'
[DEBUG] 16:32:35.908 org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:460) - Convert string '
MD_X11303010001__GXLC,MD_X11303010012__JWDY' to class 'java.lang.Object'
[DEBUG] 16:32:35.909 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:127) - Con
verting 'String' value 'MD_X11303010001__GXLC,MD_X11303010012__JWDY' to type 'Object'
[DEBUG] 16:32:35.911 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:158) -
 Converted to Object value 'MD_X11303010001__GXLC,MD_X11303010012__JWDY'
[DEBUG] 16:32:35.913 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'urule.mapAction'
[DEBUG] 16:32:35.914 org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:460) - Convert string '
(0.63*MD_X11303010001__GXLC*1.07+0.3*MD_X11303010001__GXLC)*1.04+MD_X11303010012__JWDY' to class 'java.lang.Object'
[DEBUG] 16:32:35.915 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:127) - Con
verting 'String' value '(0.63*MD_X11303010001__GXLC*1.07+0.3*MD_X11303010001__GXLC)*1.04+MD_X11303010012__JWDY' to type
'Object'
[DEBUG] 16:32:35.915 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:158) -
 Converted to Object value '(0.63*MD_X11303010001__GXLC*1.07+0.3*MD_X11303010001__GXLC)*1.04+MD_X11303010012__JWDY'
[DEBUG] 16:32:35.917 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:25
1) - Returning cached instance of singleton bean 'highspeedrailAction'
java.lang.reflect.InvocationTargetException
        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:497)
        at com.bstek.urule.action.ExecuteMethodAction.execute(ExecuteMethodAction.java:86)
        at com.bstek.urule.runtime.rete.ValueCompute.fetchValue(ValueCompute.java:146)
        at com.bstek.urule.runtime.rete.ValueCompute.compute(ValueCompute.java:75)
        at com.bstek.urule.runtime.rete.ValueCompute.complexValueCompute(ValueCompute.java:56)
        at com.bstek.urule.action.VariableAssignAction.execute(VariableAssignAction.java:55)
        at com.bstek.urule.runtime.agenda.ActivationImpl.execute(ActivationImpl.java:99)
        at com.bstek.urule.runtime.agenda.ActivationRuleBox.execute(ActivationRuleBox.java:47)
        at com.bstek.urule.runtime.agenda.Agenda.execute(Agenda.java:53)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.execute(KnowledgeSessionImpl.java:207)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.fireRules(KnowledgeSessionImpl.java:137)
        at com.bstek.urule.model.rule.loop.LoopRule.execute(LoopRule.java:103)
        at com.bstek.urule.runtime.agenda.ActivationImpl.execute(ActivationImpl.java:83)
        at com.bstek.urule.runtime.agenda.ActivationRuleBox.execute(ActivationRuleBox.java:47)
        at com.bstek.urule.runtime.agenda.Agenda.execute(Agenda.java:53)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.execute(KnowledgeSessionImpl.java:207)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.fireRules(KnowledgeSessionImpl.java:137)
        at com.bstek.urule.model.flow.BindingNode.executeKnowledgePackage(BindingNode.java:52)
        at com.bstek.urule.model.flow.RuleNode.enterNode(RuleNode.java:42)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.Connection.execute(Connection.java:68)
        at com.bstek.urule.model.flow.FlowNode.leave(FlowNode.java:73)
        at com.bstek.urule.model.flow.ScriptNode.enterNode(ScriptNode.java:38)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.Connection.execute(Connection.java:68)
        at com.bstek.urule.model.flow.FlowNode.leave(FlowNode.java:69)
        at com.bstek.urule.model.flow.DecisionNode.doCriteria(DecisionNode.java:94)
        at com.bstek.urule.model.flow.DecisionNode.enterNode(DecisionNode.java:47)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.Connection.execute(Connection.java:68)
        at com.bstek.urule.model.flow.FlowNode.leave(FlowNode.java:73)
        at com.bstek.urule.model.flow.StartNode.enterNode(StartNode.java:44)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.FlowDefinition.newInstance(FlowDefinition.java:71)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.startProcess(KnowledgeSessionImpl.java:177)
        at com.bstek.urule.controller.RuleController.rule(RuleController.java:38)
        at com.bstek.urule.controller.RuleController$FM$rule$302588d33098004f3cebc9b3a61f843d.invoke(RuleController.java
)
        at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:30)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15
)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
        at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
        at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
        at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: neu/sxc/expression/ExpressionFactory
        at com.bstek.urule.action.HighspeedrailAction.getAssemble(HighspeedrailAction.java:190)
        ... 90 more
Caused by: java.lang.ClassNotFoundException: neu.sxc.expression.ExpressionFactory
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 91 more
[WARN ] 16:32:35.952 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) - Error@/rule/rule/定员 :
com.bstek.urule.RuleException: java.lang.reflect.InvocationTargetException
        at com.bstek.urule.action.ExecuteMethodAction.execute(ExecuteMethodAction.java:115)
        at com.bstek.urule.runtime.rete.ValueCompute.fetchValue(ValueCompute.java:146)
        at com.bstek.urule.runtime.rete.ValueCompute.compute(ValueCompute.java:75)
        at com.bstek.urule.runtime.rete.ValueCompute.complexValueCompute(ValueCompute.java:56)
        at com.bstek.urule.action.VariableAssignAction.execute(VariableAssignAction.java:55)
        at com.bstek.urule.runtime.agenda.ActivationImpl.execute(ActivationImpl.java:99)
        at com.bstek.urule.runtime.agenda.ActivationRuleBox.execute(ActivationRuleBox.java:47)
        at com.bstek.urule.runtime.agenda.Agenda.execute(Agenda.java:53)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.execute(KnowledgeSessionImpl.java:207)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.fireRules(KnowledgeSessionImpl.java:137)
        at com.bstek.urule.model.rule.loop.LoopRule.execute(LoopRule.java:103)
        at com.bstek.urule.runtime.agenda.ActivationImpl.execute(ActivationImpl.java:83)
        at com.bstek.urule.runtime.agenda.ActivationRuleBox.execute(ActivationRuleBox.java:47)
        at com.bstek.urule.runtime.agenda.Agenda.execute(Agenda.java:53)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.execute(KnowledgeSessionImpl.java:207)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.fireRules(KnowledgeSessionImpl.java:137)
        at com.bstek.urule.model.flow.BindingNode.executeKnowledgePackage(BindingNode.java:52)
        at com.bstek.urule.model.flow.RuleNode.enterNode(RuleNode.java:42)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.Connection.execute(Connection.java:68)
        at com.bstek.urule.model.flow.FlowNode.leave(FlowNode.java:73)
        at com.bstek.urule.model.flow.ScriptNode.enterNode(ScriptNode.java:38)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.Connection.execute(Connection.java:68)
        at com.bstek.urule.model.flow.FlowNode.leave(FlowNode.java:69)
        at com.bstek.urule.model.flow.DecisionNode.doCriteria(DecisionNode.java:94)
        at com.bstek.urule.model.flow.DecisionNode.enterNode(DecisionNode.java:47)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.Connection.execute(Connection.java:68)
        at com.bstek.urule.model.flow.FlowNode.leave(FlowNode.java:73)
        at com.bstek.urule.model.flow.StartNode.enterNode(StartNode.java:44)
        at com.bstek.urule.model.flow.FlowNode.enter(FlowNode.java:57)
        at com.bstek.urule.model.flow.FlowDefinition.newInstance(FlowDefinition.java:71)
        at com.bstek.urule.runtime.KnowledgeSessionImpl.startProcess(KnowledgeSessionImpl.java:177)
        at com.bstek.urule.controller.RuleController.rule(RuleController.java:38)
        at com.bstek.urule.controller.RuleController$FM$rule$302588d33098004f3cebc9b3a61f843d.invoke(RuleController.java
)
        at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:30)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.integration.shiro.NutShiroProcessor.process(NutShiroProcessor.java:126)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
        at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
        at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15
)
        at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
        at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
        at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
        at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
        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:497)
        at com.bstek.urule.action.ExecuteMethodAction.execute(ExecuteMethodAction.java:86)
        ... 85 more
Caused by: java.lang.NoClassDefFoundError: neu/sxc/expression/ExpressionFactory
        at com.bstek.urule.action.HighspeedrailAction.getAssemble(HighspeedrailAction.java:190)
        ... 90 more
Caused by: java.lang.ClassNotFoundException: neu.sxc.expression.ExpressionFactory
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 91 more

12 回复

neu/sxc/expression/ExpressionFactory 这是啥东西?你自己加的jar?

是的表达式计算的jar包

<!-- 依赖公式expression -->
		<dependency>
			<groupId>neu.sxc</groupId>
			<artifactId>expression</artifactId>
			<version>2.4.0</version>
			<scope>system</scope>
			<systemPath>${basedir}/src/main/resources/webapp/WEB-INF/lib/expression.jar</systemPath>
		</dependency>

这样打包没打进去吗

估计是没有,mvn install到本地,就可以像其他库一样正常引用啦

那我先把这个expression.jar包添加到本地仓库,再试试

能不能在application.properties配置 三个环境的数据源文件,生产环境.properties、测试环境.properties、正式环境.properties,然后直接在application.properties里面加上就成了,咋配置啊!

支持的

java -jar xxx.jar   //加载application.properties
java -Dnutz.profiles.active=prod -jar xxx.jar //加载application.properties 和 application-prod.properties

部署很方便,嘿嘿,开发的时候 能不能通过application.properties 里面配置去加载这个application-prod.properties文件呢

我在里面这样配置 profiles.active=prod 报错了,不是这样吗

大意了,少个nutz尴尬

nutz.profiles.active=prod 这个来加载不同的properties

添加回复
请先登陆
回到顶部