You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Andreas Pieber (JIRA)" <ji...@apache.org> on 2011/04/15 11:44:06 UTC

[jira] [Created] (KARAF-572) Command to show all registered servlets and their contexts

Command to show all registered servlets and their contexts
----------------------------------------------------------

                 Key: KARAF-572
                 URL: https://issues.apache.org/jira/browse/KARAF-572
             Project: Karaf
          Issue Type: New Feature
          Components: console
            Reporter: Andreas Pieber


Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.

This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Resolved] (KARAF-572) Command to show all registered servlets and their contexts

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

Achim Nierbeck resolved KARAF-572.
----------------------------------

    Resolution: Fixed

revision: 1098814


> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Resolved] (KARAF-572) Command to show all registered servlets and their contexts

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

Achim Nierbeck resolved KARAF-572.
----------------------------------

    Resolution: Fixed

this should be finally it: 
1099964


> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>             Fix For: 3.0.0
>
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Resolved] (KARAF-572) Command to show all registered servlets and their contexts

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

Achim Nierbeck resolved KARAF-572.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0

revision: 1099271


> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>             Fix For: 3.0.0
>
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Commented] (KARAF-572) Command to show all registered servlets and their contexts

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028645#comment-13028645 ] 

Achim Nierbeck commented on KARAF-572:
--------------------------------------

hi Andreas, 

well the length cut could be made visible, but still the result looks like [ This is to be cut o] at the end so I would consider it to be enough.

I had the CommandUtils placed inside the util bundle but the util bundle isn't provided at all. 
Because I didn't find a proper solution and to get this working I placed the code there. 
A refactoring of this is highly appreciated but right now I'm uncertain where to place :) 

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>             Fix For: 3.0.0
>
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Commented] (KARAF-572) Command to show all registered servlets and their contexts

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027791#comment-13027791 ] 

Achim Nierbeck commented on KARAF-572:
--------------------------------------

I'm planning on creating a new command http:list-servlet for listing all the servlets running

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Reopened] (KARAF-572) Command to show all registered servlets and their contexts

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

Andreas Pieber reopened KARAF-572:
----------------------------------


There are some open issues with the commit

* Missing unittest
* Missing header on karaf/trunk/shell/http/pom.xml
* Make scope of dependencies in karaf/trunk/shell/http/pom.xml "provided"
* All versions should be defined in karaf/trunk/pom.xml first (javax.servlet)
* Do not use @author Tag 
* Handle names with "overlenght"

{code}
> +                       while (servletName.length() < 23) {
> +                               servletName += " ";
> +                       }

should we concat the name if it's longer than 23 chars?
{code}

* Create general util-method for filling strings with spaces; e.g.:

{code}
> +                       while (alias.length() < 16 ) {
> +                               alias += " ";
> +                       }
{code}

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Commented] (KARAF-572) Command to show all registered servlets and their contexts

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022066#comment-13022066 ] 

Jean-Baptiste Onofré commented on KARAF-572:
--------------------------------------------

+1

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Reopened] (KARAF-572) Command to show all registered servlets and their contexts

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

Achim Nierbeck reopened KARAF-572:
----------------------------------


just reopened so the utils part can be re-factored in the http and web commands. 

set the dependencies of the karaf-util bundle to compile and set the required
packages to private-package in the manifest. 

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>             Fix For: 3.0.0
>
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Work started] (KARAF-572) Command to show all registered servlets and their contexts

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

Work on KARAF-572 started by Achim Nierbeck.

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Commented] (KARAF-572) Command to show all registered servlets and their contexts

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028554#comment-13028554 ] 

Andreas Pieber commented on KARAF-572:
--------------------------------------

Hey Achim,

Not sure, but a)

{code}
+               if (message.length() > length) {
+                       message = message.substring(0, length);
+               }
{code}

shouldn't we indicate somehow that we've cut the name? E.g. replacing last char with an [?

and b) y not moving CommandUtils.java into util?

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>             Fix For: 3.0.0
>
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Commented] (KARAF-572) Command to show all registered servlets and their contexts

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027225#comment-13027225 ] 

Achim Nierbeck commented on KARAF-572:
--------------------------------------

PAXWEB-265 is resolved so next thing to come is this one :-)

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Commented] (KARAF-572) Command to show all registered servlets and their contexts

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028363#comment-13028363 ] 

Achim Nierbeck commented on KARAF-572:
--------------------------------------

change http:list-servlet to http:list since this is the only list command in the http context


> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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

[jira] [Assigned] (KARAF-572) Command to show all registered servlets and their contexts

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

Achim Nierbeck reassigned KARAF-572:
------------------------------------

    Assignee: Achim Nierbeck

> Command to show all registered servlets and their contexts
> ----------------------------------------------------------
>
>                 Key: KARAF-572
>                 URL: https://issues.apache.org/jira/browse/KARAF-572
>             Project: Karaf
>          Issue Type: New Feature
>          Components: console
>            Reporter: Andreas Pieber
>            Assignee: Achim Nierbeck
>
> Currently we only have a web:list command showing the context where a war file is installed. In addition, if you're using frameworks which could use the osgi http service directly (such as cxf or pax-wicket) there is no way to find out (via Karaf) which servlets are registered at which context. It would be quite cool if we could add a command to list all those servlets too.
> This issue is strongly connected to http://issues.ops4j.org/browse/PAXWEB-265 (adding the required events for this task to pax-web)

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