Retrieving and Installing MaintainJ plug-ins (drop-ins) and graphics library



Similar documents
OSF INTEGRATOR for. Integration Guide

JBoss Portal 2.4. Quickstart User Guide

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

To begin, visit this URL:

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier.

Tutorial: setting up a web application

Installing the Android SDK

FlexSim LAN License Server

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Tutorial on Basic Android Setup

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

How To Sync Quickbooks With Qvinci.Com On A Pc Or Macbook Or Mac Book (For A Webbook) With A Flashbook (For An Ubuntu Account) With An Ipo (For Macbook) On A Mac

Written by Wirabumi Software Sunday, 30 December :27 - Last Updated Thursday, 03 January :52

RaidenFTPD Log Analyser Web Edition

HP Client Automation Standard Fast Track guide

Guide to Using Citrix at SLU (Windows)

Practice Fusion API Client Installation Guide for Windows

Hudson configuration manual

TIBCO Slingshot User Guide

Application Servers - BEA WebLogic. Installing the Application Server

SDK Code Examples Version 2.4.2

Managed Devices - Web Browser/HiView

BusinessObjects Enterprise XI Release 2

Creating Home Directories for Windows and Macintosh Computers

Install SQL Server 2014 Express Edition

Beginning with SubclipseSVN

3. Installation and Configuration. 3.1 Java Development Kit (JDK)

Deploying Microsoft Operations Manager with the BIG-IP system and icontrol

How To: Manage your Oracle patch deployment life cycle using Oracle Support Patch Plans

RoomWizard Synchronization Software Manual Installation Instructions

ConcourseSuite 7.0. Installation, Setup, Maintenance, and Upgrade

Quick start. A project with SpagoBI 3.x

MOODLE Installation on Windows Platform

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

DOCUMENT MANAGEMENT SYSTEM

Eclipse installation, configuration and operation

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

Intellicus Cluster and Load Balancing (Windows) Version: 7.3

Application. 1.1 About This Tutorial Tutorial Requirements Provided Files

1 Building, Deploying and Testing DPES application

How To Set Up An Intellicus Cluster And Load Balancing On Ubuntu (Windows) With A Cluster And Report Server (Windows And Ubuntu) On A Server (Amd64) On An Ubuntu Server

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

OpenGeo Suite for Linux Release 3.0

PMOD Installation on Linux Systems

Installing (1.8.7) 9/2/ Installing jgrasp

CafePilot has 3 components: the Client, Server and Service Request Monitor (or SRM for short).

T320 E-business technologies: foundations and practice

WA2102 Web Application Programming with Java EE 6 - WebSphere RAD 8.5. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

Tutorial: Load Testing with CLIF

RHEV 2.2: REST API INSTALLATION

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

IBM Business Monitor V8.0 Global monitoring context lab

2. Installation Instructions - Windows (Download)

Having Fun with QNAP and your Home Automation

Web Testing, Java Testing, Server Monitoring. AppPerfect Installation Guide

Matrix Logic WirelessDMS Service 2.0

Tutorial: BlackBerry Application Development. Sybase Unwired Platform 2.0

WA1791 Designing and Developing Secure Web Services. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc. 1

Building OWASP ZAP Using Eclipse IDE

ZeroTurnaround License Server User Manual 1.4.0

BIRT Application and BIRT Report Deployment Functional Specification

Cloudwords Drupal Module. Quick Start Guide

L01: Using the WebSphere Application Server Liberty Profile for lightweight, rapid development. Lab Exercise

Installation Guide for contineo

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

COMMANDS 1 Overview... 1 Default Commands... 2 Creating a Script from a Command Document Revision History... 10

Installing Drupal on Your Local Computer

Installation Guide. Before We Begin: Please verify your practice management system is compatible with Dental Collect Enterprise.

EMC Documentum Content Services for SAP Repository Manager

T320 E-business technologies: foundations and practice

Generating Open For Business Reports with the BIRT RCP Designer

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

New Participant Digital Certificate Enrollment Procedure

SHIPSTATION / MIVA MERCHANT SETUP GUIDE

Sonatype CLM Enforcement Points - Continuous Integration (CI) Sonatype CLM Enforcement Points - Continuous Integration (CI)

JMC Next Generation Web-based Server Install and Setup

Installation and Upgrade Guide. PowerSchool Student Information System

IS L06 Protect Servers and Defend Against APTs with Symantec Critical System Protection

MSH OnsiteHealth is a Web site for Physicians - providing system access off campus. MSH OnsiteHealth is a free, secure Web site featuring:

Intellicus Cluster and Load Balancing- Linux. Version: 7.3

How to simulate network devices using the Verax SNMP Simulator (Linux/Windows)

Witango Application Server 6. Installation Guide for Windows

Installation Guidelines (MySQL database & Archivists Toolkit client)

NetBeans IDE Field Guide

Install guide for Websphere 7.0

Response Time Analysis of Web Templates

Quick Start Guide. Installation and Setup

Hypercosm. Studio.

SOS SO S O n O lin n e lin e Bac Ba kup cku ck p u USER MANUAL

