fixed it!
I too a look at bug
[webtest][JIRA] Closed: (WT-65) log4j.properties
which describes a problem with ${wt-WebTest.dir}/lib not beeing the
first entry in the classpath. All other elements only reference
.jar-files in the webtest.dir, but these seem to break the log4j
properties file.
I took a look at my classpath and noticed that everything is in there
twice (don't know why) and that the reference to the /lib path is
somewhere in the middle.
I've now changed one line in the webtest.bat from
set EXEC=%JAVA_CMD% %JAVA_OPTS% -cp "%RT_LIB%\ant-launcher.jar"
-Dant.library.dir="%RT_LIB%" org.apache.tools.ant.launch.Launcher
-nouserlib -lib "%CLOVER_LIB%" %*
to
set EXEC=%JAVA_CMD% %JAVA_OPTS% -cp "%RT_LIB%;%RT_LIB%\ant-launcher.jar"
-Dant.library.dir="%RT_LIB%" org.apache.tools.ant.launch.Launcher
-nouserlib -lib "%CLOVER_LIB%" %*
and now it seems that everything is working perfectly well!
Thanx for the Help!
Ralf
John and Pip wrote:
Hi,
I also have this issue in that Eclipse obeys the log4j.properties
settings in c:\webtest\lib but a dos command box doesn't.
I have cleared the classpath but of course I have a number of other
environment variables set, and short of trying to unset them one by one,
which would take quite a while, I'm not sure which, if any, is the culprit.
Eclipse of course does have classpath set to c:\webtest\lib but even if
I do set classpath to this in dos box, still doesn't pick it up.
cheers,
John
On 3/15/07, *Ralf Müller*
<[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi Marc,
I hope I am not the only one who struggles with this...
- I checked my CLASSPATH in my dosbox and cleared it.
- I added an echo-statement to my classpath.xml to verify that
<pathelement location="${ wt-WebTest.dir}/lib"/>
really uses the right path.
everything seems to be fine! But I get no additional output.
- where do I have to expect the output? I though it would be dumped to
the console. But even if it gets written to a file, I can't find it...
Ralf
Marc Guillemot wrote:
> Hi Ralf,
>
> this log4j file is considered if it is in your classpath and if it is
> the first log4j configuration file in your classpath. Check that
> - you have something like
> <pathelement location="${wt-WebTest.dir}/lib"/>
> in your <path> used to load WebTest tasks
> - you don't have any system wide CLASSPATH set that already contains
> log4j configuration
>
> Marc.
>
>
> Ralf Müller wrote:
>> Marc Guillemot wrote:
>>> ANT_OPTS="-DlogLevel.httpclientWire=debug"
>>>
>>> or see #WEBTEST_HOME#/lib/log4j.properties for more details
>> Thanx for your quick reply. But it still doesn't help:
>>
>> It seems to me that my #WEBTEST_HOME#/lib/log4j.properties is
ignored or
>> I don't know where the output gets written to.
>> So I did a test and installed a fresh webtest, invoked the example
>> webtest -buildfile installTest.xml
>> and tried to change the log4j.properties.
>> I set the logLevel.root to things like "debug" and commented in all
>> other options.
>> Nothing happens.
>>
>> So my new question:
>> Is there a way to check which log4j.properties are used or to
force the
>> system to use a specific properties file?
>>
>> Cheers,
>> Ralf
>>
>>> Marc.
>>>
>>> Ralf Müller wrote:
>>>> Hi!
>>>>
>>>> Is there some kind of option which activates something like
the firefox
>>>> plugin called live http headers which just writes all headers
into a
>>>> logfile?
>>>> Or can I maybe create this functionality with a small groovy
script and
>>>> an ant macro? something like
>>>>
>>>> <writeHeaders[of last request/response] />
>>>>
>>>> Best Regards,
>>>> Ralf
>>>>
>>>> _______________________________________________
>>>> WebTest mailing list
>>>> [email protected]
<mailto:[email protected]>
>>>> http://lists.canoo.com/mailman/listinfo/webtest
<http://lists.canoo.com/mailman/listinfo/webtest>
>>>>
>>
>> _______________________________________________
>> WebTest mailing list
>> [email protected]
<mailto:[email protected]>
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
_______________________________________________
WebTest mailing list
[email protected]
<mailto:[email protected]>
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest