You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Michael Lee Jr." <ml...@hotmail.com> on 2003/03/24 20:42:42 UTC
ant-jmeter xsl error
Hey, I'm using the jmeter-ant integration jar that someone posted earlier. The link is below;
http://www.programmerplanet.org/ant-jmeter/
It seems to run ok but then I get this error when it tries to transform the results. The ant-jmeter.jar is in the ant\lib dir, otherwise, it wouldnt execute the plan. Looks like its having trouble with the xml or xsl parser?
any help is greatly appreciate,
thx,
Michael Lee
**** build.xml task/target
<target name="regression_test" description="Tests the system functionality.">
<jmeter
jmeterhome="C:\java\jakarta-jmeter-1.8.1"
testplan="c:\receiptsplus\config\test\jmeter\ReceiptsPLUS Test Plan.jmx"
resultlog="c:\result.jtl"/>
<xslt
in="c:\result.jtl"
out="c:\JMeterResults.html"
style="c:\java\lib\jmeter\jmeter-results-report.xsl"/>
</target>
<taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
***** end build.xml
***** error message
[jmeter] Executing test plan: C:\receiptsplus\config\test\jmeter\ReceiptsPLUS
Test Plan.jmx
[jmeter] Created the tree successfully
[jmeter] Starting the test
[xslt] DEPRECATED - xslp processor is deprecated. Use trax or xalan instead
.
[xslt] java.lang.NoClassDefFoundError: com/kvisco/xsl/XSLProcessor
[xslt] at org.apache.tools.ant.taskdefs.optional.XslpLiaison.<init>(Xsl
pLiaison.java:80)
[xslt] at java.lang.Class.newInstance0(Native Method)
[xslt] at java.lang.Class.newInstance(Class.java:237)
[xslt] at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS
LTProcess.java:376)
RE: ant-jmeter xsl error
Posted by Joseph Fifield <jf...@programmerplanet.org>.
Thanks, this is good to know. I'll add the information to the page -
hopefully it will help others. Glad to hear it's working out for you ;)
Joe
> -----Original Message-----
> From: Michael C. Lee Jr. [mailto:mleejr@hotmail.com]
> Sent: Tuesday, March 25, 2003 1:55 PM
> To: JMeter Users List
> Subject: Re: ant-jmeter xsl error
>
>
> I figured it out. It was not fun.
> You have to add ant-jmeter.jar, a new xerces.jar and
> xalan.jar to the ant/lib dir. (You have to have a newer xsl
> parser really). Here's they key..you have to rename
> xercesImpl.jar to something else (like
> .old) because ant picks up xsl classes from here that are
> deprecated. I was using and 1.5.1 or 1.5.0 (different
> machines). I did not try with ant 1.5.2 which may have a
> newer xsl/xml engine. Here's another fun thing I found. On
> win32 systems, if your using jdk1.3.0 then you may get a jvm
> error. Whee. I updated to jdk1.3.1_02 and it worked fine. A
> lot of hoops to jump through here but its working now. Our
> nightly builds now do regression functional tests.
> Outstanding. This ant-jmeter thing is great! The docs need a
> little updating :). Michael Lee
>
> ----- Original Message -----
> From: "Joseph Fifield" <jf...@programmerplanet.org>
> To: "'JMeter Users List'" <jm...@jakarta.apache.org>
> Sent: Monday, March 24, 2003 3:29 PM
> Subject: RE: ant-jmeter xsl error
>
>
> > You know, to tell you the truth, I don't even know which
> xsl processor
> > I am using. I am running this on an out-of-the-box Ant 1.5.2
> > installation with ant-jmeter.jar added.
> >
> > Looking at the Ant docs for the xslt task, it looks like you might
> > want to try adding Xalan 2 or Saxon to your classpath.
> >
> > Joe
> >
> > > -----Original Message-----
> > > From: Michael Lee Jr. [mailto:mleejr@hotmail.com]
> > > Sent: Monday, March 24, 2003 2:43 PM
> > > To: JMeter Users List
> > > Subject: ant-jmeter xsl error
> > >
> > >
> > > Hey, I'm using the jmeter-ant integration jar that someone posted
> > > earlier. The link is below;
> > > http://www.programmerplanet.org/ant-jmeter/
> > >
> > > It seems to run ok but then I get this error when it tries to
> > > transform the results. The ant-jmeter.jar is in the ant\lib dir,
> > > otherwise, it wouldnt execute the plan. Looks like its having
> > > trouble with the xml or xsl parser? any help is greatly
> appreciate,
> > > thx, Michael Lee
> > >
> > > **** build.xml task/target
> > > <target name="regression_test" description="Tests the system
> > > functionality.">
> > > <jmeter
> > > jmeterhome="C:\java\jakarta-jmeter-1.8.1"
> > >
> > > testplan="c:\receiptsplus\config\test\jmeter\ReceiptsPLUS
> > > Test Plan.jmx"
> > > resultlog="c:\result.jtl"/>
> > >
> > > <xslt
> > > in="c:\result.jtl"
> > > out="c:\JMeterResults.html"
> > > style="c:\java\lib\jmeter\jmeter-results-report.xsl"/>
> > > </target>
> > >
> > > <taskdef name="jmeter"
> > > classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
> > > ***** end build.xml
> > >
> > > ***** error message
> > > [jmeter] Executing test plan:
> > > C:\receiptsplus\config\test\jmeter\ReceiptsPLUS
> > > Test Plan.jmx
> > > [jmeter] Created the tree successfully
> > > [jmeter] Starting the test
> > > [xslt] DEPRECATED - xslp processor is deprecated.
> Use trax or
> > > xalan instead .
> > > [xslt] java.lang.NoClassDefFoundError:
> > > com/kvisco/xsl/XSLProcessor
> > > [xslt] at
> > > org.apache.tools.ant.taskdefs.optional.XslpLiaison.<init>(Xsl
> > > pLiaison.java:80)
> > > [xslt] at java.lang.Class.newInstance0(Native Method)
> > > [xslt] at java.lang.Class.newInstance(Class.java:237)
> > > [xslt] at
> > > org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS
> > > LTProcess.java:376)
> > >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: ant-jmeter xsl error
Posted by "Michael C. Lee Jr." <ml...@hotmail.com>.
I figured it out. It was not fun.
You have to add ant-jmeter.jar, a new xerces.jar and xalan.jar to the
ant/lib dir. (You have to have a newer xsl parser really).
Here's they key..you have to rename xercesImpl.jar to something else (like
.old) because ant picks up xsl classes from here that are deprecated. I was
using and 1.5.1 or 1.5.0 (different machines). I did not try with ant 1.5.2
which may have a newer xsl/xml engine.
Here's another fun thing I found. On win32 systems, if your using jdk1.3.0
then you may get a jvm error. Whee. I updated to jdk1.3.1_02 and it worked
fine.
A lot of hoops to jump through here but its working now. Our nightly builds
now do regression functional tests. Outstanding.
This ant-jmeter thing is great! The docs need a little updating :).
Michael Lee
----- Original Message -----
From: "Joseph Fifield" <jf...@programmerplanet.org>
To: "'JMeter Users List'" <jm...@jakarta.apache.org>
Sent: Monday, March 24, 2003 3:29 PM
Subject: RE: ant-jmeter xsl error
> You know, to tell you the truth, I don't even know which xsl processor I
> am using. I am running this on an out-of-the-box Ant 1.5.2 installation
> with ant-jmeter.jar added.
>
> Looking at the Ant docs for the xslt task, it looks like you might want
> to try adding Xalan 2 or Saxon to your classpath.
>
> Joe
>
> > -----Original Message-----
> > From: Michael Lee Jr. [mailto:mleejr@hotmail.com]
> > Sent: Monday, March 24, 2003 2:43 PM
> > To: JMeter Users List
> > Subject: ant-jmeter xsl error
> >
> >
> > Hey, I'm using the jmeter-ant integration jar that someone
> > posted earlier. The link is below;
> > http://www.programmerplanet.org/ant-jmeter/
> >
> > It seems to run ok but then I get this error when it tries to
> > transform the results. The ant-jmeter.jar is in the ant\lib
> > dir, otherwise, it wouldnt execute the plan. Looks like its
> > having trouble with the xml or xsl parser? any help is
> > greatly appreciate, thx, Michael Lee
> >
> > **** build.xml task/target
> > <target name="regression_test" description="Tests the
> > system functionality.">
> > <jmeter
> > jmeterhome="C:\java\jakarta-jmeter-1.8.1"
> >
> > testplan="c:\receiptsplus\config\test\jmeter\ReceiptsPLUS
> > Test Plan.jmx"
> > resultlog="c:\result.jtl"/>
> >
> > <xslt
> > in="c:\result.jtl"
> > out="c:\JMeterResults.html"
> > style="c:\java\lib\jmeter\jmeter-results-report.xsl"/>
> > </target>
> >
> > <taskdef name="jmeter"
> > classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
> > ***** end build.xml
> >
> > ***** error message
> > [jmeter] Executing test plan:
> > C:\receiptsplus\config\test\jmeter\ReceiptsPLUS
> > Test Plan.jmx
> > [jmeter] Created the tree successfully
> > [jmeter] Starting the test
> > [xslt] DEPRECATED - xslp processor is deprecated. Use
> > trax or xalan instead .
> > [xslt] java.lang.NoClassDefFoundError:
> > com/kvisco/xsl/XSLProcessor
> > [xslt] at
> > org.apache.tools.ant.taskdefs.optional.XslpLiaison.<init>(Xsl
> > pLiaison.java:80)
> > [xslt] at java.lang.Class.newInstance0(Native Method)
> > [xslt] at java.lang.Class.newInstance(Class.java:237)
> > [xslt] at
> > org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS
> > LTProcess.java:376)
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: ant-jmeter xsl error
Posted by Joseph Fifield <jf...@programmerplanet.org>.
You know, to tell you the truth, I don't even know which xsl processor I
am using. I am running this on an out-of-the-box Ant 1.5.2 installation
with ant-jmeter.jar added.
Looking at the Ant docs for the xslt task, it looks like you might want
to try adding Xalan 2 or Saxon to your classpath.
Joe
> -----Original Message-----
> From: Michael Lee Jr. [mailto:mleejr@hotmail.com]
> Sent: Monday, March 24, 2003 2:43 PM
> To: JMeter Users List
> Subject: ant-jmeter xsl error
>
>
> Hey, I'm using the jmeter-ant integration jar that someone
> posted earlier. The link is below;
> http://www.programmerplanet.org/ant-jmeter/
>
> It seems to run ok but then I get this error when it tries to
> transform the results. The ant-jmeter.jar is in the ant\lib
> dir, otherwise, it wouldnt execute the plan. Looks like its
> having trouble with the xml or xsl parser? any help is
> greatly appreciate, thx, Michael Lee
>
> **** build.xml task/target
> <target name="regression_test" description="Tests the
> system functionality.">
> <jmeter
> jmeterhome="C:\java\jakarta-jmeter-1.8.1"
>
> testplan="c:\receiptsplus\config\test\jmeter\ReceiptsPLUS
> Test Plan.jmx"
> resultlog="c:\result.jtl"/>
>
> <xslt
> in="c:\result.jtl"
> out="c:\JMeterResults.html"
> style="c:\java\lib\jmeter\jmeter-results-report.xsl"/>
> </target>
>
> <taskdef name="jmeter"
> classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
> ***** end build.xml
>
> ***** error message
> [jmeter] Executing test plan:
> C:\receiptsplus\config\test\jmeter\ReceiptsPLUS
> Test Plan.jmx
> [jmeter] Created the tree successfully
> [jmeter] Starting the test
> [xslt] DEPRECATED - xslp processor is deprecated. Use
> trax or xalan instead .
> [xslt] java.lang.NoClassDefFoundError:
> com/kvisco/xsl/XSLProcessor
> [xslt] at
> org.apache.tools.ant.taskdefs.optional.XslpLiaison.<init>(Xsl
> pLiaison.java:80)
> [xslt] at java.lang.Class.newInstance0(Native Method)
> [xslt] at java.lang.Class.newInstance(Class.java:237)
> [xslt] at
> org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XS
> LTProcess.java:376)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org