Github user sjcorbett commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/762#discussion_r35201705
  
    --- Diff: docs/guide/dev/tips/troubleshooting-exceptions.md ---
    @@ -0,0 +1,487 @@
    +---
    +layout: website-normal
    +title: Troubleshooting Exceptions and Node Failure
    +toc: /guide/toc.json
    +---
    +
    +Whether you're customizing out-of-the-box blueprints, or developing your 
own custom blueprints, you will
    +inevitably have to deal with node failure, or exceptions being thrown by 
your node. Thankfully Brooklyn
    +provides plenty of information to help you locate and resolve any issues 
you may encounter.
    +
    +This guide looks at three common failure scenarios and describes the steps 
that can be taken to
    +identify the issue.
    +
    +## Script failure
    +Many blueprints run bash scripts as part of the installation. This section 
highlights how to identify a problem with
    +a bash script.
    +
    +First let's take a look at the `customize()` method of the Tomcat server 
blueprint:
    +
    +{% highlight java %}
    +  @Override
    +  public void customize() {
    +      newScript(CUSTOMIZING)
    +          .body.append("mkdir -p conf logs webapps temp")
    +          .failOnNonZeroResultCode()
    +          .execute();
    +
    +      copyTemplate(entity.getConfig(TomcatServer.SERVER_XML_RESOURCE), 
Os.mergePaths(getRunDir(), "conf", "server.xml"));
    +      copyTemplate(entity.getConfig(TomcatServer.WEB_XML_RESOURCE), 
Os.mergePaths(getRunDir(), "conf", "web.xml"));
    +
    +      // Deduplicate same code in JBoss
    --- End diff --
    
    Minor: don't need to include this comment.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to