Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 25. web
The web application is a bundle, so we can use normal bundle:start
and bundle:stop
commands.
The recommended method is to use WAB bundles, that have the Web-ContextPath: /path
manifest header.
WAB bundles can be installed as the type war
:
Example
mvn:io.hawt/hawtio-osgi/2.0.0.fuse-7_12_0-00009/war
.
25.1. web:context-list Copier lienLien copié sur presse-papiers!
25.1.1. Description Copier lienLien copié sur presse-papiers!
Lists all available web contexts. These may originate from HttpService, Whiteboard or WAB Extender.
25.1.2. Syntax Copier lienLien copié sur presse-papiers!
web:context-list
25.1.3. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--help | Display this help message |
25.1.4. Additional information Copier lienLien copié sur presse-papiers!
This command is mostly useful for OSGi web application developers.
Bundle ID | Symbolic Name | Context Path | Context Name | Rank | Service ID | Type | Scope | Registration Properties |
---|---|---|---|---|---|---|---|---|
122 | org.apache.cxf.cxf-rt-transports-http | / | default | MAX | 0 | HttpService | static* | httpContext.id=default httpContext.path=/ osgi.http.whiteboard.context.httpservice=default osgi.http.whiteboard.context.path=/ |
230 | org.ops4j.pax.web.pax-web-extender-whiteboard | / | default | 0 | 0 | Whiteboard | static* | osgi.http.whiteboard.context.name=default osgi.http.whiteboard.context.path=/ |
43 | io.hawt.hawtio-osgi | /hawtio | /hawtio | MAX | 0 | WAB | static* | osgi.http.whiteboard.context.path=/hawtio |
25.2. web:launch Copier lienLien copié sur presse-papiers!
25.2.1. Description Copier lienLien copié sur presse-papiers!
Start the web application in a browser of the given bundle ID.
25.2.2. Syntax Copier lienLien copié sur presse-papiers!
web:launch [options] id
25.2.3. Arguments Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
id | The bundle ID to start the browser with |
25.2.4. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--base | The base URL to browse to, otherwise default localhost:8181 will be used. |
--help | Display this help message |
25.3. web:wab-list Copier lienLien copié sur presse-papiers!
25.3.1. Description Copier lienLien copié sur presse-papiers!
Lists all available, deployed Web Application Bundles.
25.3.2. Syntax Copier lienLien copié sur presse-papiers!
web:wab-list
25.3.3. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--help | Display this help message |
25.4. web:servlet-list Copier lienLien copié sur presse-papiers!
25.4.1. Description Copier lienLien copié sur presse-papiers!
Lists details for available servlets.
25.4.2. Syntax Copier lienLien copié sur presse-papiers!
web:servlet-list [options]
25.4.3. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--help | Display this help message |
--no-format | Disable table rendered output |
25.4.4. Additional information Copier lienLien copié sur presse-papiers!
The web:servlet-list
command lists installed servlets, showing additional information, for example the method of servlet registration.
Bundle ID | Name | Class | Context Path(s) | URLs | Type |
---|---|---|---|---|---|
43 | default | org.ops4j.pax.web.service.undertow.internal.web.UndertowResourceServlet | /hawtio | / | WAB |
43 | jolokia-agent | io.hawt.web.servlets.JolokiaConfiguredAgentServlet | /hawtio | /jolokia/* | WAB |
43 | jolokia-proxy | io.hawt.web.proxy.ProxyServlet | /hawtio | /proxy/* | WAB |
43 | jsp | org.ops4j.pax.web.jsp.JspServlet | /hawtio | *.jspx, *.jsp | WAB |
43 | keycloak | io.hawt.web.auth.keycloak.KeycloakServlet | /hawtio | /keycloak/* | WAB |
43 | login | io.hawt.web.auth.LoginServlet | /hawtio | /auth/login | WAB |
43 | logout | io.hawt.web.auth.LogoutServlet | /hawtio | /auth/logout | WAB |
43 | plugin | io.hawt.web.plugin.PluginServlet | /hawtio | /plugin/* | WAB |
43 | user | io.hawt.web.auth.keycloak.KeycloakUserServlet | /hawtio | /user/* | WAB |
122 | cxf-osgi-transport-servlet | org.apache.cxf.transport.servlet.CXFNonSpringServlet | / | /cxf/* | HttpService |
25.5. web:start Copier lienLien copié sur presse-papiers!
- Deprecated
-
Use
bundle:start
with WAB bundles instead.
25.5.1. Description Copier lienLien copié sur presse-papiers!
Start the web context of given bundles.
25.5.2. Syntax Copier lienLien copié sur presse-papiers!
web:start [options] ids
25.5.3. Arguments Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
ids | The list of bundle IDs separated by whitespaces |
25.5.4. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--help | Display this help message |
25.6. web:stop Copier lienLien copié sur presse-papiers!
- Deprecated
-
Use
bundle:stop
with WAB bundles instead.
25.6.1. Description Copier lienLien copié sur presse-papiers!
Stop the web context of given bundles.
25.6.2. Syntax Copier lienLien copié sur presse-papiers!
web:stop [options] ids
25.6.3. Arguments Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
ids | The list of bundle IDs separated by whitespaces |
25.6.4. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--help | Display this help message |
25.7. web:wab-info Copier lienLien copié sur presse-papiers!
25.7.1. Description Copier lienLien copié sur presse-papiers!
Shows information about Web Application Bundle.
25.7.2. Syntax Copier lienLien copié sur presse-papiers!
web:wab-info [options]
25.7.3. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--wab | WAB specified by context path or bundle ID |
--help | Display this help message |
25.7.4. Additional information Copier lienLien copié sur presse-papiers!
The web:wab-info
command shows information about the structure of a web application. It displays reachable bundles, WAB classpath and registered ServletContainerInitializers.
Sample output for hawtio web application
25.8. web:wab-list Copier lienLien copié sur presse-papiers!
25.8.1. Description Copier lienLien copié sur presse-papiers!
Lists all available, deployed Web Application Bundles.
25.8.2. Syntax Copier lienLien copié sur presse-papiers!
web:wab-list
25.8.3. Options Copier lienLien copié sur presse-papiers!
Name | Description |
---|---|
--help | Display this help message |