Skip to content

Latest commit

 

History

History
166 lines (88 loc) · 11 KB

FAQ.md

File metadata and controls

166 lines (88 loc) · 11 KB

General Questions

General questions on all things hawtio.

What is the license?

hawtio uses the Apache 2.0 License.

What does hawtio do?

It's a pluggable management console for Java stuff which supports any kind of JVM, any kind of container (Tomcat, Jetty, Karaf, JBoss, Fuse Fabric, etc), and any kind of Java technology and middleware.

How do I install hawtio?

See the Getting Started Guide and the Configuration Guide

How do I configure hawtio?

Mostly hawtio just works. However, please check out the Configuration Guide to see what kinds of things you can configure via system properties, environment variables, web.xml context-params or dependency injection.

How do I disable security?

Since 1.2-M2 of hawtio we enable security by default using the underlying application container's security mechanism.

Here's how to disable security if you wish to remove the need to login to hawtio.

How do I connect to my remote JVM?

All thats required for hawtio to connect to any remove JVM is that a jolokia agent can be added to it. This can be done in various ways.

Firstly if you are using Fuse or Apache ActiveMQ 5.9.x or later then you already have jolokia enabled by default.

If a JVM has no jolokia agent, you can use the Local tab of the Connect menu (in 1.2.x or later of hawtio-default.war). The Local tab lists all local Java processes on the same machine (just like JConsole does).

For JVMs not running a jolokia agent already, there's a start button (on the right) which will dynamically add the jolokia JVM agent into the selected JVM process. You can then click on the Agent URL link to connect into it.

Note that the Local plugin only works when the JVM running hawtio has the hawtio-local-jvm-mbean plugin installed (which depends on the JVM finding the com.sun.tools.attach.VirtualMachine API that jconsole uses and is included in the hawtio-default.war). BTW if you don't see a Local tab inside the Conect menu in your hawtio application; check the log of your hawtio JVM; there might be a warning around com.sun.tools.attach.VirtualMachine not being available on the classpath. Or you could just try using the exectuable jar to run hawtio which seems to work on most platforms.

Note also that the Local tab only works when the process is on the same machine as the JVM running hawtio. So a safer option is just to make sure there's a jolokia agent running in each JVM you want to manage with hawtio.

