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\doma
ins\mydoma
in\applica
tions', Module: 'StudentManag
ement']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseExcept
ion: 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=206430
24,name=St
udentManag
ement,cont
ext-path=/
)]: Deployment descripto
r "jar:file:C:\bea\user_proj
ects\domai
ns\mydomai
n\.\myserv
er\.wlnotd
elete\extr
act\myserv
er_Student
Management
_StudentMa
nagement\j
arfiles\WE
B-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=206430
24,name=St
udentManag
ement,cont
ext-path=/
)]: Deployment descripto
r "jar:file:C:\bea\user_proj
ects\domai
ns\mydomai
n\.\myserv
er\.wlnotd
elete\extr
act\myserv
er_Student
Management
_StudentMa
nagement\j
arfiles\WE
B-INF\lib\
standar
d.jar!/META-INF/permittedT
aglibs.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=206430
24,name=St
udentManag
ement,cont
ext-path=/
)]: Deployment descripto
r "jar:file:C:\bea\user_proj
ects\domai
ns\mydomai
n\.\myserv
er\.wlnotd
elete\extr
act\myserv
er_Student
Management
_StudentMa
nagement\j
arfiles\WE
B-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=206430
24,name=St
udentManag
ement,cont
ext-path=/
)]: Deployment descripto
r "jar:file:C:\bea\user_proj
ects\domai
ns\mydomai
n\.\myserv
er\.wlnotd
elete\extr
act\myserv
er_Student
Management
_StudentMa
nagement\j
arfiles\WE
B-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=206430
24,name=St
udentManag
ement,cont
ext-path=/
)]: Deployment descripto
r "jar:file:C:\bea\user_proj
ects\domai
ns\mydomai
n\.\myserv
er\.wlnotd
elete\extr
act\myserv
er_Student
Management
_StudentMa
nagement\j
arfiles\WE
B-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=206430
24,name=St
udentManag
ement,cont
ext-path=/
)]: Deployment descripto
r "jar:file:C:\bea\user_proj
ects\domai
ns\mydomai
n\.\myserv
er\.wlnotd
elete\extr
act\myserv
er_Student
Management
_StudentMa
nagement\j
arfiles\WE
B-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=206430
24,name=St
udentManag
ement,cont
ext-path=/
)]: Deployment descripto
r "jar:file:C:\bea\user_proj
ects\domai
ns\mydomai
n\.\myserv
er\.wlnotd
elete\extr
act\myserv
er_Student
Management
_StudentMa
nagement\j
arfiles\WE
B-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.Pro
pertyMessa
geResource
s <init>
INFO: Initializing, config='org.apache.struts.
util.Local
Strings', returnNull=true
30-May-2003 14:46:31 org.apache.struts.util.Pro
pertyMessa
geResource
s <init>
INFO: Initializing, config='org.apache.struts.
action.Act
ionResourc
es', returnNull=true
30-May-2003 14:46:31 org.apache.struts.util.Pro
pertyMessa
geResource
s <init>
INFO: Initializing, config='com.StudentManagem
ent.Action
.Applicati
onResource
s', 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</serv
let-name>
<servlet-class>org.apache.
struts.act
ion.Action
Servlet</s
ervlet-cla
ss>
<init-param>
<param-name>config</param-
name>
<param-value>/WEB-INF/stru
ts-config.
xml</param
-value>
</init-param>
<init-param>
<param-name>debug</param-n
ame>
<param-value>3</param-valu
e>
</init-param>
<init-param>
<param-name>detail</param-
name>
<param-value>3</param-valu
e>
</init-param>
<load-on-startup>0</load-o
n-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</serv
let-name>
<url-pattern>*.do</url-pat
tern>
</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.StudentManagemen
t.Form.Log
inForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="loginForm"
input="/login.jsp"
name="LoginForm"
path="/loginAction"
scope="request"
type="com.StudentManagemen
t.Action.L
oginAction
">
<forward name="success" path="/loginSuccess.jsp" />
<forward name="failure" path="/login.jsp" />
</action>
</action-mappings>
<message-resources parameter="com.StudentMana
gement.Act
ion.Applic
ationResou
rces" />
</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