main website home
  • About this blog

    This blog features updates, opinions, and technical notes from Caucho engineers about Caucho products, the enterprise Java industry, and PHP. Caucho Technology is the creator of the Resin Application Server and the Quercus PHP in Java engine. A leader in Java performance since 1998, Caucho is a Sun JavaEE licensee with over 9000 customers worldwide.
  • Tags

    ajaxworld bam candi cdi cloud cluster comet configuration deploy devoxx eclipse ejb embedded flash flex google app engine hessian hmtp ioc java ee 6 javaone javazone jms messaging newsletter nyjug osgi php pomegranate quercus resin resin 4.0 REST servlet sfjug silicon valley code camp spring testing training tssjs watchdog webbeans web profile websockets wordpress
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
« Resin 4.0.18 release
Resin fulfills the vision of Cloud computing in a Java EE environment »

An overview of Resin directories

Based on a few recent support queries, some clarification of Resin’s directory structure should be beneficial for everyone and new users in particular.  This is all spelled out in the documentation, just in different words.

Resin is organized into essentially 4 different directories:

  • Resin Home
    • Contains:
      • Scripts: bin/
      • Internal Resin libraries like resin.jar: lib/
      • Compiled native libraries: libexec/ or libexec64/
      • Licenses: licenses/
      • SSL keys: keys/
    • Config EL variable: ${resin.home}
    • ./configure parameter: −−prefix
    • Command line: -resin-home is available but deprecated; should be set using the environment variable RESIN_HOME
    • Default location: /usr/local/resin
  • Resin Root
    • Contains:
      • Webapp deploy directory: webapps/
      • Shared java libraries: project-jars/ and webapp-jars/
      • Internal Resin databases: resin-data/ and watchdog-data/
    • Config EL variable: ${resin.root}
    • ./configure parameter: −−with-resin-root
    • Command line: -root-directory
    • Default location: /var/www
  • Resin Config
    • Contains:
      • The main Resin configuration file: resin.xml
      • Webapp defaults: app-default.xml
      • Health checking and graphing configuration: health.xml
      • Administrators list: admin-users.xml
    • Config EL variable: ${__DIR__}
    • ./configure parameter: −−with-resin-conf
    • Command line: -conf (path to resin.xml, the other files are loaded using ${__DIR__})
    • Default location: /etc/resin
  • Resin Log
    • Contains:
      • Console log: console.log
      • Watchdog log: watchdog-manager.log
      • Resin log(s): jvm-*.log (default is jvm-default.log)
    • Config EL variable: none
    • ./configure parameter: −−with-resin-log
    • Command line: -log-directory
    • Default location: /var/log/resin

Consider a typical installation sequence without parameters:

unzip resin-pro-4.0.18.zip
cd resin-pro-4.0.18.zip
./configure
make
sudo make install

The ./configure command will output the following, clearly showing you that the 4 Resin directories get installed following typical Unix style setup into different partitions.  As such, the “sudo” on make install is usually necessary to gain write permission to protected locations.

Resin Configuration summary:

RESIN_HOME : /usr/local/resin
root : /var/www
conf : /etc/resin
log : /var/log/resin
plugins : common resin_os resin resinssl
init : /etc/init.d/resin
JAVA_HOME: /usr/java/default
…

Notice in the above output that the install also creates a custom startup script at /etc/init.d/resin!  Resin’s packaged startup script at ${resin.home}/bin/resin.sh by default expects all Resin directories to exist under ${resin.home}.  So it’s essential to use the init.d script in a Unix style setup so that Resin can find all the required directories.

Users who don’t have root access or prefer to keep installation simple can choose to install all of Resin to a single directory using the −−prefix parameter.  In fact, this is how we recommend all users get started.

unzip resin-pro-4.0.18.zip
cd resin-pro-4.0.18.zip
./configure −−prefix=`pwd`
make
make install

−−prefix can be any directory you prefer; `pwd` simply refers to the current directory.  So after installation following the example above, ${resin.home} is the same as ${resin.root).  Config is located at ${resin.home}/conf and logs are written  to ${resin.home}/log.

Tags: configure parmeters, deploy directory, init.d, log directory, resin-home, resin.home, resin.root, startup

This entry was posted on Thursday, May 26th, 2011 at 7:58 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “An overview of Resin directories”

  1. rick Says:
    November 21st, 2011 at 4:05 pm

    The install changed. We now put things under /usr/share resin not /usr/local.

Leave a Reply

You must be logged in to post a comment.


Caucho Technology is proudly powered by WordPress and Quercus®
Entries (RSS) and Comments (RSS).

  • HOME |
  • CONTACT US |
  • DOCUMENTATION |
  • BLOG |
  • WIKI 4 |
  • WIKI 3 |
  • Resin: Java Application Server
Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.
resin® is a cloud optimized, java® application server that supports the java ee webprofile ®