1 Reply Latest reply on Nov 16, 2007 10:55 AM by asoldano

    WebService in a war

    ulath

      Hi,

      I added a WebService to my JSF application like the one in seambay sample. I added an interface with @Remote annotation, and marked implementation as @Stateles, and @WebService. Only one echo method exists in the web service. I use JBossAS 4.2.2.GA. If I deploy this as a war file, WebService is not recognized by jboss, jsf application runs smooth.
      I tried and created an ear as in seambay by hand, and web service is recognized.
      I couldn't find any info on deploying Web Services using war to jboss, so I assumed there wouldn't be any differences. I guess my assumption is wrong.
      What can be the problem?

      Thanks in advance...

        • 1. Re: WebService in a war
          asoldano

          You're using ejb endpoints, thus you just need to wrap up the service implementation classes, the endpoint interfaces and any custom data types in a jar. You would instead deploy pojo endpoints using war (in that case you need also a web.xml...)