The problem is caused by introducing (redundant) apache xml processing libraries in the classpath while running application under java 5. The problem is not limited to hackydev web application. It will appear so long as all of the following conditions are met:

- your code uses classes in javax.xml.transform to do XSLT transformation
- you are using java 5
- you have apache xml libraries in your classpath

For example, one of my cruisecontrol custom extensions has the same problem while running java 5, since cruisecontrol put apache xml libraries in its lib directory.

There _might_ be other xml incopatibility issues, but I have _not_ experienced them so far.

As far as hackystat is concerned, there is no code doing xslt transformation. So far, it seems it's ok even if there is apache xml libraries are in the classpath.

Cheers,

Cedric


Aaron Kagawa wrote:

Is this problem particular to the hackydev machine, or would it affect people trying to install a hackystat distribution on a machine using java 5 and tomcat 5?


Hackydev.

I think this is a CruiseControl related problem associated with transforming the xml reports. I had this problem too and I think Cedric's solution is correct.

thanks, aaron

At 06:26 AM 11/23/2005, you wrote:

Hi Cedric,

Is this problem particular to the hackydev machine, or would it affect people trying to install a hackystat distribution on a machine using java 5 and tomcat 5?

I guess I don't quite understand the nature of the problem yet.

Thanks!
Philip

--On Wednesday, November 23, 2005 12:10 AM -1000 "(Cedric) Qin ZHANG" <[EMAIL PROTECTED]> wrote:

In an attempt to standardarized HackyDev machine on java 5 and tomcat 5,
there is following error if you try to access build report currently:

javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found

Basically, tomcat 5 suplies 2 redundent files "xercesImpl.jar and
xml-apis.jar" (might not be redundent if you are using java 1.4), and
overrides the default system wide property
"javax.xml.transform.TransformerFactory"
with
 "org.apache.xalan.processor.TransformerFactoryImpl".

But java 1.5 uses sun implementation of TransformerFactory.

The problem can be solved by deleting the 2 redundant xml related jar
files in "tomcat\common\endorsed" directory. I'll do it tomorrow when I
have physical access to HackyDevmachine.

Cheers,

Cedric


Ref:
http://forum.java.sun.com/thread.jspa?threadID=542044&tstart=135

Reply via email to