Problem in axis with log4j

Hi ,
I am facing one problem in running WS with axis in tomcat. I am new to ws . I have downloaded apache-tomcat-4.1.34(apache-tomcat-4.1.34.zip) and axis-1_4(axis-bin-1_4.zip) from the site. Set Path, Classpath , catalina_home , java_home. I have tested with http://localhost:8080/axis/happyaxis.jsp. That has come ok. Then I have tested http://localhost:8080/axis/HelloServer.jws a simple ws written by me and that also has come ok.
Problem is when I am running client code it is giving me log4j error message . My client code is also a simple one.
package samples.userguide.example1 ;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class Client1
public static void main(String [] args) {
try {
String endpoint = "http://localhost::8080/axis/HelloServer.jws";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("http://soapinterop.org/", "sayHelloTo") );
String ret = (String) call.invoke( new Object[] { "sayHelloTo" } );
System.out.println("Sent 'Hello!', got '" + ret + "'");
} catch (Exception e) {
System.err.println(e.toString());
I am getting error in service.createCall();
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45)
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at samples.userguide.example1.Client1.main(Client1.java:30)
My classpath is
C:\axis-1_0\axis-1_4\lib\axis.jar;C:\axis-1_0\axis-1_4\lib\commons-discovery.jar;C:\axis-1_0\axis-1_4\lib\commons-logging.jar;C:\axis-1_0\axis-1_4\lib\jaxrpc.jar;C:\axis-1_0\axis-1_4\lib\saaj.jar;C:\axis-1_0\axis-1_4\lib\log4j-1.2.8.jar;C:\axis-1_0\axis-1_4\lib\xml-apis.jar;C:\axis-1_0\axis-1_4\lib\xercesImpl.jar;C:\Program Files\Java\jdk1.5.0\lib;.;C:\axis-1_0\axis-1_4;
log4j.properties file is in C:\axis-1_0\axis-1_4\lib directory.
Can any one help me out.
Thanks in advance
Jyoti

Pls..
Can anyone help me??
Thanks again,
Francesco

