How to enable JCo logging

I know I've seen this somewhere, but now that I need it, I can't find it.  I've spent two hours searching all the forums.  Can someone tell me how I enable JCo logging?  I have a JCO/Java program that works fine from the command line, but doesn't work when I try to use it in a Tomcat servlet.  None of the log files that I can find have any errors in them, but it appears that the call to JCO.createClient fails in the servlet.  I've read all of the posts about putting the JCo jar file in the servlet's lib directory and copying sapjcorfc.dll to Tomcat's bin directory, but no luck.  I'm hoping that there is some way that I can get JCo to give me a log that will indicate what is going wrong.  Thank you for your help.

<b>SAP Note 723562</b>
2. Runtime loading mechanism
When an application references a JCo class for the first time it will be loaded by the associated class loader. During this process JCo's static initializer will be executed. This routine will search and load the JCo JNI library by using the following algorithm:
1. Try to load the sapjcorfc library from the same directory where the sapjco.jar file or the JCo class files are located.
2. Search the sapjcorfc library along the directory path defined in the java.library.path system property from left to right and if found load it from there.
            Note: If this property is not set manually, the JVM will usually set the OS specific library path environment variable as the default java.library.path system property at startup.
1. Let the JVM handle the loading of the sapjcorfc library by delegating this task to its System.loadLibrary(String) method.
JCo's JNI library is linked with the native RFC library. So when it is loaded the operating system will try to resolve its dependencies by loading the native RFC library, too. Usually, this will be done by searching for the first occurrence of the rfccm | librfc32 library along the directory path defined by the OS specific library path environment variable from left to right and load it.
If the sapjcorfc library and/or the rfccm | librfc32 library cannot be loaded, you will get an ExceptionInInitializerError from the JCO. <clinit> method saying that it could not load the middleware layer com.sap.mw.jco.rfc.MiddlewareRFC. This error message may be caused for one of the following reasons:
The sapjcorfc library cannot be found by using the above described algorithm, because you unintentionally installed it to the wrong directory or forgot to specify its directory in the OS specific library path environment variable or alternatively in the java.library.path system property.
The rfccm | librfc32 library cannot be found because you unintentionally installed it to the wrong directory or forgot to specify its directory in the OS specific library path environment variable.
The version of the sapjcorfc library found via the sapjco.jar directory or the java.library.path system property is not the required version (the version numbers and dates of the JCo middleware and the JCo library must be equal).
The version of the rfccm | librfc32 library found via the OS specific library path environment variable is too old (for example you forgot to copy the librfc32.dll to the <WinDir>\system32 directory and an older version is loaded from there).
The sapjcorfc library, the rfccm | librfc32 library or both lack the execute permission flag.
The sapjcorfc library, the rfccm | librfc32 library or both do not have the same bit width as the JVM.
The sapjcorfc library, the rfccm | librfc32 library or both were from a different JCo distribution and are not for use with your operating system and/or your hardware processor.
The sapjcorfc library, the rfccm | librfc32 library or both require a higher operating system version.

