It doesn't matter whether we copy over those jar files or not, tomcat
already contains those jar files. I'll try to delete them in
hackyCore_build and see if we have a problem or not.
Cheers,
cedric
Philip Johnson wrote:
Interesting. So, let me ask the following question: would this problem
be prevented by doing a conditional copy of the apache processing
libraries to the lib directory depending upon the JVM? Something like:
<condition property="running.Java5">
<equals arg1="${ant.java.version}" arg2="1.5" />
</condition>
<target name="installXmlLibraries" unless="running.Java5">
<copy ....>
</target>
Cheers,
Philip
--On Wednesday, November 23, 2005 10:32 AM -1000 "(Cedric) Qin ZHANG"
<[EMAIL PROTECTED]> wrote:
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