There are a few different agents you can use:

  • WAR agent if you are using a servlet / EE container
  • OSGi agent if you are using OSGi (note that Jolokia is enabled by default in Fuse so you don't have to worry)
  • JVM agent if you are using a stand alone Java process

So once you've got a jolokia agent in your JVM you can test it by accessing http://host:port/jolokia in a browser to see if you can view the JSON returned for the version information of the jolokia agent.

Assuming you have jolokia working in your JVM, then you can use the Remote tab on the Connect menu in hawtio to connect; just enter the host, port, jolokia path and user/password.

After trying the above if you have problems connecting to your JVM, please let us know by raising an issue and we'll try to help.

What has changed lately?

Try have a look at the change log to see the latest changes in hawtio!

Where can I find more information?

Try have a look at the articles and demos to see what other folks are saying about hawtio.

Why does hawtio log a bunch of 404s to the javascript console at startup?

The hawtio help registry tries to automatically discover help data for each registered plugin even if plugins haven't specifically registered a help file.

Why does hawtio have its own wiki?

At first a git-based wiki might not seem terribly relevant to hawtio. A wiki can be useful to document running systems and link to the various consoles, operational tools and views. Though in addition to being used for documentation, hawtio's wiki also lets you view and edit any text file; such as Camel routes, Fuse Fabric profiles, Spring XML files, Drools rulebases, etc.

From a hawtio perspective though its wiki pages can be HTML or Markdown and then be an AngularJS HTML partial. So it can include JavaScript widgets; or it can include AngularJS directives.

This lets us use HTML and Markdown files to define custom views using HTML directives (custom tags) from any any hawtio plugins. Hopefully over time we can build a large library of HTML directives that folks can use inside HTML or Markdown files to show attribute values or charts from MBeans in real time, to show a panel from a dashboard, etc. Then folks can make their own mashups and happy pages showing just the information they want.

So another way to think of hawtio wiki pages is as a kind of plugin or a custom format of a dashboard page. Right now each dashboard page assumes a grid layout of rectangular widgets which you can add to and then move around. However with a wiki page you can choose to render whatever information & widgets you like in whatever layout you like. You have full control over the content and layout of the page!

Here are some sample issues on this if you want to help!

So whether the hawtio wiki is used for documentation, to link to various hawtio and external resources, to create custom mashups or happy pages or to provide new plugin views--all the content of the wiki is audited, versioned and stored in git so it's easy to see who changed what, when and to roll back changes, etc.

Problems/General Questions about using hawtio

Questions relating to errors you get while using hawtio or other general questions:

How can I hide or move tabs to different perspectives?

An easy way is to use a plugin to reconfigure the default perspective definition. Have a look at the custom-perspective for a plugin-based solution.

From hawtio 1.2.2 onwards you can reorder and hide plugins from the preference.

Provider sun.tools.attach.WindowsAttachProvider could not be instantiated: java.lang.UnsatisfiedLinkError: no attach in java.library.path

If you see an error like this:

java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.WindowsAttachProvider could not be instantiated: java.lang.UnsatisfiedLinkError: no attach in java.library.path

when starting up or trying the Connect/Local tab then its probably related to this issue as was found on #718.

Basically you need to make sure that you have JAVA_HOME/bin on your path. e.g. try this first before starting hawtio:

set path=%path%;%JAVA_HOME%\jre\bin

Plugin Questions

Questions on using the available plugins:

What plugins are available?

See the list of hawtio plugins

What is a plugin?

See How Plugins Work

Why does the OSGi tab not appear on GlassFish?

This is a reported issue. It turns out that the standard OSGi MBeans (in the osgi.core domain) are not installed by default on GlassFish.

The workaround is to install the Gemini Management bundle then you should see the MBeans in the osgi.core domain in the JMX tree; then the OSGi tab should appear!

Camel Questions

Questions on using Apache Camel and hawtio.

Why does the Debug or Trace tab not appear for my Camel route?

The Debug and Trace tabs depend on the JMX MBeans provided by the Camel release you use.

  • the Debug tab requires at least version 2.12.x or later of your Camel library to be running
  • the Trace tab requires either a 2.12.x or later distro of Camel or a Fuse distro of Camel from about 2.8 or later

Developer Questions

Questions on writing new plugins or hacking on existing ones:

How do I build the project?

If you just want to run hawtio in a JVM then please see the Getting Started section.

If you want to hack the source code then check out how to build hawtio.

What code conventions do you have?

Check out the Coding Conventions for our recommended approach.

What can my new plugin do?

Anything you like :). So long as it runs on a web browser, you're good to go. Please start contributing!

Do I have to use TypeScript?

You can write hawtio plugins in anything that runs in a browser and ideally compiles to JavaScript. So use pure JavaScript, CoffeeScript, EcmaScript6-transpiler, TypeScript, GWT, Kotlin, Ceylon, ClojureScript, ScalaJS and any language that compiles to JavaScript.

So take your pick; the person who creates a plugin can use whatever language they prefer, so please contribute a new plugin :).

The only real APIs a plugin needs to worry about are AngularJS (if you want to work in the core layout rather than just be an iframe), JSON (for some pretty trivial extension points such as adding new tabs), HTML and CSS.

How can I add my new plugin?

Check out how plugins work. You can then either:

  • Fork this project and submit your plugin by creating a Github pull request then we'll include your plugin by default in the hawtio distribution.
  • Make your own WAR with your plugin added (by depending on the hawtio-web.war in your pom.xml)
  • Host your plugin at some canonical website (e.g. with Github pages) then submit an issue to tell us about it and we can add it to the plugin registry JSON file.