On Sunday 14 February 2010 22:37:03 dhk wrote:
> dhk wrote:
 
> 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?

It sure looks like your real problem. The class loader will not find the 
package you do have. And it's not a simple matter of unpacking rt.jar, 
changing and it zipping it all back up again - those things are signed and 
manifested.

Have you looked into the metadata of java ebuilds to find where the java herd 
hang out and ask them there?


-- 
alan dot mckinnon at gmail dot com

Reply via email to