From: dhk <dhkuhl@optonline.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Keyword for dev-java/sun-j2ee
Date: Sun, 14 Feb 2010 15:37:03 -0500 [thread overview]
Message-ID: <4B785EEF.8000906@optonline.net> (raw)
In-Reply-To: <4B7492AA.6010109@optonline.net>
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
next prev parent reply other threads:[~2010-02-14 20:37 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 13:19 [gentoo-user] Keyword for dev-java/sun-j2ee dhk
2010-02-11 14:40 ` Alan McKinnon
2010-02-11 14:56 ` dhk
2010-02-11 15:25 ` Alan McKinnon
2010-02-11 15:46 ` Dale
2010-02-11 16:09 ` Alex Schuster
2010-02-11 18:28 ` Alan McKinnon
2010-02-11 19:49 ` Neil Bothwick
2010-02-11 23:51 ` Dale
2010-02-12 6:25 ` Alan McKinnon
2010-02-12 11:13 ` Dale
2010-02-11 16:36 ` dhk
2010-02-11 20:06 ` dhk
2010-02-11 20:31 ` Alan McKinnon
2010-02-11 22:10 ` dhk
2010-02-11 22:20 ` Alan McKinnon
2010-02-11 22:58 ` dhk
2010-02-11 23:12 ` Alan McKinnon
2010-02-11 23:28 ` dhk
2010-02-14 20:37 ` dhk [this message]
2010-02-15 7:16 ` Alan McKinnon
2010-02-11 21:06 ` [gentoo-user] " walt
2010-02-11 22:11 ` dhk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B785EEF.8000906@optonline.net \
--to=dhkuhl@optonline.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox