troubleshooting Question

Deployment descriptor "web.xml" is malformed

Avatar of godwin1980
godwin1980 asked on
Java App Servers
3 Comments1 Solution4103 ViewsLast Modified:

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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros