Link to home
Start Free TrialLog in
Avatar of godwin1980
godwin1980

asked on

Deployment descriptor "web.xml" is malformed


Hi

I am using Weblogic Express 8.1 SP5, when I deploy my application it shows the following Warning:

<Feb 15, 2006 4:51:49 PM NZDT> <Warning> <HTTP> <BEA-101248> <[Application: '/opt/local/WeblogicExpress_8.1_SP5/servers/oss_ssl/applications', Module: 'oss_ssl']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "distributable" must match "EMPTY". (line 20, column 39).>
<Feb 15, 2006 4:51:49 PM NZDT> <Warning> <HTTP> <BEA-101248> <[Application: '/opt/local/WeblogicExpress_8.1_SP5/servers/oss_ssl/applications', Module: 'oss_ssl']: 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 31, column 11).>

This is the web.xml file :

<?xml version="1.0" ?>
<!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>Test</display-name>
  <description>Test web service</description>
  <session-config>
    <session-timeout>300</session-timeout>
  </session-config>
  <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
 </welcome-file-list>
  <distributable>false</distributable>
                   
 <security-constraint>
    <web-resource-collection>
      <web-resource-name>All</web-resource-name>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
      <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
  </security-constraint>
</web-app>


I tried all the possibilities to eliminate this warning. I checked in BEA site for this error :BEA-101248 , but the information given didnt solve my problem.
Please help me as the application is going for production and its urgent.

Thanks
Godwin.
Avatar of ECollin
ECollin

hi,

the "distributable" tag should be placed after description and before session-config


Emmanuel
Avatar of godwin1980

ASKER

No....its not solved ..throwin again the same error
ASKER CERTIFIED SOLUTION
Avatar of jjohnpaul
jjohnpaul

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial