用Marven启动项目之后登陆就报这个错 PWC6033: Unable to compile class for JSP

qq_39947333 2017-12-04 10:14:52
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.iflytek.sgy:sqdj:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 383, column 12
[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter. @ line 286, column 20
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sqdj 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-jetty-plugin:6.1.10:run (default-cli) > test-compile @ sqdj >>>
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ sqdj ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] Copying 0 resource
[INFO] skip non existing resourceDirectory E:\KDXF\bsdt\hz-sqdj\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0:compile (default-compile) @ sqdj ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ sqdj ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\KDXF\bsdt\hz-sqdj\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0:testCompile (default-testCompile) @ sqdj ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< maven-jetty-plugin:6.1.10:run (default-cli) < test-compile @ sqdj <<<
[INFO]
[INFO]
[INFO] --- maven-jetty-plugin:6.1.10:run (default-cli) @ sqdj ---
[INFO] Configuring Jetty for project: sqdj
[INFO] Webapp source directory = E:\KDXF\bsdt\hz-sqdj\src\main\webapp
[INFO] web.xml file = E:\KDXF\bsdt\hz-sqdj\src\main\webapp\WEB-INF\web.xml
[INFO] jetty-env.xml = E:\KDXF\bsdt\hz-sqdj\jetty-env.xml
[INFO] Classes = E:\KDXF\bsdt\hz-sqdj\target\classes
[INFO] Property org.mortbay.jetty.Request.maxFormContentSize=20000000 was set
[INFO] Logging to org.slf4j.impl.MavenSimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
[INFO] Context path = /sqdj
[INFO] Tmp directory = determined at runtime
[INFO] Web defaults = E:\KDXF\bsdt\hz-sqdj\jetty.xml
[INFO] Web overrides = none
[INFO] Webapp directory = E:\KDXF\bsdt\hz-sqdj\src\main\webapp
[INFO] Starting jetty 6.1.10 ...
[INFO] jetty-6.1.10
[WARNING] Unknown realm: default
[INFO] No Transaction manager found - if your webapp requires one, please configure one.
[INFO] Initializing Spring root WebApplicationContext
[INFO] Initializing Spring FrameworkServlet 'sqdj'
[INFO] Started SelectChannelConnector@0.0.0.0:9090
[INFO] Started Jetty Server
[WARNING] Error compiling file: E:\KDXF\bsdt\hz-sqdj\target\work\jsp\org\apache\jsp\common\_404_jsp.java
[WARNING] EXCEPTION
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

PWC6197: An error occurred at line: 16 in the jsp file: /common/404.jsp
PWC6199: Generated servlet error:
Logger cannot be resolved to a type

PWC6197: An error occurred at line: 16 in the jsp file: /common/404.jsp
PWC6199: Generated servlet error:
LoggerFactory cannot be resolved

PWC6197: An error occurred at line: 16 in the jsp file: /common/404.jsp
PWC6199: Generated servlet error:
PrintWriter cannot be resolved to a type

PWC6197: An error occurred at line: 16 in the jsp file: /common/404.jsp
PWC6199: Generated servlet error:
PrintWriter cannot be resolved to a type


at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:107)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:280)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:350)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:411)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
at org.mortbay.jetty.servlet.Dispatcher.error(Dispatcher.java:135)
at org.mortbay.jetty.servlet.ErrorPageErrorHandler.handle(ErrorPageErrorHandler.java:121)
at org.mortbay.jetty.Response.sendError(Response.java:274)
at org.mortbay.jetty.Response.sendError(Response.java:340)
at org.springframework.web.servlet.DispatcherServlet.noHandlerFound(DispatcherServlet.java:1083)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:888)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.iflytek.sgy.base.filter.XssEscapeFilter.doFilter(XssEscapeFilter.java:58)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
...全文
271 3 点赞 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
哩哩啦啦’ 2017-12-04
你项目的pom文件里,plugin必须是唯一的,(groupId:artifactId),但是发现了有重复的,你看看是不是命名有重复
  • 打赏
  • 举报
回复
qq_39947333 2017-12-04
有能解决的大神帮忙看一下,挺急的!目前正在线等
  • 打赏
  • 举报
回复
qq_39947333 2017-12-04
这是哪里的问题呢?
  • 打赏
  • 举报
回复
相关推荐
发帖
Java SE
加入

6.2w+

社区成员

Java 2 Standard Edition
申请成为版主
帖子事件
创建了帖子
2017-12-04 10:14
社区公告
暂无公告