全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: 大胡子
打印 上一主题 下一主题

完全linux版的dao剑无shuang方法发布

  [复制链接]
41#
发表于 2013-2-20 00:44:48 | 只看该作者
大胡子 发表于 2013-2-20 00:42
java是1.7的吗  

贴得好像不完整
  1. [root@DaoJian DAOJIAN]# java -version
  2. java version "1.7.0_13"
  3. Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
  4. Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
  5. [root@DaoJian DAOJIAN]# java -jar GPH.jar
  6. log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
  7. log4j:WARN Please initialize the log4j system properly.
  8. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  9. Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in file [/root/DAOJIAN/resources/applicationContext.xml]: Could not resolve placeholder 'jdbc.driverClassName'
  10.         at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:287)
  11.         at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
  12.         at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
  13.         at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)
  14.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
  15.         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
  16.         at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
  17.         at com.yayo.common.socket.context.ApplicationContext.initialize(ApplicationContext.java:22)
  18.         at com.yayo.common.socket.context.ApplicationContext.<init>(ApplicationContext.java:18)
  19.         at com.yayo.warriors.YayoDaemon.main(YayoDaemon.java:31)
复制代码
提示这个错误
42#
 楼主| 发表于 2013-2-20 01:02:29 | 只看该作者
atrong 发表于 2013-2-20 00:44
提示这个错误

jdbc.properties

正确配置了吗 能链接mysql吗  mysql什么版本。
43#
发表于 2013-2-20 01:09:26 | 只看该作者
解决了
44#
 楼主| 发表于 2013-2-20 01:13:11 | 只看该作者
atrong 发表于 2013-2-20 01:09
解决了

什么原因。
45#
发表于 2013-2-20 01:20:35 | 只看该作者
大胡子 发表于 2013-2-20 01:13
什么原因。

127.0.0.1 改成 localhost
46#
 楼主| 发表于 2013-2-20 01:21:25 | 只看该作者
atrong 发表于 2013-2-20 01:20
127.0.0.1 改成 localhost

。。。牛逼
47#
发表于 2013-2-21 02:29:04 | 只看该作者
www下是否要设置什么目录可写?
48#
 楼主| 发表于 2013-2-21 02:37:12 | 只看该作者
3389 发表于 2013-2-21 02:29
www下是否要设置什么目录可写?

不需要 555就OK
49#
发表于 2013-2-21 06:35:46 | 只看该作者
[root@g1 DAOJIAN]# java -jar GPH.jar
log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bootstrap': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.buffer.facade.BufferFacade com.yayo.warriors.Bootstrap.bufferFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bufferFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.map.facade.MapFacade com.yayo.warriors.module.buffer.facade.impl.BufferFacadeImpl.mapFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.event.EnterScreenReceiver com.yayo.warriors.module.map.facade.impl.MapFacadeImpl.enterScreenReceiver; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enterScreenReceiver': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.user.facade.UserFacade com.yayo.warriors.event.EnterScreenReceiver.userFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userFacadeImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.yayo.warriors.module.onlines.manager.OnlineStatisticManager com.yayo.warriors.module.user.facade.impl.UserFacadeImpl.onlineStatisticManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'onlineStatisticManagerImpl': Invocation of init method failed; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
        at
....

省略好多行  






运行不了
50#
发表于 2013-2-21 06:38:10 | 只看该作者
[root@g1 DAOJIAN]# java -version
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)


版本也是1.7的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-4-14 04:59 , Processed in 0.061329 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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