SSH + jfreechart 的时候,启动tomcat,报错显示找不到CategoryData这个类..但是明明导入了包的
报错信息为:严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springfr...
报错信息为:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pssVisBarAction' defined in file [F:\EPSSproject\学长代码JAVA\.metadata\.me_tcat\webapps\coSys\WEB-INF\classes\applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
............................................(此后应该没有有,省略)
我的xml定义:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="actionPss" namespace="/actionPss"
extends="jfreechart-default">
<action name="pssVisBarAction" class="pssVisBarAction">
<result type="chart">
<param name="width">600</param>
<param name="height">450</param>
</result>
</action>
</package>
</struts> 展开
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pssVisBarAction' defined in file [F:\EPSSproject\学长代码JAVA\.metadata\.me_tcat\webapps\coSys\WEB-INF\classes\applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
............................................(此后应该没有有,省略)
我的xml定义:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="actionPss" namespace="/actionPss"
extends="jfreechart-default">
<action name="pssVisBarAction" class="pssVisBarAction">
<result type="chart">
<param name="width">600</param>
<param name="height">450</param>
</result>
</action>
</package>
</struts> 展开
2个回答
2015-05-12
展开全部
看样子,应该是plugin的配置问题
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询