From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NglDe-0000vV-94 for garchives@archives.gentoo.org; Sun, 14 Feb 2010 20:37:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99BDAE0A81; Sun, 14 Feb 2010 20:37:04 +0000 (UTC) Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.4.196]) by pigeon.gentoo.org (Postfix) with ESMTP id 7F0D0E0A81 for ; Sun, 14 Feb 2010 20:37:04 +0000 (UTC) Received: from [192.168.0.4] (ool-43505ef2.dyn.optonline.net [67.80.94.242]) by mta1.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0KXU004YCMLR89N0@mta1.srv.hcvlny.cv.net> for gentoo-user@lists.gentoo.org; Sun, 14 Feb 2010 15:37:04 -0500 (EST) Date: Sun, 14 Feb 2010 15:37:03 -0500 From: dhk Subject: Re: [gentoo-user] Keyword for dev-java/sun-j2ee In-reply-to: <4B7492AA.6010109@optonline.net> To: gentoo-user@lists.gentoo.org Message-id: <4B785EEF.8000906@optonline.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.7 References: <4B7403FD.8050208@optonline.net> <201002120020.27672.alan.mckinnon@gmail.com> <4B748BAC.5010600@optonline.net> <201002120112.53470.alan.mckinnon@gmail.com> <4B7492AA.6010109@optonline.net> User-Agent: Thunderbird 2.0.0.23 (X11/20091004) X-Archives-Salt: c7de35a0-2317-46a1-980f-89c41e8c3ae4 X-Archives-Hash: 796f89b4e05e6450a25b3e2e594e3ac3 dhk wrote: > Alan McKinnon wrote: >> On Friday 12 February 2010 00:58:52 dhk wrote: >>> I put /usr/bin/java back the way it was. >>> ln -s /usr/bin/run-java-tool /usr/bin/java >>> >>> I set the CLASSPATH, got it from java-config --runtime >>> export CLASSPATH=$CLASSPATH:/opt/sun-jdk-1.6.0.18/jre/lib/resources.jar: >>> /opt/sun-jdk-1.6.0.18/jre/lib/rt.jar:/opt/sun-jdk-1.6.0.18/jre/lib/jsse.jar >>> : >>> /opt/sun-jdk-1.6.0.18/jre/lib/jce.jar:/opt/sun-jdk-1.6.0.18/jre/lib/charse >>> ts.jar >>> >>> Is it safe to set the CLASSPATH as follows? >>> export CLASSPATH=$CLASSPATH:`java-config --runtime` >>> That seems to work too. >>> >>> I ran /opt/sun-j2ee-1.3.1/bin/j2ee and still got the errors. It >>> definately looks like the CLASSPATH, but what should it be? >> I'm getting out of my depth here :-) >> >> It's been a while since I used java to any extent, and things change rapidly >> in that arena. Perhaps you need a more java-specific forum, or wait for >> someone with a real clue to come along and read this thread. >> >> >> > > Well, thanks for your help. I appreciate it. > > dhk > > Ok, I think the problem is in the rt.jar file. The beginning of the error is as follows: # /opt/sun-j2ee-1.3.1/bin/j2ee -verbose J2EE server listen port: 1050 Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/IdentityHashtable However, the following command shows the IdentityHashtable in a different location. # jar tf /opt/sun-jdk-1.6.0.18/jre/lib/rt.jar | grep "IdentityHashtable" com/sun/corba/se/impl/util/IdentityHashtable.class com/sun/corba/se/impl/util/IdentityHashtableEntry.class com/sun/corba/se/impl/util/IdentityHashtableEnumerator.class I think the difference is j2ee is looking for "IdentityHashtable" in com/sun/corba/se/internal/util/IdentityHashtable but the jar file has it in com/sun/corba/se/impl/util/IdentityHashtable.class . Is this the problem? If so haw can it be fixed? Thanks, dhk