You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Raymond Feng (JIRA)" <ji...@apache.org> on 2010/03/28 07:54:27 UTC

[jira] Created: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
------------------------------------------------------------------------------------------------

                 Key: WINK-269
                 URL: https://issues.apache.org/jira/browse/WINK-269
             Project: Wink
          Issue Type: Wish
            Reporter: Raymond Feng


In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851123#action_12851123 ] 

Bryant Luk commented on WINK-269:
---------------------------------

Yes, that's a conflicting statement but the maven-bundle-plugin actually makes export win.  I'll remove it in the patch.  When I originally developed the patch, I thought I could make the internal code private (hence there's actually comments to not export the internal packages).  However, with the way that Wink is currently written and if each wink-common, wink-server, etc. JAR was an OSGi bundle, then the wink-server bundle for instance couldn't access internal wink-common code.  I guess I could re-write these internal private calls but I think that's complicating something even further.  Even though technically they are suppose to be private, we didn't really change anything internally so I don't want to break people for no reason.

We can also discuss making a public RestServlet if that is more appealing for people to call.

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891750#action_12891750 ] 

Mike Rheinheimer commented on WINK-269:
---------------------------------------

Thanks Raymond.  Does this mean we should close this issue, and you'll open a new one later if necessary?

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891671#action_12891671 ] 

Raymond Feng commented on WINK-269:
-----------------------------------

I didn't have chance to test our (Tuscany) integration with Wink under OSGi recently. I'll raise issues as I see later.

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851108#action_12851108 ] 

Raymond Feng commented on WINK-269:
-----------------------------------

I briefly looked into the patch. It seems that the patch has lines such as:

<Export-Package>org.apache.wink.*</Export-Package>
<Private-Package>org.apache.wink.*</Private-Package>

Wouldn't it be conflicting?

Another issue is that RestServlet class is the a package named "import org.apache.wink.server.internal.servlet" and typically "internal" hints it's a private thing.


> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851091#action_12851091 ] 

Bryant Luk commented on WINK-269:
---------------------------------

Forgive me for being naive, but are you asking we export the class and do some finalization of the API or actually build an OSGi service?

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851096#action_12851096 ] 

Raymond Feng commented on WINK-269:
-----------------------------------

Our requirements are as follows:

1) We need to access the RestServlet class (and related RegistrationUtils) so that we can integrate with Wink problematically (not through web.xml) to register a JAX-WS application with a HTTP container 
2) We need to use the code in both OSGi and non-OSGi environment. To access RestServlet under OSGi, we will need to add it to the Import-Package header. It means that this class has to be exported from the Wink bundles.

Thanks,
Raymond

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851100#action_12851100 ] 

Raymond Feng commented on WINK-269:
-----------------------------------

I just realized that wink jars don't really contain the OSGi MNIFEST.MF.

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851103#action_12851103 ] 

Bryant Luk commented on WINK-269:
---------------------------------

So I'm assuming you're trying to build some sort of service yourself and just need the correct packages exported.  WINK-263 has a preliminary patch that contains the OSGi bundle exports (or at least the Maven bundle plugin information so when the JARs are built, it should have the correct exports).  I can apply that one to trunk.  If you need something more, please let us know.

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891635#action_12891635 ] 

Mike Rheinheimer commented on WINK-269:
---------------------------------------

Raymond, Bryant, I read through your discussion.  Is this issue resolved to your satisfaction?  If not, what's left?

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WINK-269) org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng closed WINK-269.
-----------------------------

    Resolution: Later

Close it for now until I have the need in the future.

> org.apache.wink.server.internal.servlet.RestServlet should be made as a SPI and exported to OSGi
> ------------------------------------------------------------------------------------------------
>
>                 Key: WINK-269
>                 URL: https://issues.apache.org/jira/browse/WINK-269
>             Project: Wink
>          Issue Type: Wish
>            Reporter: Raymond Feng
>
> In Apache Tuscany, we try to integrate wink to support JAX-RS with a plugable http container (such as embedded Tomcat/Jetty or OSGi http service). We need to create the RestServlet and register it to our HTTP servlet host. This is different from the web.xml configuration for a fully-blown web app.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.