1 Reply Latest reply on Nov 7, 2002 12:32 PM by kenlohwh

    Server complains about javabean being not a servlet !

    kenlohwh

      After I copy my JSP-servlet web application's war file to the JBoss deploy directory, the server starts up with the following error. The ShoppingCart that causes the error is actually a javabean used in some of the JSPs. I wonder why JBoss complains if it isn't a servlet.

      The error is as follows:

      org.jboss.deployment.DeploymentException: Servlet class ShoppingCart is not a javax.servlet.Servlet; - nested throwable: (java.lang.IllegalStateException: Servl
      et class ShoppingCart is not a javax.servlet.Servlet)


      Can anyone kindly help ?

      I tried to upload the war file, but my IE got hang each time. Therefore, I drew the structure of the war instead as follows:

      servletDeployment/
      |
      +------ *.jsp
      |
      +------WEB-INF/
      |
      +------ classes/
      |
      +----- *.class
      +----- ShoppingCart.class

      Your help will be very much appreciated.

        • 1. Re: Server complains about javabean being not a servlet !
          kenlohwh

          Oops, the space didn't get displayed giving the impression of the structure having only one root ! Here is the structure again :


          servletDeployment/
          |
          +------ *.jsp
          |
          +------WEB-INF/
          .........|
          .........+------ classes/
          ....................|
          ....................+----- *.class
          ....................+----- ShoppingCart.class