<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>drwxr- -r- - &#187; eclipse</title>
	<atom:link href="http://edwardaux.wordpress.com/category/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwardaux.wordpress.com</link>
	<description>/dev/random</description>
	<lastBuildDate>Wed, 17 Jan 2007 23:09:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='edwardaux.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0efbe74b7a4ca52db819aeb3f17d4bd8?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>drwxr- -r- - &#187; eclipse</title>
		<link>http://edwardaux.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://edwardaux.wordpress.com/osd.xml" title="drwxr- -r- -" />
		<item>
		<title>Trap in WSAD j9vm21.dll in debug mode</title>
		<link>http://edwardaux.wordpress.com/2007/01/18/trap-in-wsad-j9vm21dll-in-debug-mode/</link>
		<comments>http://edwardaux.wordpress.com/2007/01/18/trap-in-wsad-j9vm21dll-in-debug-mode/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 23:03:03 +0000</pubDate>
		<dc:creator>edwardaux</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://edwardaux.wordpress.com/2007/01/18/trap-in-wsad-j9vm21dll-in-debug-mode/</guid>
		<description><![CDATA[For a long time now, a few of my co-developers have been trying to figure out what caused this trap in WSAD:

Type=GPF vmState=0xffffffff
Target=20030915 (Windows XP 5.1 build 2600 Service Pack 2 x86)
ExceptionCode=0xc0000005 ExceptionAddress=0x1000ac84 ContextFlags=0x0001003f
Handler1=0x111016c0 Handler2=0x10019730
Module=c:\WSAD512\runtimes\base_v51\java\jre\bin\j9vm21.dll
Module_base_address=0x10000000
Offset_in_DLL=0x0000ac84
EDI=0x0011d9c8 ESI=0x008e5e60 EAX=0x74753f3e
EBX=0x0011d9c8 ECX=0x03b5cf14 EDX=0x7463656a
EBP=0x000be300 ESP=0x04381644 EIP=0x1000ac84
Generating crash dump: C:\Documents and Settings\c09974\j9.dmp

I had a quick look a while back, and couldn&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edwardaux.wordpress.com&blog=398350&post=15&subd=edwardaux&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For a long time now, a few of my co-developers have been trying to figure out what caused this trap in WSAD:<br />
<code><br />
Type=GPF vmState=0xffffffff<br />
Target=20030915 (Windows XP 5.1 build 2600 Service Pack 2 x86)<br />
ExceptionCode=0xc0000005 ExceptionAddress=0x1000ac84 ContextFlags=0x0001003f<br />
Handler1=0x111016c0 Handler2=0x10019730<br />
Module=c:\WSAD512\runtimes\base_v51\java\jre\bin\j9vm21.dll<br />
Module_base_address=0x10000000<br />
Offset_in_DLL=0x0000ac84<br />
EDI=0x0011d9c8 ESI=0x008e5e60 EAX=0x74753f3e<br />
EBX=0x0011d9c8 ECX=0x03b5cf14 EDX=0x7463656a<br />
EBP=0x000be300 ESP=0x04381644 EIP=0x1000ac84<br />
Generating crash dump: C:\Documents and Settings\c09974\j9.dmp<br />
</code><br />
I had a quick look a while back, and couldn&#8217;t see anything obvious, and my WSAD was working OK, so I didn&#8217;t spend too much time on it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Anyway, yesterday I found that I was in the same position, and the only thing that had changed on my machine was that I had installed Mercury Interactive QuickTestPro.</p>
<p>Not being able to have my server running in debug model with hot-swap turned on was completely unacceptable, so I spent a bit of time trying to track down what the problem was.<br />
<span id="more-15"></span><br />
Luckily, I was only temporarily installing QuickTestPro to help another colleague, however, the problem remained even after I had uninstalled it!  Yikes!</p>
<p>So, I used a copy of ListDLLs from <a href="http://www.sysinternals.com">SysInternals</a> to see what DLLs were in use at the time of the dump.  I then compared that list to the list of DLLs in use on a colleague&#8217;s machine that wasn&#8217;t dumping.  The only difference between was a file called <code>c:\windows\system32\micsupp.dll</code>.  Doing a hexdump of that DLL gives me a few clues such as the following strings:<br />
<code><br />
micsupp.dll<br />
ClassLoadHook<br />
JVM_OnLoad<br />
SOFTWARE\Mercury Interactive\Java Add-in\Modules<br />
</code></p>
<p>Lovely! It looks like Mercury is mucking around with my default Java installation.  I tried to renamed the dll to something else, but then I can&#8217;t even start WSAD!  So, what to do?  Perhaps it didn&#8217;t uninstall properly, so I had a look at the <code>c:\Program Files\Mercury Interactive\QuickTest Professional\dat</code> directory. In there, I found a bunch of uninstaller files that I tried to run by using the following command:<br />
<code><br />
\windows\miuninst6.exe miuninst.ini<br />
\windows\miuninst6.exe QTP65P13_NS702_SUPPORT.ini<br />
\windows\miuninst6.exe QTP65P16.ini<br />
\windows\miuninst6.exe QTP65P63.ini<br />
\windows\miuninst6.exe QTP65P84.ini<br />
\windows\miuninst6.exe QTPJAVA65P08.ini<br />
</code></p>
<p>However, that still didn&#8217;t solve the problem!  However, I did find a file called <code>install.log</code> in that directory that contained (amongst other stuff):</p>
<pre>
Installing Standalone VMs (JDK/JRE/Oracle1.3.X/Netscape 6)
[
  Copying micsupp.dll from C:\Program Files\Common Files\Mercury Interactive\SharedFiles\JavaAddin\bin to C:\WINNT\syste
m32\
  ...succeeded (return value is 0 )
  Adding _classload_hook environemtn variable
  Adding _JAVA_OPTIONS environemtn variable
]
</pre>
<p>Based on this, I thought that perhaps I should check my environment variables.  Looking at those, I found that Mercury Interactive had created the following environment variables:<br />
<code><br />
  _classload_hook<br />
  _JAVA_OPTIONS<br />
  CLASSPATH<br />
  IBM_JAVA_OPTIONS<br />
  LSERVRC<br />
  MIC_CLASSES<br />
</code></p>
<p>So, I just removed them all, and believe it or not, WSAD started up with no problems, and I could now resume debugging with hot-swap.  Thanks so much Mercury Interactive for such a quality product &#8211; not!!</p>
<p>Now, fortunately for me, I don&#8217;t actually need the Mercury Interactive QuickTestPro product on my machine, so I am confident that this fix won&#8217;t affect my normal operation.  However, if you need to use QuickTestPro, I am not sure what affect removing these environment variables will have on your installation.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edwardaux.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edwardaux.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edwardaux.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edwardaux.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edwardaux.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edwardaux.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edwardaux.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edwardaux.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edwardaux.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edwardaux.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edwardaux.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edwardaux.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edwardaux.wordpress.com&blog=398350&post=15&subd=edwardaux&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edwardaux.wordpress.com/2007/01/18/trap-in-wsad-j9vm21dll-in-debug-mode/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78ca0337f048eead2861b667cc627041?s=96&#38;d=identicon" medium="image">
			<media:title type="html">edwardaux</media:title>
		</media:content>
	</item>
		<item>
		<title>Tomcat 5.0 and jmx.jar in Eclipse</title>
		<link>http://edwardaux.wordpress.com/2007/01/16/tomcat-50-and-jmxjar-in-eclipse/</link>
		<comments>http://edwardaux.wordpress.com/2007/01/16/tomcat-50-and-jmxjar-in-eclipse/#comments</comments>
		<pubDate>Tue, 16 Jan 2007 02:30:48 +0000</pubDate>
		<dc:creator>edwardaux</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://edwardaux.wordpress.com/2007/01/16/tomcat-50-and-jmxjar-in-eclipse/</guid>
		<description><![CDATA[I used to use the sysdeo Tomcat plugin in Eclipse for my development, but someone suggested that I take a look at the Eclipse Web Tools project, which is an application server feature for Eclipse.  It seems like it is the mechanism through which Eclipse is planning to support application servers in the future, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edwardaux.wordpress.com&blog=398350&post=11&subd=edwardaux&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I used to use the sysdeo Tomcat plugin in Eclipse for my development, but someone suggested that I take a look at the <a href="http://www.eclipse.org/webtools/">Eclipse Web Tools</a> project, which is an application server feature for Eclipse.  It seems like it is the mechanism through which Eclipse is planning to support application servers in the future, so I thought it would be worth a look.</p>
<p>However, once I got it installed, I ran into a problem that is mentioned a few times on various sites on the web, but with few solutions.  When I tried to run the application server, I got the following message:<br />
<code><br />
Due to new licensing guidelines mandated by the Apache Software Foundation Board of Directors, a JMX implementation can no longer be distributed with the Apache Tomcat binaries. As a result, you must download a JMX 1.2 implementation (such as the Sun Reference Implementation) and copy the JAR containing the API and implementation of the JMX specification to: ${catalina.home}/bin/jmx.jar<br />
</code></p>
<p>This article describes the workaround that I discovered to make Tomcat 5.0 work correctly inside Eclipse.<br />
<span id="more-11"></span><br />
But first, let&#8217;s step back to find out how I arrived at my current state.</p>
<p>From the <a href="http://www.eclipse.org/webtools/">Eclipse Web Tools home page</a>, they have a link on the top-right hand side that takes you to the latest download page.  For me, I used <a href="http://download.eclipse.org/webtools/downloads/drops/R1.5/R-1.5.2-200610261841/">Version 1.5.2</a> of the WTP.  </p>
<p>On that page they conveniently provide a link where you could download, in one thumping big file, <a href="http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/drops/R1.5/R-1.5.2-200610261841/wtp-all-in-one-sdk-R-1.5.2-200610261841-win32.zip">a single zip</a> that contains Eclipse 3.2.1, WTP 1.5.2 and all the other pre-requisites (beware, it is about 200MB!)</p>
<p>On my Ubuntu machine, I originally installed eclipse using apt-get, which installs into <code>/usr/share/eclipse</code>.  To preserve all my existing shortcuts, I just renamed that directory to be <code>/usr/share/eclipse3.1</code>, and unzipped the new eclipse into <code>/usr/share/eclipse</code>.  I am not really sure if that is the sanctioned way (probably not), but it worked perfectly for me.</p>
<p>Before you create a new project, you will need to go into the Windows/Preferences menu item, and open the Server settings dialog. In here, add a new Server Runtime for Tomcat 5.0 and point it to your default tomcat directory (<code>/usr/share /tomcat5</code> for me).</p>
<p><img src='http://edwardaux.files.wordpress.com/2007/01/newserverruntime1.png' alt='newserverruntime1.png' /><br />
<img src='http://edwardaux.files.wordpress.com/2007/01/newserverruntime2.png' alt='newserverruntime2.png' /></p>
<p>From there it was a simple matter of creating a new Dynamic Web Project, where it asks me which &#8220;Target Runtime&#8221; I wanted to deploy into, and I chose the newly created Tomcat 5.0 runtime.</p>
<p>I then developed a simple web application, and when I attempted to start the Tomcat instance, I got the above error message.  Searching on the web didn&#8217;t give me too much love, and interestingly, I don&#8217;t get this message when I start Tomcat using <code>/etc/init.d/tomcat</code>.  </p>
<p>Anyway, the solution I found was to edit the runtime classpath of the application server (from the Run/Run&#8230; menu) to include the following entries:</p>
<p><img src='http://edwardaux.files.wordpress.com/2007/01/run.png' alt='run.png' /></p>
<p>Once I applied those changes, and restarted my application server, everything was working like a champion.  </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edwardaux.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edwardaux.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edwardaux.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edwardaux.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edwardaux.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edwardaux.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edwardaux.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edwardaux.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edwardaux.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edwardaux.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edwardaux.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edwardaux.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edwardaux.wordpress.com&blog=398350&post=11&subd=edwardaux&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edwardaux.wordpress.com/2007/01/16/tomcat-50-and-jmxjar-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/78ca0337f048eead2861b667cc627041?s=96&#38;d=identicon" medium="image">
			<media:title type="html">edwardaux</media:title>
		</media:content>

		<media:content url="http://edwardaux.files.wordpress.com/2007/01/newserverruntime1.png" medium="image">
			<media:title type="html">newserverruntime1.png</media:title>
		</media:content>

		<media:content url="http://edwardaux.files.wordpress.com/2007/01/newserverruntime2.png" medium="image">
			<media:title type="html">newserverruntime2.png</media:title>
		</media:content>

		<media:content url="http://edwardaux.files.wordpress.com/2007/01/run.png" medium="image">
			<media:title type="html">run.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>