JavaShop网上商城技术支持论坛

 找回密码
 会员注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

好友

主题
发表于 2012-7-27 15:55:49 | 查看: 7503| 回复: 4
本帖最后由 showuser 于 2012-7-27 16:27 编辑

错误截图: QQ图片20120727154901.jpg tomcat 的  reaload  功能我已经关掉;
这次发生这个错误的原因是:  我安装成功后,直接删除了所有的表,然后导入了我之前修改过的数据表(也是javashop的表,不过自己修改了测试数据),代码一点都没有动!

logs见附件: logs.zip (107.05 KB, 下载次数: 2499)
发表于 2012-7-27 15:59:58
你发的日志中没有eop目录,可以修改log4j的配置文件,指定到你的日志目录,然后使问题重现,把日志 再发上来
发表于 2012-7-27 16:44:12
日志中明显存在大量类找不到的错误,请仔细检查,类和jar的部署。

  1. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.enation.app.base.core.action.PluginAction] for bean with name 'pluginAction' defined in URL [jar:file:/C:/Tomcat/webapps/ROOT/WEB-INF/lib/shop.jar!/spring/shopActionContext.xml]; nested exception is java.lang.ClassNotFoundException: com.enation.app.base.core.action.PluginAction
  2.         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
  3.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
  4.         at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1174)
  5.         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
  6.         at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:506)
  7.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:363)
  8.         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
  9.         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
  10.         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
  11.         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
  12.         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
  13.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
  14.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
  15.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
  16.         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
  17.         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
  18.         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
  19.         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
  20.         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
  21.         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
  22.         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
  23.         at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
  24.         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
  25.         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
  26.         at org.apache.catalina.core.StandardService.start(StandardService.java:525)
  27.         at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
  28.         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
  29.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  30.         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  31.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  32.         at java.lang.reflect.Method.invoke(Unknown Source)
  33.         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  34.         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  35. Caused by: java.lang.ClassNotFoundException: com.enation.app.base.core.action.PluginAction
  36.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
  37.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
  38.         at org.springframework.util.ClassUtils.forName(ClassUtils.java:242)
  39.         at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:383)
  40.         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1135)
  41.         ... 32 more
  42. [DEBUG] 2012-07-27 04:19:45,035 [main] [org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType:242]  Ignoring bean class loading failure for bean 'goodsListSetting'
  43. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.enation.app.shop.widget.setting.GoodsListSetting] for bean with name 'goodsListSetting' defined in URL [jar:file:/C:/Tomcat/webapps/ROOT/WEB-INF/lib/shop.jar!/spring/shopActionContext.xml]; nested exception is java.lang.ClassNotFoundException: com.enation.app.shop.widget.setting.GoodsListSetting
  44.         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
  45.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
  46.         at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1174)
  47.         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
  48.         at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:506)
  49.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:363)
  50.         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
  51.         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
  52.         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
  53.         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
  54.         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
  55.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
  56.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
  57.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
  58.         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
  59.         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
  60.         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
  61.         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
  62.         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
  63.         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
  64.         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
  65.         at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
  66.         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
  67.         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
  68.         at org.apache.catalina.core.StandardService.start(StandardService.java:525)
  69.         at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
  70.         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
  71.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  72.         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  73.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  74.         at java.lang.reflect.Method.invoke(Unknown Source)
  75.         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  76.         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  77. Caused by: java.lang.ClassNotFoundException: com.enation.app.shop.widget.setting.GoodsListSetting
  78.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
  79.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
  80.         at org.springframework.util.ClassUtils.forName(ClassUtils.java:242)
  81.         at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:383)
  82.         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1135)
  83.         ... 32 more
  84. [DEBUG] 2012-07-27 04:19:45,644 [main] [org.springframework.beans.factory.support.DefaultListableBeanFactory.getSingleton:213]  Creating shared instance of singleton bean 'propertyConfigurer'
  85. [DEBUG] 2012-07-27 04:19:45,691 [main] [org.springframework.beans.factory.support.DefaultListableBeanFactory.run:383]  Creating instance of bean 'propertyConfigurer'
  86. [DEBUG] 2012-07-27 04:19:45,722 [main] [org.springframework.beans.factory.support.DefaultListableBeanFactory.doCreateBean:459]  Eagerly caching bean 'propertyConfigurer' to allow for resolving potential circular references
  87. [DEBUG] 2012-07-27 04:19:45,754 [main] [org.springframework.beans.factory.support.DefaultListableBeanFactory.run:411]  Finished creating instance of bean 'propertyConfigurer'
  88. [INFO] 2012-07-27 04:19:45,754 [main] [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.loadProperties:178]  Loading properties file from URL [file:/C:/Tomcat/webapps/ROOT/WEB-INF/classes/config/jdbc.properties]
  89. [DEBUG] 2012-07-27 04:19:45,800 [main] [org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType:242]  Ignoring bean class loading failure for bean 'pluginAction'
  90. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.enation.app.base.core.action.PluginAction] for bean with name 'pluginAction' defined in URL [jar:file:/C:/Tomcat/webapps/ROOT/WEB-INF/lib/shop.jar!/spring/shopActionContext.xml]; nested exception is java.lang.ClassNotFoundException: com.enation.app.base.core.action.PluginAction
  91.         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
  92.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
  93.         at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1174)
  94.         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:222)
  95.         at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:564)
  96.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:366)
  97.         at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
  98.         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
  99.         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
  100.         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
  101.         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
  102.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
  103.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
  104.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
  105.         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
  106.         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
  107.         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
  108.         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
  109.         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
  110.         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
  111.         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
  112.         at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
  113.         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
  114.         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
  115.         at org.apache.catalina.core.StandardService.start(StandardService.java:525)
  116.         at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
  117.         at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
  118.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  119.         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  120.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  121.         at java.lang.reflect.Method.invoke(Unknown Source)
  122.         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  123.         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  124. Caused by: java.lang.ClassNotFoundException: com.enation.app.base.core.action.PluginAction
  125.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
  126.         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
  127.         at org.springframework.util.ClassUtils.forName(ClassUtils.java:242)
  128.         at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:383)
  129.         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1135)
  130.         ... 32 more
复制代码
发表于 2012-7-27 21:37:30
回复 3# enation
我觉得这个不是缺少类 或者jar的问题,因为我重新导回刚安装时的数据库,又没有问题了,一切都正常,页面访问也没有,也没报一个错。是不是因为我自己修改的那一份测试数据的问题呢?   在加载的时候,是不是要查询某些表呢?  比如组件配置信息、什么的
发表于 2012-7-30 22:13:47
目前看到的错误信息和数据库没有关系 ,是你部署的程序缺少类了。
您需要登录后才可以回帖 登录 | 会员注册

Archiver|手机版|小黑屋|java电商系统b2b2c源码

GMT+8, 2021-11-30 07:09 , Processed in 0.110125 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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