Den 24/09/10 20.04, Pete Helgren skrev:
One more attempt at this and now I am going to set this aside until
someone has an idea on how to handle this:

I made a change to the jvm settings in the domain.xml file based on this

I added the following:


The good news is that it seemed to change things. The bad news is that
it cannot find the class:

while starting bundle com.sun.enterprise.osgi-adapter [88]
org.osgi.framework.BundleException: Activator start error in bundle
com.sun.enterprise.osgi-adapter [88].
at org.apache.felix.framework.Felix.activateBundle(
Caused by: javax.xml.transform.TransformerFactoryConfigurationError:
Provider org.apache.xalan.processor.TransformerFactoryImpl not found
I have stuffed the xalan.jar, et al jar into every /lib folder I can
think of and still no joy. I spent some time looking into how Glassfish
V3 is doing class loading but I can't figure out why what I have done is
still not working. I could script some explicit class loading but I
have already invested 10 more hours into this than I wanted to.
You are right in concluding that classloading has changed from version 2 to version 3.

My _guess_ from some experimentations is that the Xalan version you are trying to use, is not an OSGi bundle, and the major architectural change from version 2 to version 3 was to go modular and use OSGi to do so (just like Eclipse did a while back).

So for your replacement code to work, it must have additional meta-information allowing the OSGi container to know where to put it for asking code, and I don't believe you've updated that.

(And I know that because I've started looking into OSGi to see if it could easily solve some dynamic classloader problems we have instead of reinventing the wheel).
The deployed apps run fine but the nice thing about Glassfish is
administration and right now the command line method and autodeploy
method is a step backward, even from Tomcat. Hoping someone else has
some insight here.
I don't quite agree on that :) The autodeploy method is quite convenient.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.