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

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

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

查看: 8571|回复: 4

运行 jeecg-p3-biz-web 失败 找不到下面的类

[复制链接]
发表于 2016-9-20 18:59:45 | 显示全部楼层 |阅读模式
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:5016)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: 启动Velocity失败
        at org.jeecgframework.p3.core.util.plugin.ViewVelocity.afterPropertiesSet(ViewVelocity.java:81)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)
        ... 21 more
Caused by: org.apache.velocity.exception.VelocityException: Failed to load Directive: com.jeecg.core.biz.tag.select.dict.tag.SelectDictTag
        at org.apache.velocity.runtime.RuntimeInstance.loadDirective(RuntimeInstance.java:957)
        at org.apache.velocity.runtime.RuntimeInstance.initializeDirectives(RuntimeInstance.java:889)
        at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:252)
        at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:589)
        at org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:229)
        at org.apache.velocity.app.Velocity.init(Velocity.java:107)
        at org.jeecgframework.p3.core.util.plugin.ViewVelocity.afterPropertiesSet(ViewVelocity.java:71)
        ... 23 more
Caused by: java.lang.ClassNotFoundException: com.jeecg.core.biz.tag.select.dict.tag.SelectDictTag
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:190)
        at org.apache.velocity.util.ClassUtils.getClass(ClassUtils.java:77)
        at org.apache.velocity.util.ClassUtils.getNewInstance(ClassUtils.java:96)
        at org.apache.velocity.runtime.RuntimeInstance.loadDirective(RuntimeInstance.java:935)
        ... 29 more

 楼主| 发表于 2016-9-20 19:00:16 | 显示全部楼层
com.jeecg.core.biz.tag.select.dict.tag.SelectDictTag

这个类要到哪里去找? 谢谢
发表于 2016-12-8 11:37:57 | 显示全部楼层
                <dependency>
                        <groupId>org.p3framework</groupId>
                        <artifactId>jeecg-p3-bizcore</artifactId>
                        <version>1.0-SNAPSHOT</version>
                        <type>jar</type>
                </dependency>

这个依赖下载得了吗
发表于 2016-12-8 13:59:43 | 显示全部楼层
现在应该好了
发表于 2018-6-27 16:27:30 | 显示全部楼层
admin 发表于 2016-12-8 13:59
现在应该好了

您好,项目打包到服务器上运行时也遇到这个问题了。这个是什么原因导致的呢?我用的是3.7.5版本
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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