2013-07-02 209 views
3

我剛剛嘗試Spring.Downloaded STS for Eclipse.Created Spring MVC模板項目。但是當我運行helloworld web應用程序時,我在我的瀏覽器中收到以下錯誤消息:
`messageTomcat異常:HTTP狀態500

description服務器遇到內部錯誤(),導致它無法完成此請求。

例外

org.apache.jasper.JasperException: /WEB-INF/views/home.jsp(1,63) Unable to read TLD "META-INF/c.tld" from JAR file "file:/usr/local/development/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MySpringHelloWorld/WEB-INF/lib/jstl-1.2.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV 
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) 
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) 
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:218) 
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:183) 
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386) 
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:450) 
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1397) 
    org.apache.jasper.compiler.Parser.parse(Parser.java:130) 
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) 
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) 
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185) 
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:347) 
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) 
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) 
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) 
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326) 
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) 
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
    org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) 
    org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262) 
    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180) 
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) 
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) 
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) 
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 

有人能指出我錯過了什麼?

回答

1

談到的依賴

javax.servlet.jsp JSP-API

在pom.xml中產生

解決了這個問題對我來說。

+0

我註釋掉了javax.servlet.jsp:但錯誤meassage仍然存在!!! – user2537987

+0

可以請你發佈你的pom.xml嗎? – roshan

+0

http://pastebin.com/q6mHLryD – user2537987

相關問題