[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Declaring taglibs using <taglib> and using corresponding .tld in the library.

Asked by letsbedecent in BEA WebLogic Application Server, Extensible HTML (XHTML)

Tags: find, cannot, declaration

Hello,

 The following is the error i got after trying to run an application using JSTL tags, and Struts. See below all the files for an explanation.....

<30-May-2003 14:35:54 o'clock BST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<30-May-2003 14:35:54 o'clock BST> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>
<30-May-2003 14:46:22 o'clock BST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\bea\user_projects\domains\mydomain\applications', Module: 'StudentManag
ement']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of elem
ent 'web-app'. (line 2, column 221).>
<30-May-2003 14:46:30 o'clock BST> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=20643024,name=StudentManagement,context-path=/)]: Deployment descripto
r "jar:file:C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_StudentManagement_StudentManagement\jarfiles\WEB-INF\lib\standar
d.jar!/META-INF/c.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 19).>
<30-May-2003 14:46:30 o'clock BST> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=20643024,name=StudentManagement,context-path=/)]: Deployment descripto
r "jar:file:C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_StudentManagement_StudentManagement\jarfiles\WEB-INF\lib\standar
d.jar!/META-INF/permittedTaglibs.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 19).
>
<30-May-2003 14:46:30 o'clock BST> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=20643024,name=StudentManagement,context-path=/)]: Deployment descripto
r "jar:file:C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_StudentManagement_StudentManagement\jarfiles\WEB-INF\lib\standar
d.jar!/META-INF/sql.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 19).>
<30-May-2003 14:46:30 o'clock BST> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=20643024,name=StudentManagement,context-path=/)]: Deployment descripto
r "jar:file:C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_StudentManagement_StudentManagement\jarfiles\WEB-INF\lib\standar
d.jar!/META-INF/scriptfree.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 19).>
<30-May-2003 14:46:31 o'clock BST> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=20643024,name=StudentManagement,context-path=/)]: Deployment descripto
r "jar:file:C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_StudentManagement_StudentManagement\jarfiles\WEB-INF\lib\standar
d.jar!/META-INF/fmt.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 19).>
<30-May-2003 14:46:31 o'clock BST> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=20643024,name=StudentManagement,context-path=/)]: Deployment descripto
r "jar:file:C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_StudentManagement_StudentManagement\jarfiles\WEB-INF\lib\standar
d.jar!/META-INF/fn.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 17).>
<30-May-2003 14:46:31 o'clock BST> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=20643024,name=StudentManagement,context-path=/)]: Deployment descripto
r "jar:file:C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_StudentManagement_StudentManagement\jarfiles\WEB-INF\lib\standar
d.jar!/META-INF/x.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 19).>
30-May-2003 14:46:31 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
30-May-2003 14:46:31 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
30-May-2003 14:46:31 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='com.StudentManagement.Action.ApplicationResources', returnNull=true


WEB.XML FILE :
------------------

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
   <servlet>
      <servlet-name>action</servlet-name>
      <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
      <init-param>
         <param-name>config</param-name>
         <param-value>/WEB-INF/struts-config.xml</param-value>
      </init-param>
      <init-param>
         <param-name>debug</param-name>
         <param-value>3</param-value>
      </init-param>
      <init-param>
         <param-name>detail</param-name>
         <param-value>3</param-value>
      </init-param>
      <load-on-startup>0</load-on-startup>
   </servlet>
   <servlet-mapping>
      <servlet-name>action</servlet-name>
      <url-pattern>*.do</url-pattern>
   </servlet-mapping>
</web-app>

WEBLOGIC.XML
-----------------
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE weblogic-web-app
  PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
  "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

<weblogic-web-app>
</weblogic-web-app>


STRUTS-CONFIG.XML
-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
   <data-sources />
   <form-beans >
      <form-bean name="LoginForm" type="com.StudentManagement.Form.LoginForm" />
     

   </form-beans>

   <global-exceptions />
   <global-forwards />
   <action-mappings >
      <action
         attribute="loginForm"
         input="/login.jsp"
         name="LoginForm"
         path="/loginAction"
         scope="request"
         type="com.StudentManagement.Action.LoginAction">
         <forward name="success" path="/loginSuccess.jsp" />
         <forward name="failure" path="/login.jsp" />
      </action>

   </action-mappings>

   <message-resources parameter="com.StudentManagement.Action.ApplicationResources" />
</struts-config>

I FOUND OUT THAT THIS ERROR IS BECAUSE I AM NOT DECLARING ALL THE .TLD'S THAT I AM USING IN THE WEB.XML FILE USING <TAGLIB> TAGS. FOR EXAMPLE I HAD C.TLD (JSTL TAG) IN THE LIB DIRECTORY BUT I DID NOT DECLARE IT IN THE WEB.XML FILE BECAUSE I WAS NOT USING IT AS YET. IS IT A RULE THAT ALL .TLD'S IN THE LIB FOLDER SHOULD HAVE CORRESPONDING <TAGLIB> ENTRIES ???

2) I WAS USING  

   <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

THIS KIND OF DECLARATION IN MY JSP ( SO SHOULD I STILL HAVE THE .TLD FILES IN THE LIB FOLDER --- I GUESS NOT IS IT ?? ), OF COURSE NOW I CHANGED THEM TO USE THE .TLD IN MY WEB-INF\lib FOLDER. BECAUSE IN TOMCAT WE NEED NOT HAVE THOSE IN LIB FOLDER WHEN USING DECLARATION OF THE ABOVE KIND.

THANK YOU
[+][-]05/30/05 07:13 PM, ID: 14110471Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/31/05 08:12 AM, ID: 14113965Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/04/05 05:11 PM, ID: 14147170Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: BEA WebLogic Application Server, Extensible HTML (XHTML)
Tags: find, cannot, declaration
Sign Up Now!
Solution Provided By: rama_krishna580
Participating Experts: 1
Solution Grade: A
 
[+][-]06/29/05 01:13 AM, ID: 14326144Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07/03/05 02:50 AM, ID: 14356932Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81