POOSL IDE Installation Manual

Magento Search Extension TECHNICAL DOCUMENTATION

SchoolBooking SSO Integration Guide

Configuring Microsoft IIS 5.0 With Pramati Server

Transcription:

Written by Chris Velado September 28, 2011 MaintainJ with a J2EE Application MaintainJ is a Java Application that allows you to view all calls within a J2SE or J2EE application. By allowing their application to perform reverse engineering, MaintainJ collects all the data from the stack trace and generates a.ser file; which then can be rendered in Eclipse and viewed as a sequence diagram. For ease of setting up your environment, this tutorial will help show you how to integrate MaintainJ with a standard setup of a J2EE Application running on Tomcat 7, thanks to our new friend Choudary who has updated MaintainJ to work with the newest version of Tomcat. Retrieving and Installing MaintainJ plug-ins (drop-ins) and graphics library There are two ways of installing the plug-ins into Eclipse, all depending if you are running a standard version of Eclipse or Eclipse Yoxos. If you have a standard copy of Eclipse, you can simply navigate in Eclipse to Help - > Install New Software. There is one repository URL s that you will need to download from. MaintainJ Features: http://www.maintainj.com/updates/3.2.0

This plug-in should auto detect and install the GEF graphics library for your IDE. For users who are using Eclipse Yokos, click on the link to download the most recent version of the MaintainJ_3_2_Features.zip http://maintainj.com/userguide.jsp?param=install Once the file is downloaded and unzipped; copy the content into your Eclipse s plug-in directory (drop-in directory if you are running Eclipse Indigo). Make sure Eclipse is closed and from the command line, run Eclipse clean to allow your IDE to pick up the new software. Once Eclipse is up and running, you will want to create a MaintainJ Trace Project. To do so, go to File - > New - > Other and select the MaintainJ Trace Files Project to create the new project. Now that your project is in your workspace, go ahead and jot down the path to the directory of that project; we will need this for the last step.

Running MaintainJ Now it is time to download and run the MaintainJ application within the same Tomcat 7 server that your J2EE application will be located. Go back to the MaintainJ website and download the MaintainJ.war file and place it under apache-tomcat-7.0.19\webapps. Then simply startup Tomcat, assuming that your J2EE application is already configured with this instance. During startup, you should see that the.war file was extracted and placed under apache-tomcat-7.0.19\work\catalina\localhost\maintainj. So the server should now be up and running. Go ahead and check to make sure your J2EE application instance is properly responding. Then open up a new tab in your browser and type the following: http://localhost:8080/maintainj/

You should see the MaintainJ Install and Configure page. Go ahead and navigate through each step. Step 1 will automatically place the needed.jar files for MaintainJ to fully operate. For step 2, go ahead and type the package name(s) within your application. These packages are usually located in your WEB-INF/classes/com directory within the application. Toward the bottom of the page, you have options as to what type of calls you would like MaintainJ to trace. Once done, click Generate Aspect. Now you should be on Step 3. Without closing the browser tab, go ahead and shutdown the server. You should see a newly created catalina_with_mnj.bat file in the apache-tomcat-7.0.19\bin directory. Go ahead and open to edit this file. Currently while running MaintainJ with your J2EE application, the startup will hit a max perm and memory overload error. To fix this, we will have to specify that max amount of memory (-Xmx2G) and perm size arguments (- XX:MaxPermSize=128M). After editing the 6 th line in the catalina_with_mnj.bat file, your copy should now be similar to the following, excluding line 4. echo "***Starting Tomcat with your J2EE Application ***" SETLOCAL set MJ_LIB=C:\Tomcats\J2EEApp\apache-tomcat-7.0.19\lib set AGENTJAR=%MJ_LIB%\aspectjweaver.jar

set JAVA_OPTS="-javaagent:%AGENTJAR%" -Daj.weaving.verbose=true %JAVA_OPTS% "-Xmx2G" "-XX:MaxPermSize=128M" call "catalina.bat" %* ENDLOCAL Next, go back to the command line and run the following to start up the Tomcat instance again. catalina_with_mnj.bat start After everything has loaded, go back to the MaintainJ tab and click on the Step 4 verification link. If all goes well, you should now be able to capture the call traces. Simply click on Start Tracing. Now take the directory path that we jotted down earlier to the MaintainJ Trace Project, and copy it along with the preferred file name with no extension into the Trace File input box. Next, click Stop Trace and restart by clicking on the Start Tracing button. Viewing Sequence Diagram. MaintainJ is now fully running and recording the calls for your J2EE application. Go ahead and do a simple test like logging into the application. Then go back and click Stop Trace to retrieve the.ser files. Next, go back to Eclipse and refresh your Trace Project (f5). You should now see the newly created.ser files in the project. Finally, just double click on the file and you should now be able to view and interact with the state diagram. Woo-Hoo, you should now be fully set up with MaintainJ! References: MaintainJ Homepage http://www.maintainj.com/ Installing and Configuring MaintainJ http://maintainj.com/userguide.jsp?param=install Support Forum http://www.maintainj.com/smf/