aspose file tools*
The moose likes Servlets and the fly likes What's wrong with my deployment descriptor? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "What Watch "What New topic
Author

What's wrong with my deployment descriptor?

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Hi to all,
I've recently started experimenting with the web.xml file of my J2EE app. The problem is that it has an error and I can't locate it. The server (JBOSS) says that there is some kind of a XMLParse error. Could you please tell me what I'm doing wrong.
>>>>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>Student Feedback System</display-name>
<description>
Welcome to the Student Feedback system
</description>

<!-- Define and initialise the Login Servlet-->
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.ernieboy.dmwp_unit.servlets.LoginServlet</servlet-class>
<description>
This servlet is used for user login
</description>

<init-param>
<param-name>driver</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<init-param>
<param-name>dbURL</param-name>
<param-value>jdbc:mysql://localhost:3306/ernieboy</param-value>
</init-param>
<init-param>
<param-name>userName</param-name>
<param-value>XXXXX</param-value>
</init-param>
<init-param>
<param-name>password</param-name>
<param-value>XXX</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Define and initialise the event dispatcher Servlet-->
<servlet>
<servlet-name>Dispatcher</servlet-name>
<servlet-class>com.ernieboy.dmwp_unit.servlets.OperationDispatcherServlet</servlet-class>
<description>
This servlet is used for intercepting user requests and then forwarding the
user to the appropriate View (Java Server Page). This servlet is the
Controller in this context.
</description>
<load-on-startup>2</load-on-startup>
</servlet>

<!-- Servlet Mapping -->
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>*.dispatch</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>
20
</session-timeout>
</session-config>


<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

</web-app>
[ May 24, 2003: Message edited by: ernest fakudze ]

In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
JBoss should give the line and column where the XML parse error occurs, you should also make careful note of exactly what the error is.
"some kind of XMLParse error" is not all that helpful.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's wrong with my deployment descriptor?
 
Similar Threads
incorrect web.xml doesn't complain
s:excelExport Exception in PhaseListener
servlet mapping clarification
Problem in web.xml
how to run a servlet