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

    Server complains about javabean being not a servlet !

    Ken Loh Newbie

      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:

      +------ *.jsp
      +------ classes/
      +----- *.class
      +----- ShoppingCart.class

      Your help will be very much appreciated.