• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Problem with web.xml (WebLogic Server 8.1 SP2) ?

 
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using WebLogic Server 8.1 SP2
on starting the server i am getting following error
please help, where i have done mistake.
-------------------------------
<Jan 13, 2005 5:24:50 PM GMT+05:30> <Warning> <HTTP> <BEA-101248> <[Application:
'D:\domains\rmmdomain\applications', Module: 'rmmweb']: 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*,servle
t-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 27, column 11).>
-------------------------------------------------

source code of my web.xml
---------------------------------------------
<?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>

<servlet>
<servlet-name>ReportControllerServlet</servlet-name>
<servlet-class>com.sski.web.statements.servlets.ReportControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>ReportControllerServlet</servlet-name>
<url-pattern>/rcs.sk</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>FNOReportControllerServlet</servlet-name>
<servlet-class>com.sski.web.statements.servlets.FNOReportControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>FNOReportControllerServlet</servlet-name>
<url-pattern>/frcs.sk</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>com.sski.web.login.servlets.LoginServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/BRLoginServlet.sk</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>OrderControllerServlet</servlet-name>
<servlet-class>com.sski.web.order.servlets.OrderControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>OrderControllerServlet</servlet-name>
<url-pattern>/ocs.sk</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>FNOOrderControllerServlet</servlet-name>
<servlet-class>com.sski.web.order.servlets.FNOOrderControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>FNOOrderControllerServlet</servlet-name>
<url-pattern>/focs.sk</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>MessageServlet</servlet-name>
<servlet-class>com.sski.web.login.servlets.MessageServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>MessageServlet</servlet-name>
<url-pattern>/MessageServlet.sk</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>ProfileControllerServlet</servlet-name>
<servlet-class>com.sski.web.profile.servlets.ProfileControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>ProfileControllerServlet</servlet-name>
<url-pattern>/pcs.sk</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>IPOSKServlet</servlet-name>
<servlet-class>com.sharekhan.ipo.servlets.IPOSKServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>IPOSKServlet</servlet-name>
<url-pattern>/ipo.sk</url-pattern>
</servlet-mapping>

<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error.jsp</location>
</error-page>

<session-config>
<session-timeout>30</session-timeout>
</session-config>

<listener>
<listener-class>com.sski.web.common.utils.SessionAdmin</listener-class>
</listener>

</web-app>

---------------------------------------------
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the DTD carefully. Follow the order as specified by the validating schema. For example, <listener> should come before <servlet>, and all <servlet> should come before any <servlet-mapping>.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!