7 Replies Latest reply on May 4, 2003 10:41 PM by muzair9192

    Exception in application deployment

    muzair9192

      i have deployed an application ( CDCollection.ear ) and while deployment following errors are occuring

      [jbossweb] WARNING: Configuration problem at <servlet-mapping><servlet-name>testServ</servlet-name><url-pattern>/servlet/Beans</url-pattern></servlet-mapping>
      java.lang.IllegalArgumentException: Unknown servlet: testServ
      at org.mortbay.jetty.servlet.ServletHandler.mapPathToServlet(ServletHandler.java:284)
      at org.mor


      . i had deployed another application with almost same descriptors (except the names ofcourse ) and it is working alright but this one is giveing the above mentioned errors . iam attaching the file (CDCollection.ear ) witht he message . if some one has any idea about why this error might be occuring then plz contact

        • 1. Re: Exception in application deployment


          <servlet-name>ServeletTest</servlet-name>
          <display-name>Simple Session Servlet</display-name>
          <servlet-class>Beans.testServ</servlet-class>

          <load-on-startup>1</load-on-startup>



          <servlet-mapping>
          <servlet-name>testServ</servlet-name>
          <url-pattern>/servlet/Beans</url-pattern>
          </servlet-mapping>

          You called the servlet "ServeletTest" but then
          tried to referred to it as "testServ"

          Regards,
          Adrian

          • 2. Re: Exception in application deployment
            muzair9192

            thaks . that fixed the problem .

            Now just one last thing , i have changed the sqlserver-service.xml (wht ever the eact name ) file so use SQL Server as the default data source and it works alright . the SQL is used for CMP by jboss . then i tried to keep the default to hypersonic sql and specify the mssql as the data source in the jbosscmp-jdbc file in the meta-inf directory along with the ejb-jar file .

            but jboss is still using hypersonic sql as the data source . why is tha t happenig . i have specified the datasource to use in the jbosscmp-jdbc file .

            • 3. Re: Exception in application deployment
              muzair9192

              there is an extra entity tag in the file , which i have now removed . i have discovered another thing

              the jboss is simply using the datasource that i have mentioned in the standardjaws file in the conf directory . it ignorest the data sources mentioned in the .jar files . and simply uses the one set as default in the standard jaws file . even if the default source in standardjdbccmp-jdbc.xml file is hypersonic sql . which ever source u mention in the standard jaws file , is the one it uses .

              i want to keep the default to hypersonic and use sqlserver for only some of the ejb's . with which i am giving the jbosscmp file . How can that be done .
              the ones with which i dont mention any data souce should go to the hypersonic sql

              • 4. Re: Exception in application deployment

                The structure should be

                <jbosscmp-jdbc>
                <enterprise-beans>

                <ejb-name>CDBean</ejb-name>
                MSSQLDS
                <datasource-mapping>MS SQLSERVER</datasource-mapping>

                </enterprise-beans>
                </jbosscmp-jdbc>

                Regards,
                Adrian

                • 5. Re: Exception in application deployment
                  muzair9192

                  thanks but it did'nt work . it still goes for the datasource listed as default in the standardjaws file .

                  i am attaching the bean with the message though

                  • 6. Re: Exception in application deployment

                    Have you specified the EJB2.0 dtd in
                    ejb-jar.xml

                    jbosscmp won't be used if you are using JAWS.

                    Regards,
                    Adrian

                    • 7. Re: Exception in application deployment
                      muzair9192

                      can i ask u one thing ... it might sound dumb but , how do u tell jboss not to use jaws if thats the problem you are saying is ...

                      i have'nt made any particular changes to the jboss configuration ... i just want to be able to use the database i want for my EJB . some may be mapped to hypersonic sql , other may be to SQL Server .



                      and one more thing , is it necessary to specify the database name , as in employeeDB etc in the service file . what if we want to decide that in the deployment descriptors . can we do that ...