weblogic解析JSP文件提示标签错误

iq717 2009-04-11 09:28:38
Compilation of JSP File '/login.jsp' failed:
--------------------------------------------------------------------------------

login.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
^----^
login.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
^----^


以前页面运行在tomcat里完全没有问题,现在换成weblogic就不行了,百度了一下,有种解决办法是把weblogic.xml里的 <wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>
true改为false就行
但是我找了weblogic里所有的weblogic.xml没有一个有<wls:container-descriptor> 这对标签的啊,请教高手帮忙解决这个问题,谢谢!
...全文
1257 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiulei825520 2010-05-28
  • 打赏
  • 举报
回复
非常感谢,按你的说法搞定了
iq717 2009-04-11
  • 打赏
  • 举报
回复
我以前那个工程用的是J2EE现在这个是JAVAEE,这个没有关系吧
什么都不能 2009-04-11
  • 打赏
  • 举报
回复
不正常,你要将standard.jar 和jstl.jar 考到lib下,将core.tld,fn.tld...考到web-inf下
在web.xml中配置taglib uri和location
不想多写了,具体看这个把
http://hi.baidu.com/seething/blog/item/a98df003919cec773912bb54.html
iq717 2009-04-11
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>LoginAction</servlet-name>
<servlet-class>Servlet.LoginAction</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>LoginAction</servlet-name>
<url-pattern>/servlet/LoginAction</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>


我的WEB-INF下的lib文件夹是空的,这正常吗?tld是哪个?我是新手,不太懂,请高手指教!
什么都不能 2009-04-11
  • 打赏
  • 举报
回复
这和weblogic有什么关系,真是奇怪了.我做了几年weblogic了mvc 用的spring的 标签库用jstl的一直没有问题
首先确保jar包是否已经导入工程了,tld是否已经存在了
如果用uri访问tld确保web.xml配置了tld的uri
iq717 2009-04-11
  • 打赏
  • 举报
回复
weblogic9.2
xinghao_1984 2009-04-11
  • 打赏
  • 举报
回复
你用的是weblogic8吗?
weblogic8不支持jstl。
什么都不能 2009-04-11
  • 打赏
  • 举报
回复
这不是一样吗?j2ee升级了一下成了javaee 换了个名字而已

81,117

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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