[jboss-jira] [JBoss JIRA] Commented: (JBAS-9394) Web Services no longer deployed with latest checkout

jaikiran pai (JIRA) jira-events at lists.jboss.org
Tue May 31 03:31:01 EDT 2011


    [ https://issues.jboss.org/browse/JBAS-9394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605403#comment-12605403 ] 

jaikiran pai commented on JBAS-9394:
------------------------------------

Just looked at your attached code. The class having the @WebServlet annotation isn't following the Servlet 3.0 spec. The class in question is:

{code}
@WebService(endpointInterface = "test.ws.TranslationWSI_2", serviceName = "TranslationWS_2")
@WebServlet(name = "TranslationWS_2", urlPatterns = { "/TranslationWS_2" })
public class TranslationWS_2 implements TranslationWSI_2
{
{code}

The servlet 3.0 spec, section 8.1.1 says:

{quote}
Classes annotated with @WebServlet class MUST extend the javax.servlet.http.HttpServlet class.
{quote}

So you'll have to extend that HttpServlet class to get the application working.

I'm marking this as Closed. Please re-open if changing that code doesn't fix the issue.





> Web Services no longer deployed with latest checkout
> ----------------------------------------------------
>
>                 Key: JBAS-9394
>                 URL: https://issues.jboss.org/browse/JBAS-9394
>             Project: Legacy JBoss Application Server 6 
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 6.1.0
>         Environment: Oracle JDK 1.6.0_25 on Solaris SPARC 10
>            Reporter: Frank Langelage
>            Assignee: jaikiran pai
>         Attachments: Jira-JBAS-9394.tar
>
>
> Web Services are no longer recognized and deployed with the latest subversion checkout ob JBoss AS 6.1.0.
> The older checkout of JBoss AS 6.0.1 running the same app publishes the web services as expected.
> Some of the latest checkins broke this. Don't know which one exactly.
> I created a test project which creates an ear file containing one war file which contains two webservices.
> The first one uses a web.xml file to define the servlet. This service is recognized an deployed.
> The second one uses the WebServlet annotation like our app does successfully on 6.0.1. This is not recognized anymore.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list