JSTL soutien dans Weblogic
Im essayant de commencer à travailler avec Java EE à l'aide de Weblogic, et je ne peux pas faire de balises JSTL de travail, en plus simple de code j'obtiens les erreurs suivantes lors du déploiement de mon application:
index.jsp:1:4: Pas d'étiquette de bibliothèque pourrait être
trouvé avec cette URI. Causes possibles
peut être que l'URI est incorrecte, ou
qu'il y avait des erreurs lors de l'analyse
de la .tld fichier. <%@taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core"%>^----^ index.jsp:1:4: Pas de tag
la bibliothèque a pu être trouvé avec cette URI.
Causes possibles pourrait être que l'URI
est incorrecte, ou qu'il y avait
erreurs lors de l'analyse de l' .tld
fichier. <%@taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core"%>^----^ index.jsp:2:4: Pas de tag
la bibliothèque a pu être trouvé avec cette URI.
Causes possibles pourrait être que l'URI
est incorrecte, ou qu'il y avait
erreurs lors de l'analyse de l' .tld
fichier. <%@taglib prefix="sql"
uri="http://java.sun.com/jsp/jstl/sql"%>^----^ index.jsp:2:4: Pas de tag
la bibliothèque a pu être trouvé avec cette URI.
Causes possibles pourrait être que l'URI
est incorrecte, ou qu'il y avait
erreurs lors de l'analyse de l' .tld
fichier. <%@taglib prefix="sql"
uri="http://java.sun.com/jsp/jstl/sql"%>
J'ai téléchargé taglib fichiers à partir de ce site web: http://archive.apache.org/dist/jakarta/taglibs/standard/
et mettre deux pots(pots de standard.jar et jstl.jar) sous mon répertoire WEB-INF. J'ai aussi mis là tous les tld des fichiers à partir de la arcihve.
Ater que j'ai essayé de référencement dans mon web.xml fichier et après validation, j'obtiens l'erreur suivante:
De validation XML commencé. La vérification de
fichier:/C:/Users/Brodyaga/Documents/NetBeansProjects/Eshop1/web/WEB-INF/web.xml...
Entité référencée à
"nbres:/org/netbeans/modules/j2ee/ddloaders/catalogue/ressources/XMLSchema.dtd".
Entité référencée à
"nbres:/org/netbeans/modules/j2ee/ddloaders/catalogue/ressources/les types de données.dtd".
cvc-complexe-type.2.4.r: Invalides
le contenu a été trouvé en commençant par
élément "taglib'. L'un des
'{"http://java.sun.com/xml/ns/javaee":description,
"http://java.sun.com/xml/ns/javaee":-nom d'affichage,
"http://java.sun.com/xml/ns/javaee":l'icône,
"http://java.sun.com/xml/ns/javaee":distribuable,
"http://java.sun.com/xml/ns/javaee":context-param,
"http://java.sun.com/xml/ns/javaee":filtre,
"http://java.sun.com/xml/ns/javaee":filter-mapping,
"http://java.sun.com/xml/ns/javaee":à l'écoute,
"http://java.sun.com/xml/ns/javaee":servlet,
"http://java.sun.com/xml/ns/javaee":servlet-mapping,
"http://java.sun.com/xml/ns/javaee":session-config,
"http://java.sun.com/xml/ns/javaee":mime-cartographie,
"http://java.sun.com/xml/ns/javaee":welcome-file-list,
"http://java.sun.com/xml/ns/javaee":erreur-page,
"http://java.sun.com/xml/ns/javaee":jsp-config,
"http://java.sun.com/xml/ns/javaee":security-constraint,
"http://java.sun.com/xml/ns/javaee":login-config,
"http://java.sun.com/xml/ns/javaee":sécurité-rôle,
"http://java.sun.com/xml/ns/javaee":env-entrée,
"http://java.sun.com/xml/ns/javaee":ejb-ref,
"http://java.sun.com/xml/ns/javaee":ejb-local-ref,
"http://java.sun.com/xml/ns/javaee":service-ref,
"http://java.sun.com/xml/ns/javaee":resource-ref,
"http://java.sun.com/xml/ns/javaee":ressource-env-ref,
"http://java.sun.com/xml/ns/javaee":message-destination-ref,
"http://java.sun.com/xml/ns/javaee":la persistance du contexte ref,
"http://java.sun.com/xml/ns/javaee":la persistance de l'unité-ref,
"http://java.sun.com/xml/ns/javaee":post-construction,
"http://java.sun.com/xml/ns/javaee":pré-détruire,
"http://java.sun.com/xml/ns/javaee":message-destination,
"http://java.sun.com/xml/ns/javaee":paramètres de codage-cartographie-liste}'
est prévu. [12] la validation XML
fini.
Mon web.xml va comme suit:
<?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">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
<taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
<taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
<taglib-location>/WEB-INF/x-rt.tld</taglib-location>
</taglib>
</web-app>
Je crois que le schéma xml spécifié dans le début de web.xml ne pas permettre taglib balises, mais je n'ai aucune idée de ce schéma que je devrais utiliser.
J'aimerais vraiment apprectiate certains étape par étape tutoriel pour ajouter de la jstl le soutien de weblogic. Merci à l'avance.
Mise à JOUR
La suppression de ces <taglib>'partir de web.xml se retrouve avec des erreurs comme suit:
index.jsp:18:14: La balise de classe de gestionnaire
n'a pas été trouvé
"org.apache.taglibs.standard.la balise.rt.de base.ForEachTag".
et par le contenu de c.tld fichier c'est clair que weblogic comprend que forEach correspond à org.apache.taglibs.standard.la balise.rt.de base.ForEachTag, mais ne peut pas trouver la classe. Mais je peux trouver manuellement cette classe dans standard.jar.
11g Release 1 (11.1.1.4)
OriginalL'auteur Anton | 2011-03-24
Vous devez vous connecter pour publier un commentaire.
Vous devez inclure à la fois jstl.jar et standard.jar dans le WEB-INF/lib du dossier, pas dans le dossier WEB-INF. Je suppose que ça va résoudre ce problème.
j'ai le même problème et j'ai fait en sorte que j'ai ces fichiers dans le dossier lib, mais encore, il arrive...
OriginalL'auteur mmjmanders
ajouter la bibliothèque-ref dans weblogic.xml:
de la bibliothèque jstl est déployée par défaut dans WebLogic, donc pas de soucis de ce côté.
OriginalL'auteur Pierluigi Vernetto