Sakai 学习社区

 找回密码
 立即注册
查看: 1329|回复: 1

sakai11启动报错

[复制链接]

39

主题

71

帖子

778

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
778
发表于 2016-7-25 18:21:26 | 显示全部楼层 |阅读模式

环境:win7
tomcat8
java1.8.0_101
mysql 6

localhost.2016-07-25.log中报错,如下:

  1. 25-Jul-2016 12:53:13.853 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
  2. 25-Jul-2016 12:53:20.726 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter sakai.request
  3. java.lang.NullPointerException
  4.         at org.sakaiproject.util.RequestFilter.init(RequestFilter.java:657)
  5.         at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
  6.         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
  7.         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
  8.         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4573)
  9.         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5188)
  10.         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  11.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
  12.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
  13.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
  14.         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917)
  15.         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701)
  16.         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  17.         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  18.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  19.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  20.         at java.lang.Thread.run(Thread.java:745)

  21. 25-Jul-2016 12:53:25.184 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
  22. 25-Jul-2016 12:53:34.899 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
  23. 25-Jul-2016 12:53:36.162 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.sakaiproject.util.SakaiContextLoaderListener
  24. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sakai-PermissionChecker' defined in class path resource [conf/sakai-applicationContext.xml]: Cannot resolve reference to bean 'org.sakaiproject.authz.api.SecurityService' while setting bean property 'securityService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.authz.api.SecurityService' defined in file [E:\Sakai\sakai-bupt-11-SNAPSHOT\components\sakai-kernel-component\WEB-INF\authz-components.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
  25.         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
  26.         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
  27.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1475)
  28.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)
  29.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
  30.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
  31.         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
  32.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
复制代码


回复

使用道具 举报

39

主题

71

帖子

778

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
778
 楼主| 发表于 2016-7-25 18:27:44 | 显示全部楼层
是数据库的问题。sakai-bupt-11-SNAPSHOT自带的mysql驱动是mysql-connector-java-5.1.36.jar。 在mysql5.1上测试没问题。 sakai官方推荐5.6. 如果使用其他版本的数据库,请安装相应版本的驱动。
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|Sakai 开源社区 ( 京ICP备16051938号-2 京公网安备 11010802023546号

GMT+8, 2019-9-16 08:46 , Processed in 0.065789 second(s), 10 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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