byrwqm 发表于 2017-12-19 19:02:12

velocity.log无法创建, velocity.property在什么位置

启动时报错:

10308 INFOo.a.c.w.s.f.ReflectionServiceFactoryBean - Creating Service {file:///C:\Users\Lqj\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pnghttp://test.ws.demo.web.jeecgframework.org/}JeecgWServiceImplService

from class file:///C:\Users\Lqj\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngorg.jeecgframework.web.demo.ws

.test.JeecgWServiceI
10804 INFOorg.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be /JeecgWService
10885 INFOo.a.c.w.s.f.ReflectionServiceFactoryBean - Creating Service {file:///C:\Users\Lqj\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pnghttp://test.ws.demo.web.jeecgframework.org/}JeecgWDemoServiceImplService

from class file:///C:\Users\Lqj\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngorg.jeecgframework.web.demo.ws

.test.JeecgWServiceI
10895 INFOorg.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be /JeecgWDemoService
Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jeecgframework.p3.core.util.plugin.ViewVelocity#0' defined in class path resource : Invocation of init method failed; nested exception is java.lang.Exception: ??Velocity??
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.conc



JEECG常见问题 说的是 修改velocity.property

是velocity初始化引擎的问题,修改下配置就可以了
修改 velocity.property
注释runtime.log.logsystem.class = org.apache.velocity.runtime.log.Log4JLogChute
新加一下配置
runtime.log.logsystem.class = org.apache.velocity.runtime.log.SimpleLog4JLogSystem
runtime.log.logsystem.log4j.category=velocity
runtime.log.logsystem.log4j.logger=velocity

但我没有在项目里找到它呢



页: [1]
查看完整版本: velocity.log无法创建, velocity.property在什么位置