spring jetty intellj jetbrick 整合报错 求解决

2014-10-25 16:02:21.790::WARN:  Nested in org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.Compiler.<init>(Lorg/eclipse/jdt/internal/compiler/env/INameEnvironment;Lorg/eclipse/jdt/internal/compiler/IErrorHandlingPolicy;Lorg/eclipse/jdt/internal/compiler/impl/CompilerOptions;Lorg/eclipse/jdt/internal/compiler/ICompilerRequestor;Lorg/eclipse/jdt/internal/compiler/IProblemFactory;)V:

java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.Compiler.<init>(Lorg/eclipse/jdt/internal/compiler/env/INameEnvironment;Lorg/eclipse/jdt/internal/compiler/IErrorHandlingPolicy;Lorg/eclipse/jdt/internal/compiler/impl/CompilerOptions;Lorg/eclipse/jdt/internal/compiler/ICompilerRequestor;Lorg/eclipse/jdt/internal/compiler/IProblemFactory;)V

at jetbrick.template.compiler.JdtCompiler.generateJavaClass(JdtCompiler.java:51)

at jetbrick.template.compiler.JavaCompiler.compile(JavaCompiler.java:58)

at jetbrick.template.JetTemplate.compileAndLoadClass(JetTemplate.java:157)

at jetbrick.template.JetTemplate.<init>(JetTemplate.java:65)

at jetbrick.template.JetEngine$ConcurrentTemplateCache.doGetValue(JetEngine.java:318)

at jetbrick.template.JetEngine$ConcurrentTemplateCache.doGetValue(JetEngine.java:314)

at jetbrick.template.utils.ConcurrentCache.get(ConcurrentCache.java:44)

at jetbrick.template.JetEngine.getTemplate(JetEngine.java:116)

at jetbrick.template.web.springmvc.JetTemplateView.renderMergedTemplateModel(JetTemplateView.java:37)

at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)

at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)

at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)

at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:920)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:816)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:801)

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:712)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:313)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)

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:381)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

2014-10-25 16:02:21.792::WARN:  /chapter1/admin/login.html

java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.Compiler.<init>(Lorg/eclipse/jdt/internal/compiler/env/INameEnvironment;Lorg/eclipse/jdt/internal/compiler/IErrorHandlingPolicy;Lorg/eclipse/jdt/internal/compiler/impl/CompilerOptions;Lorg/eclipse/jdt/internal/compiler/ICompilerRequestor;Lorg/eclipse/jdt/internal/compiler/IProblemFactory;)V

at jetbrick.template.compiler.JdtCompiler.generateJavaClass(JdtCompiler.java:51)

at jetbrick.template.compiler.JavaCompiler.compile(JavaCompiler.java:58)

at jetbrick.template.JetTemplate.compileAndLoadClass(JetTemplate.java:157)

at jetbrick.template.JetTemplate.<init>(JetTemplate.java:65)

at jetbrick.template.JetEngine$ConcurrentTemplateCache.doGetValue(JetEngine.java:318)

at jetbrick.template.JetEngine$ConcurrentTemplateCache.doGetValue(JetEngine.java:314)

at jetbrick.template.utils.ConcurrentCache.get(ConcurrentCache.java:44)

at jetbrick.template.JetEngine.getTemplate(JetEngine.java:116)

at jetbrick.template.web.springmvc.JetTemplateView.renderMergedTemplateModel(JetTemplateView.java:37)

at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)

at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)

at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208)

at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:920)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:816)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:801)

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:712)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:313)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)

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:381)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

 

 原因是缺少个包加上以下依赖

        <dependency>

            <groupId>org.eclipse.jdt.core.compiler</groupId>

            <artifactId>ecj</artifactId>

            <version>3.3.1</version>

        </dependency

 

 

 

你可能感兴趣的:(jetbrick)