开发者社区> 问答> 正文

tomcat7,maven运行出错,求帮助? 400 报错

tomcat7,maven运行出错,求帮助? 400 报错          <plugin>
             <groupId>org.apache.tomcat.maven</groupId>
             <artifactId>tomcat7-maven-plugin</artifactId>
             <version>2.2</version>
             <configuration>
                 <path>/test</path>
             </configuration>

         </plugin>

jsp页面:index.jsp

<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<head>
</head>

<body>
<h2>my test</h2>
</body>
</html>


启动:mvn tomcat7:run


访问index.jsp,报错

十一月 02, 2014 2:11:26 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [spring] in context with path [/test] threw exception [java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at org.apache.jsp.WEB_002dINF.views.index_jsp._jspInit(index_jsp.java:31)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:49)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:180)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)


展开
收起
爱吃鱼的程序员 2020-06-04 11:51:40 431 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    有个maven cargo插件你了解下######我只用tomcat插件运行,不用部署######你用户名密码哪里配置的?######用户名密码?没配啊,官网没说配啊,我只用maven的tomcat插件运行

    2020-06-04 16:39:47
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像