我使用JBoss四个月来加载部署>中的CF项目。默认文件夹为.war。里面会有CFIDE,CFdocs,WEBINF和METAINF文件夹。现在我正在尝试迁移到新机器。我将整个JBoss文件夹复制到新机器并添加了所需的环境变量。但是我收到了这个错误。我看到一篇博客说要在windows等设置主机。我也试过了。但没有帮助。我是JBoss的新手。你能指点我正确的方向吗?
HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.lang.NullPointerException coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:102) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) java.lang.Thread.run(Thread.java:722) root cause java.lang.NullPointerException coldfusion.CfmServlet.init(CfmServlet.java:79) coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:94) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) java.lang.Thread.run(Thread.java:722) note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs. JBossWeb/2.0.1.GA
答案 0 :(得分:2)
我修正了下面的问题。
然后在web-inf文件夹中创建了jboss-web.xml,并提供了如下内容
<jboss-web>
<context-root>project name</context-root>
</jboss-web>
参考文献: