JAVA常见错误收集

1.javax.naming.NameNotFoundException: Name java:comp is not bound in this Context

=====>

--这是在初始化context时(Context envCtx = (Context) ctx.lookup("java:comp/env");)抛出的异常;解决方法是把工程/WEB-INF/lib下面naming-common.jar,naming-factory.jar,naming-resources.jar三个jar包删除;

2. unable to complie class for jsp

===>
是因为TOOL.JAR   SERVLET_API.JAR与TOMCAT 有冲突。


3.org.Apache.struts.taglib.html.MessagesTei


关键字: struts
tomcat5.5 中 JasperException: Failed to load or instantiate TagExtraInfo class:org.Apache.struts.taglib.html.MessagesTei

tomcat5.5 中 JasperException: Failed to load or instantiate TagExtraInfo class:org.Apache.struts.taglib.html.MessagesTei

JasperException: Failed to load or instantiate TagExtraInfo class: com.acme.tag.IterateTEI

等等...

==>

原因是 web-inf/lib/下出现了jsp-api.jar和,serverlet-api.jar,把它们删除,然后重新启动 web应用即可。

 

posted @ 2010-07-17 20:50  夜色狼  阅读(325)  评论(0编辑  收藏  举报