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> 这对标签的啊,请教高手帮忙解决这个问题,谢谢!

解决方案 »

  1.   

    你用的是weblogic8吗?
    weblogic8不支持jstl。
      

  2.   

    这和weblogic有什么关系,真是奇怪了.我做了几年weblogic了mvc 用的spring的 标签库用jstl的一直没有问题
    首先确保jar包是否已经导入工程了,tld是否已经存在了
    如果用uri访问tld确保web.xml配置了tld的uri
      

  3.   

    <?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是哪个?我是新手,不太懂,请高手指教!
      

  4.   

    不正常,你要将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
      

  5.   

    我以前那个工程用的是J2EE现在这个是JAVAEE,这个没有关系吧
      

  6.   

    这不是一样吗?j2ee升级了一下成了javaee 换了个名字而已