You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "viola.lu (JIRA)" <ji...@apache.org> on 2011/08/25 05:08:31 UTC
[jira] [Created] (GERONIMO-6122) Support Stateless and Statefull
EJB as JAX-WS root resource classes, providers and Application subclasses
Support Stateless and Statefull EJB as JAX-WS root resource classes, providers and Application subclasses
---------------------------------------------------------------------------------------------------------
Key: GERONIMO-6122
URL: https://issues.apache.org/jira/browse/GERONIMO-6122
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: javaee6
Affects Versions: 3.0
Reporter: viola.lu
Priority: Minor
Fix For: 3.0, 3.0.1
>From JAX-WS spec 1.1
In a product that also supports EJB, an implementation MUST support use of stateless and singleton
session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
Mapper for a EJBException or subclass is not included with an application then exceptions thrown
by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
embedded cause of the EJBException MUST be unwrapped and processed as described in section
3.3.4.
Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GERONIMO-6122) Support Stateless and Statefull
EJB as JAX-RS root resource classes, providers and Application subclasses
Posted by "viola.lu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
viola.lu updated GERONIMO-6122:
-------------------------------
Description:
>From JAX-RS spec 1.1
In a product that also supports EJB, an implementation MUST support use of stateless and singleton
session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
Mapper for a EJBException or subclass is not included with an application then exceptions thrown
by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
embedded cause of the EJBException MUST be unwrapped and processed as described in section
3.3.4.
Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
Run Restfulorder samples can give more details.
was:
>From JAX-WS spec 1.1
In a product that also supports EJB, an implementation MUST support use of stateless and singleton
session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
Mapper for a EJBException or subclass is not included with an application then exceptions thrown
by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
embedded cause of the EJBException MUST be unwrapped and processed as described in section
3.3.4.
Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
Run Restfulorder samples can give more details.
Summary: Support Stateless and Statefull EJB as JAX-RS root resource classes, providers and Application subclasses (was: Support Stateless and Statefull EJB as JAX-WS root resource classes, providers and Application subclasses)
> Support Stateless and Statefull EJB as JAX-RS root resource classes, providers and Application subclasses
> ---------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6122
> URL: https://issues.apache.org/jira/browse/GERONIMO-6122
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: javaee6
> Affects Versions: 3.0
> Reporter: viola.lu
> Priority: Minor
> Fix For: 3.0, 3.0.1
>
>
> From JAX-RS spec 1.1
> In a product that also supports EJB, an implementation MUST support use of stateless and singleton
> session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
> MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
> Mapper for a EJBException or subclass is not included with an application then exceptions thrown
> by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
> embedded cause of the EJBException MUST be unwrapped and processed as described in section
> 3.3.4.
> Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
> Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (GERONIMO-6122) Support Stateless and Statefull EJB
as JAX-RS root resource classes, providers and Application subclasses
Posted by "viola.lu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
viola.lu closed GERONIMO-6122.
------------------------------
Resolution: Duplicate
Duplicate with https://issues.apache.org/jira/browse/GERONIMO-5096
> Support Stateless and Statefull EJB as JAX-RS root resource classes, providers and Application subclasses
> ---------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6122
> URL: https://issues.apache.org/jira/browse/GERONIMO-6122
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: javaee6
> Affects Versions: 3.0
> Reporter: viola.lu
> Priority: Minor
> Fix For: 3.0, 3.0.1
>
>
> From JAX-RS spec 1.1
> In a product that also supports EJB, an implementation MUST support use of stateless and singleton
> session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
> MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
> Mapper for a EJBException or subclass is not included with an application then exceptions thrown
> by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
> embedded cause of the EJBException MUST be unwrapped and processed as described in section
> 3.3.4.
> Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
> Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GERONIMO-6122) Support Stateless and Statefull
EJB as JAX-RS root resource classes, providers and Application subclasses
Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090732#comment-13090732 ]
Rex Wang commented on GERONIMO-6122:
------------------------------------
I think this is duplicate with GERONIMO-5096?
> Support Stateless and Statefull EJB as JAX-RS root resource classes, providers and Application subclasses
> ---------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6122
> URL: https://issues.apache.org/jira/browse/GERONIMO-6122
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: javaee6
> Affects Versions: 3.0
> Reporter: viola.lu
> Priority: Minor
> Fix For: 3.0, 3.0.1
>
>
> From JAX-RS spec 1.1
> In a product that also supports EJB, an implementation MUST support use of stateless and singleton
> session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
> MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
> Mapper for a EJBException or subclass is not included with an application then exceptions thrown
> by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
> embedded cause of the EJBException MUST be unwrapped and processed as described in section
> 3.3.4.
> Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
> Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GERONIMO-6122) Support Stateless and Singleton
EJB as JAX-RS root resource classes, providers and Application subclasses
Posted by "Simon Søndergaard (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228803#comment-13228803 ]
Simon Søndergaard commented on GERONIMO-6122:
---------------------------------------------
I too ran into problems with the restful order sample generating a 'could not auto-map to resource' error for uriinfo.
The sample has two instances of @Stateless beans with instance variables declared like this:
@Context protected UriInfo uriInfo;
I do not see how that would/should work for a stateless bean. UriInfo contains per request info so the framwork would be forced to set the field if it was to reuse/recycle the bean.
Changing the sample to take the UriInfo as parameter to the Resource methods instead, made it deploy.
> Support Stateless and Singleton EJB as JAX-RS root resource classes, providers and Application subclasses
> ---------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6122
> URL: https://issues.apache.org/jira/browse/GERONIMO-6122
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: javaee6
> Affects Versions: 3.0
> Reporter: viola.lu
> Assignee: Ivan
> Priority: Minor
> Fix For: 3.0.1
>
>
> From JAX-RS spec 1.1
> In a product that also supports EJB, an implementation MUST support use of stateless and singleton
> session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
> MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
> Mapper for a EJBException or subclass is not included with an application then exceptions thrown
> by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
> embedded cause of the EJBException MUST be unwrapped and processed as described in section
> 3.3.4.
> Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
> Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GERONIMO-6122) Support Stateless and Statefull
EJB as JAX-RS root resource classes, providers and Application subclasses
Posted by "Ivan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan updated GERONIMO-6122:
---------------------------
Fix Version/s: (was: 3.0)
> Support Stateless and Statefull EJB as JAX-RS root resource classes, providers and Application subclasses
> ---------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6122
> URL: https://issues.apache.org/jira/browse/GERONIMO-6122
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: javaee6
> Affects Versions: 3.0
> Reporter: viola.lu
> Assignee: Ivan
> Priority: Minor
> Fix For: 3.0.1
>
>
> From JAX-RS spec 1.1
> In a product that also supports EJB, an implementation MUST support use of stateless and singleton
> session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
> MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
> Mapper for a EJBException or subclass is not included with an application then exceptions thrown
> by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
> embedded cause of the EJBException MUST be unwrapped and processed as described in section
> 3.3.4.
> Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
> Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GERONIMO-6122) Support Stateless and Singleton
EJB as JAX-RS root resource classes, providers and Application subclasses
Posted by "David Blevins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Blevins updated GERONIMO-6122:
------------------------------------
Summary: Support Stateless and Singleton EJB as JAX-RS root resource classes, providers and Application subclasses (was: Support Stateless and Statefull EJB as JAX-RS root resource classes, providers and Application subclasses)
> Support Stateless and Singleton EJB as JAX-RS root resource classes, providers and Application subclasses
> ---------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6122
> URL: https://issues.apache.org/jira/browse/GERONIMO-6122
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: javaee6
> Affects Versions: 3.0
> Reporter: viola.lu
> Assignee: Ivan
> Priority: Minor
> Fix For: 3.0.1
>
>
> From JAX-RS spec 1.1
> In a product that also supports EJB, an implementation MUST support use of stateless and singleton
> session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
> MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
> Mapper for a EJBException or subclass is not included with an application then exceptions thrown
> by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
> embedded cause of the EJBException MUST be unwrapped and processed as described in section
> 3.3.4.
> Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
> Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (GERONIMO-6122) Support Stateless and Statefull
EJB as JAX-RS root resource classes, providers and Application subclasses
Posted by "Ivan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-6122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan reopened GERONIMO-6122:
----------------------------
Assignee: Ivan
Use this JIRA to track the optional features.
> Support Stateless and Statefull EJB as JAX-RS root resource classes, providers and Application subclasses
> ---------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6122
> URL: https://issues.apache.org/jira/browse/GERONIMO-6122
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: javaee6
> Affects Versions: 3.0
> Reporter: viola.lu
> Assignee: Ivan
> Priority: Minor
> Fix For: 3.0, 3.0.1
>
>
> From JAX-RS spec 1.1
> In a product that also supports EJB, an implementation MUST support use of stateless and singleton
> session beans as root resource classes, providers and Application subclasses. JAX-RS annotations
> MAY be applied to a bean's local interface or directly to a no-interface bean. If an Exception-
> Mapper for a EJBException or subclass is not included with an application then exceptions thrown
> by an EJB resource class or provider method MUST be treated as EJB application exceptions: the
> embedded cause of the EJBException MUST be unwrapped and processed as described in section
> 3.3.4.
> Now geronimo recognize javax.ws.rs.URIinfo as EJB resource in a stateless EJB, so failed to get Uriinfo
> Run Restfulorder samples can give more details.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira