则怎样设置 jb8 里的 jdk的 classespath? 很急很急很急很急 在线。111

RedElephant 2003-11-07 02:50:14
谢谢
...全文
19 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
RedElephant 2003-11-07
  • 打赏
  • 举报
回复
apache 的配置如下

bundle the tag classes in a jar file. Make sure to include the taglib {library}.tld file located in the /WEB-INF directory
add the tag {library}.jar file to the CLASSPATH
copy the {library}.jar file to the /WEB-INF/lib directory
define the taglib element in the /WEB-INF/web.xml file. For example:
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/{library}</taglib-uri>
<taglib-location>/WEB-INF/{library}.tld</taglib-location>
</taglib>

define the tag extension in the jsp page. The <taglib-uri> and the uri directive must match. The prefix identifies the tags in the tag library within the jsp page. For example:
<%@ taglib uri="http://jakarta.apache.org/taglibs/{library}" prefix="x" %>
RedElephant 2003-11-07
  • 打赏
  • 举报
回复
错误如下

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax/servlet/jsp/tagext/TagLibraryValidator
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
.....


root cause

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
..............
RedElephant 2003-11-07
  • 打赏
  • 举报
回复
请问 class 和 lib 什么区别
仅仅是 lib 是整个文件架么?

另外
我是jstl没法使用
不知道哪里没配置好
dropship 2003-11-07
  • 打赏
  • 举报
回复
configue jdk,
添加你需要的java包

50,526

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