log4j commons-logging WAS6.1.0.19 - Websphere

This is a discussion on log4j commons-logging WAS6.1.0.19 - Websphere ; Hi, I tried changing the class loader to Parent last , using slf4j like you described , however the application gives a different error now saying that it cant find helper classes for the webservices beans , as soon as ...

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 25 of 25

Thread: log4j commons-logging WAS6.1.0.19

  1. Re: log4j commons-logging WAS6.1.0.19

    Hi,
    I tried changing the class loader to Parent last , using slf4j like you described , however the application gives a different error now saying that it cant find helper classes for the webservices beans , as soon as a webservice call is received. Before (with parent first) , it at least would go past that and fail on log4j. I can see the classes in the web-inf/classes inside installed applications folder.

  2. Re: log4j commons-logging WAS6.1.0.19

    Is there any other way to get this log4j class loading issue resolved on 6.1.0.19(with WSFP) without changing class loader policy to parent last (which is creating some other problems of its own). Thanks.

  3. Re: log4j commons-logging WAS6.1.0.19

    Perhaps using JCL 1.0.3 (and not 1.1.x) as explained in http://www.ibm.com/developerworks/we...1_supauth.html ?

    I don't remember if I had to use PARENT_LAST though

    Extract from the article :
    JCL V1.0.3
    JCL routing through Log4J
    If you prefer to use Log4J to handle the logging done with JCL 1.0.3, then some simple configuration is necessary:
    1. Include the Log4J JAR and JCL 1.0.3 JAR in your application’s WEB-INF/lib directory.
    2. Create a file called org.apache.commons.logging.LogFactory in your application’s META-INF/services directory.
    This file contains just one line of text: org.apache.commons.logging.impl.Log4jFactory

    Otherwise if you have pb with PARENT_LAST, just post your stacktrace, perhaps someone will know your pb and you'll be able to work with PARENT_LAST ?

  4. Re: log4j commons-logging WAS6.1.0.19

    Hi,
    This is the stack trace with Parent Last Class loading ( I apologize for having to mask the package name due to some obscure company policy) , this error happens only on Parent Last.:
    The first line abt having to implement xml.rpc.handler.Handler is also not correct. My handler does extend GenericHandler which implements that.
    [7/15/09 13:32:04:090 EDT] 00000037 WSDDJAXRPCHan E com.ibm.ws.webservices.engine.deployment.wsdd.WSDD JAXRPCHandlerInfo getJavaClass WSWS3123E: Error: Javaclass com.*****.******.******.services.handlers.Provider PaymentHandler specified for handler null must implement javax.xml.rpc.handler.Handler OR com.ibm.wsspi.webservices.rpc.handler.HandlerClass Factory. The handler will be skipped.
    [7/15/09 13:32:07:590 EDT] 00000037 PivotHandlerW E com.ibm.ws.webservices.engine.PivotHandlerWrapper bindExceptionToResponse WSWS3400I: Info: unexpected exception.
    java.lang.NoClassDefFoundError: com.*****.******.******.services.beans.ProviderPay mentRequest_Helper (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:132)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:163)
    at com.ibm.ws.webservices.engine.utils.ClassUtils$2.r un(ClassUtils.java:234)
    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:63)
    at com.ibm.ws.webservices.engine.utils.ClassUtils.loa dClass(ClassUtils.java:210)
    at com.ibm.ws.webservices.engine.utils.ClassUtils.for Name(ClassUtils.java:181)
    at com.ibm.ws.webservices.engine.encoding.ser.BaseDes erializerFactory$getDeserializerMethodPRIV.run(Bas eDeserializerFactory.java:359)
    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:63)
    at com.ibm.ws.webservices.engine.encoding.ser.BaseDes erializerFactory.getDeserializerMethod(BaseDeseria lizerFactory.java:253)
    at com.ibm.ws.webservices.engine.encoding.ser.BeanDes erializerFactory.getDeserializerMethod(BeanDeseria lizerFactory.java:216)
    at com.ibm.ws.webservices.engine.encoding.ser.BaseDes erializerFactory.lazyInitialization(BaseDeserializ erFactory.java:154)
    at com.ibm.ws.webservices.engine.encoding.ser.BeanDes erializerFactory.lazyInitialization(BeanDeserializ erFactory.java:132)
    at com.ibm.ws.webservices.engine.encoding.ser.BaseDes erializerFactory.getDeserializerAs(BaseDeserialize rFactory.java:168)
    at com.ibm.ws.webservices.engine.encoding.Deserializa tionContextImpl.getDeserializer(DeserializationCon textImpl.java:438)
    at com.ibm.ws.webservices.engine.xmlsoap.builders.Req uestResponseProcessor.onStartChild(RequestResponse Processor.java:356)
    at com.ibm.ws.webservices.engine.events.P2DConverter. startElement(P2DConverter.java:403)
    at com.ibm.ws.webservices.engine.events.P2DConverter. startElement(P2DConverter.java:344)
    at com.ibm.xml.xlxp.api.sax.impl.SAX2ParserBase.start ElementAction(SAX2ParserBase.java:234)
    at com.ibm.xml.xlxp.api.was.WSXMLReader.startElementA ction(WSXMLReader.java:122)
    at com.ibm.xml.xlxp.api.sax.impl.SAX2ParserBase.start ElementEvent(SAX2ParserBase.java:220)
    at com.ibm.xml.xlxp.api.was.WSXMLReader$WSScannerHelp er.produceStartElementEvent(WSXMLReader.java:351)
    at com.ibm.xml.xlxp.api.util.SimpleScannerHelper.fini shStartElement(SimpleScannerHelper.java:539)
    at com.ibm.xml.xlxp.scan.DocumentEntityScanner.scanSt artElementUnbuffered(DocumentEntityScanner.java:35 27)
    at com.ibm.xml.xlxp.api.util.SimpleScannerHelper.scan StartElementUnbuffered(SimpleScannerHelper.java:76 7)
    at com.ibm.xml.xlxp.scan.DocumentEntityScanner.stateU nbufferedStartElement(DocumentEntityScanner.java:5 03)
    at com.ibm.xml.xlxp.scan.DocumentEntityScanner.scanCo ntentUnbuffered(DocumentEntityScanner.java:2762)
    at com.ibm.xml.xlxp.api.util.SimpleScannerHelper.scan ContentUnbuffered(SimpleScannerHelper.java:1072)
    at com.ibm.xml.xlxp.scan.DocumentEntityScanner.stateU nbufferedContent(DocumentEntityScanner.java:547)
    at com.ibm.xml.xlxp.scan.DocumentEntityScanner.produc eEvent(DocumentEntityScanner.java:640)
    at com.ibm.xml.xlxp.scan.DocumentEntityScanner.produc eEvents(DocumentEntityScanner.java:665)
    at com.ibm.xml.xlxp.scan.DocumentEntityScanner.parseD ocumentEntity(DocumentEntityScanner.java:429)
    at com.ibm.xml.xlxp.api.util.SimpleScannerHelper.pars eDocumentEntity(SimpleScannerHelper.java:183)
    at com.ibm.xml.xlxp.api.was.WSXMLReader.parseEvents(W SXMLReader.java:115)
    at com.ibm.xml.xlxp.api.sax.impl.SAX2ParserBase.parse Entity(SAX2ParserBase.java:1337)
    at com.ibm.xml.xlxp.api.sax.impl.SAX2ParserBase.parse (SAX2ParserBase.java:1376)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at com.ibm.ws.webservices.engine.utils.WebServicesPar ser.parse(WebServicesParser.java:342)
    at com.ibm.ws.webservices.engine.encoding.Deserializa tionContextImpl.parse(DeserializationContextImpl.j ava:295)
    at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnv elope(SOAPPart.java:1064)
    at com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEn velope(SOAPPart.java:628)
    at com.ibm.ws.webservices.engine.SOAPPart.getEnvelope (SOAPPart.java:656)
    at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandlerChain.handleRequest(JAXRPCHandlerChain.ja va:301)
    at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler.invokeServerRequestHandler(JAXRPCHandler .java:506)
    at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXR PCHandler$1.invoke(JAXRPCHandler.java:380)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper. invoke(PivotHandlerWrapper.java:208)
    at com.ibm.ws.webservices.engine.WebServicesEngine.in voke(WebServicesEngine.java:336)
    at com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServlet.doPost(WebServicesServlet.java:831)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
    at com.ibm.ws.webservices.engine.transport.http.WebSe rvicesServletBase.service(WebServicesServletBase.j ava:341)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1103)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:570)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:486)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:3440)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:267)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:815)
    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1461)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:118)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.ready(HttpInboundLink.java:267)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.sendToDiscriminators(NewConnectionIniti alReadCallback.java:214)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.complete(NewConnectionInitialReadCallba ck.java:113)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
    Caused by: java.lang.VerifyError: com/ibm/ws/webservices/engine/utils/QNameTable.createQName(Ljava/lang/String;Ljava/lang/StringLjavax/xml/namespace/QName;
    at com.*****.******.******.services.beans.ProviderPay mentRequest_Helper.(ProviderPaymentRequest_Helper. java:20)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:163)
    at com.ibm.ws.webservices.engine.utils.ClassUtils$1.r un(ClassUtils.java:164)
    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:63)
    at com.ibm.ws.webservices.engine.utils.ClassUtils.for Name(ClassUtils.java:157)
    ... 65 more

  5. Re: log4j commons-logging WAS6.1.0.19

    I was having the same problem. I´m using WAS 7.0 though.
    1. Create and copy commons-logging.properties
    Create a file with the name commons-logging.properties. Fill it with this content:
    priority=1
    org.apache.commons.logging.LogFactory=org.apache.c ommons.logging.impl.LogFactoryImpl
    org.apache.commons.logging.Log=org.apache.commons. logging.impl.Log4JLogger
    Copy it to this folder:
    /opt/WebSphere7.0/AppServer/properties
    2. Copy commons-logging.jar y log4jx.x.xx.jar
    Copy the commons-logging and log4j jars in:
    /opt/WebSphere7.0/AppServer/lib
    3. Restart Websphere
    a. Enter this path
    /opt/Websphere7.0/AppServer/bin
    b. Execute
    ./stopServer.sh server1
    Where server1 is the name of your server. In my case the name was server1.
    c. Execute
    ./startServer.sh server1

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2