1 Reply Latest reply on Jun 3, 2009 8:03 PM by Peter Johnson

    Unable to deploy service WAR

    K J Newbie


      I am stuck at the point of deployment of my WAR. (for starters I am not sure if I created the WAR correctly.) but, I get the following error :

      15:49:57,468 INFO [TomcatDeployment] undeploy, ctxPath=/StockQuoteService, vfsUrl=StockQuoteService
      15:50:00,218 INFO [TomcatDeployment] deploy, ctxPath=/StockQuotePortImpl, vfsUrl=StockQuotePortImpl
      15:50:00,281 INFO [[/StockQuotePortImpl]] Marking servlet StockServiceServlethttp as unavailable
      15:50:00,281 ERROR [[/StockQuotePortImpl]] Servlet /StockQuotePortImpl threw load() exception
      java.lang.ClassCastException: com.sun.samples.StockQuotePortImpl cannot be cast to javax.servlet.Servlet

      I am not sure what's going on here. Can someone point me to a resource that would list steps to generate a WAR for the WS and deploy it. I mean, what all goes in the war? does the name of the WAR matter? does the name of the WS implementation file matter? how shd the web.xml look?

      Any help will be appreciated.


        • 1. Re: Unable to deploy service WAR
          Peter Johnson Master

          Is StockQuotePortImpl your class? Is it a servlet? Looks like you have an invalid cast and need to fix your code. The part of the stack trace that you did not post should tell you while line has the problem (assuming you compiled with debug options).

          By the way, if the class is a servlet then the issue has nothing to do with web services, and thus this post is in the wrong forum (the beginner's forum would have been better).