You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <de...@geronimo.apache.org> on 2006/02/11 18:33:58 UTC

[jira] Commented: (GERONIMO-1621) [Daytrader] TradeWSAction class is not a Servlet

    [ http://issues.apache.org/jira/browse/GERONIMO-1621?page=comments#action_12366013 ] 

David Jencks commented on GERONIMO-1621:
----------------------------------------

The web.xml is correct, this is a POJO web service.    Apparently there is a problem, but this is not it.

> [Daytrader] TradeWSAction class is not a Servlet
> ------------------------------------------------
>
>          Key: GERONIMO-1621
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1621
>      Project: Geronimo
>         Type: Bug
>   Components: sample apps
>     Versions: 1.0
>     Reporter: Vincent Massol

>
> When trying to deploy the web/ module to Jetty I'm getting the following error:
> Servlet class org.apache.geronimo.samples.daytrader.TradeWSAction is not a javax.servlet.Servlet
> Indeed, looking at the TradeWSAction.java class reveals that it's not a Servlet and thus it shouldn't be declared as a Servlet in web.xml:
>       <servlet id="Servlet_30">
>          <display-name>org_apache_geronimo_samples_daytrader_TradeWSAction</display-name>
>          <servlet-name>org_apache_geronimo_samples_daytrader_TradeWSAction</servlet-name>
>          <servlet-class>org.apache.geronimo.samples.daytrader.TradeWSAction</servlet-class>
>       </servlet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


RE: [jira] Commented: (GERONIMO-1621) [Daytrader] TradeWSAction class is not a Servlet

Posted by Vincent Massol <vm...@pivolis.com>.
Thanks David.

So you're saying that it's allowed to declare a <servlet> in web.xml that is
a POJO class and not extending the Servlet interface?

Thanks
-Vincent

PS: I wanted to answer in JIRA but apparently it's busted on
issues.apache.org/jira. I'm seeing a weird thing: the HTML rendering is
wrong and I'm seeing a jira issue displayed nested within the same jira
issue... (not sure how to express this ;-)).

> -----Original Message-----
> From: David Jencks (JIRA) [mailto:dev@geronimo.apache.org]
> Sent: samedi 11 février 2006 18:34
> To: dev@geronimo.apache.org
> Subject: [jira] Commented: (GERONIMO-1621) [Daytrader] TradeWSAction class
> is not a Servlet
> 
>     [ http://issues.apache.org/jira/browse/GERONIMO-
> 1621?page=comments#action_12366013 ]
> 
> David Jencks commented on GERONIMO-1621:
> ----------------------------------------
> 
> The web.xml is correct, this is a POJO web service.    Apparently there is
> a problem, but this is not it.
> 
> > [Daytrader] TradeWSAction class is not a Servlet
> > ------------------------------------------------
> >
> >          Key: GERONIMO-1621
> >          URL: http://issues.apache.org/jira/browse/GERONIMO-1621
> >      Project: Geronimo
> >         Type: Bug
> >   Components: sample apps
> >     Versions: 1.0
> >     Reporter: Vincent Massol
> 
> >
> > When trying to deploy the web/ module to Jetty I'm getting the following
> error:
> > Servlet class org.apache.geronimo.samples.daytrader.TradeWSAction is not
> a javax.servlet.Servlet
> > Indeed, looking at the TradeWSAction.java class reveals that it's not a
> Servlet and thus it shouldn't be declared as a Servlet in web.xml:
> >       <servlet id="Servlet_30">
> >          <display-
> name>org_apache_geronimo_samples_daytrader_TradeWSAction</display-name>
> >          <servlet-
> name>org_apache_geronimo_samples_daytrader_TradeWSAction</servlet-name>
> >          <servlet-
> class>org.apache.geronimo.samples.daytrader.TradeWSAction</servlet-class>
> >       </servlet>
> 
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira