wood burning stoves 2.0*
The moose likes Struts and the fly likes Deployment descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Deployment descriptor "web.xml" is malformed" Watch "Deployment descriptor "web.xml" is malformed" New topic
Author

Deployment descriptor "web.xml" is malformed

saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 57
hi all,

iam writing a simple login screen . when i run the server i am getting this error.



<Jun 24, 2008 2:35:45 PM GMT+05:30> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea\user_projects\domains\mydomain\myserver\myserver.log is opened. All server side log events will be written to this file.>
<Jun 24, 2008 2:35:47 PM GMT+05:30> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Jun 24, 2008 2:35:47 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "myserver" for domain "mydomain">
<Jun 24, 2008 2:35:54 PM GMT+05:30> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\bea\user_projects\domains\mydomain\applications', Module: 'strutsdemo']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 3, column 10).>
Jun 24, 2008 2:35:56 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jun 24, 2008 2:35:56 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Jun 24, 2008 2:35:57 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='com.yourcompany.struts.ApplicationResources', returnNull=true
<Jun 24, 2008 2:35:57 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "mydomain" running in Development Mode>
<Jun 24, 2008 2:35:57 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<Jun 24, 2008 2:35:57 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>


please tell me what is the problem?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
Sounds like it can't find the <web-app> tag in your web.xml file. Posting your web.xml file might let me give a more specific answer.
saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 57
the web.xml, which iam using is

<?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>

my application server is weblogic8.1 with sp4.

please check it, and tell me what is the problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deployment descriptor "web.xml" is malformed
 
Similar Threads
Deployment descriptor "web.xml" is malformed.
Problem with validation in struts
node manager can't start weblogic server in cluster
urgent please send replay fast
about 404 error