Este contenido no está disponible en el idioma seleccionado.
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 Copiar enlaceEnlace copiado en el portapapeles!
25.1.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Lists all available web contexts. These may originate from HttpService, Whiteboard or WAB Extender.
25.1.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:context-list
25.1.3. Options Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
--help | Display this help message |
25.1.4. Additional information Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
25.2.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Start the web application in a browser of the given bundle ID.
25.2.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:launch [options] id
25.2.3. Arguments Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
id | The bundle ID to start the browser with |
25.2.4. Options Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
25.3.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Lists all available, deployed Web Application Bundles.
25.3.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:wab-list
25.3.3. Options Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
--help | Display this help message |
25.4. web:servlet-list Copiar enlaceEnlace copiado en el portapapeles!
25.4.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Lists details for available servlets.
25.4.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:servlet-list [options]
25.4.3. Options Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
--help | Display this help message |
--no-format | Disable table rendered output |
25.4.4. Additional information Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
- Deprecated
-
Use
bundle:start
with WAB bundles instead.
25.5.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Start the web context of given bundles.
25.5.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:start [options] ids
25.5.3. Arguments Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
ids | The list of bundle IDs separated by whitespaces |
25.5.4. Options Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
--help | Display this help message |
25.6. web:stop Copiar enlaceEnlace copiado en el portapapeles!
- Deprecated
-
Use
bundle:stop
with WAB bundles instead.
25.6.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Stop the web context of given bundles.
25.6.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:stop [options] ids
25.6.3. Arguments Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
ids | The list of bundle IDs separated by whitespaces |
25.6.4. Options Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
--help | Display this help message |
25.7. web:wab-info Copiar enlaceEnlace copiado en el portapapeles!
25.7.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Shows information about Web Application Bundle.
25.7.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:wab-info [options]
25.7.3. Options Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
--wab | WAB specified by context path or bundle ID |
--help | Display this help message |
25.7.4. Additional information Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
25.8.1. Description Copiar enlaceEnlace copiado en el portapapeles!
Lists all available, deployed Web Application Bundles.
25.8.2. Syntax Copiar enlaceEnlace copiado en el portapapeles!
web:wab-list
25.8.3. Options Copiar enlaceEnlace copiado en el portapapeles!
Name | Description |
---|---|
--help | Display this help message |