Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
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 Link kopierenLink in die Zwischenablage kopiert!
25.1.1. Description Link kopierenLink in die Zwischenablage kopiert!
Lists all available web contexts. These may originate from HttpService, Whiteboard or WAB Extender.
25.1.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:context-list
25.1.3. Options Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
--help | Display this help message |
25.1.4. Additional information Link kopierenLink in die Zwischenablage kopiert!
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 Link kopierenLink in die Zwischenablage kopiert!
25.2.1. Description Link kopierenLink in die Zwischenablage kopiert!
Start the web application in a browser of the given bundle ID.
25.2.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:launch [options] id
25.2.3. Arguments Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
id | The bundle ID to start the browser with |
25.2.4. Options Link kopierenLink in die Zwischenablage kopiert!
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 Link kopierenLink in die Zwischenablage kopiert!
25.3.1. Description Link kopierenLink in die Zwischenablage kopiert!
Lists all available, deployed Web Application Bundles.
25.3.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:wab-list
25.3.3. Options Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
--help | Display this help message |
25.4. web:servlet-list Link kopierenLink in die Zwischenablage kopiert!
25.4.1. Description Link kopierenLink in die Zwischenablage kopiert!
Lists details for available servlets.
25.4.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:servlet-list [options]
25.4.3. Options Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
--help | Display this help message |
--no-format | Disable table rendered output |
25.4.4. Additional information Link kopierenLink in die Zwischenablage kopiert!
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 Link kopierenLink in die Zwischenablage kopiert!
- Deprecated
-
Use
bundle:start
with WAB bundles instead.
25.5.1. Description Link kopierenLink in die Zwischenablage kopiert!
Start the web context of given bundles.
25.5.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:start [options] ids
25.5.3. Arguments Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
ids | The list of bundle IDs separated by whitespaces |
25.5.4. Options Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
--help | Display this help message |
25.6. web:stop Link kopierenLink in die Zwischenablage kopiert!
- Deprecated
-
Use
bundle:stop
with WAB bundles instead.
25.6.1. Description Link kopierenLink in die Zwischenablage kopiert!
Stop the web context of given bundles.
25.6.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:stop [options] ids
25.6.3. Arguments Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
ids | The list of bundle IDs separated by whitespaces |
25.6.4. Options Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
--help | Display this help message |
25.7. web:wab-info Link kopierenLink in die Zwischenablage kopiert!
25.7.1. Description Link kopierenLink in die Zwischenablage kopiert!
Shows information about Web Application Bundle.
25.7.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:wab-info [options]
25.7.3. Options Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
--wab | WAB specified by context path or bundle ID |
--help | Display this help message |
25.7.4. Additional information Link kopierenLink in die Zwischenablage kopiert!
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 Link kopierenLink in die Zwischenablage kopiert!
25.8.1. Description Link kopierenLink in die Zwischenablage kopiert!
Lists all available, deployed Web Application Bundles.
25.8.2. Syntax Link kopierenLink in die Zwischenablage kopiert!
web:wab-list
25.8.3. Options Link kopierenLink in die Zwischenablage kopiert!
Name | Description |
---|---|
--help | Display this help message |