2 Replies Latest reply on Jul 7, 2005 1:07 PM by me ddf

    failed to parse jboss-web.xml

    me ddf Newbie

      Hi i am getting error
      1)yment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml)
      2)resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml
      contents of file are as follows
      1)<jboss-web>
      <resource-ref>
      <res-ref-name>jdbc/BookDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <jndi-name>java:/jdbc/BookDB</jndi-name>
      </resource-ref>
      </jboss-web>
      2)<?xml version="1.0" encoding="UTF-8"?>
      <!--
      Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
      Use is subject to license terms.
      -->
      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <display-name>BookstoreWAR</display-name>

      <filter-name>HitCounterFilter</filter-name>
      <filter-class>samples.webapps.bookstore.filters.HitCounterFilter</filter-class>


      <filter-name>OrderFilter</filter-name>
      <filter-class>samples.webapps.bookstore.filters.OrderFilter</filter-class>

      <filter-mapping>
      <filter-name>HitCounterFilter</filter-name>
      <servlet-name>BookStoreServlet</servlet-name>
      </filter-mapping>
      <filter-mapping>
      <filter-name>OrderFilter</filter-name>
      <servlet-name>ReceiptServlet</servlet-name>
      </filter-mapping>

      <listener-class>samples.webapps.bookstore.listeners.ContextListener</listener-class>


      <display-name>BannerServlet</display-name>
      <servlet-name>BannerServlet</servlet-name>
      <servlet-class>samples.webapps.bookstore.BannerServlet</servlet-class>


      <display-name>ShowCartServlet</display-name>
      <servlet-name>ShowCartServlet</servlet-name>
      <servlet-class>samples.webapps.bookstore.ShowCartServlet</servlet-class>


      <display-name>CashierServlet</display-name>
      <servlet-name>CashierServlet</servlet-name>
      <servlet-class>samples.webapps.bookstore.CashierServlet</servlet-class>


      <display-name>CatalogServlet</display-name>
      <servlet-name>CatalogServlet</servlet-name>
      <servlet-class>samples.webapps.bookstore.CatalogServlet</servlet-class>


      <display-name>ReceiptServlet</display-name>
      <servlet-name>ReceiptServlet</servlet-name>
      <servlet-class>samples.webapps.bookstore.ReceiptServlet</servlet-class>


      <display-name>BookStoreServlet</display-name>
      <servlet-name>BookStoreServlet</servlet-name>
      <servlet-class>samples.webapps.bookstore.BookStoreServlet</servlet-class>


      <display-name>BookDetailsServlet</display-name>
      <servlet-name>BookDetailsServlet</servlet-name>
      <servlet-class>samples.webapps.bookstore.BookDetailsServlet</servlet-class>

      <servlet-mapping>
      <servlet-name>BannerServlet</servlet-name>
      <url-pattern>/banner</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>ShowCartServlet</servlet-name>
      <url-pattern>/showcart</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>CashierServlet</servlet-name>
      <url-pattern>/cashier</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>CatalogServlet</servlet-name>
      <url-pattern>/catalog</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>ReceiptServlet</servlet-name>
      <url-pattern>/receipt</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>BookStoreServlet</servlet-name>
      <url-pattern>/enter</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>BookDetailsServlet</servlet-name>
      <url-pattern>/bookdetails</url-pattern>
      </servlet-mapping>
      <session-config>
      <session-timeout>30</session-timeout>
      </session-config>
      <error-page>
      <exception-type>samples.webapps.bookstore.exception.BooksNotFoundException</exception-type>
      /errorpage.html
      </error-page>
      <error-page>
      <exception-type>javax.servlet.UnavailableException</exception-type>
      /errorpage.html
      </error-page>
      <error-page>
      <exception-type>samples.webapps.bookstore.exception.BookNotFoundException</exception-type>
      /errorpage.html
      </error-page>
      <resource-ref>
      <res-ref-name>jdbc/BookDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>
      </web-app>
      thanxs in adv.