2 Replies Latest reply on Dec 14, 2010 11:06 AM by m.schmitz

    Preventing STDERR in log for Metro 2.0 jars in webservice cl

    akpandey

      I am running webservice client which runs on Jboss 4.2.2.GA. The client is written using basic JAXWS api( the source is not generated using wsimport or any other utility).

      For implementing webservice timeout I had to use :
      requestContext.put( "com.sun.xml.ws.connect.timeout", timeout ).

      It did not worked untill I added webservices-rt.jar from metro 2.0. (The jars from metro 1.5 were also working fine , but they were throwing broken pipe exception , however the results from webservices were coming fine.)

      When I run the webservice client from eclipse as standalone, outside Jboss it prints:
      Jul 22, 2009 12:13:05 PM [com.sun.xml.ws.assembler.MetroConfigLoader]
      INFO: Default metro-default.xml configuration file located at: 'jar/webservices-rt-1.0.jar!/META-INF/metro-default.xml'

      However when i run the webservice client inside Jboss container it prints in log:
      ERROR [STDERR] Jul 20, 2009 5:33:08 PM
      [com.sun.xml.ws.assembler.MetroConfigLoader]
      INFO: Default metro-default.xml configuration file located at:
      ...................

      The webservice is hosted on mule and is a CXF webservice

      How to prevent the jBOSS from printing the info as STDERR, the webservice runs fine and gets all result there is no error