6 Replies Latest reply on May 15, 2009 12:15 PM by peterj

    Tracing wsconsume

      Can anybody kindly tell me how to turn on tracing in wsconsume?
      wsconsume.bat runs WSConsume with

      -Dlog4j.configuration=wstools-log4j.xml

      According to the Jamae / Johnson book wstools-log4j.xm is now obsolete. But I have tried replacing it with a reference to another log4j.xml file. To no effect.
      TIA.

        • 1. Re: Tracing wsconsume
          peterj

          Please state exactly what you did (post the change). I modified wsconsume.bat, removing that clause from the java command line. Then it picks up the log4j.properties (or.xml) in my classpath.

          • 2. Re: Tracing wsconsume

            Peter,
            Contents of myconsume.bat:

            @echo off
            
            @if not "%ECHO%" == "" echo %ECHO%
            @if "%OS%" == "Windows_NT" setlocal
            
            set DIRNAME=.\
            if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
            set PROGNAME=run.bat
            if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
            
            set JAVA=%JAVA_HOME%\bin\java
            set JBOSS_HOME=C:/jboss/jboss-4.2.2.GA
            
            rem Setup the java endorsed dirs
            set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed
            
            rem Shared libs
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;C:/Other/eclipseall/ws/hsi/mm7-client2/work
            
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JAVA_HOME%/lib/tools.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/activation.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/getopt.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/wstx.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossall-client.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/log4j.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/mail.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-spi.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-common.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-framework.jar
            
            rem Shared jaxws libs
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxws-tools.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxws-rt.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/stax-api.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-api.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-impl.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-xjc.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/streambuffer.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/stax-ex.jar
            
            rem Stack specific dependencies
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/javassist.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-xml-binding.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-native-client.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-native-core.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-native-jaxws.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-native-jaxws-ext.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-native-jaxrpc.jar
            set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-native-saaj.jar
            
            rem Execute the JVM
            "%JAVA%" %JAVA_OPTS% -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" -Dlog4j.configuration=mylog4j.xml -classpath "%WSCONSUME_CLASSPATH%" org.jboss.wsf.spi.tools.cmd.WSConsume %*
            


            Contents of myrun.bat:
            myconsume -k -s ../src -o tmp mm7.wsdl


            All relevant files (mylog4j.xml, mm7,wsdl ..) are in the folder
            C:\Other\eclipseall\ws\hsi\mm7-client2\work


            That's kind of you,
            Angus

            • 3. Re: Tracing wsconsume
              peterj

              This looks OK to me. So let's double-check a few things.

              First, please verify that the log4j config file is located at: C:\Other\eclipseall\ws\hsi\mm7-client2\work\mylog4j.xml

              Second, replace the last line in mywsconsume.bat with:

              set APP="%JAVA%" %JAVA_OPTS% -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" -Dlog4j.configuration=mylog4j.xml -classpath "%WSCONSUME_CLASSPATH%" org.jboss.wsf.spi.tools.cmd.WSConsume %*
              echo %APP%
              %APP%


              The above code will echo the full java command before running it.

              Third, after making the above change, run wsconsume and post the console output, including the command line entered.

              • 4. Re: Tracing wsconsume
                peterj

                Oh, and post the mylog4j.xml file.

                • 5. Re: Tracing wsconsume

                  Peter:
                  (this is going to be a little long :-))

                  C:\Other\eclipseall\ws\hsi\mm7-client2\work>myrun
                  
                  C:\Other\eclipseall\ws\hsi\mm7-client2\work>myconsume -k -s ../src -o tmp mm7.wsdl
                  "C:\Sun\AppServer\jdk\bin\java" -Djava.endorsed.dirs="C:/jboss/jboss-4.2.2.GA\lib\endorsed" -Dlog4j.configura
                  tion=mylog4j.xml -classpath ";C:/Other/eclipseall/ws/hsi/mm7-client2/work;C:\Sun\AppServer\jdk/lib/tools.jar;C
                  :/jboss/jboss-4.2.2.GA/client/activation.jar;C:/jboss/jboss-4.2.2.GA/client/getopt.jar;C:/jboss/jboss-4.2.2.GA
                  /client/wstx.jar;C:/jboss/jboss-4.2.2.GA/client/jbossall-client.jar;C:/jboss/jboss-4.2.2.GA/client/log4j.jar;C
                  :/jboss/jboss-4.2.2.GA/client/mail.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-spi.jar;C:/jboss/jboss-4.2.2.GA/
                  client/jbossws-common.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-framework.jar;C:/jboss/jboss-4.2.2.GA/client/
                  jaxws-tools.jar;C:/jboss/jboss-4.2.2.GA/client/jaxws-rt.jar;C:/jboss/jboss-4.2.2.GA/client/stax-api.jar;C:/jbo
                  ss/jboss-4.2.2.GA/client/jaxb-api.jar;C:/jboss/jboss-4.2.2.GA/client/jaxb-impl.jar;C:/jboss/jboss-4.2.2.GA/cli
                  ent/jaxb-xjc.jar;C:/jboss/jboss-4.2.2.GA/client/streambuffer.jar;C:/jboss/jboss-4.2.2.GA/client/stax-ex.jar;C:
                  /jboss/jboss-4.2.2.GA/client/javassist.jar;C:/jboss/jboss-4.2.2.GA/client/jboss-xml-binding.jar;C:/jboss/jboss
                  -4.2.2.GA/client/jbossws-native-client.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-native-core.jar;C:/jboss/jbo
                  ss-4.2.2.GA/client/jbossws-native-jaxws.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-native-jaxws-ext.jar;C:/jbo
                  ss/jboss-4.2.2.GA/client/jbossws-native-jaxrpc.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-native-saaj.jar" org
                  .jboss.wsf.spi.tools.cmd.WSConsume -k -s ../src -o tmp mm7.wsdl
                  parsing WSDL...
                  
                  
                  generating code...
                  
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\AddressCodingType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\AddressType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\AnyDataType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\CancelReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\CapabilitiesType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ChargedPartyType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ContentClassType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ContentReferenceType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\DeliverReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\DeliverRspType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\DeliveryConditionType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\DeliveryReportReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ExtendedcancelReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ExtendedcancelRspType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ExtendedcancelresponseStatusType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ExtendedreplaceReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ExtendedreplaceRspType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\GenericRSReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\GenericResponseType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\GenericVASPRequestType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MM7.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MM7Service.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MMStatusExtensionType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MessageClassType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MmDeliveryStatusType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MmReadStatusType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MultiAddressType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ObjectFactory.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\PreviouslySentByDateTime.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\PreviouslySentByType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\PriorityType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ReadReplyReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\RecipientsType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ReplaceReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ResponseStatusType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\SenderIDType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ServiceCodeType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\SubmitReqType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\SubmitRspType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\TransactionID.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\UserAgentDateTimeType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\UserAgentInfoType.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\package-info.java
                  org\xmlsoap\schemas\soap\envelope\Body.java
                  org\xmlsoap\schemas\soap\envelope\Detail.java
                  org\xmlsoap\schemas\soap\envelope\Envelope.java
                  org\xmlsoap\schemas\soap\envelope\Fault.java
                  org\xmlsoap\schemas\soap\envelope\Header.java
                  org\xmlsoap\schemas\soap\envelope\ObjectFactory.java
                  org\xmlsoap\schemas\soap\envelope\package-info.java
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\runtime\ZeroOneBooleanAdapter.java
                  
                  compiling code...
                  
                  javac -d C:\Other\eclipseall\ws\hsi\mm7-client2\work\tmp -classpath ;C:/Other/eclipseall/ws/hsi/mm7-client2/wo
                  rk;C:\Sun\AppServer\jdk/lib/tools.jar;C:/jboss/jboss-4.2.2.GA/client/activation.jar;C:/jboss/jboss-4.2.2.GA/cl
                  ient/getopt.jar;C:/jboss/jboss-4.2.2.GA/client/wstx.jar;C:/jboss/jboss-4.2.2.GA/client/jbossall-client.jar;C:/
                  jboss/jboss-4.2.2.GA/client/log4j.jar;C:/jboss/jboss-4.2.2.GA/client/mail.jar;C:/jboss/jboss-4.2.2.GA/client/j
                  bossws-spi.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-common.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-framew
                  ork.jar;C:/jboss/jboss-4.2.2.GA/client/jaxws-tools.jar;C:/jboss/jboss-4.2.2.GA/client/jaxws-rt.jar;C:/jboss/jb
                  oss-4.2.2.GA/client/stax-api.jar;C:/jboss/jboss-4.2.2.GA/client/jaxb-api.jar;C:/jboss/jboss-4.2.2.GA/client/ja
                  xb-impl.jar;C:/jboss/jboss-4.2.2.GA/client/jaxb-xjc.jar;C:/jboss/jboss-4.2.2.GA/client/streambuffer.jar;C:/jbo
                  ss/jboss-4.2.2.GA/client/stax-ex.jar;C:/jboss/jboss-4.2.2.GA/client/javassist.jar;C:/jboss/jboss-4.2.2.GA/clie
                  nt/jboss-xml-binding.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-native-client.jar;C:/jboss/jboss-4.2.2.GA/clie
                  nt/jbossws-native-core.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-native-jaxws.jar;C:/jboss/jboss-4.2.2.GA/cli
                  ent/jbossws-native-jaxws-ext.jar;C:/jboss/jboss-4.2.2.GA/client/jbossws-native-jaxrpc.jar;C:/jboss/jboss-4.2.2
                  .GA/client/jbossws-native-saaj.jar -Xbootclasspath/p:C:\jboss\jboss-4.2.2.GA\client\jbossws-native-jaxws-ext.j
                  ar;C:\jboss\jboss-4.2.2.GA\client\jaxb-api.jar C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ft
                  p\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\AddressCodingType.java C:\Other\eclipseall\ws\hsi\mm7-
                  client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\AddressType.java C:\Ot
                  her\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_
                  1_4\AnyDataType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series
                  \_23_140\schema\rel_6_mm7_1_4\CancelReqType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\
                  ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\CapabilitiesType.java C:\Other\eclipseall\ws\hsi\mm7
                  -client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ChargedPartyType.java
                   C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_
                  6_mm7_1_4\ContentClassType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive
                  \_23_series\_23_140\schema\rel_6_mm7_1_4\ContentReferenceType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work
                  \..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\DeliverReqType.java C:\Other\eclip
                  seall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\Deliv
                  erRspType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_1
                  40\schema\rel_6_mm7_1_4\DeliveryConditionType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gp
                  p\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\DeliveryReportReqType.java C:\Other\eclipseall\ws\
                  hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\Extendedcancel
                  ReqType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140
                  \schema\rel_6_mm7_1_4\ExtendedcancelRspType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\
                  ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ExtendedcancelresponseStatusType.java C:\Other\eclip
                  seall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\Exten
                  dedreplaceReqType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_seri
                  es\_23_140\schema\rel_6_mm7_1_4\ExtendedreplaceRspType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src
                  \org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\GenericRSReqType.java C:\Other\eclipseall
                  \ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\GenericRes
                  ponseType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_1
                  40\schema\rel_6_mm7_1_4\GenericVASPRequestType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3g
                  pp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MM7.java C:\Other\eclipseall\ws\hsi\mm7-client2\w
                  ork\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MM7Service.java C:\Other\eclips
                  eall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MMStat
                  usExtensionType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series
                  \_23_140\schema\rel_6_mm7_1_4\MessageClassType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3g
                  pp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MmDeliveryStatusType.java C:\Other\eclipseall\ws\
                  hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\MmReadStatusTy
                  pe.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\sche
                  ma\rel_6_mm7_1_4\MultiAddressType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\
                  archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ObjectFactory.java C:\Other\eclipseall\ws\hsi\mm7-client2\work
                  \..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\PreviouslySentByDateTime.java C:\O
                  ther\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7
                  _1_4\PreviouslySentByType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\
                  _23_series\_23_140\schema\rel_6_mm7_1_4\PriorityType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\o
                  rg\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\ReadReplyReqType.java C:\Other\eclipseall\w
                  s\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\RecipientsTy
                  pe.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\sche
                  ma\rel_6_mm7_1_4\ReplaceReqType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\ar
                  chive\_23_series\_23_140\schema\rel_6_mm7_1_4\ResponseStatusType.java C:\Other\eclipseall\ws\hsi\mm7-client2\w
                  ork\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\SenderIDType.java C:\Other\ecli
                  pseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\Serv
                  iceCodeType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23
                  _140\schema\rel_6_mm7_1_4\SubmitReqType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\
                  specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\SubmitRspType.java C:\Other\eclipseall\ws\hsi\mm7-client
                  2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\TransactionID.java C:\Other\
                  eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\
                  UserAgentDateTimeType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_
                  series\_23_140\schema\rel_6_mm7_1_4\UserAgentInfoType.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\
                  org\_3gpp\ftp\specs\archive\_23_series\_23_140\schema\rel_6_mm7_1_4\package-info.java C:\Other\eclipseall\ws\h
                  si\mm7-client2\work\..\src\org\xmlsoap\schemas\soap\envelope\Body.java C:\Other\eclipseall\ws\hsi\mm7-client2\
                  work\..\src\org\xmlsoap\schemas\soap\envelope\Detail.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\o
                  rg\xmlsoap\schemas\soap\envelope\Envelope.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\xmlsoap\
                  schemas\soap\envelope\Fault.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\xmlsoap\schemas\soap\e
                  nvelope\Header.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\xmlsoap\schemas\soap\envelope\Objec
                  tFactory.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\xmlsoap\schemas\soap\envelope\package-inf
                  o.java C:\Other\eclipseall\ws\hsi\mm7-client2\work\..\src\org\_3gpp\ftp\specs\archive\_23_series\_23_140\schem
                  a\rel_6_mm7_1_4\runtime\ZeroOneBooleanAdapter.java
                  
                  C:\Other\eclipseall\ws\hsi\mm7-client2\work>


                  C:\Other\eclipseall\ws\hsi\mm7-client2\work>dir
                   Le volume dans le lecteur C n'a pas de nom.
                   Le numéro de série du volume est D095-6491
                  
                   Répertoire de C:\Other\eclipseall\ws\hsi\mm7-client2\work
                  
                  14/05/2009 09:35 <REP> .
                  14/05/2009 09:35 <REP> ..
                  07/05/2009 09:14 78 Copy of myrun.bat
                  05/05/2009 09:39 1 897 mm7.wsdl
                  14/05/2009 09:32 2 905 myconsume.bat
                  07/05/2009 09:22 2 742 mylog4j.xml
                  14/05/2009 09:35 38 myrun.bat
                  04/05/2009 19:13 78 run-mm7-wsconsume.bat
                  04/05/2009 19:12 <REP> tmp
                  30/12/2008 15:08 2 796 wsconsume.bat
                  30/12/2008 15:05 2 895 wsprovide.bat
                  30/12/2008 15:05 3 036 wsrunclient.bat
                  30/12/2008 15:05 2 414 wstools.bat
                   10 fichier(s) 18 879 octets
                   3 Rép(s) 41 912 639 488 octets libres


                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
                  
                  <!-- ===================================================================== -->
                  <!-- -->
                  <!-- Log4j Configuration -->
                  <!-- -->
                  <!-- ===================================================================== -->
                  
                  <!-- $Id: log4j.xml,v 1.1 2007/07/25 13:19:52 bwalpole Exp $ -->
                  
                  <!--
                   | For more configuration infromation and examples see the Jakarta Log4j
                   | owebsite: http://jakarta.apache.org/log4j
                   -->
                  
                  <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
                  
                  
                  
                   <!-- ============================== -->
                   <!-- Append messages to the console -->
                   <!-- ============================== -->
                  
                   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
                   <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
                   <param name="Target" value="System.out"/>
                   <param name="Threshold" value="TRACE"/>
                  
                   <layout class="org.apache.log4j.PatternLayout">
                   <!-- The default pattern: Date Priority [Category] Message\n -->
                   <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
                   </layout>
                   </appender>
                  
                  
                   <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
                   <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
                   <param name="File" value="C:/TempAm/wsconsume.log"/>
                   <param name="Append" value="false"/>
                  
                   <!-- Rollover at midnight each day -->
                   <param name="DatePattern" value="'.'yyyy-MM-dd"/>
                  
                   <!-- Rollover at the top of each hour
                   <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
                   -->
                  
                   <layout class="org.apache.log4j.PatternLayout">
                   <!-- The default pattern: Date Priority [Category] Message\n -->
                   <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
                  
                   <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
                   <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
                   -->
                   </layout>
                   </appender>
                  
                  
                   <category name="org">
                   <priority value="TRACE" />
                   </category>
                  
                   <category name="com">
                   <priority value="INFO" />
                   </category>
                  
                  
                  
                   <!-- ======================= -->
                   <!-- Setup the Root category -->
                   <!-- ======================= -->
                  
                   <root>
                   <appender-ref ref="CONSOLE"/>
                   <appender-ref ref="FILE"/>
                   </root>
                  
                  
                  
                  </log4j:configuration>
                  


                  • 6. Re: Tracing wsconsume
                    peterj

                    Interesting. I don't get any log output either. This leads to two possibilities:

                    1) There is no logging code being performed in the classes used by wsconsume

                    2) One of the classes used by wsconsume is changing the logging settings, thus overriding the log4j.configuration setting.

                    My bet would be with option 1.

                    Back in the book, the tip on page 244 that you referred to specifically calls out issues with logging when running your client app, using wsrunclient.