Sakai 学习社区

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

sakai11启动报错2

[复制链接]

39

主题

71

帖子

778

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
778
发表于 2017-2-20 17:42:14 | 显示全部楼层 |阅读模式
环境win7

jdk1.8.0_25
sakai-bupt-11-SNAPSHOTmysql5.6

错误:
catalina中报:
  1. 20-Feb-2017 16:35:15.968 INFO [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org/sakaiproject/config/kernel.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
  2. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/sakaiproject/config/kernel.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
  3.         at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1327)
  4.         at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1080)
  5.         at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:166)
复制代码


localhost.2017-02-20.log中是:
  1. 20-Feb-2017 16:34:30.537 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
  2. 20-Feb-2017 16:34:44.702 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. 20-Feb-2017 16:34:50.579 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
  22. 20-Feb-2017 16:34:52.507 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
  23. 20-Feb-2017 16:35:00.265 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:\project\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)
复制代码




回复

使用道具 举报

39

主题

71

帖子

778

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
778
 楼主| 发表于 2017-2-21 15:33:15 | 显示全部楼层
原因是数据库的问题。 数据库的问题无外乎连不上,或者没权限。请大家认真检查配置中的地址、端口号、数据库名,以及用户名和密码。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2019-9-16 08:44 , Processed in 0.058586 second(s), 7 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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