Received: from [10.145.210.171] ([10.145.210.171]) by EXCHSULB.iso-ne.com with Microsoft SMTPSVC(6.0.3790.211);
Thu, 11 Aug 2005 12:49:12 -0400
Message-ID: <hidden>
Date: Thu, 11 Aug 2005 12:49:12 -0400
From: Jim Doyle <hidden>
Reply-To: hidden
Sender: hidden
To: hidden
Subject: [Mc4j-development] MC4J 1.2b9 WebLogic installation detection procedure
Errors-To: hidden
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
From hidden Thu Aug 11 09: 49:23 2005
User-Agent: Mozilla Thunderbird 0.7 (X11/20040615)
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 11 Aug 2005 16:49:12.0898 (UTC) FILETIME=[9A2DFA20:01C59E94]
X-Scanned-By: RAE MPP/Clamd
http://www.messagepartners.com
X-Spam-Score: 0.0 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
See
http://spamassassin.org/tag/ for more details.
Report problems to
http://sf.net/tracker/?func=add&group_id=1&atid=200001
X-BeenThere: hidden
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
List-Unsubscribe: <
https://lists.sourceforge.net/lists/listinfo/mc4j-development>, <mailto:hidden?subject=unsubscribe>
List-Id: <mc4j-development.lists.sourceforge.net>
List-Post: <mailto:hidden>
List-Help: <mailto:hidden?subject=help>
List-Subscribe: <
https://lists.sourceforge.net/lists/listinfo/mc4j-development>, <mailto:hidden?subject=subscribe>
List-Archive: <
http://sourceforge.net/mailarchive/forum.php?forum=mc4j-development>
MC4J 1.2b9 was unable to detect my WebLogic 6.1 installation when going
through the "2. Select Server Installation" step of the add-connection
wizard. I found many questions in the mailing lists about how server
detection works, but no answers, and the FAQ and release notes on the
mc4j.org web site referred to changes in how server detection works but
did not contain any details. After inspecting the MC4J source, I found
out the detection procedure and was easily able to setup what MC4J
needed to detect WebLogic 6.1.
Detection is based solely on finding a directory containing the
sub-directory path "server/lib/weblogic.jar" and inspecting that jar
file's manifest. Unfortunately, this is not the path used by the BEA
WebLogic installer, at least for version 6.1, where the BEA installer
puts the server's jar file under "bea/wlserver6.1/lib/weblogic.jar".
I setup a dir tree underneath my MC4J install (/usr/local/MC4J-1.2b9)
called "server-jars/server/lib" and put a symbolic link to my
weblogic.jar there.
Then the folder containing "server" (in my case
"/usr/local/MC4J-1.2b9/server-jars") shows up in bold in the "Choose
installation directory" file finder window as "server-jars (weblogic:
6.1.3.0)", and selecting it enables the "Select Server" button.
Note that you can find this detection procedure in the following classes
(at least as of 1.2b9):
http://cvs.sourceforge.net/viewcvs.py/mc4j/mc4j/src/org/mc4j/console/connection/install/finder/ServerInstallSelectorPanel.java?rev=1.5&view=markup
and
http://cvs.sourceforge.net/viewcvs.py/mc4j/mc4j/src/org/mc4j/console/connection/install/finder/FileSystemModel.java?rev=1.3&view=markup
and
http://cvs.sourceforge.net/viewcvs.py/mc4j/mc4j/src/org/mc4j/console/connection/install/WeblogicConnectionTypeDescriptor.java?rev=1.6&view=markup
The key method stating what path to look for is
WeblogicConnectionTypeDescriptor.getRecongnitionPath.
Jim