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 1NfhRI-0001nB-V1 for garchives@archives.gentoo.org; Thu, 11 Feb 2010 22:23:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DE0FE0AED; Thu, 11 Feb 2010 22:22:42 +0000 (UTC) Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by pigeon.gentoo.org (Postfix) with ESMTP id F3EDDE0AED for ; Thu, 11 Feb 2010 22:22:41 +0000 (UTC) Received: by ewy8 with SMTP id 8so1987203ewy.29 for ; Thu, 11 Feb 2010 14:22:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=2JSCLh3dFBavFxv9FsS6Rm4h6rSBKTpAaEjqeObJujA=; b=OVNq1u95KHc3Q6LTkPNHR+fldrg8WDgvHYQIaARxIQMYu+zFy5qzXvWcTOJ2u+rsXO twk0HYICWJolBV7Ok8odCAzsClsiOIZQYmtcxb31NKRHBAr3+SQvVt3lRJsGhMPxdSBl 76zWGUIqmiknP1BVWV6bZhIRHWU9WX7efZOeM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=t5WtokNPOoAqJxCl8jylx6K+rTUkCBtSvRxk1M9Vc+oj9VxIT/yCPb5gtqgRi6BXHX /67RuuYJ7IUvuURsYwna+Fh0uFX5Lf/vBUYiQo69Tt0LG7Vx6Dhskcgrm0Z6RahzFyBS GrwfidBLfl2MqTLvCTZFNIPm8V9Kz4SYtiMZM= Received: by 10.213.1.151 with SMTP id 23mr1194983ebf.34.1265926961079; Thu, 11 Feb 2010 14:22:41 -0800 (PST) Received: from nazgul.localnet (196-210-238-65.dynamic.isadsl.co.za [196.210.238.65]) by mx.google.com with ESMTPS id 16sm1852454ewy.10.2010.02.11.14.22.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Feb 2010 14:22:38 -0800 (PST) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Keyword for dev-java/sun-j2ee Date: Fri, 12 Feb 2010 00:20:27 +0200 User-Agent: KMail/1.13.0 (Linux/2.6.32-zen6; KDE/4.4.0; x86_64; ; ) References: <4B7403FD.8050208@optonline.net> <201002112231.15933.alan.mckinnon@gmail.com> <4B74803E.8060408@optonline.net> In-Reply-To: <4B74803E.8060408@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 Message-Id: <201002120020.27672.alan.mckinnon@gmail.com> X-Archives-Salt: 6ad533d8-273e-4e18-8758-82042866e766 X-Archives-Hash: 37d8cc6951e25d4739243dcf00c425c2 On Friday 12 February 2010 00:10:06 dhk wrote: > My /usr/bin/java was linked to run-java-tool, don't know what that is. > # ll /usr/bin/java > lrwxrwxrwx 1 root root 13 Feb 11 11:20 /usr/bin/java -> run-java-tool That's correct. It's a man-in-the-middle thing installed by the java configurator, it makes life easy when switching between various java versions > > I installed a jdk > emerge dev-java/sun-jdk > > Removed the /usr/bin/java sym link and made another to the newly > installed java. > ln -s /opt/sun-jdk-1.6.0.18/bin/java /usr/bin/java > > I set some environment variables. > export J2EE_HOME="/opt/sun-j2ee-1.3.1/" > export JAVA_HOME="/opt/sun-jdk-1.6.0.18" > > Then reinstalled j2ee > emerge dev-java/sun-j2ee > > Tried starting j2ee > /opt/sun-j2ee-1.3.1/bin/j2ee -verbose > > Checked processes, but no j2ee was running. > > Then looked at the error log. Looks like it can't find this com.sun... > directory. > > # cat /opt/sun-j2ee-1.3.1/logs/dhcppc3/j2ee/j2ee/system.err > > > Logging for J2EE Server Version: 1.3.1-b17 started at: Thu Feb 11 > 16:44:31 EST 2010.. > Using the Java HotSpot(TM) 64-Bit Server VM and the version number > 1.6.0_18 from Sun Microsystems Inc.. > VM is using the classpath: > /opt/sun-j2ee-1.3.1/lib/system/cloudscape.jar:/opt/sun-j2ee-1.3.1/lib/syste > m/cloudutil.jar:/opt/sun-j2ee-1.3.1/lib/cloudscape/RmiJdbc.jar:/opt/sun-j2e > e-1.3.1/lib/cloudscape/cloudclient.jar:/opt/sun-j2ee-1.3.1/lib/classes:/opt > /sun-j2ee-1.3.1/classes:/opt/sun-j2ee-1.3.1/lib/j2ee.jar:/opt/sun-j2ee-1.3. > 1/lib/toolclasses:/opt/sun-j2ee-1.3.1/lib/j2eetools.jar:/opt/sun-j2ee-1.3.1 > /lib/locale::/opt/sun-jdk-1.6.0.18/lib/tools.jar:/opt/sun-j2ee-1.3.1/lib/jh > all.jar . > J2EE Home Directory has been set to: /opt/sun-j2ee-1.3.1. > > > Exception in thread "main" java.lang.NoClassDefFoundError: > com/sun/corba/se/internal/util/IdentityHashtable If memory serves, the corba stuff is part of the base classes required by all VMs. I think that is in rt.jar, but you don't have that in your CLASSPATH. These days it might be elsewhere, it's been a while. I reckon you either didn't set your jdk CLASSPATH at all, or you did and clobbered it with j2ee by doing CLASSPATH=..... instead of CLASSPATH=$CLASSPATH:.... > at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.(Util.java:87) > at com.sun.corba.ee.internal.POA.POAImpl.activate(POAImpl.java:935) > at com.sun.corba.ee.internal.POA.POAImpl.activate_object(POAImpl.java:895) > at > com.sun.corba.ee.internal.CosNaming.TransientNameService.initialize(Transie > ntNameService.java:117) at > com.sun.corba.ee.internal.CosNaming.TransientNameService.(TransientNa > meService.java:70) at > com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java > :103) at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226) > at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972) > Caused by: java.lang.ClassNotFoundException: > com.sun.corba.se.internal.util.IdentityHashtable > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > ... 8 more > > > Logging for J2EE Server Version: 1.3.1-b17 started at: Thu Feb 11 > 17:03:04 EST 2010.. > Using the Java HotSpot(TM) 64-Bit Server VM and the version number > 1.6.0_18 from Sun Microsystems Inc.. > VM is using the classpath: > /opt/sun-j2ee-1.3.1/lib/system/cloudscape.jar:/opt/sun-j2ee-1.3.1/lib/syste > m/cloudutil.jar:/opt/sun-j2ee-1.3.1/lib/cloudscape/RmiJdbc.jar:/opt/sun-j2e > e-1.3.1/lib/cloudscape/cloudclient.jar:/opt/sun-j2ee-1.3.1/lib/classes:/opt > /sun-j2ee-1.3.1/classes:/opt/sun-j2ee-1.3.1/lib/j2ee.jar:/opt/sun-j2ee-1.3. > 1/lib/toolclasses:/opt/sun-j2ee-1.3.1/lib/j2eetools.jar:/opt/sun-j2ee-1.3.1 > /lib/locale::/opt/sun-jdk-1.6.0.18/lib/tools.jar:/opt/sun-j2ee-1.3.1/lib/jh > all.jar . > J2EE Home Directory has been set to: /opt/sun-j2ee-1.3.1. > > > Exception in thread "main" java.lang.NoClassDefFoundError: > com/sun/corba/se/internal/util/IdentityHashtable > at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.(Util.java:87) > at com.sun.corba.ee.internal.POA.POAImpl.activate(POAImpl.java:935) > at com.sun.corba.ee.internal.POA.POAImpl.activate_object(POAImpl.java:895) > at > com.sun.corba.ee.internal.CosNaming.TransientNameService.initialize(Transie > ntNameService.java:117) at > com.sun.corba.ee.internal.CosNaming.TransientNameService.(TransientNa > meService.java:70) at > com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java > :103) at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226) > at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972) > Caused by: java.lang.ClassNotFoundException: > com.sun.corba.se.internal.util.IdentityHashtable > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > ... 8 more > > > Thanks, > > dhk -- alan dot mckinnon at gmail dot com