2015-08-25 1 views
0

J'ai une application autonome (hawtio-app-1.4.52.jar). Je voulais déployer le plugin simple, mais je n'ai pas réussi à le construire seul, alors j'ai téléchargé l'application hawtio de github et construit le "plugin simple" sans le changer. (J'ai ouvert le projet entier et utilisé l'artefact de construction dans l'idée d'IntelliJ.) - Le bâtiment était sans avertissement ou erreur et j'ai obtenu le fichier .WAR de ce plugin. J'ai créé le répertoire "plugins" à côté du hawtio.jar et j'ai mis la guerre à l'intérieur.Impossible de charger le plugin hawtio

Il n'y a aucun nouvel onglet dans hawtio ou aucun autre signe de ce plugin en cours d'exécution.

Je peux accéder au dossier du plugin sur http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT/ mais il affiche uniquement les structures de dossiers et le texte brut des fichiers source.

Dans this question est mentionné PluginServlet, mais je n'ai aucune idée, comment l'importer dans le plugin simple.

Est-ce que quelqu'un sait, comment rendre le plugin visible et utilisable? Merci.

Quand je lance le pot de hawtio dans le terminal, cela se voit:

[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 [email protected]: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 
+1

Avez-vous essayé d'enlever le numéro de version du nom de guerre? – Jkike

Répondre

1

en renommant correctement Résolu le plug-in. Il doit être "simple-plugin" au lieu de "simple-plugin-1.42" ou toute autre chose.