- This topic has 7 replies, 3 voices, and was last updated 17 years, 11 months ago by
Riyad Kalla.
-
AuthorPosts
-
pgrancianoMemberSorry, can you helpme to correct this problem? I don’t understand why show the warning when I start my server…
<Apr 16, 2007 6:45:54 AM CDT> <Warning> <HTTP> <BEA-101248> <[Application: ‘/carga_1/applications/cargamasiva/cmasiva/analiza/applications’, Module: ‘gcaye_cc_tst’]: Deployment descriptor “web.xml” is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type “web-app” must match “(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)”. (line 127, column 11).>
<Apr 16, 2007 6:45:58 AM CDT> <Warning> <HTTP> <BEA-101248> <[Application: ‘/carga_1/applications/cargamasiva/cmasiva/analiza/applications’, Module: ‘gcaye_cte_tst’]: Deployment descriptor “web.xml” is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type “web-app” must match “(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)”. (line 320, column 11).>
Riyad KallaMemberThe DTD defines a specific *ordering* of your web.xml file, meaning certain things like <servlet> must come after <listener> and so on. You get this warning when you have your file out of order.
MyEclipse will also show you this error in the problems view while you are editing the file.
Rod BollingerMemberAdditionally, depending on what version container you are targeting, some changes have been made to the structure of the web.xml document. For instance, if you are targeting J2EE 1.4 (web-app_2_4.xsd), any <taglib> tags you have will now need to be wrapped in <jsp-config></jsp-config> tags. You will need to consult the DTD or XSD for you your specific target as Riyad pointed out.
-Rod
pgrancianoMemberfirstly thanks for your answers, i check de order in the web.xml labels, but i didn’t see any error. But I have a question, do i need to write all the possible labels in the web.xml?
I send you the file waiting that you can helpme more. thanks
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”>
<web-app><display-name>Acceso a servicios de GCAyE_cc_ejb</display-name>
<description>Proporciona acceso HTTP a los servicios de Integracion de GCAyE con CC</description><servlet>
<servlet-name>ProcesarPeticionServlet</servlet-name>
<servlet-class>sigah.gcaye.srv.servlets.ProcesarPeticionServlet</servlet-class>
</servlet><servlet>
<servlet-name>GetCurcConciliaServlet</servlet-name>
<servlet-class>mx.com.metlife.gcaye.cc.servlets.GetCurcConciliaServlet</servlet-class>
</servlet><servlet>
<servlet-name>SetCurcAnulaServlet</servlet-name>
<servlet-class>mx.com.metlife.gcaye.cc.servlets.SetCurcAnulaServlet</servlet-class>
</servlet><servlet>
<servlet-name>GetCurcConcAgrupServlet</servlet-name>
<servlet-class>mx.com.metlife.gcaye.cc.servlets.GetCurcConcAgrupServlet</servlet-class>
</servlet><servlet>
<servlet-name>SetRegBitMovGcayeServlet</servlet-name>
<servlet-class>mx.com.metlife.gcaye.cc.servlets.SetRegBitMovGcayeServlet</servlet-class>
</servlet><servlet>
<servlet-name>SetBitacoraCurcGcayeServlet</servlet-name>
<servlet-class>mx.com.metlife.gcaye.as400.servlets.SetBitacoraCurcGcayeServlet</servlet-class>
</servlet><servlet>
<servlet-name>SetAplicacionContableServlet</servlet-name>
<servlet-class>mx.com.metlife.gcaye.as400.servlets.SetAplicacionContableServlet</servlet-class>
</servlet><servlet-mapping>
<servlet-name>ProcesarPeticionServlet</servlet-name>
<url-pattern>ProcesarPeticionServlet</url-pattern>
</servlet-mapping><servlet-mapping>
<servlet-name>GetCurcConciliaServlet</servlet-name>
<url-pattern>GetCurcConciliaServlet</url-pattern>
</servlet-mapping><servlet-mapping>
<servlet-name>SetCurcAnulaServlet</servlet-name>
<url-pattern>SetCurcAnulaServlet</url-pattern>
</servlet-mapping><servlet-mapping>
<servlet-name>GetCurcConcAgrupServlet</servlet-name>
<url-pattern>GetCurcConcAgrupServlet</url-pattern>
</servlet-mapping><servlet-mapping>
<servlet-name>SetRegBitMovGcayeServlet</servlet-name>
<url-pattern>SetRegBitMovGcayeServlet</url-pattern>
</servlet-mapping><servlet-mapping>
<servlet-name>SetBitacoraCurcGcayeServlet</servlet-name>
<url-pattern>SetBitacoraCurcGcayeServlet</url-pattern>
</servlet-mapping><servlet-mapping>
<servlet-name>SetAplicacionContableServlet</servlet-name>
<url-pattern>SetAplicacionContableServlet</url-pattern>
</servlet-mapping><session-config>
<session-timeout>15</session-timeout>
</session-config><env-entry>
<description>Configura si se va a usar Ejb Remotos o Locales</description>
<env-entry-name>usarEjbRemoto</env-entry-name>
<env-entry-value>true</env-entry-value>
<env-entry-type>java.lang.Boolean</env-entry-type>
</env-entry><ejb-ref>
<description>Interfaz remota del EJB para la Integracion de GCAyE/400 con CC</description>
<ejb-ref-name>ejb/GCAYE_CC</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>mx.com.metlife.gcaye.cc.ejb.GcayeCcHome</home>
<remote>mx.com.metlife.gcaye.cc.ejb.GcayeCcRemote</remote>
</ejb-ref><ejb-ref>
<description>Interfaz remota del EJB para la Integracion de Tesoreria con GCAyE/400</description>
<ejb-ref-name>ejb/GCAYE_400CC</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>mx.com.metlife.gcaye.as400.ejb.Gcaye400Home</home>
<remote>mx.com.metlife.gcaye.as400.ejb.Gcaye400Remote</remote>
</ejb-ref><ejb-local-ref>
<description>Interfaz local del EJB para la Integracion de GCAyE/400 con CC</description>
<ejb-ref-name>ejb/GCAYE_CCLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>mx.com.metlife.gcaye.cc.ejb.GcayeCcLocalHome</local-home>
<local>mx.com.metlife.gcaye.cc.ejb.GcayeCcLocal</local>
</ejb-local-ref><ejb-local-ref>
<description>Interfaz local del EJB para la Integracion de Tesoreria con GCAyE/400</description>
<ejb-ref-name>ejb/GCAYE_400CCLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>mx.com.metlife.gcaye.as400.ejb.Gcaye400LocalHome</local-home>
<local>mx.com.metlife.gcaye.as400.ejb.Gcaye400Local</local>
</ejb-local-ref></web-app>
Riyad KallaMemberNo you don’t need all tags, they just need to be in order, which this files seems to be… I’m not sure why your app server is mad at you.
You might be editing the wrong module, keep in mind that the app server reported a problem against:
[Application: ‘/carga_1/applications/cargamasiva/cmasiva/analiza/applications’, Module: ‘gcaye_cc_tst’]
so make sure that is the oe you are looking at “gcaye_cc_tst”
pgrancianoMemberthank a lot support-rkalla i’ll check other options because i think the order on the labels isn’t the problem. i’ll tell you the answer when i will have it.
pgrancianoMemberI checked to be sure that is the correct web.xml for the app ‘/carga_1/applications/cargamasiva/cmasiva/analiza/applications’, Module: ‘gcaye_cc_tst’. I don’t what more can i do….
Riyad KallaMemberMe either… from the information you posted that looks valid… what version of WebLogic are you deploying to? Your web.xml file is valid for a J2EE 1.3 server, which I’m sure WebLogic 8.x is, but if you are using an older release that might be the issue.
-
AuthorPosts