开发者社区> 问答> 正文

项目迁移 tomcat 报错,请大家帮忙??报错

大家好

有一个项目需要迁移 别人直接把网站和数据库打包发来,我这边配置了tomcat的环境,但是把网站解压缩后一直报错:

tomcat 启动的时候 报错 :SEVERE: Error listenerStart

访问网站的时候返回404 报错:

Jul 02, 2016 10:18:27 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jul 02, 2016 10:18:29 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init metho
d failed; nested exception is java.lang.NullPointerException: Cannot invoke method getAt() on null object
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: Cannot invoke method getAt() on null object
        ... 5 more


请教大家 这个错误怎么解决呢?

第一次接触这个环境和java,几乎不懂,请指教。

还有类似这种java的项目,我这么直接配置环境放上去可以么?

注(他们给的文件包里只有 class文件和jar文件 ,其他的就是网站图片啥的了 。)

多谢大家 请指教。

展开
收起
爱吃鱼的程序员 2020-06-09 13:33:42 699 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    Errorcreatingbeanwithname'pluginManager'definedinServletContextresource[/WEB-INF/applicationContext.xml]:Invocationofinitmetho

    dfailed;nestedexceptionisjava.lang.NullPointerException:CannotinvokemethodgetAt()onnullobject

    检查/WEB-INF/applicationContext.xml中的 pluginManagerbean, getAt()这个方法报空指针,日志截的不全,应该有报第几行报空指针,debug这个方法


    applicationContext.xml配置文件中的bean属性没有找到,项目没有解压部署好。springbean···
    2020-06-09 13:34:00
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载

相关实验场景

更多