• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What's wrong with my deployment descriptor?

 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic