0 Replies Latest reply on Jul 1, 2003 3:25 AM by madooreddy

    Datasource not bounding --very strange problem

    madooreddy Newbie

      I have been facing very strange problem since 6 days

      I have made two datasources(DefaultDS & SmsDBDS) and both usig db2 database in jbosss.jcml

      And I put the servlet classes under Web-INF folder and set the classpath too. after that I mapped servlets in web.xml file

      But while testing stranglly working only the beans which used DefaultDS , and which are using SmsDBDS not working at all and giving exception like below mentioned.
      What could be the problem ? the error :
      javax.servlet.ServletException: Name SmsDBDS is not bound in this Context
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
      at org.apache.jsp.retrieveNoticeUserList$jsp._jspService(retrieveNoticeUserList$jsp.java:429)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      ------------------------
      -----------------------
      javax.naming.NameNotFoundException: Name SmsDBDS is not bound in this Context
      at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
      at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at com.wizit.util.EJBUtility.getConnection(EJBUtility.java:31)
      at com.wizit.notice.ejb.NoticeGroupRetrieveHelper.findByALL(NoticeGroupRetrieveHelper.java:44)
      -------------------------
      -------------------------
      jboss.jcml--> where i added the datasource


      COM.ibm.db2.jdbc.app.DB2Driver



      DefaultDS
      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl

      jdbc:db2:acs
      1200000
      acs
      10
      acs
      false
      false
      false
      true
      120000
      1800000
      false
      false
      1.0
      0



      SmsDBDS
      org.jboss.pool.jdbc.xa.wrapper.XDataSourceImpl

      jdbc:db2:smsdb
      1200000
      smsdb
      10
      smsdb
      false
      false
      false
      true
      120000
      1800000
      false
      false
      1.0
      0


      web.xml--> where i mapped the servlets in web.xml

      web.xml
      <servlet-name>
      AgeServlet
      </servlet-name>
      <servlet-class>
      com.wizit.servlet.AgeServlet
      </servlet-class>

      <servlet-name>
      ArticleServlet
      </servlet-name>
      <servlet-class>
      com.wizit.servlet.ArticleServlet
      </servlet-class>

      <servlet-name>
      BlackListServlet
      </servlet-name>
      <servlet-class>
      com.wizit.servlet.BlackListServlet
      </servlet-class>

      <servlet-name>
      BoardServlet
      </servlet-name>
      <servlet-class>
      com.wizit.servlet.BoardServlet
      </servlet-class>

      <servlet-name>
      ChartServlet
      </servlet-name>
      <servlet-class>
      com.wizit.servlet.ChartServlet
      </servlet-class>

      <servlet-mapping>
      <servlet-name>
      AgeServlet
      </servlet-name>
      <url-pattern>
      /servlet/AgeServlet
      </url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>
      ArticleServlet
      </servlet-name>
      <url-pattern>
      /servlet/ArticleServlet
      </url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>
      BlackListServlet
      </servlet-name>
      <url-pattern>
      /servlet/BlackListServlet
      </url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>
      BoardServlet
      </servlet-name>
      <url-pattern>
      /servlet/BoardServlet
      </url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>
      ChartServlet
      </servlet-name>
      <url-pattern>
      /servlet/ChartServlet
      </url-pattern>
      </servlet-mapping>

      pls help me out to solve this problem

      Many thanks
      Madoo Reddy