Similar Messages

  • How to enable fnd log in self service page

    Hello,
    In professional forms, we can enable fnd log using the profile options "FND: Debug Log Enabled" to Yes and "FND: Debug Log Level" to different levels.
    Similarly, can we do the same with Self Service page? how and where can i see the log results? Also when i'm running the selfservice page from jDeveloper, is there any possibility to see the entire log?
    I need to track why i'm unable to run a page from jdeveloper and i need to track the log.
    Thank you all for the help in advance.
    kK

    Hi,
    To Enable to Log for a self service page click on 'Diagnostics' link avaible at the Upper Right corner of the page. Now from the Diagnostic poplist select the 'Show Log On Screen' then select the log level and save.
    Now you perform your fucntional steps all the log messages you will be able to see at the bottam of the page.
    Regards,
    Syed.

  • How to enable JMS logging to capture message body for Uniform Distributed Q

    Hi All,
    we need to log JMS message body for our PROD env. but we do not see any "All Body" option in JMSQueue-> logging for our Uniform Distributed Queue.
    Please let me know how can we achieve our requirement.
    Thanks in Advance.

    got the solution.
    This is a know bug - [ID 1377584.1]
    adding below parameters in config/jms file should do the requirement.:
    <message-logging-params>
    <message-logging-enabled>true</message-logging-enabled>
    <message-logging-format>%header%,JMSCorrelationID,JMSDeliveryMode,JMSDestination,JMSExpiration,JMSMessageID,JMSPriority,JMSRedelivered,JMSReplyTo,JMSTimestamp,JMSType,%properties%,JMSXDeliveryCount,JMSXUserID,JMS_BEA_DeliveryTime,JMS_BEA_RedeliveryLimit,JMS_BEA_UnitOfOrder,*%body%*</message-logging-format>
    </message-logging-params>
    Edited by: Bob on May 10, 2013 11:53 AM

  • How to enable log4j logging on Infoview and CMC on JBoss Appln Server?

    Hi
    I have enabled log4j logging on Web Intelligence (For Analytical Reporting Application). Can anybody help me in enabling logging for CMC and Infoview.
    Please refer to the below link for more details on Logging in JBoss AS.
    http://docs.jboss.org/process-guide/en/html/logging.html#d0e3341
    Regards
    Arun Sasi

    If you have the EM (Enterprise Manager) installed on your stand alone WLS (which you should) you can select the managed server your app is running on, select the 'Log Configuration' menu and you should see almost the same representation an in jdev.
    Timo

  • How to enable the logs in applets

    I have a signed jar which uses commons-logging all the logs are in debug mode how to set the debug on to view the logs in the java console.
    i have tried the following things
    jre/log properties is set to debug
    applet debug is set to true
    there is a SimpleLogFactory class which extends the Log Factory class.. i have set the levels to 2 here for debug mode
    i am still not able to see the log.debug statements.

    i have tried doing setting the run time params as well it does not work:(
    i can see the applet debug but the applet calls other classes which uses log.debug stmts i am not able to see those debugs
    in the init mrthod of my applet i have
    public void init()
    /*  40 */     if (log == null)
    /*  47 */       if ((super.getParameter("DEBUG_ON") != null) && (!_initialized))
    /*  49 */         SimpleLogFactory.setLogLevel(2);
    /*     */       else
    /*  53 */         SimpleLogFactory.setLogLevel(4);
    /*  56 */       log = LogFactory.getLog(UploadApplet.class);
    /*     */     }

  • How to enable telemetry logs and where can i find the command line for sun

    Hi i tried creating the telemetry logs directory but the logs are not being populated. i created the following directory:-
    /opt/SUNWmsgsr/data/telemetry/imap/usersns1
    where usersns1 is the userid.
    Also pl. tell me where can i get the command list for sun one messaging server to use the command line utility to list, delete mailboxes. also can i search for all the mailboxes under one domain name. if yes then which command i have to use.
    thanks in advance.

    Hi,
    Hi i tried creating the telemetry logs directory but
    the logs are not being populated. i created the
    following directory:-
    /opt/SUNWmsgsr/data/telemetry/imap/usersns1
    where usersns1 is the userid.Make sure the permissions (ownership) on the user directory and the sub directory match those that messaging server uses - by default mailsrv:mail. This is the most common cause of the telemetry data not being created. The other thing to verify is that the user's account isn't stored as user@domain, otherwise you may need to create the directory as the entire user@domain (try both just to be sure).
    Also pl. tell me where can i get the command list
    for sun one messaging server to use the command line
    utility to list, delete mailboxes. also can i search
    for all the mailboxes under one domain name. if yes
    then which command i have to use.The Messaging Server reference guide is a good place to start (lists all the command-line utilities/flags and what-not):
    http://docs.sun.com/app/docs/doc/819-4429?l=en
    The mboxutil command is used to list/create/delete mailboxes and you can use a pattern to only list those mailboxes in a specific domain.
    Regards,
    Shane.
    thanks in advance.

  • How to enable b2b_idc_transport.log

    After the new MLR's on 10.1.2.3 ,oracle.tip.adapter.b2b.transportTrace is nolonger writing the log to the specified file,rather we see b2b_dc_transport.log and b2b_idc_transport.log in b2b log folder
    what's the new tip.properties to control these 2 logs
    Thanks,
    Kalyan

    Hi Kalyan,
    The below two tip.properties used to control the transport logs,
    For External Delivery Channel :
    oracle.tip.adapter.b2b.transportTraceLogLevel
    For Internal Delivery Channel :
    oracle.tip.adapter.b2b.appTransportTraceLogLevel
    The possible values could be,
    WARNING | STATUS | DEBUG | ERROR
    For backward compatibility, we have made assumption that if old properties
    are defined, logLevel will be assumed to be DEBUG
    The new Properties for Transport Logger overrides old properties.
    If none of the properties (old and new) for Transport Logger is specified,
    default log level is ERROR
    The new transport log files will be created in the same directory in which
    b2b log file is created.
    Example: $ORACLE_HOME/ip/log/b2b
    For Internal delivery channel b2b_idc_transport.log
    For External delivery channel b2b_dc_transport.log
    Regards
    Nandagopal.S

  • How to enable logging for mail.app in Mountain Lion

    I am at my wits end trying to figure this out....
    Does anyone have a clue how to enable the logging for mail.app under Mountain Lion?
    In the past, you could open up Console and click on Console.log and see the logging of mail. Under mountain Lion, there is no more console.log. I cannot figure out how to enable it.
    I have tried to run the AppleScript of "Turn On Logging" but the script errors out under Mountain Lion.
    Does anyone know how to do this or a better way, maybe a tool or something that can help you troubleshoot mail.app issues?
    Thanks in advanced

    Hello,
    I have a similar problem. The script "Turn on Logging.scpt" runs without error, but I do not see any socket logging. I only get two messages, which I also get when I start mail without the script by just clicking the mail.app icon in the dock. The Messages are:
    1/10/13 3:43:32.618 PM Mail[11276]: Using V2 Layout
    1/10/13 3:43:36.388 PM Mail[11276]: *** -[IADomainCache init]: IA domains cache is out of date.
    Any help would be appreciated

  • How to enable diagnostics in cloud services and virtual machine

    Hi All,
    I need to enable diagnostics  for cloud services and virtual machine in our
    cloud environment. I referred the below link.
    https://convective.wordpress.com/2014/06/27/using-azure-monitoring-services-api-with-azure-cloud-services/
    Installed azure SDK 2.5 and cloud services instance is not displayed for cloud services in Visual studio 2013. Please provide the steps to enable at run time. 
    1) How to enable this diagnostics at run time.
    2) How to enable event logs for cloud and Virtual machine
    3) How to get the event log data's from REST API.
    Please help to resolve this.
    Thanks.
    Regards,
    Rathidevi

    hi Rathidevi,
    In addition, you could enable diagnostics feature on VM from this blog:
    http://azure.microsoft.com/blog/2014/09/02/windows-azure-virtual-machine-monitoring-with-wad-extension/
    Please refer to it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Enabling archive log

    Hi all,
    1) How to enable archive log in oracle 10g. Found a link in google. http://cuddletech.com/articles/oracle/node58.html
    Is it the correct way, need to down the database.
    2) Could the archive log affect the performance of the database, if i have average of 1 write transactions to the database? I have a database that have already switch on by my precessder. I notice that it generate a 40,000kb of file every 3 minutes.

    The questions are, how often are your redo log switches, are the users noticing a performance issue, what level of service have you agreed to for backup and recovery?
    There can be trade-offs made, depending on the exact circumstances. As Ed noted, not losing data is the prime directive. There are many ways to avoid losing data, someone has to decide which are most appropriate and which are just too expensive. Someone playing what-if scenarios with your projected budgets is going to have a different idea about that than someone who is in charge of millions of dollars of online orders. DW and DSS systems often have other places to get the data and may not require being able to point-in-time recover. It depends.
    What you need to avoid is managers saying things like "we only care about restoring to last nights backup," when they don't understand what they are saying.
    Some bulk-loading situations can benefit from nologging operations, and some (like a massive update in an app upgrade) can benefit from going out of and into archivelog mode, since such things can generate huge amounts of redo without a requirement to recover halfway through them. Just be sure and take an appropriate backup after such things. That also means, take a backup as soon as you go into archivelog mode.

  • How to enable the Exchange 2010 Admin Audit logs in Event Viewer

    How to enable the Exchange 2010 Admin Audit(Mailbox Auditing) logs in Event Viewer.
    - Sivashankar. Please mark as answer/useful if my contribution is helpful

    Hi Siva,
    We could execute the command below to view Administrator Audit Logging settings:
    Get-AdminAuditLogConfig
    If it is not enabled, please run the command below:
    Set-AdminAuditLogConfig -AdminAuditLogEnabled $True
    In addition, here are some references for you to utilize this feature:
    Configure Administrator Audit Logging :
    http://technet.microsoft.com/en-us/library/dd335109(v=exchg.141).aspx
    Search the Administrator Audit Log :
    http://technet.microsoft.com/en-us/library/ff459262(v=exchg.141).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to enable logging of database changes of  Z tables into a log table.

    Dear Team,
    We have 8 Z tables and we need to log the changes in these tables. Earlier Change Document process was proposed but now we know that the possible changes in the Z tables will be many and this can cause too many entries in CDHDR and CDPOS tables. Going through so many entries of Change Document tables will decrease the system performance. The other option involves enabling the Log data base changes for the Z data base tables, but this will also cause the system to slow down as per SAP F1 help on "Log data changes" checkbox.
    description-"Note: Activating logging slows down accesses that change the table. First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables."
    So we came to a solution where we can create a Z table and we will log the above mentioned Z table changes in the Z Change table but I have no idea how to implement the suggested solution. Please help me on this.
    Regards
    Amit

    Hi,
    Have a suggestion..
    Have custom fleld as LOG with char 1 and date field (sy-datum) in all the 8 ztables. The ztables are updated either through SM30 or from custom program, making sure who ever changes the record if manually then fill that flag field as 'X' and if by program then populate the field with value 'X'.So you will know based on the flag field whether changed or not.similarly for date field updatin as well.
    Now create a custom program to update the new ztable . Schedule this program daily may be at midnight..Read the 8 ztables with having flag = 'X' and update the new ztable. Once done clear the FLAG  from all the 8 ztables to space for that day and update the date field in the custom program.
    So for that particular day the records were written to new ztable and all the 8 ztables are having flag value as space and date will be sy-datum.
    Now for next day again do the same procedure.
    Hope this gives you an idea.
    Regards,
    Nagaraj

  • How to enable logging for the Web Proxy

    Hi,
    Does anyone know how to enable logging for the Web Proxy feature under "Web" in Server Admin?

    Aren't the web proxy hits logged in the standard apache logs? /var/log/httpd/access_log

  • HT3986 Does anyone know how to enable the "Delete" key for logging on the Windows 7 partition on the latest iMac, via the latest Apple wireless keyboard? Many Thanks

    Hi All
    Does anyone know how to enable the "Delete" key for logging on the Windows 7 partition on the latest iMac, via the latest Apple wireless keyboard - the standard wired apple keyboard works fine via this key but not the new wireless keyboard?
    Many Thanks

    Holy crap, this fixes the issue.  At least temporarily it has.  I should add that my issue was single finger forward/back swipe stopped working on the magic mouse in Firefox since Mavericks came along.  I have been fighting this since I upgraded to Mavericks a few months ago.  Thank you, tbirdvet.  You have no idea how much easier you just made using my iMac again.
    Message was edited by: wadems

  • How to enable logging of weblogic classs

    Hi Everyone,
    Is there anyway I can enable the logging on few classes of the Weblogic server like "ReplicatedSessionData, SessionData, CookieSessionData" etc which are present in the "weblogic.servlet.internal.session" package.
    For your information I'm experiencing the logout issue in my server even though the user is in the session is valid. Nothing is displayed in the log files related to my application. It's just redirecting to the login page. this issue is not reproducible very often.
    Thanks

    I recommend you contact support as there are pre-defined support patterns for diagnosing the root cause for these types of issues. There are also special debug flags they can provide to provide additional logging.

Maybe you are looking for