logo       

RE: re class loader - dll hell: msg#00892

Subject: RE: re class loader - dll hell
I've never seen "classloader bleed" in any version of the JDK, and that's
been an area of interest of mine ever since I wrote on the subject (see the
Papers at www.javageeks.com).

That said, I'm not at all sure what problem you're running into. One trick I
use a lot, particularly for production deployments, is to create a
standalone JRE co-located with the Tomcat installation, so that you're not
affected by any other Java-related install into the "global" JRE installed
on a Win2k box in C:\Program Files\java\j2re.... I've got a paper on this up
at javageeks.com, too: "Multiple JRE Homes".

The "endorsed" directory hack in JDK 1.4.0 is something I'll just not get
into now.... ;-)

Ted Neward
Architect, UCDavis Account & Financial Services
http://www.javageeks.com
http://www.clrgeeks.com

-----Original Message-----
From: Heitzso [mailto:heitzso@xxxxxxxxxxxxx]
Sent: Saturday, July 27, 2002 11:48
To: axis-user@xxxxxxxxxxxxxx
Subject: re class loader - dll hell


I've spent another 12 hours or so fighting what I thought
was a class loader bleed through under winXX.  The exception 
I was seeing was a SAX parser message re 
"INIT" missing trailing "</INIT>".

Hence I assumed class loader bleed through w/ xerces or
1.4.0_01 jvm built in xml parser.  One reason I assumed that
is the proliferation of xml parsers that were in the env
(jvm, tomcat, WEB-INF/lib) of various and asundry versions.

THE FIX: reboot WinXX box and retry. I also pulled all xerces
jars from our WEB-INF/lib, but that by itself didn't make
the problem go away.

So there's some nasty bug in combo:
        Win2K
        sun 1.4.0_01
        tomcat 4.0.4
        axis beta 3
that can leave garbage in memory until the box is rebooted.
Note I did check win task manager to insure the java process
had truely died -- it had -- problem still persisted until
reboot.  I _assume_ either JVM corrupted system memory or
a dll was loaded that didn't go away until reboot.

Note that Debian Linux unstable and Red Hat 7.3 with same mix
        sun 1.4.0_01, tomcat 4.0.4, axis beta 3
doesn't have the problem.

BTW, my jar config:
        tomcat 4.0.4 common/lib left alone (nothing added or removed)
        axis jars (all) copied to appropriate WEB-INF/lib 
        no xerces copied to WEB-INF/lib
        no java.endorsed.dirs set

The reboot fix was tested and confirmed on two systems, both Win2k.

Heitzso



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe