New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在tomcat7下报错,jetty中运行正常,jstl相关的包已经添加了,请问是什么原因呢?可能是mesh或Shiro的原因吧。 #190

Closed
trenhui opened this Issue Feb 26, 2013 · 4 comments

Comments

Projects
None yet
6 participants
@trenhui

trenhui commented Feb 26, 2013

java.lang.NullPointerException
at org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:149)
at org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:105)
at org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:949)
at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1916)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1884)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:215)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:431)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)
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:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:65)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

@yao00jun

This comment has been minimized.

Show comment
Hide comment
@yao00jun

yao00jun Jun 13, 2013

同问啊~~~

yao00jun commented Jun 13, 2013

同问啊~~~

@gumao1982

This comment has been minimized.

Show comment
Hide comment
@gumao1982

gumao1982 Aug 1, 2013

我也碰到相同的问题了,你看看你tomcat工作目录中的lib下是不是有jetty的相关jar包,类似org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar这个,我记得一共有4个,删除了就好了。

gumao1982 commented Aug 1, 2013

我也碰到相同的问题了,你看看你tomcat工作目录中的lib下是不是有jetty的相关jar包,类似org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar这个,我记得一共有4个,删除了就好了。

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Sep 22, 2013

Collaborator

@trenhui ,gumao1982的方案可行否?

Collaborator

ghost commented Sep 22, 2013

@trenhui ,gumao1982的方案可行否?

@zzgf16

This comment has been minimized.

Show comment
Hide comment
@zzgf16

zzgf16 Jan 3, 2014

用了江南白衣的springside,jetty下确实可以运行,tomcat下就报上面的错误。
我在项目的pom.xml中的jetty-jsp包的声明修改了一下,排除了两个jar包就好了。如下:
<-dependency>
<-groupId>org.eclipse.jetty<-/groupId>
<-artifactId>jetty-jsp<-/artifactId>
<-version>${jetty.version}<-/version>
<-scope>test<-/scope>
<-exclusions>
<-exclusion>
<-groupId>org.eclipse.jetty.orbit<-/groupId>
<-artifactId>org.apache.jasper.glassfish<-/artifactId>
<-/exclusion>
<-exclusion>
<-groupId>org.eclipse.jetty.orbit<-/groupId>
<-artifactId>org.apache.taglibs.standard.glassfish<-/artifactId>
<-/exclusion>
<-/exclusions>
<-/dependency>
可能jetty的taglibs包中加载过程中TLV类的初始化参数与tomcat的taglibs加载过程不一致,导致在tomcat下执行validate方法的时候报空指针。
XML代码中请把-去掉即可,因为不加-的话github回帖就不显示标签,我不知道如何解决,如果谁知道请回复一下,谢谢。

zzgf16 commented Jan 3, 2014

用了江南白衣的springside,jetty下确实可以运行,tomcat下就报上面的错误。
我在项目的pom.xml中的jetty-jsp包的声明修改了一下,排除了两个jar包就好了。如下:
<-dependency>
<-groupId>org.eclipse.jetty<-/groupId>
<-artifactId>jetty-jsp<-/artifactId>
<-version>${jetty.version}<-/version>
<-scope>test<-/scope>
<-exclusions>
<-exclusion>
<-groupId>org.eclipse.jetty.orbit<-/groupId>
<-artifactId>org.apache.jasper.glassfish<-/artifactId>
<-/exclusion>
<-exclusion>
<-groupId>org.eclipse.jetty.orbit<-/groupId>
<-artifactId>org.apache.taglibs.standard.glassfish<-/artifactId>
<-/exclusion>
<-/exclusions>
<-/dependency>
可能jetty的taglibs包中加载过程中TLV类的初始化参数与tomcat的taglibs加载过程不一致,导致在tomcat下执行validate方法的时候报空指针。
XML代码中请把-去掉即可,因为不加-的话github回帖就不显示标签,我不知道如何解决,如果谁知道请回复一下,谢谢。

@calvin1978 calvin1978 closed this Nov 7, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment