关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 4686|回复: 0

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

[复制链接]
发表于 2017-12-19 19:02:12 | 显示全部楼层 |阅读模式
启动时报错:

10308 [localhost-startStop-1] INFO  o.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 [localhost-startStop-1] INFO  org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be /JeecgWService
10885 [localhost-startStop-1] INFO  o.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 [localhost-startStop-1] INFO  org.apache.cxf.endpoint.ServerImpl - Setting the server's publish address to be /JeecgWDemoService
[org.springframework.web.context.support.XmlWebApplicationContext]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 [config/spring-config-p3.xml]: 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

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



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表