无法加载 hawtio 插件
Can't load hawtio plugin
我有 hawtio 独立应用程序 (hawtio-app-1.4.52.jar)。
我想部署简单的插件,但我没有成功地单独构建它,所以我从 github 下载了 hawtio 应用程序并构建了 "simple plugin" 而没有更改它。 (我打开了整个项目并在 IntelliJ idea 中使用了构建工件。)-构建没有 warning 或错误,我得到了这个插件的 .WAR 文件。
我在 hawtio.jar 旁边创建了 "plugins" 目录,并将 war 放在里面。
hawtio 中没有新标签页或此插件没有其他迹象运行ning.
我可以在 http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT/ 上访问插件的文件夹,但它只显示源文件的文件夹结构和纯文本。
在问题中提到了PluginServlet,但我不知道如何将其导入简单插件。
有谁知道,如何使插件可见和可用?
谢谢
当我 运行 终端中的 hawtio jar 时,显示如下:
[main] INFO jetty - using temp directory for jetty: /Users/mcejka/.hawtio/tmp
[main] INFO jetty - Scanning for 3rd party plugins in directory: plugins
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /simple-plugin-1.5-SNAPSHOT, did not find org.apache.jasper.servlet.JspServlet
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/mcejka/.hawtio/tmp/simple-plugin-1.5-SNAPSHOT.war/webapp/WEB-INF/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/mcejka/Downloads/hawtio-app-1.4.52.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (io.hawt.web.plugin.HawtioPlugin).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawt.io simple plugin at http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT
[main] INFO jetty - Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Embedded hawtio: You can use --help to show usage
Using options [
war=/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
contextPath=/hawtio
port=8090
extraClassPath=file:/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/lib/tools.jar
plugins=plugins
jointServerThread=false
help=false]
About to start hawtio /private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
[main] INFO org.eclipse.jetty.server.Server - jetty-8.y.z-SNAPSHOT
[main] INFO org.eclipse.jetty.webapp.WebInfConfiguration - Extract jar:file:/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war!/ to /Users/mcejka/.hawtio/tmp/webapp
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /hawtio, did not find org.apache.jasper.servlet.JspServlet
[main] INFO io.hawt.system.ConfigManager - Configuration will be discovered via system properties
[main] INFO io.hawt.jmx.JmxTreeWatcher - Welcome to hawtio 1.4.52 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
[main] INFO io.hawt.jmx.UploadManager - Using file upload directory: /var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T//uploads
[main] INFO /hawtio - Loading Blueprint contexts [file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/classes/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-aether-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-core-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-git-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-ide-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-json-schema-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-kubernetes-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-local-jvm-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml]
[main] INFO io.hawt.git.GitFacade - hawtio using config directory: /Users/mcejka/.hawtio/config
[main] INFO io.hawt.git.GitFacade - Performing a pull in git repository /Users/mcejka/.hawtio/config on remote URL: https://github.com/hawtio/hawtio-config.git. Subsequent pull attempts will use debug logging
[main] INFO io.hawt.web.AuthenticationFilter - Starting hawtio authentication filter, JAAS authentication disabled
[main] INFO /hawtio - jolokia-agent: Using access restrictor classpath:/jolokia-access.xml
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawtio at http://0.0.0.0:8090/hawtio
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:8090
hawtio: Don't cha wish your console was hawt like me!
=====================================================
http://localhost:8090/hawtio
[qtp1501587365-23] INFO io.hawt.web.keycloak.KeycloakServlet - Keycloak integration is disabled
已通过正确重命名插件解决。它必须是 "simple-plugin" 而不是 "simple-plugin-1.42" 或其他任何东西。
我有 hawtio 独立应用程序 (hawtio-app-1.4.52.jar)。
我想部署简单的插件,但我没有成功地单独构建它,所以我从 github 下载了 hawtio 应用程序并构建了 "simple plugin" 而没有更改它。 (我打开了整个项目并在 IntelliJ idea 中使用了构建工件。)-构建没有 warning 或错误,我得到了这个插件的 .WAR 文件。
我在 hawtio.jar 旁边创建了 "plugins" 目录,并将 war 放在里面。
hawtio 中没有新标签页或此插件没有其他迹象运行ning.
我可以在 http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT/ 上访问插件的文件夹,但它只显示源文件的文件夹结构和纯文本。
在
有谁知道,如何使插件可见和可用? 谢谢
当我 运行 终端中的 hawtio jar 时,显示如下:
[main] INFO jetty - using temp directory for jetty: /Users/mcejka/.hawtio/tmp
[main] INFO jetty - Scanning for 3rd party plugins in directory: plugins
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /simple-plugin-1.5-SNAPSHOT, did not find org.apache.jasper.servlet.JspServlet
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/mcejka/.hawtio/tmp/simple-plugin-1.5-SNAPSHOT.war/webapp/WEB-INF/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/mcejka/Downloads/hawtio-app-1.4.52.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (io.hawt.web.plugin.HawtioPlugin).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawt.io simple plugin at http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT
[main] INFO jetty - Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Embedded hawtio: You can use --help to show usage
Using options [
war=/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
contextPath=/hawtio
port=8090
extraClassPath=file:/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/lib/tools.jar
plugins=plugins
jointServerThread=false
help=false]
About to start hawtio /private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
[main] INFO org.eclipse.jetty.server.Server - jetty-8.y.z-SNAPSHOT
[main] INFO org.eclipse.jetty.webapp.WebInfConfiguration - Extract jar:file:/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war!/ to /Users/mcejka/.hawtio/tmp/webapp
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /hawtio, did not find org.apache.jasper.servlet.JspServlet
[main] INFO io.hawt.system.ConfigManager - Configuration will be discovered via system properties
[main] INFO io.hawt.jmx.JmxTreeWatcher - Welcome to hawtio 1.4.52 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
[main] INFO io.hawt.jmx.UploadManager - Using file upload directory: /var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T//uploads
[main] INFO /hawtio - Loading Blueprint contexts [file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/classes/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-aether-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-core-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-git-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-ide-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-json-schema-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-kubernetes-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-local-jvm-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml]
[main] INFO io.hawt.git.GitFacade - hawtio using config directory: /Users/mcejka/.hawtio/config
[main] INFO io.hawt.git.GitFacade - Performing a pull in git repository /Users/mcejka/.hawtio/config on remote URL: https://github.com/hawtio/hawtio-config.git. Subsequent pull attempts will use debug logging
[main] INFO io.hawt.web.AuthenticationFilter - Starting hawtio authentication filter, JAAS authentication disabled
[main] INFO /hawtio - jolokia-agent: Using access restrictor classpath:/jolokia-access.xml
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawtio at http://0.0.0.0:8090/hawtio
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:8090
hawtio: Don't cha wish your console was hawt like me!
=====================================================
http://localhost:8090/hawtio
[qtp1501587365-23] INFO io.hawt.web.keycloak.KeycloakServlet - Keycloak integration is disabled
已通过正确重命名插件解决。它必须是 "simple-plugin" 而不是 "simple-plugin-1.42" 或其他任何东西。