How to adjust the logging properties and or command to execute Calabash 0.9.17

Hi,

I haven't figured out what I should do to adjust the logging properties file
and or the batch file command I'm using with the earlier version of Calabash
to run with 0.9.17. I played around with it and got some different error
messages however not certain the solution.

I've pasted what I use currently below along with the error message for this
configuration.

What do I need to adjust?


LOGGING PROPERTIES FILE

handlers= java.util.logging.ConsoleHandler.level=INFO

java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter

java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter

com.xmlcalabash.level = WARNING


BATCH FILE:

cls
@ECHO OFF

if '%1 == ' goto no-params

if not exist %1 goto no-xpipe-file

set rootdir=..\..\Resources\

if not exist %rootdir%saxon\SAXON-license\saxon-license.lic goto
no-saxon-lic

if not exist %rootdir%calabash\calabash.jar goto no-calabash-jar

if not exist %rootdir%saxon\saxon9.jar goto no-saxon-jar
if not exist %rootdir%saxon\saxon9-s9api.jar goto no-saxon-s9api-jar

set oldPath=%path%
set oldCLASSPATH=%CLASSPATH%

set CLASSPATH=.
set CLASSPATH=%CLASSPATH%;%rootdir%calabash\calabash.jar
set CLASSPATH=%CLASSPATH%;%rootdir%saxon\saxon9.jar
set CLASSPATH=%CLASSPATH%;%rootdir%saxon\saxon9-s9api.jar
set CLASSPATH=%CLASSPATH%;%rootdir%saxon\saxon9sa.jar
set
CLASSPATH=%CLASSPATH%;%rootdir%apache-commons-http-client\commons-httpclient-3.1.jar
set
CLASSPATH=%CLASSPATH%;%rootdir%apache-commons-logging\commons-logging-1.1.1.jar
set
CLASSPATH=%CLASSPATH%;%rootdir%apache-commons-codec\commons-codec-1.3.jar
set CLASSPATH=%CLASSPATH%;.;%rootdir%saxon\SAXON-license\

java -Xmx512m -Xss4024k -classpath %CLASSPATH%
-Dcom.xmlcalabash.phonehome=false
-Djava.util.logging.config.file=logging.properties
com.xmlcalabash.drivers.Main %1 1>> %2 2>&1


set path=%oldPath%
set CLASSPATH=%oldCLASSPATH%

goto eof

:no-saxon-lic
    cls
    echo Oops! Do perform XML Schema validation you must have the SAXON
license in your classpath.
    echo.
    goto eof

:no-params
    cls
    echo Oops! You need to run the batch file with 1 argument.
    echo Here's how to use it ...
    echo.
    echo Usage: "run-calabash <xpipe filename>"
    echo.
    goto eof

:no-xpipe-file
   cls
   echo Oops! %1 does not exist
   echo Most likely reason: mistyped filename
   echo Exiting ...
   echo.
   goto eof

:no-calabash-jar
   cls
   echo Oops! Missing this calabash file:
%rootdir%%which_calabash%calabash.jar
   echo Most likely reason: calabash not installed in the correct directory
   echo Exiting ...
   goto eof

:no-saxon-jar
   cls
   echo Oops! Missing this saxon file: %rootdir%%which_saxon%\saxon9.jar
   echo Most likely reason: saxon not installed in the correct directory
   echo Exiting ...
   goto eof

:no-saxon-s9api-jar
   cls
   echo Oops! Missing this saxon file:
%rootdir%%which_saxon%\saxon9-s9api.jar
   echo Most likely reason: saxon not installed in the correct directory
   echo Exiting ...
   goto eof

:eof


ERROR MESSAGE

Bad level value for property: java.util.logging.ConsoleHandler.level
Can't load log handler "java.util.logging.ConsoleHandler.level=INFO"
java.lang.ClassNotFoundException:
java.util.logging.ConsoleHandler.level=INFO
java.lang.ClassNotFoundException:
java.util.logging.ConsoleHandler.level=INFO
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.util.logging.LogManager$7.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.initializeGlobalHandlers(Unknown Source)
    at java.util.logging.LogManager.access$900(Unknown Source)
    at java.util.logging.LogManager$RootLogger.getHandlers(Unknown Source)
    at java.util.logging.Logger.log(Unknown Source)
    at java.util.logging.Logger.doLog(Unknown Source)
    at java.util.logging.Logger.log(Unknown Source)
    at java.util.logging.Logger.severe(Unknown Source)
    at
com.xmlcalabash.util.DefaultXProcMessageListener.error(DefaultXProcMessageListener.java:101)
    at com.xmlcalabash.core.XProcRuntime.error(XProcRuntime.java:521)
    at com.xmlcalabash.core.XProcRuntime.load(XProcRuntime.java:318)
    at com.xmlcalabash.drivers.Main.run(Main.java:140)
    at com.xmlcalabash.drivers.Main.main(Main.java:67)



Thanks






-- 
Alex
https://sites.google.com/a/utg.edu.gm/alex

Some Good Music
http://sites.google.com/site/greigconteh/

Received on Monday, 1 March 2010 11:17:14 UTC