Similar Messages

  • Problems installing Axis with WLS 8.1

    I'm having problems installing Apache Axis with WLS 8.1.
    I'm totally new to WLS, so this may be at the heart of the problem.
    I install Axis as per the installation instructions.
    These are the steps I followed:
    1. Installed the axis directory to
    C:\bea\weblogic81\samples\domains\examples\applications\axis2. Added xml-apis.jar and xercesImpl.jar to the AXISCLASSPATH ( the complete AXISCLASSPATH is
    C:\axis-1_2RC2\lib\wsdl4j.jar;C:\axis-1_2RC2\lib\axis-ant.jar;C:\axis-1_2RC2\lib\commons-discovery.jar;C:\axis-1_2RC2\lib\commons-logging.jar;C:\axis-1_2RC2\lib\jaxrpc.jar;C:\axis-1_2RC2\lib\log4j.properties;C:\axis-1_2RC2\lib\log4j-1.2.8.jar;C:\axis-1_2RC2\lib\saaj.jar;C:\axis-1_2RC2\lib\axis.jar;C:\javasoft\javamail-1.3.2\mail.jar;C:\javasoft\javamail-1.3.2\lib\smtp.jar;C:\javasoft\javamail-1.3.2\lib\mailapi.jar;C:\javasoft\javamail-1.3.2\lib\pop3.jar;C:\javasoft\javamail-1.3.2\lib\imap.jar;C:\javasoft\jaf-1.0.2\activation.jar;C:\javasoft\Xerces\xerces-2_5_0\xercesImpl.jar;C:\javasoft\Xerces\xerces-2_5_0\xml-apis.jar)3.Added weblogic.xml file to C:\bea\weblogic81\samples\domains\examples\applications\axis\WEB-INF\weblogic.xmlas per instructions with <prefer-web-inf-classes>true</prefer-web-inf-classes> 4. Started the examples server.
    5. I then tried to validate the installation as per intructions using <a href="http://localhost:7001/axis"></a>
    Everything looks OK with the Axis start page displayed.
    6. I then tried happyaxis.jsp . All needed components are present with saaj.jar being picked up from :
    Found SAAJ API (javax.xml.soap.SOAPMessage) at C:\bea\weblogic81\samples\domains\examples\examplesServer\.wlnotdelete\extract\examplesServer__appsdir_axis_dir_axis\jarfiles\WEB-INF\lib\saaj.jar7. I'm missing optional component xmlsec.jar
    8. Now the trouble starts!!!
    pretty much anything I try now comes back with:
    AXIS error
    Sorry, something seems to have gone wrong... here are the details:
    Exception - java.lang.NullPointerExceptionI get this if I try:
    <a href="http://localhost:8080/axis/services/Version?method=getVersion"></a>
    or
    <a href="http://localhost:7001/axis/services/AdminService?wsdl"></a>
    or
    <a href="http://localhost:7001/axis/services/Version?wsdl"></a>
    So, what's going wrong? I cant think what to do next. Please help! I need this to work fairly urgently.
    Nigel
    PS. here's the NP exception in detail
    java.lang.NullPointerException
            at weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEn
    tityResolver.java:61)
            at weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryD
    ocumentBuilder.java:168)
            at org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:2
    35)
            at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:312)
            at org.apache.axis.utils.XMLUtils.StringToElement(XMLUtils.java:485)
            at org.apache.axis.AxisFault.addFaultDetail(AxisFault.java:654)
            at org.apache.axis.AxisFault.addHostname(AxisFault.java:888)
            at org.apache.axis.AxisFault.addHostnameIfNeeded(AxisFault.java:877)
            at org.apache.axis.AxisFault.initFromException(AxisFault.java:280)
            at org.apache.axis.AxisFault.<init>(AxisFault.java:181)
            at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
            at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:487)
            at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.jav
    a:62)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.j
    ava:1132)
            at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:233
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
            at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
    e.java:301)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1006)
            at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:419)
            at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:315)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6718)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
            at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3764)
            at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2644)
            at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    I'm doing exactly the same thing (adding the xerces jars to my web-inf/lib), but happyaxis.jsp is saying the jar I'm using is invalid as follows:
    Error: Invalid version of SAAJ API found in D:\bea\weblogic81\server\lib\webservices.jar. Make sure that Axis' saaj.jar precedes D:\bea\weblogic81\server\lib\webservices.jar in CLASSPATH.
    Axis will not work.
    Maybe this worked in a previous release/SP? I'm using 8.1SP3. I've read some other post saying you cannot override stuff in the weblogic.jar, so I've tried to add the jars to the pre_classpath, which resolves the issue but I get a soap fault related to this thread. Any ideas?
    Thanks,
    Lou
    My weblogic.xml looks as follows:
    <weblogic-web-app>
    <jsp-descriptor>
    <!-- Comment the jspServlet param out to go back to weblogic's jspc -->
    <jsp-param>
    <param-name>jspServlet</param-name>
    <param-value>weblogic.servlet.WlwJSPServlet</param-value>
    </jsp-param>
    <jsp-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </jsp-param>
    </jsp-descriptor>
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    <url-match-map>
    weblogic.servlet.utils.SimpleApacheURLMatchMap
    </url-match-map>
    </weblogic-web-app>

  • Problem with log4j

    I want to load the jar file for my program into oracle.
    The program depends on log4j.
    I am using loadjava command.
    loadjava -user schema/password@database -oci8 -resolve so.jar lib\*.jar config\*.properties
    but i get this error
    errors : class org/apache/log4j/jmx/AbstractDynamicMBean
    ORA-29521: referenced name javax/management/RuntimeOperationsException could not be found
    ORA-29521: referenced name javax/management/AttributeList could not be found
    ORA-29521: referenced name javax/management/Attribute could not be found
    ORA-29521: referenced name javax/management/DynamicMBean could not be found
    ORA-29521: referenced name javax/management/MBeanRegistration could not be found
    ORA-29521: referenced name javax/management/MBeanException could not be found
    ORA-29521: referenced name javax/management/ReflectionException could not be found
    ORA-29521: referenced name javax/management/AttributeNotFoundException could not be found
    ORA-29521: referenced name javax/management/InvalidAttributeValueException could not be found
    ORA-29521: referenced name javax/management/MBeanServer could not be found
    ORA-29521: referenced name javax/management/ObjectName could not be found
    ORA-29521: referenced name javax/management/MBeanInfo could not be found
    what i could figure out is that the jvm on oracle server is 1.4 and hence this class has problems there. Is there a way to make this work without sacrificing log4j?
    null

    Hi,
    The tomcat service is still running fine.
    I have implemented a rotation(once a day) for the log4j log files
    Usually the file size is at about 400KB - 1.5MB the most a day for the log43j log files, and for catalina.out i do not have any rotation implemented.
    Sometimes, i just restarted the tomcat, and the catalina.out is cleared. The catalina.out log, sometimes, it becomes slow and stops logging after a few hours yet the tomcat service is still running because i am getting log on the http post and etc.
    So basically i am having problem with the logger, both log4j and the catalina.out
    Any ideas ?
    (on certain occurance, the log starts again after a while (maybe 1-2 hours later), yet there is a http post request during this period and its not logged)
    below is the log4j properties
    log4j.rootCategory=info,S,R
    log4j.rootLogger=debug, S,R
    log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.S=org.apache.log4j.ConsoleAppender
    log4j.appender.R.File=/home/server/tomcatlogs/http_my.log
    log4j.appender.R.DatePattern=-yyyy-MM-dd
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.S.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} - %p %m%n
    log4j.appender.S.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} - %p %m%n
    log4j.category.org.apache.axis=OFF
    log4j.logger.org.apache.commons.httpclient=OFF
    everything is to be working normally, until a weird sudden death.
    So my main problems are:
    1) catalina.out
    2) log4j
    Both seems to die a slow and painful death :)
    appreciate ur help on this
    cheers,
    Edited by: sankai on Aug 14, 2008 3:58 AM

  • Problems with Log4j/commonslogging

    I'm having some weird problems with log4j or commons/logging. I'm not at all
    excluding that they may be my own fault, but I can't get to the actual
    problem. Hope someone can help me out. I'm getting an exception at startup
    of the VM. The exception is below. The problem seems to be version related I
    think, but I can't figure it out exactly, since the versions of both logging
    and log4j I have in my path seem to be exactly equal to those in my 2.5 RC1
    distrib.
    Hope you can help out,
    Martin van Dijken
    PS: This isn't the entire excep, hope it's enough
    1652 ERROR [main] kodo.Runtime -
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:org.apache.commons.logg
    ing.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:org.apache.commons.logg
    ing.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:555)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:289)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
    at
    com.solarmetric.modules.tools.compiler.MetaDataParser.<init>(MetaDataParser.
    java:32)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.<init>(CFMetaDataPar
    ser.java:39)
    at
    com.solarmetric.kodo.meta.JDOMetaDataParser.<init>(JDOMetaDataParser.java:61
    at
    com.solarmetric.kodo.meta.ClassMetaData.getInstance(ClassMetaData.java:223)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:444)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    at javax.jdo.spi.JDOImplHelper.registerClass(JDOImplHelper.java:269)
    at
    com.madocke.mirakel.forum.ForumMessage.<clinit>(ForumMessage.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at
    com.solarmetric.kodo.util.MultiLoaderClassResolver.resolveClass(MultiLoaderC
    lassResolver.java:85)
    at
    com.solarmetric.kodo.util.MultiLoaderClassResolver.canResolveClass(MultiLoad
    erClassResolver.java:143)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.classForName(CFMetaD
    ataParser.java:231)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.classForName(CFMetaD
    ataParser.java:180)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.classForName(CFMetaD
    ataParser.java:165)
    at
    com.solarmetric.kodo.meta.JDOMetaDataParser.startClass(JDOMetaDataParser.jav
    a:122)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.startElement(CFMetaD
    ataParser.java:53)
    at
    com.solarmetric.modules.tools.compiler.MetaDataParser.startElement(MetaDataP
    arser.java:238)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
    Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
    wn Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
    her.dispatch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

    What is probably happening is a class loader issue... I would put
    jakarta's logging jar in the same place as log4j and be sure that they
    aren't extraneously in the classpath (such as in an EAR or WAR). Java
    can be pretty funky about classloaders and interfaces.
    On Fri, 16 May 2003 11:02:40 -0400, Alex Roytman wrote:
    Are you running it standalone or under lets say tomcat 4?
    "Martin van Dijken" <[email protected]> wrote in message
    news:[email protected]...
    I'm having some weird problems with log4j or commons/logging. I'm not atall
    excluding that they may be my own fault, but I can't get to the actual
    problem. Hope someone can help me out. I'm getting an exception at startup
    of the VM. The exception is below. The problem seems to be version relatedI
    think, but I can't figure it out exactly, since the versions of bothlogging
    and log4j I have in my path seem to be exactly equal to those in my 2.5RC1
    distrib.
    Hope you can help out,
    Martin van Dijken
    PS: This isn't the entire excep, hope it's enough
    1652 ERROR [main] kodo.Runtime -
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:org.apache.commons.logg
    ing.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:org.apache.commons.logg
    ing.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:555)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:289)
    atorg.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
    at
    com.solarmetric.modules.tools.compiler.MetaDataParser.<init>(MetaDataParser.
    java:32)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.<init>(CFMetaDataPar
    ser.java:39)
    at
    com.solarmetric.kodo.meta.JDOMetaDataParser.<init>(JDOMetaDataParser.java:61
    at
    com.solarmetric.kodo.meta.ClassMetaData.getInstance(ClassMetaData.java:223)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:444)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    atjavax.jdo.spi.JDOImplHelper.registerClass(JDOImplHelper.java:269)
    at
    com.madocke.mirakel.forum.ForumMessage.<clinit>(ForumMessage.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:217)
    at
    com.solarmetric.kodo.util.MultiLoaderClassResolver.resolveClass(MultiLoaderC
    lassResolver.java:85)
    at
    com.solarmetric.kodo.util.MultiLoaderClassResolver.canResolveClass(MultiLoad
    erClassResolver.java:143)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.classForName(CFMetaD
    ataParser.java:231)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.classForName(CFMetaD
    ataParser.java:180)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.classForName(CFMetaD
    ataParser.java:165)
    at
    com.solarmetric.kodo.meta.JDOMetaDataParser.startClass(JDOMetaDataParser.jav
    a:122)
    at
    com.solarmetric.modules.tools.compiler.CFMetaDataParser.startElement(CFMetaD
    ataParser.java:53)
    at
    com.solarmetric.modules.tools.compiler.MetaDataParser.startElement(MetaDataP
    arser.java:238)
    atorg.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
    Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
    wn Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
    her.dispatch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(UnknownSource)
    at org.apache.xerces.parsers.DTDConfiguration.parse(UnknownSource)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(UnknownSource)
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Getting error with Log4j

    Hi,
    Not sure if this is the right place to post this as it is a problem with log4j really and not java. Let me know if this needs moving.
    Here goes:
    I have a servlet in tomcat that uses log4j to log details, this works fine on all the systems at home and work, but I get the following error when it is run on our customers site:
    log4j: No appenders could be found for category (some.category.name).
    log4j: Please initialize the log4j system properly.
    I have looked this up on log4j's website, they give the following advice:
    Log4j does not have a default logging target. It is the user's responsibility to ensure that all categories can inherit an appender. This can be easily achieved by attaching an appender to the root category.
    This works fine off site? I have the following log4j.properties in the WEB-INF/classes dir in tomcat:
    log4j.rootCategory=DEBUG, dest1
    log4j.appender.dest1=org.apache.log4j.FileAppender
    log4j.appender.dest1.file=/rmx.log
    log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
    log4j.appender.dest1.layout.ConversionPattern=%-5p %l %x: %m%nAny ideas?
    Thanks in advance.
    Phil Maskell

    I have added code similar to what you suggested,
    being deployed on Tomcat I get the following:
    java.class.path=C:\Program Files\Apache Group\Tomcat
    5.5\bin\bootstrap.jar
    Is this what I should get? This is on my working
    system.That was probably not a good test (in hindsight). Tomcat's classpath is evidently not where its servlet classloader looks for classes.
    My log4j code uses a logFactory, in a final class,
    will this have any effect on the class path?The fact that the class is final will have no effect on any classloading. I doubt whether a logfactory will either, but I don't know what that is.
    P.S I could post my Logger.java, but stupid thing is
    it works fine on all my systems, just not on the
    customers :(I put my log4j.properties in the web app's WEB-INF/classes directory, just like you did. If your customer's system is not working the same as yours then you are probably wasting your time looking at Java code. The two systems are not configured the same and you need to find the difference.

  • Logging with log4j

    I'm having a problem doing logging. The problem lies in my log4j.properties file. I want to the log to be in the WEB-INF directory. Here's a log file that works
    log4j.rootLogger=info, R
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=${catalina.home}/logs/clprservicing.log
    log4j.appender.R.MaxFileSize=10MB
    log4j.appender.R.MaxBackupIndex=10
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
    log4j.logger.org.apache.catalina=INFO, RThis properties file is in WEB-INF/classes where it should be. When I change the location of the log to WEB-INF in the following log file
    log4j.rootLogger=info, R
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.logfile.File=${clpr-servicing.root}/WEB-INF/clprservicing.log
    log4j.appender.R.MaxFileSize=10MB
    log4j.appender.R.MaxBackupIndex=10
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
    log4j.logger.org.apache.catalina=INFO, Rit doesn't work! The webapplication is called clpr-servicing. Is there something wrong with the key ${clpr-servicing.root}? Does it have to be defined somewhere?

    Never mind. I found the solution.

  • CRforEnterprise - Axis with percent value

    Hi all,
    is it possible to format the y-axis with percent values in CR 4.0 or 4.1?
    I have a 100% stack bar chart, the axis-values are 0.1, 0.2, ..., 1.0. Other chart types (simple stackbar) do not offer this too.
    If I format the axis I can only choose date/time, currency or number format. In Crystal Reports 2013 I have a "percent category".
    Any ideas (without creating formulas * 100)? Thanks in advance!
    Best regards,
    Peter

    I have a similar problem - except it is with a formula that does multiply by 100.
    I have two numbers that are Running Total Fields.  I have a percent formula (includes *100) between the two, but I can't even get the pct fields to show up to be selected.

  • Multiple y-axis(with different scale) on a xy graph

    i have an xy graph in which i have three y-axis with 1 x-axis. iam able to name each of the axis as well as set the x-scale min and max each.
    finally iam able to see the three plots

    maybe this pictures can help to see my problem.
    note1 before taking the first picture i changed the range of one plot from right on the graph from -50000-50000 to 0-5000 as a result on pict#3 the black plot looks a bit bigger.
    i would like to be able to see both plots the same size. (example the size of plot color black on the pic#1, or the size of plot color purple on the pic#3)
    regards
    Attachments:
    picture 1.JPG ‏63 KB
    picture 2.JPG ‏112 KB
    picture 3.JPG ‏94 KB

  • Not sure how to configure Weblogic with log4j.xml

    I tried something VERY similar to this. I wasn't sure where to put this code below. I figured in a Servlet environment, it should probably go in a Listener. I found an existing class inside of Spring that does exactly that: org.springframework.web.util.Log4jConfigListener
    I put my log4j configuration file into an entry in the classpath and configured web.xml as follows:
    <!-- Spring log4j parameters -->
            <context-param>
                <param-name>log4jConfigLocation</param-name>
                <param-value>classpath:gov/pa/dep/formu/resources/log4j.properties</param-value>
            </context-param>
            <context-param>
                <param-name>log4jRefreshInterval</param-name>
                <param-value>30000</param-value>
            </context-param>
            <!-- Spring Log4j config listener -->
         <listener>
              <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
         </listener>The server admin placed the actual log4j.properties file into an AppFileOverrides folder instead of under WEB-INF\classes. I don't know if this caused the problem or not. Since I also was using the DailyRollingFileAppender and running into problems LOSING my log entries each day because he file didn't get renamed, I followed Metalink BUG# 8459807, and used the datedFileAppender available at http://minaret.biz/tips/datedFileAppender.html.
    When the application started, the server log showed that log4j was being configured but none of my logging statements were going into the logs. It wasn't until the server admin placed a copy of log4j.properties (a different log4j.properties with a rolling file appender) that the log statements started going into the file that was configured based on web.xml.
    Surely, things can't be this difficult with log4j, and commons logging under WebLogic.
    All I want is APPLICATION LEVEL LOGS that are specific to the day.
    Can someone else elaborate on how they got this working?
    thanks a bunch,
    Eric

    Hi,
    The configuration wizard (config.sh) lets you create a WebLogic Domain, however and depending on others "Oracle Middleware" products installed on the same "Oracle Home" (directory where weblogic has been installed) the configuration wizard allows you create the new weblogic domain to support the others middleware products such as WebCenter.
    When I say support It means that Configuration Wizard allows you to create the weblogic resources like JDBC connections, JMS services, and deploys all applications that integrates another product such as WebCenter.
    I suggest create your domain with support for WebCenter and then from Admin Console create the JDBC resource to connect to other database such as JD Edwards database.
    I hope this help.

  • The problem I have since I upgraded to Mavericks version 10.9.1 The problem appears only with Mail not with other programs, not even with my browser. When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command   to e

    the problem I have since I upgraded to Mavericks version 10.9.1
    The problem appears only with Mail not with other programs, not even with my browser.
    When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
    As I have a problem with my eyes, This is a serious matter for me.
    When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
    Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but  he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • I have an alert message in disc utility. Error: storage system verify or repair failed. Problems were found with the partitian map which might prevent booting.

    While running verify disc in disc utility on 251 GB SSD SM256c Media I came up with this message: Alert system verify or repair failed. In the descriptions box of history it said, problems were found with the partitions map which might prevent booting. This is followed by a message in red reading, Error: Storage system verify or repair failed. At the time I was down loading raw pictures off my camera through a card reader across my computer to a relatively new 2TB Western Digital portable hard drive. after about 13 to 15 pictures downloaded that drive faileded. My Mac Book Air works fine, but i get this message now everytime I run disc verify on this disc. The Macintosh HD checks out fine.

    While running verify disc in disc utility on 251 GB SSD SM256c Media I came up with this message: Alert system verify or repair failed. In the descriptions box of history it said, problems were found with the partitions map which might prevent booting. This is followed by a message in red reading, Error: Storage system verify or repair failed. At the time I was down loading raw pictures off my camera through a card reader across my computer to a relatively new 2TB Western Digital portable hard drive. after about 13 to 15 pictures downloaded that drive faileded. My Mac Book Air works fine, but i get this message now everytime I run disc verify on this disc. The Macintosh HD checks out fine.

  • Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Why does my iPhone 4 not charge correctly?  Problem is definitely with the phone and not charges or chords.  Phone will charge but very slowly and no icon comes on.  Computer and iTunes doesn't recognize it a being connected.

    My iPhone 4 quit charging correctly.  It does charge but very slowly and icon doesn't indicate it as charging.  I've checked cables and charges and the problem is definetily with the phone.  My car stereo no longer recognizes it as a device.  Neither does the computer.  The real strange thing to me is that when I plug it into my old klispch speaker dock it will play songs.  My battery life is good when it is charged so I don't think its the battery. I've tried resetting the phone and cleaning the charging port.  I'm out of warranty.
    Would disconnecting the battery possibly reset it from some glitch or is the charging port got some bad contacts?

    I checked with the Genius Bar.  It was a new dilema to the lady that was helping me.  She took it to a back room and worked on it but it came out the same.  She gave me some options for repair or credit for replacement.
    I just kept the phone and put up with slowly charging it by plugging it in and then turning it off.
    I couldn't transfer anything from itunes.
    I finally got fed up and bought a new charging port for $10. and a toolkit for $3.  I looked up a video on youTube for the replacement and did it.
    That solved all the problems, it was the charging port, must have been some bad pins or something because it patially worked.

  • Having installed an upgrade for Photoshop Elements 13, I cannot open the application. I get an error message saying "Adobe Photoshop Elements Editor cannot be opened because of a problem. Check with the developer to make sure Adobe Photoshop Elements Edit

    Having installed an upgrade for Photoshop Elements 13, I cannot open the application. I get an error message saying "Adobe Photoshop Elements Editor cannot be opened because of a problem. Check with the developer to make sure Adobe Photoshop Elements Editor works with this version of OS X. You may need to reinstall the application. Be sure to install any available updates for the application and OS X".
    I have since uninstalled and reinstalled the app, but get the same error message.

    Which version of OS X do you have? It's not clear from your post whether "installed an upgrade" means you just installed PSE 13 as an upgrade or you installed an update to PSE 13, like ACR 9 or 13.1. Please clarify.

  • Problem when syncing with MobileMe

    I am using iPhone 3G, software 2.1. I use GMail for email (no problems) but my contacts, and only my contacts, sync through MobileMe.
    The problem is that with MobileMe active, my Contact list, "Mail, Contacts and Calendars" settings and several other minor features simply do not work - they open, pause for a few seconds, then crash. The Mail application also hangs and crashes every other time I open it.
    My local Apple Store restored 2.1, after which my Contact list and Email worked perfectly until I re-activated my MobileMe syncing, after which the problems resumed.
    As the problems occurred only after MobileMe syncing is turned on, I assume this is the cause of the problem, but because "Mail, Contacts..." settings crashes every time I open it I cannot disable MobileMe syncing.
    Any suggestions please? All help gratefully received...

    This was resolved by completely removing the MobileMe account from the iPhone, rebooting it and adding the account again.

Maybe you are looking for

  • BAPI /FM for getting Transfer Order details based on Material Doc No.

    Is there any FM or BAPI with which I would be able to get directly Transfer Order details, status etc based on Material Doc No without going into the tables? Thanks for your help Usha

  • On the Dock

    I have been asking the question for years and have not got any answers on the Dock. I see people asking the same Question for years . Why can't you have 2-3 Docks. What ever , A small dock or big, you can size it to the size you like or at size with

  • ISight sightless after OS10.4.8 update

    Photobooth and iChat both indicate camera is in use after OS update. Tried zapping pram multiple times, re-installed 10.4.8 combo from separate download, left machine unplugged for 45 min. Tried removing plist files. Still no camera. system info show

  • Flea Market buy G4 Tower, won't startup properly

    Dragged home an old G4 from the Flea Market. Plugged it into a monitor and keyboard. Chime a bit distorted on initial start-up, then got clearer on following start-ups, hard drive sounded glitchy, then busy. black screen, then slowly a blue screen, t

  • BOM Report - Item Qty in Percentage

    Hi all, Is there is any standard report available for displaying the BOM Item qty in percentage by weight. Ex: We are in process industry, here cumulative item qty is equal to the base qty. Finished product base qty = 1000 KG, Item A = 500 KG, B = 50